/**
 * EcrioniX Silicon Explorer — Styling & Engineering Laboratory Design
 * Dark technical theme matching EcrioniX design standards.
 * (c) 2026 EcrioniX. Open educational hardware reference.
 */

:root {
  --se-bg: #020617;
  --se-bg-panel: rgba(8, 14, 28, 0.92);
  --se-bg-card: #0c1526;
  --se-bg-card-hover: #111d35;
  --se-bdr: rgba(148, 163, 184, 0.14);
  --se-bdr-glow: rgba(56, 189, 248, 0.4);
  --se-cyan: #38bdf8;
  --se-cyan-soft: rgba(56, 189, 248, 0.12);
  --se-teal: #2dd4bf;
  --se-purple: #a78bfa;
  --se-amber: #fbbf24;
  --se-rose: #f43f5e;
  --se-text: #f8fafc;
  --se-muted: #94a3b8;
  --se-panel-w: 360px;
}

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

body.se-page {
  background: var(--se-bg);
  color: var(--se-text);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 1. TOP NAV */
.se-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 58px;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--se-bdr);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.se-nav-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.se-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.se-brand span { color: var(--se-cyan); }

.se-product-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--se-cyan-soft);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--se-cyan);
}

.se-mode-switcher {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--se-bdr);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}

.se-mode-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--se-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
}

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

.se-mode-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.se-mode-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--se-bdr);
  color: var(--se-cyan);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.se-mode-btn.active .se-mode-badge {
  background: var(--se-cyan);
  color: #020617;
  border-color: var(--se-cyan);
}

.se-mode-meta {
  display: flex;
  flex-direction: column;
}

.se-mode-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.2;
  white-space: nowrap;
}

.se-mode-desc {
  font-size: 0.66rem;
  color: var(--se-muted);
  line-height: 1.2;
  white-space: nowrap;
}

.se-mode-btn.active .se-mode-desc {
  color: var(--se-cyan);
}

.se-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.se-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--se-bdr);
  color: var(--se-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.2s;
}

.se-btn:hover {
  background: var(--se-cyan-soft);
  border-color: var(--se-cyan);
  color: #fff;
}

/* 2. MAIN 3-COLUMN LAB LAYOUT */
.se-workbench {
  display: flex;
  height: calc(100vh - 58px);
  position: relative;
  overflow: hidden;
}

/* Left Sidebar: Component Tree */
.se-sidebar-left {
  position: relative;
  width: var(--se-panel-w);
  background: var(--se-bg-panel);
  border-right: 1px solid var(--se-bdr);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  z-index: 20;
  flex-shrink: 0;
  transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.se-sidebar-left.collapsed {
  margin-left: calc(-1 * var(--se-panel-w));
}

.se-sidebar-toggle {
  position: absolute;
  top: 1rem;
  z-index: 35;
  width: 24px;
  height: 38px;
  background: rgba(8, 14, 28, 0.95);
  border: 1px solid var(--se-bdr);
  color: var(--se-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.se-sidebar-toggle:hover {
  color: #fff;
  border-color: var(--se-cyan);
  background: var(--se-cyan-soft);
}

.se-sidebar-left-toggle {
  right: -24px;
  border-left: none;
  border-radius: 0 6px 6px 0;
}

.se-sidebar-right-toggle {
  left: -24px;
  border-right: none;
  border-radius: 6px 0 0 6px;
}

.se-sidebar-header {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--se-bdr);
}

.se-sidebar-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.se-search-box {
  position: relative;
}

.se-search-input {
  width: 100%;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--se-bdr);
  border-radius: 6px;
  padding: 0.45rem 0.75rem 0.45rem 2rem;
  color: #fff;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.se-search-input:focus {
  border-color: var(--se-cyan);
  box-shadow: 0 0 0 2px var(--se-cyan-soft);
}

.se-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--se-muted);
  font-size: 0.8rem;
}

.se-cat-filter-pills {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 1.15rem;
  border-bottom: 1px solid var(--se-bdr);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.se-cat-filter-pills::-webkit-scrollbar { display: none; }

.se-cat-pill {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--se-bdr);
  color: var(--se-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.se-cat-pill.active {
  background: var(--se-cyan-soft);
  border-color: var(--se-cyan);
  color: var(--se-cyan);
}

.se-tree-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.15rem;
}

.se-tree-group-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--se-muted);
  margin: 0.85rem 0 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.se-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: var(--se-text);
  font-size: 0.82rem;
  cursor: pointer;
  margin-bottom: 2px;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.se-tree-item:hover {
  background: var(--se-bg-card);
  color: #fff;
}

.se-tree-item.active {
  background: var(--se-cyan-soft);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--se-cyan);
  font-weight: 600;
}

.se-item-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--se-muted);
  border: 1px solid var(--se-bdr);
}

/* Center 3D Viewport */
.se-viewport-center {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #0b152d 0%, #030713 70%, #01030a 100%);
}

#se3dCanvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  cursor: grab;
}

#se3dCanvas:active { cursor: grabbing; }

/* Grid overlay */
.se-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

/* Viewport HUD Overlay */
.se-viewport-hud {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  z-index: 10;
  pointer-events: none;
  max-width: 60%;
}

.se-hud-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}

.se-hud-subtitle {
  font-size: 0.76rem;
  color: var(--se-cyan);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 0.15rem;
}

.se-hud-hint {
  font-size: 0.72rem;
  color: var(--se-muted);
  margin-top: 0.35rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Dedicated Viewport Floating Action Cluster */
.se-viewport-actions {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 25;
}

.se-viewport-actions .se-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(4, 9, 22, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--se-bdr);
  color: var(--se-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.se-viewport-actions .se-action-btn:hover {
  color: #fff;
  border-color: var(--se-cyan);
  background: rgba(15, 23, 42, 0.95);
  transform: scale(1.06);
}

.se-viewport-actions .se-action-btn.active {
  background: var(--se-cyan-soft);
  border-color: var(--se-cyan);
  color: var(--se-cyan);
}

.se-btn-tooltip {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: #020617;
  border: 1px solid var(--se-bdr);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.se-viewport-actions .se-action-btn:hover .se-btn-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Bottom 3D Floating Control Pill */
.se-bottom-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 2.5rem);
  background: rgba(4, 9, 22, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid var(--se-bdr);
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  z-index: 15;
  box-shadow: 0 12px 36px rgba(0,0,0,0.7);
}

.se-explode-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.se-explode-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--se-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.se-step-btn-group {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--se-bdr);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.se-step-btn {
  background: transparent;
  border: none;
  color: var(--se-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.se-step-btn.active {
  background: var(--se-cyan);
  color: #020617;
}

.se-slider {
  -webkit-appearance: none;
  width: 95px;
  height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.25);
  outline: none;
  cursor: pointer;
}

.se-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--se-cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  cursor: pointer;
}

.se-slider-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--se-cyan);
  font-weight: 700;
  min-width: 32px;
}

.se-cam-presets {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.se-ctrl-sep {
  width: 1px;
  height: 20px;
  background: var(--se-bdr);
}

.se-pill-btn {
  background: transparent;
  border: none;
  color: var(--se-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.se-pill-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.se-pill-btn.active {
  background: var(--se-cyan-soft);
  color: var(--se-cyan);
}

/* Right Sidebar: Engineering Inspector Panel */
.se-sidebar-right {
  position: relative;
  width: 420px;
  background: var(--se-bg-panel);
  border-left: 1px solid var(--se-bdr);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  z-index: 20;
  flex-shrink: 0;
  transition: margin-right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.se-sidebar-right.collapsed {
  margin-right: -420px;
}

.se-inspector-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--se-bdr);
}

.se-tag-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.se-chip-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.se-chip-subtitle {
  font-size: 0.8rem;
  color: var(--se-muted);
  margin-top: 0.25rem;
}

.se-inspector-tabs {
  display: flex;
  border-bottom: 1px solid var(--se-bdr);
  background: rgba(4, 9, 22, 0.6);
}

.se-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--se-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.65rem 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.se-tab-btn:hover { color: #fff; }
.se-tab-btn.active {
  color: var(--se-cyan);
  border-bottom-color: var(--se-cyan);
  font-weight: 700;
  background: rgba(56, 189, 248, 0.05);
}

.se-inspector-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.se-tab-content { display: none; }
.se-tab-content.active { display: block; }

/* Specs Table */
.se-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.se-specs-table tr {
  border-bottom: 1px solid var(--se-bdr);
}

.se-specs-table th {
  text-align: left;
  color: var(--se-muted);
  font-weight: 600;
  padding: 0.5rem 0;
  width: 40%;
}

.se-specs-table td {
  text-align: right;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}

/* Deep Dive Walkthrough Cards */
.se-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--se-cyan);
  margin: 1rem 0 0.4rem;
}

.se-deep-dive-card {
  background: var(--se-bg-card);
  border: 1px solid var(--se-bdr);
  border-radius: 8px;
  padding: 0.95rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.se-deep-dive-card p { margin-bottom: 0.65rem; }
.se-deep-dive-card p:last-child { margin-bottom: 0; }

.se-deep-dive-card b, .se-deep-dive-card strong {
  color: #fff;
}

/* Supply Chain Breakdown Box */
.se-supply-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--se-bdr);
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.se-supply-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.1);
}

.se-supply-row:last-child { border-bottom: none; }

.se-supply-label { color: var(--se-muted); }
.se-supply-val { font-weight: 700; color: #fff; }

/* Interactive Connection Graph SVG */
.se-connection-wrap {
  background: var(--se-bg-card);
  border: 1px solid var(--se-bdr);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.se-conn-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.72rem;
  margin-top: 0.5rem;
  color: var(--se-muted);
}

.se-conn-key {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

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

/* Quiz UI */
.se-quiz-card {
  background: var(--se-bg-card);
  border: 1px solid var(--se-bdr);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.se-quiz-q {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.se-quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--se-bdr);
  color: var(--se-text);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
}

.se-quiz-opt:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--se-cyan);
}

.se-quiz-opt.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
  font-weight: 700;
}

.se-quiz-opt.wrong {
  background: rgba(244, 63, 94, 0.15) !important;
  border-color: #f43f5e !important;
  color: #fb7185 !important;
}

.se-quiz-feedback {
  margin-top: 0.65rem;
  padding: 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  display: none;
  line-height: 1.6;
}

/* 3. STATIC CRAWLABLE ARTICLE BELOW THE 3D LAB (FOR SEO) */
.se-article-wrap {
  max-width: 1140px;
  margin: 3rem auto;
  padding: 0 1.25rem 4rem;
}

.se-article h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 2.2rem 0 0.85rem;
}

.se-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--se-cyan);
  margin: 1.5rem 0 0.6rem;
}

.se-article p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

.se-article ul {
  margin: 0 0 1.25rem 1.5rem;
  color: #cbd5e1;
}

.se-article li { margin-bottom: 0.5rem; }

/* Responsive adjustments across all breakpoints */
@media (max-width: 1440px) {
  :root { --se-panel-w: 320px; }
  .se-sidebar-right { width: 380px; }
  .se-sidebar-right.collapsed { margin-right: -380px; }
}

@media (max-width: 1280px) {
  :root { --se-panel-w: 290px; }
  .se-sidebar-right { width: 340px; }
  .se-sidebar-right.collapsed { margin-right: -340px; }
  .se-mode-desc { display: none; }
}

@media (max-width: 1024px) {
  :root { --se-panel-w: 260px; }
  .se-sidebar-right { width: 310px; }
  .se-sidebar-right.collapsed { margin-right: -310px; }
}

@media (max-width: 860px) {
  .se-workbench {
    flex-direction: column;
    height: auto;
  }
  .se-sidebar-left {
    width: 100%;
    height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--se-bdr);
    margin-left: 0 !important;
  }
  .se-sidebar-left-toggle,
  .se-sidebar-right-toggle {
    display: none !important;
  }
  .se-viewport-center {
    width: 100%;
    height: 65vh;
    min-height: 460px;
  }
  .se-sidebar-right {
    width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--se-bdr);
    margin-right: 0 !important;
  }
  .se-bottom-controls {
    width: 95%;
    max-width: 95%;
    bottom: 0.65rem;
    padding: 0.35rem 0.5rem;
    gap: 0.35rem;
    border-radius: 10px;
  }
  .se-viewport-hud {
    max-width: 85%;
  }
  .se-hud-title {
    font-size: 1.0rem;
  }
  .se-hud-subtitle {
    font-size: 0.7rem;
  }
}

/* ==========================================================
   MacBook Air M1 & Advanced Subsystem Exploration Styles
   ========================================================== */
.se-lid-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--se-bg-hud);
  border: 1px solid var(--se-bdr);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
}
.se-lid-control label {
  font-size: 0.72rem;
  color: var(--se-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.se-lid-slider {
  width: 90px;
  height: 4px;
  accent-color: var(--se-cyan);
  cursor: pointer;
}
.se-lid-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--se-cyan);
  min-width: 32px;
  text-align: right;
}

/* Workload Scenarios Container */
.se-scenarios-container {
  background: var(--se-bg-card);
  border: 1px solid var(--se-bdr);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.se-scenarios-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.se-scenarios-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.se-scenario-pill {
  background: var(--se-bg-hud);
  border: 1px solid var(--se-bdr);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--se-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.se-scenario-pill:hover,
.se-scenario-pill.active {
  background: var(--se-cyan-soft);
  border-color: var(--se-cyan);
  color: var(--se-cyan);
}
.se-scenario-desc {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}
.se-scenario-steps {
  font-size: 0.78rem;
  color: var(--se-muted);
  line-height: 1.6;
  padding-left: 1.2rem;
  margin: 0;
}
.se-scenario-steps li {
  margin-bottom: 0.35rem;
}

/* Unified Memory Comparison Grid */
.se-uma-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 768px) {
  .se-uma-grid {
    grid-template-columns: 1fr;
  }
}
.se-uma-col {
  background: var(--se-bg-card);
  border: 1px solid var(--se-bdr);
  border-radius: 10px;
  padding: 1rem;
}
.se-uma-col.discrete {
  border-color: rgba(244, 63, 94, 0.35);
}
.se-uma-col.unified {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.04);
}
.se-uma-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.se-uma-col.discrete .se-uma-title { color: #f43f5e; }
.se-uma-col.unified .se-uma-title { color: var(--se-cyan); }
.se-uma-item {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
}
.se-uma-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
