/* ============================================================
   JINX Engineering Workstation — Design System v3.0
   Professional Robotics Environment
   ============================================================ */

:root {
  /* Surfaces — Isaac Sim / RViz Tonal Palette */
  --bg-viewport:   #17181c;   /* Darker framing for 3D content */
  --bg-panel:      #232326;   /* Sidebar/primary utility background */
  --bg-panel-2:    #2a2b2f;   /* Hover states, alternate rows */
  --bg-input:      #1a1a1c;   /* Recessed input background */
  --bg-status:     #1d1e22;   /* Bottom status bar */

  /* Borders — Structural CAD edges */
  --border:        rgba(255, 255, 255, 0.05);
  --border-light:  rgba(255, 255, 255, 0.08);
  --border-active: #007acc;

  /* Elevation Hierarchy */
  --shadow-panel: 0 4px 12px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.03);

  /* Functional Accents — Professional blue only */
  --accent:        #3a96dd;   /* Muted technical blue */
  --accent-dim:    rgba(58, 150, 221, 0.15);
  --success:       #569e5a;   /* Muted green */
  --warning:       #c08b30;   /* Muted orange */
  --error:         #b64a4a;   /* Muted red */

  /* Text — Engineering Grade */
  --text:          #e0e0e0;   /* Neutral gray */
  --text-muted:    #8d939c;   /* Labels/Metadata */
  --text-dim:      #5c6168;   /* Inactive */

  /* Typography */
  --font-ui:       'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Dimensions */
  --toolbar-h:     36px;      /* More compact */
  --sidebar-w:     240px;     /* Denser */
  --console-h:     140px;
  --status-h:      24px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-viewport);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   WORKSTATION LAYOUT
   ============================================================ */
.workstation {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-viewport);
}

.viewport canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

/* ============================================================
   TOOLBAR
   ============================================================ */
.toolbar {
  height: var(--toolbar-h);
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  z-index: 100;
}

.toolbar-btn {
  height: 26px;
  padding: 0 8px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.toolbar-btn:hover {
  background: var(--bg-panel-2);
  color: var(--text);
}

.toolbar-btn.active {
  background: var(--bg-panel-2);
  border: 1px solid var(--border-light);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-dim);
}

.toolbar-title {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin-right: 12px;
}

.toolbar-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

/* ============================================================
   SIDEBARS
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-panel);
  z-index: 50;
}

.sidebar-left { border-right: 1px solid var(--border); }
.sidebar-right { border-left: 1px solid var(--border); }

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.sidebar-section {
  border-bottom: 1px solid var(--border);
}

.sidebar-section-header {
  height: 28px;
  padding: 0 10px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.sidebar-section-header:hover { color: var(--text); }

.sidebar-section-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   TREE VIEW (Hierarchy)
   ============================================================ */
.tree-item {
  height: 24px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 11px;
  color: var(--text);
  border-left: 2px solid transparent;
  transition: background 0.1s ease;
}

.tree-item:hover {
  background: var(--bg-panel-2);
}

.tree-item.active {
  background: var(--bg-panel-2);
  border-left-color: var(--accent);
  color: #fff;
}

.tree-icon {
  width: 16px;
  font-size: 12px;
  margin-right: 6px;
  color: var(--text-dim);
  text-align: center;
}

.badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 4px;
  border-radius: 2px;
}

/* ============================================================
   INSPECTOR CONTROLS
   ============================================================ */
.inspector-row {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}

.inspector-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.inspector-value {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
}

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

.num-input {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23888%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 8px auto;
  padding-right: 24px;
}
.num-input:hover { border-color: var(--text-dim); }
.num-input:focus { border-color: var(--accent); }

.eng-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
.eng-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.eng-slider::-webkit-slider-thumb:hover { background: var(--accent-hover); }

/* ============================================================
   CONSOLE PANEL
   ============================================================ */
.console-panel {
  height: var(--console-h);
  background: var(--bg-panel-2);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 100;
}

.console-header {
  height: 28px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.console-body {
  flex: 1;
  padding: 8px 12px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.log-line { color: var(--text); }
.log-line.warn { color: var(--warning); }
.log-line.error { color: var(--error); }
.log-line.info { color: var(--info); }
.log-time { color: var(--text-dim); margin-right: 8px; }

/* ============================================================
   HUD OVERLAY
   ============================================================ */
.hud-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.45);
  padding: 12px 16px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  pointer-events: none;
  z-index: 10;
  line-height: 1.6;
  min-width: 220px;
}

.hud-overlay b { color: var(--text-muted); font-weight: normal; margin-right: 8px; }
.hud-overlay div { display: flex; justify-content: space-between; margin-bottom: 2px; }
.cam-hint {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 11px;
  color: var(--text-dim);
  pointer-events: none;
}

/* ============================================================
   CONTEXT POPUP (Fade Dialog)
   ============================================================ */
.context-popup {
  position: absolute;
  top: 120px;
  right: 280px; /* Offset from right sidebar */
  width: 260px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-radius: var(--panel-radius);
  z-index: 90;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95) translateY(-4px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.context-popup.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.context-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.context-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}
.context-close:hover { color: var(--error); }

.context-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   LEGACY / DYNAMIC CLASSES (Preserved for JS logic)
   ============================================================ */
.ok { color: var(--success) !important; }
.bad { color: var(--error) !important; }
.warn { color: var(--warning) !important; }
.pane { display: none; }
.pane.on { display: flex; flex-direction: column; gap: 12px; padding: 12px;}
.alert { display: none; padding: 8px; font-size: 11px; background: rgba(244, 67, 54, 0.1); border: 1px solid var(--error); color: var(--error); margin-top: 8px; }
.alert.on { display: block; }
.stop { background: var(--error) !important; color: #fff !important; border-color: var(--error) !important; }

/* Math Dashboard Grid (Basic) */
.jgrid { display: grid; grid-template-columns: 24px repeat(3, 1fr); gap: 4px; padding: 4px 0; }
.jgrid.jgrid-4 { grid-template-columns: 24px repeat(4, 1fr); }
.jgrid-6 { grid-template-columns: 24px repeat(6, 1fr); gap: 4px; padding: 4px 0; }
.jc { padding: 4px; font-family: var(--font-mono); font-size: 11px; text-align: center; border: 1px solid var(--border); background: var(--bg-input); }
.jh { font-size: 10px; color: var(--text-muted); text-align: center; }
.jrow-lbl { font-size: 11px; font-weight: bold; text-align: center; padding-top: 4px;}
.jrow-lbl.axis-x { color: var(--axis-x); }
.jrow-lbl.axis-y { color: var(--axis-y); }
.jrow-lbl.axis-z { color: var(--axis-z); }

/* Landing Page - Workspace Launcher */
.launcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.launcher-header {
  text-align: left;
  width: 100%;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.launcher-title {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.launcher-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.robot-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.robot-item {
  display: flex;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
  align-items: stretch;
}

.robot-item:hover {
  border-color: var(--accent);
}

.robot-thumb {
  width: 160px;
  background: var(--bg-panel-2);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--text-dim);
}

.robot-details {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.robot-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.robot-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.robot-tags {
  display: flex;
  gap: 8px;
}

.tag {
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--input-radius);
  text-transform: uppercase;
}

.robot-action {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  background: var(--bg-panel-2);
}

.btn-launch {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: var(--input-radius);
  cursor: pointer;
  text-decoration: none;
}
.btn-launch:hover { background: var(--accent-hover); }

/* ============================================================
   STATUS BAR (NEW)
   ============================================================ */
.status-bar {
  height: var(--status-h);
  background: var(--bg-status);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 16px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  z-index: 110;
}

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

.status-accent {
  color: var(--accent);
}

.status-sep {
  width: 1px;
  height: 12px;
  background: var(--border);
}

/* ============================================================
   TERMINAL / CONSOLE
   ============================================================ */
.console {
  height: var(--console-h);
  background: #101012;
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-y: auto;
  line-height: 1.5;
  color: #ccc;
}

.log-entry {
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
}

.log-time { color: var(--text-dim); }
.log-tag { font-weight: 700; width: 45px; }
.log-tag.info  { color: var(--accent); }
.log-tag.warn  { color: var(--warning); }
.log-tag.error { color: var(--error); }

/* ============================================================
   HUD OVERLAYS
   ============================================================ */
.hud-card {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(23, 24, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
  padding: 12px;
  width: 180px;
  pointer-events: none;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
}

.hud-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 9px; font-weight: 700; }
.hud-value { font-family: var(--font-mono); color: var(--text); }

.hud-value.ok { color: var(--success); }
.hud-value.bad { color: var(--error); }

.hud-card.shadow-hud {
  top: auto;
  bottom: 16px;
  right: 16px;
  width: 200px;
  display: none;
  border-color: rgba(64, 224, 128, 0.35);
}
.hud-card.shadow-hud.visible {
  display: block;
}

/* ============================================================
   CAD CONTEXT POPUP
   ============================================================ */
.context-popup {
  position: absolute;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
  width: 200px;
  pointer-events: all;
  z-index: 200;
}

.context-header {
  height: 24px;
  background: var(--bg-panel-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.context-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
}

.context-close:hover { color: var(--text); }

/* Range Sliders — CAD Style */
.eng-slider {
  width: 100%;
  height: 2px;
  -webkit-appearance: none;
  background: var(--bg-input);
  outline: none;
  margin: 12px 0;
}

.eng-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--bg-panel);
}

/* Utility */
.d-none { display: none !important; }

/* ============================================================
   FLOATING PANEL (Draggable Windows)
   ============================================================ */
.floating-panel {
  position: absolute;
  width: auto;
  min-width: 300px;
  background: rgba(18, 18, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  pointer-events: auto;
}

.floating-panel.fp-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95) translateY(10px);
}

.floating-panel.fp-active {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 229, 255, 0.4);
}

.fp-header {
  height: 32px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  cursor: grab;
  user-select: none;
}
.fp-header:active {
  cursor: grabbing;
}

.fp-icon {
  font-size: 14px;
  margin-right: 8px;
}

.fp-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

.fp-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  font-size: 10px;
  transition: all 0.2s;
  margin-left: 4px;
}
.fp-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.fp-close:hover {
  background: rgba(255, 60, 60, 0.2);
  color: #ff5555;
}

.fp-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fp-collapsed .fp-body {
  display: none;
}

.fp-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.fp-toolbar-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.fp-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.fp-toolbar-btn.active {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.5);
  color: #00e5ff;
}

/* ── RoboAnalyzer panel (SCARA pilot) ── */
.analyzer-panel {
  width: 360px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}
.analyzer-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.analyzer-tab {
  flex: 1;
  min-width: 72px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.analyzer-tab.active {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.45);
  color: #00e5ff;
}
.analyzer-panels {
  overflow-y: auto;
  max-height: 440px;
  padding-right: 4px;
}
.analyzer-pane.hidden {
  display: none;
}
.analyzer-hint {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  line-height: 1.4;
}
.analyzer-table-wrap {
  overflow-x: auto;
  margin-bottom: 10px;
}
.analyzer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.analyzer-table th,
.analyzer-table td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
.analyzer-inp {
  width: 64px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 3px;
  padding: 2px 4px;
  font-family: inherit;
  font-size: 10px;
}
.analyzer-inp.narrow {
  width: 52px;
}
.analyzer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.analyzer-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 6px;
  font-size: 10px;
}
.analyzer-slider-row input[type='range'] {
  flex: 1;
}
.analyzer-val {
  min-width: 56px;
  text-align: right;
  color: #00e5ff;
}
.analyzer-btn {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
}
.analyzer-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.analyzer-btn.primary {
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
}
.analyzer-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}
.analyzer-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00e5ff, #7c4dff);
  transition: width 0.15s ease;
}
.analyzer-stats {
  margin: 0 0 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}
.analyzer-canvas {
  width: 100%;
  max-width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: block;
}
.analyzer-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 10px;
}
.analyzer-live-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.analyzer-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.analyzer-metric span {
  color: rgba(255, 255, 255, 0.45);
}
.analyzer-metric code {
  color: #a8f0ff;
  font-size: 10px;
}
