/* ═══════════════════════════════════════════════════════════════════ */
/* ULAMORA SCIENTISTS STUDIO — ARCHIVE & RELATIVISTIC LAB STYLESHEET   */
/* Obsidian Cyber-Science Aesthetic, Precision Glass HUD, Matte Blades  */
/* ═══════════════════════════════════════════════════════════════════ */

:root {
  --sci-bg-void: #050508;
  --sci-bg-blade: rgba(10, 13, 20, 0.94);
  --sci-bg-card: rgba(16, 22, 34, 0.65);
  --sci-bg-card-hover: rgba(22, 30, 46, 0.85);
  --sci-border: rgba(255, 255, 255, 0.08);
  --sci-border-subtle: rgba(255, 255, 255, 0.04);
  --sci-border-focus: rgba(0, 232, 255, 0.35);

  --sci-cyan: #00e8ff;
  --sci-purple: #c084fc;
  --sci-emerald: #10b981;
  --sci-amber: #f59e0b;
  --sci-rose: #ef4444;

  --sci-text-main: #f1f5f9;
  --sci-text-muted: #94a3b8;
  --sci-text-dim: #64748b;

  --sci-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --sci-font-sans: 'Inter', system-ui, sans-serif;
  --sci-font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--sci-bg-void);
  color: var(--sci-text-main);
  font-family: var(--sci-font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Custom Cyber & Stealth Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 232, 255, 0.5);
  border-color: rgba(0, 232, 255, 0.6);
  box-shadow: 0 0 8px rgba(0, 232, 255, 0.5);
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* 1. TOP HUD NAVBAR (1:1 with Morphogenesis Lab Premium Architecture) */
/* ═══════════════════════════════════════════════════════════════════ */
.top-hud-navbar {
  position: relative;
  z-index: 50;
  height: 56px;
  background: linear-gradient(180deg, rgba(16, 21, 33, 0.98) 0%, rgba(9, 12, 19, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--sci-border);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 8px 32px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.hud-left-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.nav-brand-logo-box {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand-logo-box img {
  width: 100%;
  height: 100%;
  object-contain: contain;
}

.nav-brand-text {
  font-family: var(--sci-font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  color: #fff;
}

.nav-brand-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
}

.hud-nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(4, 7, 12, 0.6);
  border: 1px solid var(--sci-border);
  border-radius: 8px;
  padding: 2px 4px;
}

.hud-nav-tab {
  font-family: var(--sci-font-mono);
  font-size: 11px;
  color: var(--sci-text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.hud-nav-tab.active {
  background: rgba(0, 232, 255, 0.12);
  color: var(--sci-cyan);
  border: 1px solid rgba(0, 232, 255, 0.3);
  font-weight: 600;
}

.hud-nav-tab .tab-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sci-cyan);
  box-shadow: 0 0 8px var(--sci-cyan);
}

/* Toolbar & Language switcher */
.hud-toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(4, 7, 12, 0.7);
  border: 1px solid var(--sci-border);
  border-radius: 8px;
  padding: 2px 4px;
}

.hud-tool-btn {
  background: transparent;
  border: none;
  color: var(--sci-text-muted);
  width: 32px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hud-tool-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hud-tool-btn.active {
  color: var(--sci-cyan);
  background: rgba(0, 232, 255, 0.12);
}

.hud-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.hud-lang-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sci-font-mono);
  font-size: 11px;
}

.lang-inline-btn {
  background: transparent;
  border: none;
  color: var(--sci-text-dim);
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s ease;
}

.lang-inline-btn:hover {
  color: #fff;
}

.lang-inline-btn.active {
  color: var(--sci-cyan);
  font-weight: 700;
}

.lang-inline-sep {
  color: rgba(255, 255, 255, 0.2);
}

.hud-mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--sci-border);
  color: #fff;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* 2. DUAL-BLADE WORKSPACE LAYOUT                                     */
/* ═══════════════════════════════════════════════════════════════════ */
.workspace-container {
  display: flex;
  height: calc(100vh - 56px);
  width: 100vw;
  max-width: 100vw;
  position: relative;
  overflow: hidden;
}

/* Left Monolith Blade: Scientific Archive */
.scientists-blade-left {
  width: 310px;
  min-width: 310px;
  max-width: 310px;
  flex-shrink: 0;
  background: var(--sci-bg-blade);
  border-right: 1px solid var(--sci-border);
  display: flex;
  flex-direction: column;
  z-index: 20;
  backdrop-filter: blur(20px);
  transition: width 0.38s cubic-bezier(0.25, 1, 0.5, 1),
              min-width 0.38s cubic-bezier(0.25, 1, 0.5, 1),
              max-width 0.38s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.28s ease,
              border-color 0.38s ease;
  will-change: width, min-width, max-width;
  position: relative;
}

.scientists-blade-left.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex-shrink: 0 !important;
  opacity: 0 !important;
  border-right-color: transparent !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.blade-header {
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--sci-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 15, 23, 0.9);
  user-select: none;
  flex-shrink: 0;
}

.blade-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.blade-header-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.blade-title-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #e2e8f0;
  text-transform: uppercase;
  white-space: nowrap;
}

.archive-badge-pill {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  flex-shrink: 0;
}

.btn-sidebar-collapse {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-sidebar-collapse:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.blade-search-box {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.blade-search-input {
  width: 100%;
  background: #07090e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 30px 6px 30px;
  font-family: var(--sci-font-mono);
  font-size: 11px;
  color: #fff;
  outline: none;
  transition: all 0.15s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.blade-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.blade-search-input:focus {
  border-color: rgba(0, 232, 255, 0.8);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 232, 255, 0.15);
}

.blade-search-icon {
  position: absolute;
  left: 21px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.blade-search-kbd {
  position: absolute;
  right: 20px;
  font-family: var(--sci-font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  padding: 1.5px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.domain-pills-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  user-select: none;
}

.domain-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  padding: 5px 4px;
  font-family: var(--sci-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.domain-pill-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.domain-pill-btn.active {
  background: linear-gradient(180deg, rgba(0, 232, 255, 0.18) 0%, rgba(0, 232, 255, 0.06) 100%);
  border-color: rgba(0, 232, 255, 0.5);
  color: var(--sci-cyan);
  font-weight: 600;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 232, 255, 0.15);
}

.archive-scroll-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scroll-behavior: smooth;
}

.archive-scroll-list::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.archive-scroll-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.archive-scroll-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.10) 100%);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.archive-scroll-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 232, 255, 0.6) 0%, rgba(0, 232, 255, 0.35) 100%);
  border-color: rgba(0, 232, 255, 0.6);
  box-shadow: 0 0 8px rgba(0, 232, 255, 0.6), inset 0 1px 0.5px rgba(255, 255, 255, 0.4);
}

.archive-scroll-list::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.archive-scroll-list::-webkit-scrollbar-corner {
  background: transparent;
}

/* Category Accordion Header matching General Studio */
.archive-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 3px 8px;
  cursor: pointer;
  user-select: none;
  text-transform: uppercase;
  font-family: var(--sci-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.15s ease;
  margin-top: 4px;
}

.archive-category-header:hover {
  color: #fff;
}

.archive-cat-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
}

.archive-cat-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.archive-cat-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-cat-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.archive-cat-count {
  font-size: 9px;
  font-family: var(--sci-font-mono);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.archive-cat-chevron {
  width: 12px;
  height: 12px;
  color: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease;
}

.archive-cat-chevron.collapsed {
  transform: rotate(-90deg);
}

.archive-category-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* General Studio Tactile Card Layout */
.archive-card {
  background: linear-gradient(180deg, #131724 0%, #0a0d14 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.4);
  border-radius: 9px;
  padding: 10px 11px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.archive-card:hover {
  background: linear-gradient(180deg, #182030 0%, #0d121c 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.archive-card.active {
  background: linear-gradient(180deg, rgba(0, 232, 255, 0.12) 0%, rgba(10, 15, 24, 0.98) 100%);
  border-color: rgba(0, 232, 255, 0.6);
  box-shadow: 
    inset 0 1px 0 0 rgba(0, 232, 255, 0.35),
    inset 0 0 18px rgba(0, 232, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.7);
}

.archive-card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.archive-card-title-group {
  min-width: 0;
  flex: 1;
}

.archive-card-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.archive-card:hover .archive-card-title,
.archive-card.active .archive-card-title {
  color: var(--sci-cyan);
}

.archive-card-meta {
  font-size: 10px;
  font-family: var(--sci-font-mono);
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.archive-card-action-btn {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.archive-card:hover .archive-card-action-btn {
  background: rgba(0, 232, 255, 0.15);
  border-color: rgba(0, 232, 255, 0.4);
  color: var(--sci-cyan);
}

.archive-card-desc {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  gap: 6px;
}

.archive-card-status {
  font-size: 9px;
  font-family: var(--sci-font-mono);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.03em;
  font-weight: 500;
  white-space: nowrap;
}

.archive-card-metric-pill {
  font-size: 9px;
  font-family: var(--sci-font-mono);
  color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  padding: 1.5px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

/* Floating HUD Open Triggers matching General Studio */
.btn-floating-trigger {
  position: relative;
  z-index: 25;
  background: linear-gradient(180deg, #131724 0%, #0b0e14 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    0 12px 30px rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--sci-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  pointer-events: auto;
}

.btn-floating-trigger:hover {
  background: linear-gradient(180deg, #1a2233 0%, #0e131d 100%);
  border-color: rgba(0, 232, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    0 16px 36px rgba(0, 0, 0, 0.85),
    0 0 15px rgba(0, 232, 255, 0.2);
}

.btn-floating-trigger.hidden {
  display: none !important;
}

/* Unified Top-Right Strip & Compact Floating Inspector Trigger */
.hud-top-right-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  flex-shrink: 0;
}

.btn-floating-trigger-compact {
  background: linear-gradient(180deg, #131724 0%, #0b0e14 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: var(--sci-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

.btn-floating-trigger-compact:hover {
  background: linear-gradient(180deg, #1a2233 0%, #0e131d 100%);
  border-color: rgba(0, 232, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    0 14px 30px rgba(0, 0, 0, 0.8),
    0 0 14px rgba(0, 232, 255, 0.2);
}

.btn-floating-trigger-compact.hidden {
  display: none !important;
}

/* Status Badges */
.badge-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--sci-emerald);
}

.badge-cyan {
  background: rgba(0, 232, 255, 0.15);
  border: 1px solid rgba(0, 232, 255, 0.3);
  color: var(--sci-cyan);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--sci-amber);
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--sci-rose);
}

/* ═══════════════════════════════════════════════════════════════════ */
/* 3. CENTER 3D WORKSPACE & HUD OVERLAYS                               */
/* ═══════════════════════════════════════════════════════════════════ */
.workspace-center {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  height: 100%;
  position: relative;
  background: #020305;
  overflow: hidden;
}

#webgl-viewport {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#webgl-viewport canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  inset: 0;
  touch-action: none;
}

/* Top Glass HUD Overlay */
.viewport-top-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 25;
  gap: 12px;
}

.hud-top-left-strip {
  display: flex;
  align-items: center;
  pointer-events: auto;
  flex-shrink: 0;
}

.sidebar-model-header {
  background: rgba(10, 16, 28, 0.65);
  border: 1px solid var(--sci-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.sidebar-model-header .hud-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.sidebar-model-header .hud-author-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--sci-text-dim);
  letter-spacing: 0.08em;
}

.sidebar-model-header .hud-main-title {
  font-family: var(--sci-font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.35;
}

.sidebar-model-header .hud-headline-desc {
  font-size: 11px;
  color: var(--sci-text-muted);
  line-height: 1.45;
  margin: 0;
}

.hud-title-card {
  display: none !important;
}

.hud-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.hud-author-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--sci-text-dim);
  letter-spacing: 0.1em;
}

.status-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sci-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.hud-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.hud-main-title {
  font-family: var(--sci-font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.hud-headline-desc {
  font-size: 11.5px;
  color: var(--sci-text-muted);
  line-height: 1.45;
}

.hud-frame-controls {
  pointer-events: auto;
  display: flex;
  background: rgba(6, 11, 20, 0.88);
  border: 1px solid var(--sci-border);
  backdrop-filter: blur(16px);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.frame-mode-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #94a3b8;
  font-family: var(--sci-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.frame-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.frame-mode-btn.active {
  color: var(--sci-cyan);
  background: rgba(0, 232, 255, 0.12);
  box-shadow: 0 0 10px rgba(0, 232, 255, 0.2);
  font-weight: 700;
}

.hud-camera-controls {
  pointer-events: auto;
  display: flex;
  background: rgba(6, 9, 15, 0.8);
  border: 1px solid var(--sci-border);
  backdrop-filter: blur(16px);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.cam-view-btn {
  background: transparent;
  border: none;
  color: var(--sci-text-muted);
  font-family: var(--sci-font-mono);
  font-size: 10.5px;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cam-view-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.cam-view-btn.active {
  color: var(--sci-cyan);
  background: rgba(0, 232, 255, 0.15);
  font-weight: 600;
}

/* Bottom Glass HUD Overlay (Hidden per user feedback to keep 3D scene clean) */
.viewport-bottom-hud {
  display: none !important;
}

.hud-metrics-bar {
  pointer-events: auto;
  background: rgba(6, 9, 15, 0.88);
  border: 1px solid var(--sci-border);
  backdrop-filter: blur(16px);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  overflow-x: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.metric-unit-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.metric-unit-label {
  font-family: var(--sci-font-mono);
  font-size: 9.5px;
  color: var(--sci-text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-unit-value {
  font-family: var(--sci-font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sci-cyan);
}

.metric-status-readout {
  font-family: var(--sci-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 16px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.hud-chart-card {
  pointer-events: auto;
  background: rgba(6, 11, 20, 0.75);
  border: 1px solid var(--sci-border);
  backdrop-filter: blur(16px);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.hud-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 4px;
}

.hud-chart-title {
  font-family: var(--sci-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hud-chart-badge {
  font-family: var(--sci-font-mono);
  font-size: 8px;
  color: var(--sci-text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

.clock-comp-legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clock-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  line-height: 1.25;
}

.clock-legend-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
}

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

.legend-dot.dot-cyan {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.legend-dot.dot-yellow {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

.clock-legend-val {
  font-size: 11px;
  font-weight: 700;
}

#legend-val-earth {
  color: #38bdf8;
}

#legend-val-trav {
  color: #fbbf24;
}

.clock-canvas-wrap {
  position: relative;
  width: 100%;
  height: 125px;
}

.clock-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.clock-comp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 4px;
  font-size: 9.5px;
}

.clock-footer-label {
  color: #64748b;
  letter-spacing: 0.03em;
}

.clock-footer-val {
  font-family: var(--sci-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* 4. RIGHT MONOLITH BLADE: INSPECTOR & RECONSTRUCTION                 */
/* ═══════════════════════════════════════════════════════════════════ */
.scientists-blade-right {
  width: 360px;
  min-width: 360px;
  max-width: 360px;
  flex-shrink: 0;
  background: var(--sci-bg-blade);
  border-left: 1px solid var(--sci-border);
  display: flex;
  flex-direction: column;
  z-index: 20;
  backdrop-filter: blur(20px);
  transition: width 0.38s cubic-bezier(0.25, 1, 0.5, 1),
              min-width 0.38s cubic-bezier(0.25, 1, 0.5, 1),
              max-width 0.38s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.28s ease,
              border-color 0.38s ease;
  will-change: width, min-width, max-width;
  position: relative;
}

.scientists-blade-right.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex-shrink: 0 !important;
  opacity: 0 !important;
  border-left-color: transparent !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.blade-header-right {
  border-bottom: 1px solid var(--sci-border);
}

.blade-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--sci-border);
  background: rgba(4, 7, 12, 0.5);
}

.blade-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--sci-text-muted);
  font-family: var(--sci-font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 12px 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.06em;
}

.blade-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.blade-tab-btn.active {
  color: var(--sci-cyan);
  border-bottom-color: var(--sci-cyan);
  background: rgba(0, 232, 255, 0.05);
}

.blade-content-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scroll-behavior: smooth;
}

.blade-content-body::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.blade-content-body::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.blade-content-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.10) 100%);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.blade-content-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 232, 255, 0.6) 0%, rgba(0, 232, 255, 0.35) 100%);
  border-color: rgba(0, 232, 255, 0.6);
  box-shadow: 0 0 8px rgba(0, 232, 255, 0.6), inset 0 1px 0.5px rgba(255, 255, 255, 0.4);
}

.blade-content-body::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.blade-content-body::-webkit-scrollbar-corner {
  background: transparent;
}

/* Overview Tab */
.section-headline-tag {
  font-family: var(--sci-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--sci-text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.equations-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.equation-card {
  background: var(--sci-bg-card);
  border: 1px solid var(--sci-border);
  border-radius: 8px;
  padding: 10px 12px;
}

.equation-card-header {
  font-family: var(--sci-font-mono);
  font-size: 10px;
  color: var(--sci-text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.equation-latex-display {
  color: #fff;
  font-size: 13.5px;
  overflow-x: auto;
}

/* Parameter Sliders */
.parameters-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

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

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  font-size: 11px;
  color: var(--sci-text-main);
}

.slider-val-readout {
  font-size: 11px;
  font-weight: 700;
  color: var(--sci-cyan);
}

.tech-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.tech-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sci-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--sci-cyan);
  transition: transform 0.1s ease;
}

.tech-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* "What are you seeing?" Explanation Box */
.what-are-you-seeing-card {
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.85) 0%, rgba(9, 13, 22, 0.95) 100%);
  border: 1px solid rgba(0, 232, 255, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.explanation-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--sci-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.explanation-text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--sci-text-muted);
}

/* Experiment Tab */
.btn-tech-action {
  width: 100%;
  background: linear-gradient(180deg, #1f283c 0%, #101522 100%);
  border: 1px solid rgba(0, 232, 255, 0.35);
  color: #fff;
  font-family: var(--sci-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.15s ease;
  margin-bottom: 14px;
}

.btn-tech-action:hover {
  border-color: var(--sci-cyan);
  box-shadow: 0 0 12px rgba(0, 232, 255, 0.25);
}

.sweep-chart-container {
  width: 100%;
  margin-bottom: 14px;
  border: 1px solid var(--sci-border);
  border-radius: 6px;
  overflow: hidden;
}

.sweep-table-container {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--sci-border);
  border-radius: 6px;
}

.sweep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.sweep-table th {
  background: rgba(0, 0, 0, 0.6);
  padding: 6px;
  border-bottom: 1px solid var(--sci-border);
  color: var(--sci-text-dim);
  text-align: center;
}

.sweep-table td {
  padding: 5px;
  border-bottom: 1px solid var(--sci-border-subtle);
  text-align: center;
}

/* Reconstruction Tab */
.recon-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recon-paper-header {
  background: var(--sci-bg-card);
  border: 1px solid var(--sci-border);
  border-radius: 8px;
  padding: 12px;
}

.recon-paper-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.4;
}

.recon-journal {
  font-size: 10.5px;
  color: var(--sci-cyan);
}

.recon-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recon-section-title {
  font-family: var(--sci-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--sci-text-dim);
  letter-spacing: 0.1em;
}

.recon-list {
  padding-left: 18px;
  font-size: 11.5px;
  color: var(--sci-text-muted);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* 5. RESPONSIVE BREAKPOINTS (TABLETS & MOBILE)                        */
/* ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hud-mobile-menu-btn { display: flex; }
  .scientists-blade-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    z-index: 50;
    width: min(320px, 86vw) !important;
    min-width: 0 !important;
    max-width: 86vw !important;
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.85);
    transform: translateX(0);
    transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease !important;
  }
  .scientists-blade-left.collapsed {
    transform: translateX(-100%) !important;
    width: min(320px, 86vw) !important;
    max-width: 86vw !important;
    min-width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  .scientists-blade-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    z-index: 50;
    width: min(360px, 92vw) !important;
    min-width: 0 !important;
    max-width: 92vw !important;
    box-shadow: -12px 0 35px rgba(0, 0, 0, 0.85);
    transform: translateX(0);
    transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease !important;
  }
  .scientists-blade-right.collapsed {
    transform: translateX(100%) !important;
    width: min(360px, 92vw) !important;
    max-width: 92vw !important;
    min-width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }
}

@media (max-width: 900px) {
  /* Navbar Compact Mobile Mode */
  .top-hud-navbar {
    height: 48px;
    padding: 0 12px;
  }
  .hud-nav-tabs,
  .hud-actions-toolbar,
  .hud-divider {
    display: none !important;
  }
  .hud-mobile-menu-btn {
    display: flex !important;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    cursor: pointer;
  }
  .hud-mobile-menu-btn:active {
    background: rgba(0, 232, 255, 0.2);
    border-color: rgba(0, 232, 255, 0.5);
    color: #00e8ff;
  }

  /* Desktop blades and blade togglers hidden in favor of Slide-over Mobile Drawer */
  .scientists-blade-left,
  .scientists-blade-right,
  .floating-open-blade-btn,
  .btn-floating-trigger,
  .btn-floating-trigger-compact,
  .hud-top-left-strip,
  #btn-floating-open-archive,
  #btn-floating-open-inspector {
    display: none !important;
  }

  /* Full-bleed 3D Canvas Viewport */
  .workspace-container {
    height: calc(100vh - 48px);
    width: 100vw;
    overflow: hidden;
  }
  .workspace-center {
    width: 100vw !important;
    height: 100% !important;
  }
  #webgl-viewport {
    width: 100vw !important;
    height: 100% !important;
    touch-action: none;
  }

  /* Mobile Cluster Dock Visible */
  .dock-mobile-cluster {
    display: flex !important;
  }

  /* Overlays */
  .viewport-top-hud {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    pointer-events: none;
  }
  .hud-top-right-strip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
    pointer-events: auto;
  }
  .hud-frame-controls {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2.5px 4px;
    border-radius: 8px;
    background: rgba(10, 14, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  .hud-frame-controls::-webkit-scrollbar {
    display: none;
  }
  .frame-mode-btn {
    padding: 4px 7px;
    font-size: 9px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-radius: 5px;
  }
  .hud-camera-controls {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2.5px 4px;
    border-radius: 8px;
    background: rgba(10, 14, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
  }
  #floating-metrics-pill {
    font-size: 10px;
    padding: 4px 10px;
    max-width: 92vw;
  }

  .viewport-bottom-hud {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    left: 10px;
    right: 10px;
    padding: 0;
    justify-content: center;
  }
  .cam-view-bar {
    padding: 3px 6px;
    gap: 4px;
    border-radius: 10px;
    background: rgba(9, 14, 23, 0.88);
  }
  .cam-view-btn {
    min-width: 34px;
    height: 26px;
    font-size: 9.5px;
    padding: 0 7px;
  }
}

@media (max-width: 600px) {
  .hud-brand-sub {
    display: none;
  }
  .dock-mobile-cluster {
    padding: 4px 8px;
    gap: 6px;
  }
  .dock-mobile-pill-btn {
    height: 32px;
    padding: 0 8px;
    font-size: 10px;
  }
  .sci-modal-box.metric-modal-container {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 94vh !important;
    padding: 0 !important;
    border-radius: 14px !important;
  }
  .math-modal-header {
    padding: 11px 13px !important;
    gap: 8px !important;
  }
  .math-modal-title-group {
    gap: 9px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }
  .math-modal-icon-badge {
    width: 30px !important;
    height: 30px !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
  }
  .math-modal-title {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.02em !important;
  }
  .math-modal-subtitle {
    font-size: 9px !important;
    line-height: 1.3 !important;
    margin-top: 1px !important;
  }
  .math-modal-close-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }
  .pearson-modal-body {
    padding: 10px 10px 14px 10px !important;
    gap: 10px !important;
    max-height: calc(94vh - 56px) !important;
  }
  .pearson-modal-canvas-frame {
    aspect-ratio: 4 / 3 !important;
    border-radius: 10px !important;
    min-height: 220px !important;
  }
  #canvas-expanded-metric {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  .expanded-phase-telemetry-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .expanded-metrics-box {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .metric-card {
    padding: 6px 8px !important;
  }
  .metric-val {
    font-size: 11px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* 5. MORPHOGENESIS-ALIGNED METRIC NAVIGATOR CARD & EXPANDED MODAL     */
/* ═══════════════════════════════════════════════════════════════════ */
.metric-navigator-card {
  background: rgba(6, 11, 20, 0.85);
  border: 1px solid rgba(0, 232, 255, 0.22);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.metric-navigator-card:hover {
  border-color: rgba(0, 232, 255, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 232, 255, 0.1);
}

.metric-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.metric-title-group {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.metric-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e8ff;
  box-shadow: 0 0 8px #00e8ff;
  flex-shrink: 0;
}

.metric-title {
  font-family: var(--sci-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.metric-hero-badge {
  font-family: var(--sci-font-mono);
  font-size: 8px;
  font-weight: 700;
  color: #00e8ff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 232, 255, 0.08);
  border: 1px solid rgba(0, 232, 255, 0.28);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 105px;
  flex-shrink: 1;
}

.metric-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  height: 23px;
  border-radius: 6px;
  background: rgba(0, 232, 255, 0.08);
  border: 1px solid rgba(0, 232, 255, 0.35);
  color: #38bdf8;
  font-family: var(--sci-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

.metric-open-btn:hover {
  background: rgba(0, 232, 255, 0.25);
  border-color: #00e8ff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 232, 255, 0.35);
  transform: translateY(-1px);
}

.metric-open-btn:active {
  transform: translateY(0);
}

.metric-phase-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

/* 3-Column Telemetry Grid */
.metric-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  align-items: stretch;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tele-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tele-col-coords {
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.tele-col-shannon {
  padding: 0 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.tele-col-order {
  padding-left: 8px;
}

.tele-col-label {
  font-family: var(--sci-font-mono);
  font-size: 8.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
  white-space: nowrap;
}

.tele-coords-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coord-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--sci-font-mono);
  font-size: 11px;
}

.coord-k {
  color: #64748b;
  font-weight: 600;
  width: 14px;
}

.coord-v {
  color: #38bdf8;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tele-hero-num {
  font-family: var(--sci-font-mono);
  font-size: 17px;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.tele-hero-num.emerald {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.tele-unit {
  font-size: 9.5px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0;
}

.tele-order-bar-track {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 5px;
  overflow: hidden;
}

.tele-order-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  transition: width 0.3s ease;
}

.metric-canvas-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  margin-top: 6px;
}

.metric-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.metric-hint-flat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 9.5px;
  color: #64748b;
  line-height: 1.35;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* EXPANDED SCIENTIFIC METRIC MODAL STYLES                             */
/* ═══════════════════════════════════════════════════════════════════ */
.sci-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 4, 10, 0.88);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: sciModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sci-modal-overlay.hidden {
  display: none !important;
}

@keyframes sciModalFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.metric-modal-container {
  max-width: 980px;
  width: min(95vw, 980px);
  background: linear-gradient(180deg, #0e1320 0%, #070a12 100%);
  border: 1px solid rgba(0, 232, 255, 0.32);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 232, 255, 0.12);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden !important;
  box-sizing: border-box;
}

.math-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(8, 12, 22, 0.8);
}

.math-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.math-modal-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 232, 255, 0.35);
  background: rgba(0, 232, 255, 0.12);
  color: #00e8ff;
  flex-shrink: 0;
}

.math-modal-title {
  font-family: var(--sci-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.math-modal-subtitle {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.math-modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.math-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

.pearson-modal-body {
  padding: 16px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: calc(88vh - 70px);
  box-sizing: border-box;
}

.pearson-modal-canvas-frame {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #03060c;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.8);
  cursor: crosshair;
}

.pearson-modal-canvas-frame canvas {
  display: block;
  width: 100%;
  height: auto;
}

.expanded-reticle-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(5, 10, 22, 0.96);
  border: 1px solid rgba(0, 232, 255, 0.5);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--sci-font-mono);
  font-size: 11.5px;
  color: #ffffff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.85), 0 0 14px rgba(0, 232, 255, 0.2);
  backdrop-filter: blur(12px);
  z-index: 50;
  white-space: nowrap;
  transition: opacity 0.12s ease;
  min-width: 180px;
}

.expanded-reticle-tooltip.hidden {
  display: none !important;
}

.reticle-tt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reticle-tt-title {
  font-weight: 700;
  color: #00e8ff;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.reticle-tt-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reticle-tt-badge.badge-ergo {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.5);
}

.reticle-tt-badge.badge-horizon {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
}

.reticle-tt-badge.badge-space {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.reticle-tt-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reticle-tt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.reticle-tt-label {
  color: #94a3b8;
}

.reticle-tt-val {
  font-weight: 700;
  color: #f8fafc;
}

.reticle-tt-val.cyan {
  color: #00e8ff;
}

.reticle-tt-val.amber {
  color: #fbbf24;
}

.reticle-tt-val.emerald {
  color: #10b981;
}

.reticle-tt-val.purple {
  color: #c084fc;
}

.expanded-phase-telemetry-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.expanded-phase-info-box {
  flex: 1.4;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phase-formula-coords {
  font-family: var(--sci-font-mono);
  font-size: 11px;
  color: #38bdf8;
  font-weight: 600;
}

.expanded-phase-text {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

.expanded-metrics-box {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-label {
  font-size: 9px;
  font-family: var(--sci-font-mono);
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-val {
  font-size: 13px;
  font-family: var(--sci-font-mono);
  font-weight: 700;
  color: #ffffff;
}

.metric-val.emerald {
  color: #10b981;
}

.metric-val.text-cyan {
  color: #00e8ff;
}

.metric-val.text-amber {
  color: #f59e0b;
}

/* =================================================================== */
/* 7. FLOATING MOBILE CLUSTER DOCK & MOBILE DRAWER                     */
/* =================================================================== */
.dock-mobile-cluster {
  display: none;
  align-items: center;
  gap: 8px;
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(9, 14, 23, 0.94);
  border: 1px solid rgba(0, 232, 255, 0.28);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 232, 255, 0.12);
}

.dock-mobile-pill-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--sci-font-mono);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.dock-mobile-pill-btn:hover,
.dock-mobile-pill-btn:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 232, 255, 0.4);
  color: #ffffff;
}

.dock-mobile-pill-btn.primary {
  background: linear-gradient(180deg, rgba(0, 232, 255, 0.24) 0%, rgba(0, 232, 255, 0.08) 100%), rgba(6, 20, 30, 0.9);
  border-color: rgba(0, 232, 255, 0.45);
  color: #00e8ff;
  box-shadow: 0 0 12px rgba(0, 232, 255, 0.2);
}

.dock-mobile-pill-btn.primary:hover,
.dock-mobile-pill-btn.primary:active {
  background: linear-gradient(180deg, rgba(0, 232, 255, 0.35) 0%, rgba(0, 232, 255, 0.15) 100%), rgba(6, 20, 30, 0.95);
  border-color: rgba(0, 232, 255, 0.7);
  color: #ffffff;
}

/* Mobile Nav Drawer Container & Structure */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.hidden {
  display: none !important;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: sciFadeInBackdrop 0.25s ease both;
}

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

.mobile-drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(88vw, 380px);
  max-width: 100vw;
  box-sizing: border-box;
  background: linear-gradient(180deg, #0d121c 0%, #080b12 100%);
  border-left: 1px solid rgba(0, 232, 255, 0.2);
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 10;
  animation: sciSlideDrawerRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

@keyframes sciSlideDrawerRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #0e121b;
  user-select: none;
  box-sizing: border-box;
}

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

.drawer-brand-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.drawer-brand-text {
  font-family: var(--sci-font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #ffffff;
}

.drawer-brand-badge {
  font-family: var(--sci-font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 232, 255, 0.15);
  border: 1px solid rgba(0, 232, 255, 0.35);
  color: #00e8ff;
  letter-spacing: 0.08em;
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.18s ease;
}

.drawer-close-btn:hover,
.drawer-close-btn:active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.drawer-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sci-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.section-tag {
  font-size: 9px;
  color: #00e8ff;
  background: rgba(0, 232, 255, 0.12);
  border: 1px solid rgba(0, 232, 255, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Featured Drawer Action Card */
.drawer-card-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 27, 44, 0.8) 0%, rgba(12, 16, 28, 0.95) 100%);
  border: 1px solid rgba(0, 232, 255, 0.3);
  box-shadow: 0 4px 18px rgba(0, 232, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.drawer-card-btn:hover,
.drawer-card-btn:active {
  border-color: rgba(0, 232, 255, 0.55);
  box-shadow: 0 6px 24px rgba(0, 232, 255, 0.18);
  transform: translateY(-1px);
}

.drawer-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-card-icon.math-icon {
  background: rgba(0, 232, 255, 0.15);
  border: 1px solid rgba(0, 232, 255, 0.35);
  color: #00e8ff;
}

.drawer-card-info {
  display: flex;
  flex-direction: column;
}

.drawer-card-title {
  font-family: var(--sci-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
}

.drawer-card-desc {
  font-family: var(--sci-font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1px;
}

.drawer-arrow {
  font-family: var(--sci-font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-card-btn:hover .drawer-arrow {
  color: #00e8ff;
  transform: translateX(2px);
}

/* Drawer Pills List */
.drawer-pills-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-pill-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--sci-font-mono);
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  user-select: none;
  outline: none;
  gap: 8px;
}

.drawer-pill-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.drawer-pill-item.active {
  background: rgba(0, 232, 255, 0.10);
  border-color: rgba(0, 232, 255, 0.4);
  color: #00e8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 10px rgba(0, 232, 255, 0.15);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pill-dot.bg-cyan { background: #00e8ff; box-shadow: 0 0 6px #00e8ff; }
.pill-dot.bg-violet { background: #c084fc; box-shadow: 0 0 6px #c084fc; }
.pill-dot.bg-emerald { background: #10b981; box-shadow: 0 0 6px #10b981; }
.pill-dot.bg-amber { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }

.pill-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-tag {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  flex-shrink: 0;
}

/* Dynamic Parameters in Drawer */
.drawer-params-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-params-container .parameter-slider-row {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
}

/* Panels Grid & Action Boxes in Drawer */
.drawer-panels-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-panel-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: all 0.18s ease;
  user-select: none;
  outline: none;
}

.drawer-panel-box:hover,
.drawer-panel-box:active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(2px);
}

.panel-box-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.panel-box-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-box-icon.cyan-box {
  background: rgba(0, 232, 255, 0.14);
  border: 1px solid rgba(0, 232, 255, 0.35);
  color: #00e8ff;
}

.panel-box-icon.amber-box {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.panel-box-icon.violet-box {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.panel-box-icon.emerald-box {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.panel-box-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.panel-box-title {
  font-family: var(--sci-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-box-desc {
  font-size: 9.5px;
  color: #64748b;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Component Utility Classes */
.hidden {
  display: none !important;
}
#schwarzschild-view-controls {
  display: none;
}
.hud-pill-dot.dot-emerald {
  background: #10b981;
}
#bar-tele-progress {
  width: 73.2%;
}
.sweep-desc-text {
  font-size: 11px;
  color: var(--sci-text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.recon-historical-text {
  font-size: 12px;
  color: var(--sci-text-muted);
  line-height: 1.55;
}
.panel-box-icon-muted {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}
.math-modal-icon-badge.badge-cyan {
  background: rgba(0, 232, 255, 0.12);
  border-color: rgba(0, 232, 255, 0.35);
  color: #00e8ff;
}
.pearson-modal-canvas-frame {
  position: relative;
}

