/* ==========================================================================
   Planckeon News — Interactive Intelligence Suite & Multitemporal Graph
   ========================================================================== */

/* --- Suite Header & Mode Switcher --- */
.suite-mode-switcher {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.suite-mode-switcher .btn-pill {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.suite-mode-switcher .btn-pill.active {
  background: var(--brand-teal, #1F6F5C);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(31, 111, 92, 0.4);
}

.suite-mode-switcher .btn-pill:hover:not(.active) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

/* --- View Transitions --- */
.suite-view {
  animation: fadeInSuite 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Enriched Cards Grid View --- */
.topics-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.topic-card-v2 {
  background: var(--bg-card, #111827);
  border: 1px solid var(--border-color, #1f2937);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.topic-card-v2:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan, #06b6d4);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.15);
}

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

.badge-trl-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-cat-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-title-v2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0.5rem 0 0.25rem 0;
}

.card-hero-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3.5px solid var(--accent-cyan, #06b6d4);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin: 0.6rem 0;
}

.card-hero-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: #38bdf8;
}

.card-hero-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-takeaway-p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Feature badges row */
.card-features-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.feature-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.feature-pill.popper {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.25);
}

.feature-pill.patent {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.25);
}

.feature-pill.chem {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.25);
}

/* Card footer actions */
.card-actions-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-card-audio {
  background: rgba(31, 111, 92, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-card-audio:hover {
  background: rgba(45, 212, 191, 0.25);
  color: #ffffff;
}

.btn-card-audio.btn-card-audio-playing {
  background: rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
  animation: pulse-card-audio 2s infinite;
}

.btn-card-audio.btn-card-audio-paused {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #fcd34d !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
}

@keyframes pulse-card-audio {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.feature-pill.chem.btn-card-chem3d {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.35), rgba(16, 185, 129, 0.25));
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.feature-pill.chem.btn-card-chem3d:hover {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.6), rgba(16, 185, 129, 0.45));
  color: #ffffff;
  border-color: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-dossier-3d-jump {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.3), rgba(16, 185, 129, 0.2));
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-dossier-3d-jump:hover {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.5), rgba(16, 185, 129, 0.35));
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-card-dossier {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-card-dossier:hover {
  background: var(--brand-teal, #1F6F5C);
  border-color: #2dd4bf;
}

/* --- Knowledge Graph View --- */
.graph-viewport-card {
  background: #090d16;
  border: 1px solid var(--border-color, #1e293b);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.graph-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

.graph-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.graph-scope-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.graph-scope-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

.graph-controls-group {
  display: flex;
  gap: 6px;
}

.btn-graph-ctrl {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.btn-graph-ctrl#btnGraphReset,
.btn-graph-ctrl#btnGraphUnpin {
  width: auto;
  padding: 0 10px;
  font-size: 0.78rem;
}

.btn-graph-ctrl:hover {
  background: rgba(255, 255, 255, 0.2);
}

.graph-canvas-container {
  position: relative;
  width: 100%;
  height: 580px;
  background: radial-gradient(circle at center, #0f172a 0%, #030712 100%);
  cursor: grab;
  user-select: none;
  overflow: hidden;
}

.graph-canvas-container:active {
  cursor: grabbing;
}

#knowledgeGraphCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.graph-legend-box {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  pointer-events: none;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.graph-hint-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: #94a3b8;
  pointer-events: none;
}

/* --- Lineage Timeline View --- */
.timeline-suite-card {
  background: var(--bg-card, #111827);
  border: 1px solid var(--border-color, #1e293b);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lineage-selector-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.btn-lineage-choice {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-lineage-choice.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.lineage-info-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

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

.lineage-main-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.lineage-main-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0.35rem 0 0 0;
}

/* Timeline Horizontal / Vertical Track */
.lineage-track-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  padding-left: 28px;
}

.lineage-track-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 9px;
  width: 2px;
  background: linear-gradient(180deg, #334155 0%, #06b6d4 30%, #8b5cf6 80%, #ec4899 100%);
}

.milestone-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}

.milestone-card:hover {
  transform: translateX(4px);
  border-color: var(--accent-cyan);
}

.milestone-card.present {
  background: rgba(6, 182, 212, 0.08);
  border: 1.5px solid #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.milestone-card.future {
  background: rgba(139, 92, 246, 0.08);
  border-left: 3.5px solid #8b5cf6;
}

.milestone-dot {
  position: absolute;
  left: -28px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.milestone-card.present .milestone-dot {
  background: #06b6d4;
  border-color: #ffffff;
  box-shadow: 0 0 10px #06b6d4;
}

.milestone-card.future .milestone-dot {
  background: #8b5cf6;
  border-color: #ffffff;
}

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.milestone-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
}

.milestone-trl-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.milestone-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0.35rem 0 0.25rem 0;
}

.milestone-summary {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

.milestone-popper-box {
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #ddd6fe;
  font-style: italic;
  border-left: 2px solid #8b5cf6;
}

/* --- Slide-Out Technical Dossier Drawer --- */
.dossier-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  animation: fadeInOverlay 0.25s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dossier-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  max-width: 94vw;
  height: 100vh;
  background: #0b1120;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dossier-drawer.open {
  transform: translateX(0);
}

.dossier-header {
  padding: 1.5rem 1.75rem 1rem 1.75rem;
  background: #0f172a;
  border-bottom: 1px solid var(--border-color);
}

.dossier-header-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.6rem;
}

.dossier-badge-trl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #0284c7;
  color: #fff;
}

.dossier-badge-cat {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 600;
}

.dossier-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s;
}

.dossier-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.dossier-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 0.8rem 0;
}

.dossier-hero-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
}

.dossier-stat-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  display: block;
}

.dossier-stat-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
}

.dossier-audio-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-dossier-audio-jump {
  background: var(--brand-teal, #1F6F5C);
  color: #ffffff;
  border: 1px solid #2dd4bf;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-dossier-audio-jump:hover {
  background: #2dd4bf;
  color: #0f172a;
}

.btn-dossier-audio-jump.btn-dossier-audio-playing {
  background: #0e7490;
  border-color: #22d3ee;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
}

.btn-dossier-audio-jump.btn-dossier-audio-playing:hover {
  background: #0891b2;
  border-color: #67e8f9;
  color: #ffffff;
}

.btn-dossier-audio-jump.btn-dossier-audio-paused {
  background: #d97706;
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.35);
}

.btn-dossier-audio-jump.btn-dossier-audio-paused:hover {
  background: #b45309;
  border-color: #fde68a;
  color: #ffffff;
}

.btn-dossier-audio-restart {
  background: rgba(15, 23, 42, 0.9);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-dossier-audio-restart:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-color: #38bdf8;
  transform: rotate(-30deg);
}

.dossier-action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-dossier-pdf-jump {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-dossier-pdf-jump:hover {
  background: #38bdf8;
  color: #0f172a;
}

/* Dossier Navigation Tabs */
.dossier-nav-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  padding-bottom: 2px;
}

.dossier-tab-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  position: relative;
}

.dossier-tab-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.dossier-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #38bdf8;
}

/* Dossier Body Scrollable */
.dossier-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dossier-panel {
  display: none;
  animation: fadeInSuite 0.25s ease;
}

.dossier-panel.active {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Mechanism styling */
.dossier-analogy-box {
  background: rgba(15, 23, 42, 0.6);
  border-left: 3.5px solid var(--accent-cyan, #06b6d4);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.dossier-equation-box {
  background: #030712;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #f8fafc;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.dossier-equation-box .katex-display {
  margin: 0 !important;
  padding: 0 !important;
}

.dossier-equation-box .katex {
  font-size: 1.05rem !important;
  color: #38bdf8 !important;
}

.card-hero-num .katex,
.dossier-stat-num .katex {
  color: #38bdf8 !important;
  font-size: 1.05em;
  font-weight: 700;
}

.dossier-params-table .katex {
  font-size: 0.95em;
}

.topic-card-title .katex,
.card-title-v2 .katex {
  font-size: 0.98em;
}

.dossier-params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.dossier-params-table th,
.dossier-params-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.dossier-params-table th {
  color: #94a3b8;
  font-weight: 600;
}

.dossier-params-table td:last-child {
  font-family: var(--font-mono);
  color: #f1f5f9;
  font-weight: 600;
}

/* Prediction Box styling */
.dossier-pred-card {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pred-tier {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pred-tier-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c4b5fd;
}

.pred-tier-desc {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.pred-popper-metric {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border-left: 3px solid #8b5cf6;
}

.brier-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
}

/* B2B / Patent styling */
.dossier-patent-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.patent-link-btn {
  background: #f59e0b;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  transition: background 0.15s;
}

.patent-link-btn:hover {
  background: #fbbf24;
}

/* 3D Compound styling */
.dossier-chem-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chem-img-frame {
  width: 100%;
  max-height: 240px;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chem-img-frame img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

/* Connections styling */
.connections-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connection-item-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s;
}

.connection-item-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  transform: translateX(3px);
}

/* Drawer footer pagination */
.dossier-footer {
  padding: 1rem 1.75rem;
  background: #0f172a;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-drawer-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-drawer-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* =============================================================================
   MOBILE RESPONSIVE PRESENTATION FOR TECHNICAL DOSSIER (DRAWER / BOTTOM-SHEET)
   En dispositivos móviles/tablets (<= 820px), el dosier se abre de frente
   encima de la pantalla (full-screen modal / bottom-sheet) con animación vertical,
   en lugar de quedar desplazado lateralmente a la derecha.
   ============================================================================= */
@media (max-width: 820px) {
  .dossier-drawer-overlay {
    z-index: 10004;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .dossier-drawer {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: 100dvh !important;
    border-left: none;
    border-top: 2px solid rgba(56, 189, 248, 0.4);
    border-radius: 0;
    z-index: 10005;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
    /* Se abre al frente desde abajo, no a la derecha */
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .dossier-drawer.open {
    transform: translateY(0);
  }

  /* Indicador táctil superior estilo bottom-sheet */
  .dossier-drawer::before {
    content: '';
    display: block;
    width: 44px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 8px auto 2px auto;
    flex-shrink: 0;
  }

  .dossier-header {
    padding: 0.6rem 1rem 0.6rem 1rem;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .dossier-header-top {
    margin-bottom: 0.35rem;
  }

  .dossier-close-btn {
    font-size: 1.75rem;
    padding: 6px 12px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #f1f5f9;
  }

  .dossier-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }

  .dossier-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
  }

  .dossier-hero-stat-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.6rem;
  }

  .dossier-stat-num {
    font-size: 1.05rem;
  }

  .dossier-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

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

  .btn-dossier-audio-jump {
    flex: 1;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .btn-dossier-audio-restart {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .btn-dossier-pdf-jump {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .dossier-nav-tabs {
    gap: 4px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .dossier-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .dossier-tab-btn {
    font-size: 0.76rem;
    padding: 6px 10px;
    flex-shrink: 0;
  }

  .dossier-body {
    padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)) 1rem;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .dossier-footer {
    padding: 0.75rem 0.5rem;
    gap: 6px;
  }

  .btn-drawer-nav {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* =============================================================================
   COMPENDIO FÍSICO-QUÍMICO & ATLAS MOLECULAR-CRISTALOGRÁFICO 3D (SUITE PLANCKON)
   ============================================================================= */

/* Dossier Embedded 3D Panel Styles */
.dossier-3d-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dossier-3d-header {
  padding: 0.85rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dossier-3d-viewport-wrapper {
  position: relative;
  width: 100%;
  background: #030712;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dossier-3d-viewport {
  width: 100%;
  height: 280px;
  position: relative;
  outline: none;
  touch-action: none;
  overflow: hidden;
}

.dossier-3d-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.dossier-3d-toolbar {
  padding: 6px 10px;
  background: #0b1120;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dossier-3d-tools-left {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-dossier-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-dossier-tool:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #fff;
}

.btn-dossier-tool.active {
  background: #10b981;
  color: #042f2e;
  border-color: #34d399;
}

.btn-dossier-expand-lab {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border: 1px solid #34d399;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-dossier-expand-lab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.dossier-3d-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.dossier-param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dossier-param-item {
  display: flex;
  flex-direction: column;
}

.dossier-param-lbl {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dossier-param-val {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #34d399;
  font-size: 0.85rem;
}

/* Fullscreen Molecular & Crystallographic Laboratory Modal (#labModal3D) */
.lab-3d-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.lab-3d-container {
  width: 100%;
  max-width: 1400px;
  height: 94vh;
  background: #0b1120;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 30px rgba(16, 185, 129, 0.15);
  overflow: hidden;
}

.lab-3d-header {
  padding: 1rem 1.5rem;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.lab-3d-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.lab-3d-title {
  margin: 0;
  font-size: 1.35rem;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.2;
}

.lab-3d-formula {
  font-family: var(--font-mono, monospace);
  font-size: 1.05rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.lab-3d-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lab-3d-engine-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  font-weight: 600;
}

.lab-3d-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.lab-3d-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

/* Compound selector nav bar */
.lab-3d-compound-nav {
  padding: 0.6rem 1.5rem;
  background: #090e17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
}

.lab-compound-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.lab-compound-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  color: #cbd5e1;
  border-color: rgba(16, 185, 129, 0.3);
}

.lab-compound-btn.active {
  background: #10b981;
  color: #042f2e;
  border-color: #34d399;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Lab main layout */
.lab-3d-main-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  overflow: hidden;
  position: relative;
}

.lab-3d-viewport-wrapper {
  display: flex;
  flex-direction: column;
  background: #020617;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.lab-3d-viewport {
  flex: 1;
  width: 100%;
  position: relative;
  outline: none;
  touch-action: none;
  overflow: hidden;
}

.lab-3d-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.lab-3d-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(2, 6, 23, 0.85);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
}

/* Lab interactive toolbar */
.lab-3d-toolbar {
  padding: 0.6rem 1rem;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.lab-3d-toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.lab-btn:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #fff;
}

.lab-btn.active {
  background: #10b981;
  color: #042f2e;
  border-color: #34d399;
}

.lab-btn-action {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.4);
  color: #38bdf8;
}

.lab-btn-action:hover {
  background: #06b6d4;
  color: #082f49;
}

.lab-lbl {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.lab-select {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.lab-select:focus {
  border-color: #10b981;
}

/* Moiré twist angle controls */
.lab-3d-moire-controls {
  padding: 0.75rem 1.25rem;
  background: rgba(6, 182, 212, 0.08);
  border-top: 1px solid rgba(6, 182, 212, 0.2);
}

.moire-slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.moire-slider-row label {
  font-size: 0.82rem;
  color: #67e8f9;
  display: flex;
  justify-content: space-between;
}

.moire-slider-row input[type="range"] {
  width: 100%;
  accent-color: #06b6d4;
  cursor: pointer;
}

.moire-hint {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Analytical side panel */
.lab-3d-sidebar {
  background: #090e17;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lab-side-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lab-side-title {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lab-side-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.lab-metric-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lab-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px;
  border-radius: 6px;
}

.lab-metric-box-lbl {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
}

.lab-metric-box-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
}

.lab-db-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lab-db-link-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.lab-db-link-btn:hover {
  background: #10b981;
  color: #042f2e;
}

/* Responsiveness for 3D Lab */
@media (max-width: 960px) {
  .lab-3d-container {
    height: 98vh;
  }
  .lab-3d-main-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh 1fr;
    overflow-y: auto;
  }
  .lab-3d-sidebar {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ============================================================
   Interactive CPK Element & Species Legend Bar
   ============================================================ */
.chem-legend-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 12px;
  background: rgba(2, 6, 23, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  z-index: 10;
  scrollbar-width: thin;
  min-height: 38px;
  flex-shrink: 0;
}

.chem-legend-bar::-webkit-scrollbar {
  height: 4px;
}
.chem-legend-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.chem-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.chem-legend-chip:hover,
.chem-legend-chip.hovered {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.chem-legend-chip.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #a7f3d0;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.chem-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.chem-legend-sym {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #f8fafc;
}

.chem-legend-name {
  color: #94a3b8;
  font-size: 0.68rem;
}

.chem-legend-metric {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: #64748b;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
}

.dossier-chem-legend {
  background: rgba(9, 14, 23, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5px 8px;
  gap: 6px;
}

.dossier-chem-legend .chem-legend-chip {
  padding: 2px 7px;
  font-size: 0.68rem;
}

/* ==========================================================================
   DECISION INTELLIGENCE LEDGER (DESRIESGO & DECISIÓN) STYLES
   ========================================================================== */
.decision-ledger-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dl-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dl-banner-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dl-banner-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 3px;
}

.dl-banner-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

.dl-card {
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dl-card-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.dl-card-question {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.18), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(6, 182, 212, 0.45);
}
.dl-card-question .dl-card-label {
  color: #22d3ee;
}
.dl-question-text {
  font-size: 0.96rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.45;
}

.dl-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .dl-grid-2 {
    grid-template-columns: 1fr;
  }
}

.dl-card-claim {
  border-left: 3.5pt solid #38bdf8;
}
.dl-card-claim .dl-card-label {
  color: #38bdf8;
}
.dl-claim-text {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.dl-card-evidence {
  border-left: 3.5pt solid #10b981;
}
.dl-card-evidence .dl-card-label {
  color: #34d399;
}
.dl-evidence-text {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.dl-card-contradictions {
  border-left: 3.5pt solid #f59e0b;
  background: rgba(245, 158, 11, 0.06);
}
.dl-card-contradictions .dl-card-label {
  color: #fbbf24;
}
.dl-contradiction-text {
  font-size: 0.85rem;
  color: #f1f5f9;
  line-height: 1.5;
}

.dl-card-unknowns {
  border-left: 3.5pt solid #64748b;
  background: rgba(100, 116, 139, 0.06);
}
.dl-card-unknowns .dl-card-label {
  color: #94a3b8;
}
.dl-unknown-text {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.dl-card-redflags {
  border-left: 3.5pt solid #ef4444;
  background: rgba(239, 68, 68, 0.08);
}
.dl-card-redflags .dl-card-label {
  color: #f87171;
}
.dl-redflag-text {
  font-size: 0.84rem;
  color: #fca5a5;
  line-height: 1.5;
}

.dl-card-monitoring {
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.18), rgba(15, 23, 42, 0.75));
}
.dl-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.dl-card-monitoring .dl-card-label {
  color: #c084fc;
}
.dl-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  text-transform: uppercase;
}
.dl-trigger-text {
  font-size: 0.88rem;
  font-style: italic;
  color: #faf5ff;
  line-height: 1.45;
  margin: 4px 0;
}

.dl-footer-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.dl-metric-box {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dl-metric-label {
  font-size: 0.75rem;
  color: #94a3b8;
}
.dl-metric-val {
  font-size: 0.9rem;
  font-weight: 800;
  color: #38bdf8;
}
.dl-metric-val.code-font {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: #cbd5e1;
}
.dl-note {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 4px;
}




/* --- DOCTRINA V3 INTELLIGENCE BRIEF EXPANDED STYLES --- */
.kpi-pills-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.kpi-pill-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-pill-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.kpi-pill-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
}
.kpi-pill-unit {
  font-size: 0.68rem;
  color: #cbd5e1;
}

/* Frontier Map */
.frontier-map-container {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}
.frontier-map-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.frontier-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
@media (max-width: 680px) {
  .frontier-steps-grid {
    grid-template-columns: 1fr;
  }
}
.frontier-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
}
.frontier-step-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.frontier-step-before .frontier-step-label { color: #94a3b8; }
.frontier-step-now .frontier-step-label { color: #34d399; }
.frontier-step-missing .frontier-step-label { color: #f59e0b; }
.frontier-step-text {
  font-size: 0.78rem;
  color: #e2e8f0;
  line-height: 1.4;
}

/* Intelligence Signature */
.signature-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}
.signature-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: #c084fc;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.signature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.signature-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.signature-item-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #cbd5e1;
}
.signature-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.signature-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 3px;
}

/* Arbitrage Matrix */
.arbitrage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin: 10px 0;
}
.arbitrage-table th, .arbitrage-table td {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.arbitrage-table th {
  background: rgba(15, 23, 42, 0.8);
  color: #38bdf8;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.arbitrage-table td {
  background: rgba(255, 255, 255, 0.02);
  color: #e2e8f0;
  line-height: 1.35;
}

/* Falsification Hypotheses */
.falsification-card-item {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.falsification-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.falsification-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f87171;
}
.falsification-deadline {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 2px 6px;
  border-radius: 4px;
}
.falsification-milestone {
  font-size: 0.8rem;
  color: #f1f5f9;
  margin-bottom: 4px;
}
.falsification-criterion {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-style: italic;
}
