/* sequence.css
   Rocket Sequence Atlas — layout, sidebar, viewport, and pose-card panel.
   Token-based (reads from css/tokens.css via style.css's @import — this
   file is loaded after style.css, so both the new --color, --space,
   --radius, and --shadow tokens AND the legacy --lhc-cyan-style aliases
   are already available). Wrapped in the site-wide `components` layer
   (declared once in style.css: reset, tokens, base, components, utilities)
   so nothing here needs !important to beat base.css.

   NOTE: .section-btn's full visual redesign (78px cards, left accent
   strip, active/disabled states) lives in css/atlas-ui.css, loaded after
   this file — this file only defines the base layout/shape so atlas-ui.css
   has a sane, uncluttered rule to refine rather than fight. */

@layer components {

/* --atlas-header-h tracks the sticky header's real rendered height (banner
   + nav row). header is `position: sticky`, not fixed, so it still occupies
   real document-flow space — a flat `height: 100vh` on .atlas-main directly
   below it always produced a document taller than the viewport by exactly
   the header's height (measured: header ~77px tall at rest, page overflowed
   by exactly ~77px). Confirmed the same bug reappears the moment the
   announcement banner wraps to a 2nd line (e.g. ~1100–1300px viewport
   widths, right above the mobile breakpoint): header grows to ~128px and a
   fresh ~51px overflow appears, so a single hardcoded pixel value is not
   safe on its own. A small inline script at the bottom of
   rocket-sequence.html (this page only, not script.js) uses a
   ResizeObserver on `header` to keep this variable exactly in sync with
   its real height at all times, including banner-wrap and dynamic content
   changes. The 77px below is only a first-paint fallback for the instant
   before that script runs (or in the rare case JS is disabled); it is not
   the mechanism doing the real work. */
.atlas-main {
  --atlas-header-h: 77px;
  /* 100dvh (not 100vh) so mobile browser chrome that shows/hides on scroll
     doesn't reintroduce the same overflow on phones even under the
     desktop-only rule below. */
  height: calc(100dvh - var(--atlas-header-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-bg);
  background-image: radial-gradient(circle at center, #0a0e1c 0%, #03050a 100%);
  background-size: cover;
  background-position: center;
}

.atlas-container {
  display: grid;
  /* Left sidebar removed 2026-07-29 (search/analytics/composer/progress
     panels retired; the sequence dropdown now lives in the right panel
     instead). Two columns only: pose list, then pose detail. */
  grid-template-columns: 1fr 420px;
  height: 100%;
  width: 100%;
  border-top: 1px solid var(--border-color);
}

.sequence-selector-mount {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs, 0.35rem);
  padding: var(--space-md, 1rem);
  background: var(--surface-bg);
}

.sequence-selector-mount .text-accent {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.sequence-selector-mount .sequence-dropdown {
  width: 100%;
  background: rgba(10, 25, 47, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------
   .panel — shared glassmorphism base. Sidebar, right-panel pose card,
   and the analytics/composer sub-panels all want the same "frosted glass
   over the starfield" treatment; this centralizes it so future panels
   (e.g. a command palette) can opt in with one class instead of
   re-declaring background/backdrop-filter/border by hand.
   --------------------------------------------------------------------- */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Sidebar */
.atlas-sidebar {
  background: var(--surface-bg);
  border-right: 1px solid var(--border-color);
  padding: var(--space-md);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sidebar-header h2 {
  font-size: 2.2rem;
  margin-top: var(--space-2xs);
  margin-bottom: 0;
  text-shadow: 0 0 15px rgba(var(--color-accent-rgb), 0.5);
}

.atlas-progress {
  background: rgba(var(--color-accent-rgb), 0.05);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------------
   Sidebar visual hierarchy
   Six stacked panels previously all read as equal-weight boxes. The two
   the user actually acts on constantly (search, flight-plan selector)
   now get a brighter border + soft glow + slightly bolder label so they
   read as "primary controls"; the two purely-read-only HUD panels
   (analytics, calibration) recede with a dimmer border/background and
   muted label so they read as passive telemetry, not competing actions.
   The render-mode and composer panels are left on their existing
   treatment: render-mode is already visually distinct via its 3 colored
   buttons, and composer already has its own green accent identity.
   --------------------------------------------------------------------- */
.sidebar-panel--primary {
  position: relative;
  padding: var(--space-sm);
  border: 1px solid rgba(var(--color-accent-rgb), 0.45);
  border-radius: var(--radius-sm);
  background: rgba(var(--color-accent-rgb), 0.07);
  box-shadow: 0 0 16px rgba(var(--color-accent-rgb), 0.12),
              inset 0 0 0 1px rgba(var(--color-accent-rgb), 0.05);
}

.sidebar-panel--primary .text-accent {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sidebar-panel--muted,
.sidebar-panel--muted.panel-analytics,
.sidebar-panel--muted.panel-composer {
  border-color: rgba(var(--color-accent-rgb), 0.1);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.sidebar-panel--muted .progress-label,
.sidebar-panel--muted .progress-label-pink {
  opacity: 0.75;
  font-weight: 400;
}

.progress-label {
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-bottom: var(--space-2xs);
}

.progress-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--space-2xs);
}

.progress-bar {
  height: 100%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  transition: width var(--speed-base) var(--ease-standard);
}

.progress-text {
  text-align: right;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-reset-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.2rem var(--space-2xs);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-standard);
}

.progress-reset-btn:hover {
  border-color: var(--color-magenta);
  color: var(--color-magenta);
}

.sequence-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

/* Base .section-btn shape/layout only — visual redesign (78px height,
   left accent strip, hover sheen, disabled state) lives in atlas-ui.css,
   loaded after this file, which overrides these declarations. Kept here
   so the component still looks reasonable if atlas-ui.css is ever
   removed from a page's <link> list. */
.section-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-text);
  padding: var(--space-xs) var(--space-sm);
  text-align: left;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease-standard);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-btn:hover {
  background: rgba(var(--color-accent-rgb), 0.1);
  border-color: rgba(var(--color-accent-rgb), 0.3);
}

.section-btn.active {
  background: rgba(var(--color-accent-rgb), 0.15);
  border-color: var(--color-accent);
  box-shadow: inset 0 0 10px rgba(var(--color-accent-rgb), 0.2);
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(var(--color-accent-rgb), 0.5);
}

.section-poses-preview {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-muted);
}

/* ---------------------------------------------------------------------
   Viewport
   --------------------------------------------------------------------- */
.atlas-viewport {
  position: relative;
  overflow: auto; /* Let the user scroll normally on desktop if needed, or pan */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  /* Thin custom scrollbar rather than fully hidden — hiding it entirely
     (the old behavior) makes long pose lists undiscoverable on desktop
     pointer devices where users expect a scroll affordance. */
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--color-accent-rgb), 0.35) transparent;
}

.atlas-viewport::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.atlas-viewport::-webkit-scrollbar-track {
  background: transparent;
}
.atlas-viewport::-webkit-scrollbar-thumb {
  background: rgba(var(--color-accent-rgb), 0.35);
  border-radius: var(--radius-pill);
}
.atlas-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-accent-rgb), 0.55);
}

.atlas-viewport:active {
  cursor: grabbing;
}

.viewport-ui {
  position: fixed;
  top: 128px; /* clears the ~116px sticky header + a small gap */
  right: 400px; /* offset by right panel */
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  z-index: 10;
}

.btn-icon {
  padding: var(--space-2xs);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-bg);
  border-color: rgba(var(--color-accent-rgb), 0.3);
}

.btn-icon:hover {
  background: var(--color-accent);
  color: #000;
}

.svg-container {
  width: 100%;
  height: max-content;
  min-height: 100%;
  transform-origin: top left;
  transition: transform 0.1s ease-out;
  padding: 50px;
  user-select: none;
  -webkit-user-select: none;
}

svg.constellation {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

.pose-node {
  cursor: pointer;
}

/* Card panel behind each node's figure */
.node-card {
  fill: var(--panel-bg);
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 1.5;
  transition: all 0.25s ease;
}

.pose-node:hover .node-card {
  stroke: var(--color-accent);
  fill: rgba(var(--color-accent-rgb), 0.08);
  filter: drop-shadow(0 0 10px rgba(var(--color-accent-rgb), 0.35));
}

.pose-node.active .node-card {
  stroke: var(--color-accent);
  fill: rgba(var(--color-accent-rgb), 0.14);
  filter: drop-shadow(0 0 16px rgba(var(--color-accent-rgb), 0.55));
}

.pose-node.completed .node-card {
  stroke: var(--color-purple);
  fill: rgba(var(--color-purple-rgb), 0.12);
}

.pose-node.completed.active .node-card {
  stroke: var(--color-purple);
  fill: rgba(var(--color-purple-rgb), 0.22);
  filter: drop-shadow(0 0 16px rgba(var(--color-purple-rgb), 0.55));
}

/* Soft ambient glow behind the whole node */
.node-glow {
  fill: transparent;
  transition: fill 0.3s ease;
}

.pose-node:hover .node-glow {
  fill: rgba(var(--color-accent-rgb), 0.05);
}

.pose-node.active .node-glow {
  fill: rgba(var(--color-accent-rgb), 0.08);
}

/* Fallback dot for poses without a defined silhouette yet */
.node-core {
  fill: var(--color-bg);
  stroke: var(--color-muted);
  stroke-width: 2.5;
  transition: all 0.3s ease;
}

.pose-node:hover .node-core {
  stroke: var(--color-accent);
  fill: rgba(var(--color-accent-rgb), 0.2);
}

.pose-node.active .node-core {
  stroke: var(--color-accent);
  fill: var(--color-accent);
}

/* Mini pose-figure inside each node */
.node-figure .pf-limb {
  stroke-width: 3.4;
}

.node-figure .pf-head {
  stroke-width: 3.4;
}

.node-figure .pf-ground {
  display: none; /* ground line is redundant clutter at mini scale */
}

/* Number badge in the corner of the card */
.node-number {
  font-size: 8px;
  fill: var(--color-muted);
  letter-spacing: 0.05em;
}

.pose-node.active .node-number,
.pose-node:hover .node-number {
  fill: var(--color-accent);
}

/* Always-visible name labels beneath the card */
.node-label {
  text-anchor: middle;
  pointer-events: none;
  transition: fill 0.25s ease, opacity 0.25s ease;
}

.node-label-english {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  fill: var(--color-text);
  opacity: 0.85;
}

.node-label-sanskrit {
  font-size: 9.5px;
  fill: var(--color-accent);
  opacity: 0.7;
}

.pose-node:hover .node-label-english,
.pose-node.active .node-label-english {
  opacity: 1;
  fill: #fff;
}

.pose-node:hover .node-label-sanskrit,
.pose-node.active .node-label-sanskrit {
  opacity: 1;
}

.pose-node.completed .node-label-sanskrit {
  fill: var(--color-purple);
}

.pose-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.pose-path.completed {
  stroke: var(--color-purple);
  stroke-dasharray: none;
  filter: drop-shadow(0 0 5px rgba(var(--color-purple-rgb), 0.5));
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* ---------------------------------------------------------------------
   Right Panel Pose Card
   --------------------------------------------------------------------- */
/* script.js used to inject a sitewide floating "432Hz Theta Resonance"
   button pinned bottom-right on every page, which collided with this
   panel's own bottom-right content (e.g. the "Peer-Reviewed Biomedical
   Evidence" block) and required extra reserved padding below to clear
   it. That widget has since moved to two top-corner binaural speaker
   widgets (see .binaural-speaker in style.css), so this panel no longer
   needs extra bottom clearance beyond its normal padding. */
.atlas-pose-panel-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--border-color);
}

.atlas-pose-panel-wrap .sequence-selector-mount {
  flex: 0 0 auto;
  border-left: none;
  border-bottom: 1px solid var(--border-color);
}

.atlas-pose-panel-wrap .atlas-pose-card {
  flex: 1 1 auto;
  border-left: none;
}

.atlas-pose-card {
  background: var(--surface-bg);
  border-left: 1px solid var(--border-color);
  padding: var(--space-lg) var(--space-md);
  overflow-y: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pose-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 100%;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-muted);
  text-align: center;
  gap: var(--space-md);
}

.pulsing-dot {
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--color-accent);
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(0.8); opacity: 0.5; }
  to { transform: scale(1.2); opacity: 1; }
}

/* Pose Card Details */
.pose-header {
  border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.2);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.pose-header-top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Non-interactive icon frame — dropped the inset glow box-shadow (this
   frame is decorative chrome, not an interactive element, so the glow
   was pure noise competing with the sequencing rule warnings / composer
   panel glows that DO signal something). Border + backdrop gradient
   still read clearly as a distinct frame without it. */
.pose-icon-frame {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(var(--color-accent-rgb), 0.3);
  border-radius: var(--radius-md);
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.08) 0%, rgba(0,0,0,0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  padding: 6px;
}

.pose-icon-frame .pose-icon-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(var(--color-accent-rgb), 0.5));
}

.pose-icon-frame .pose-number-fallback {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(var(--color-accent-rgb), 0.6);
}

.tooltip-figure {
  width: 72px;
  height: 86px;
  margin: 0 auto 0.4rem;
}

.tooltip-figure svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 3px rgba(var(--color-accent-rgb), 0.5));
}

/* Pose figure styles (.pf-*) moved to pose-anatomy.css, which targets the
   current pose-figures.js class names (pf-spine/pf-girdle/pf-limb-upper/
   pf-limb-lower/etc). This old block targeted a prior version's class
   names (.pf-limb/.pf-head/.pf-joint/.pf-ground) and would otherwise sit
   dead in the cascade next to pose-anatomy.css's rules for the same
   selectors that DO still apply (.pf-joint, .pf-head, .pf-ground) -
   removed to avoid two rulesets governing the same figures from two files. */

.atlas-hover-tooltip {
  position: fixed;
  z-index: 500;
  pointer-events: none;
  background: rgba(6, 10, 20, 0.95);
  border: 1px solid rgba(var(--color-accent-rgb), 0.4);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  min-width: 140px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm), 0 0 12px rgba(var(--color-accent-rgb), 0.15);
}

.atlas-hover-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.atlas-hover-tooltip .tooltip-number {
  font-size: 0.7rem;
  color: var(--color-accent);
  opacity: 0.8;
  margin-bottom: 0.15rem;
}

.atlas-hover-tooltip .tooltip-english {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.atlas-hover-tooltip .tooltip-sanskrit {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-style: italic;
  margin-top: 0.1rem;
}

.pose-titles-wrap {
  flex: 1;
  min-width: 0;
}

.pose-number {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2xs);
  border: 1px solid rgba(var(--color-accent-rgb), 0.3);
  display: inline-block;
  padding: 0.2rem var(--space-2xs);
  background: rgba(var(--color-accent-rgb), 0.05);
}

.pose-sanskrit {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
  line-height: 1.2;
}

.pose-english {
  color: var(--color-muted);
  font-size: 1.1rem;
  font-style: italic;
}

.pose-titles h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
  line-height: 1.25;
}

.pose-titles h4 {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
}

.pose-meta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.meta-item {
  background: rgba(var(--color-accent-rgb), 0.05);
  border: 1px solid rgba(var(--color-accent-rgb), 0.15);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  flex: 1;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gold);
}

.pose-block {
  margin-bottom: var(--space-lg);
}

.pose-block h4 {
  font-size: 0.95rem;
  color: var(--color-accent);
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-xs);
  margin-bottom: var(--space-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.pose-block p, .pose-block ul {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}

.pose-block ul {
  padding-left: var(--space-md);
}

.pose-block li {
  margin-bottom: var(--space-2xs);
}

.pose-nav {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.pose-nav-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-muted);
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--speed-fast) var(--ease-standard);
}

.pose-nav-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: inset 0 0 10px rgba(var(--color-accent-rgb), 0.1);
}

.pose-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(255,255,255,0.1);
  color: var(--color-muted);
  box-shadow: none;
}

.pose-action {
  width: 100%;
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: rgba(var(--color-purple-rgb), 0.1);
  border: 1px solid var(--color-purple);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--speed-fast) var(--ease-standard);
  letter-spacing: 0.1em;
}

.pose-action.completed {
  background: var(--color-purple);
  box-shadow: 0 0 20px rgba(var(--color-purple-rgb), 0.5);
}

.pose-action:hover {
  background: rgba(var(--color-purple-rgb), 0.3);
}

.pose-action.completed:hover {
  background: #a960e6;
}


/* Mobile Layout */
@media (max-width: 1100px) {
  .atlas-main {
    height: auto;
    overflow: visible;
  }

  .atlas-container {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .atlas-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-md);
  }

  .atlas-viewport {
    height: 70vh;
    border-bottom: 1px solid var(--border-color);
  }

  .viewport-ui {
    right: var(--space-sm);
    top: auto;
    bottom: var(--space-sm);
  }

  .atlas-pose-card {
    border-left: none;
    padding: var(--space-md);
    min-height: 60vh;
  }
}


/* ---------------------------------------------------------------------
   Sidebar inline-style extraction (from rocket-sequence.html — Agent B's
   HTML/UX pass). Merged here rather than kept as a separate file since
   these are all sequence-atlas sidebar/breadcrumb/keynav rules.
   --------------------------------------------------------------------- */

/* ============================================================
   Additions for sequence.css — extracted from inline style=""
   attributes that used to live directly in rocket-sequence.html's
   sidebar. Merge these rules into sequence.css; nothing here
   changes behavior, it only moves the same declarations into
   classes.
   ============================================================ */

/* Generic sidebar layout helpers */
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-stack--top {
  margin-top: 1rem;
}
.sidebar-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar-row-between-tight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.sidebar-btn-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Universal search block */
.sidebar-dashboard-link {
  color: #f72585;
  font-size: 0.7rem;
  text-decoration: underline;
}
.sidebar-search-input {
  background: rgba(10, 25, 47, 0.8);
  color: #00ffff;
  border: 1px solid rgba(0, 255, 255, 0.4);
  padding: 0.5rem 0.75rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  width: 100%;
  border-radius: 4px;
  outline: none;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}
.sidebar-search-dropdown {
  display: none; /* JS toggles to 'block' at runtime via inline style */
  background: rgba(8, 14, 28, 0.95);
  border: 1px solid #00f0ff;
  border-radius: 4px;
  margin-top: 0.2rem;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.75rem;
}

/* Flight-plan selector */
.sidebar-select {
  background: rgba(10, 25, 47, 0.7);
  color: #00ffff;
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 0.5rem;
  font-family: 'Share Tech Mono', monospace;
  width: 100%;
  border-radius: 4px;
  outline: none;
}

/* Anatomical render mode buttons (JS overrides these inline on click —
   these classes just supply the initial pre-click appearance) */
.mode-btn-2d {
  flex: 1;
  min-width: 60px;
  padding: 0.4rem;
  font-size: 0.75rem;
  font-family: 'Share Tech Mono', monospace;
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid #00f0ff;
  color: #00f0ff;
  cursor: pointer;
  border-radius: 4px;
}
.mode-btn-3d {
  flex: 1;
  min-width: 60px;
  padding: 0.4rem;
  font-size: 0.75rem;
  font-family: 'Share Tech Mono', monospace;
  background: rgba(10, 25, 47, 0.7);
  border: 1px solid rgba(247, 37, 133, 0.5);
  color: #f72585;
  cursor: pointer;
  border-radius: 4px;
}
.mode-btn-raccoon {
  flex: 1;
  min-width: 75px;
  padding: 0.4rem;
  font-size: 0.75rem;
  font-family: 'Share Tech Mono', monospace;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid #ffb703;
  color: #ffb703;
  cursor: pointer;
  border-radius: 4px;
}

/* Sequence analytics + composer panels */
.panel-analytics {
  margin-top: 1rem;
  padding: 0.75rem;
  border-color: rgba(247, 37, 133, 0.4);
}
.panel-composer {
  margin-top: 1rem;
  padding: 0.75rem;
  border-color: rgba(124, 255, 143, 0.4);
}
.progress-label-pink {
  color: #f72585;
  margin-bottom: 0.4rem;
}
.progress-label-green {
  color: #7cff8f;
  margin-bottom: 0;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
}
.metric-row--tight {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}
.metric-row-plain {
  display: flex;
  justify-content: space-between;
}
.metric-value-cyan { color: #00f0ff; }
.metric-value-green { color: #7cff8f; }
.metric-value-amber { color: #ffd166; }
.metric-color-pill {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00f0ff;
}

/* Shared warning banner (sequencing note / composer constraint warning).
   Base rule + directional-margin modifiers, since the two usages differ
   only in whether the spacing goes above or below. */
.sidebar-warning-block {
  display: none; /* JS toggles this at runtime */
  padding: 0.5rem;
  border: 1px solid #ff9f1c;
  border-radius: 4px;
  background: rgba(255, 159, 28, 0.1);
  font-size: 0.7rem;
  color: #ff9f1c;
  line-height: 1.4;
}
.sidebar-warning-block--top { margin-top: 0.5rem; }
.sidebar-warning-block--bottom { margin-bottom: 0.5rem; }

/* Composer panel internals */
.composer-count-label {
  font-size: 0.7rem;
  color: #94a3b8;
}
.composer-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.composer-empty-hint {
  font-size: 0.7rem;
  color: #64748b;
  padding: 0.4rem 0;
}
.composer-metrics {
  display: none; /* JS toggles this at runtime */
  font-size: 0.7rem;
  color: #94a3b8;
  border-top: 1px dashed rgba(124, 255, 143, 0.25);
  padding-top: 0.4rem;
  margin-bottom: 0.4rem;
}
.composer-action-row {
  display: flex;
  gap: 0.4rem;
}
.btn-flex { flex: 1; }

/* System calibration progress bar's initial (0%) fill state */
.sidebar-progress-fill { width: 0%; }

/* Breadcrumb bar (new, static) */
.atlas-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}
.atlas-breadcrumb-item { color: #94a3b8; }
.atlas-breadcrumb-sep { color: rgba(148, 163, 184, 0.5); }
.atlas-breadcrumb-current {
  color: #00f0ff;
  font-weight: 600;
}

/* Keyboard-nav hint (new, static) */
.atlas-keynav-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem 1.25rem 0.6rem;
  font-size: 0.7rem;
  color: #64748b;
}
.atlas-keynav-hint kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 3px;
  background: rgba(0, 240, 255, 0.08);
  color: #00f0ff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
}

/* Mobile hamburger — now an inline SVG instead of the ☰ glyph */
.mobile-menu-icon {
  width: 28px;
  height: 28px;
}

/* "What is the Sequence Atlas?" intro banner. Previously had ZERO rules
   anywhere in the codebase — it was rendering in unstyled browser-default
   black-on-white, which is why it looked like a plain wall of text
   dropped onto the page. Styled here to match the rest of the atlas UI:
   mono label/caret, Inter body copy at a readable size/line-height,
   accent-colored pill for the ESTIMATED 3D callout. */
.atlas-intro-banner {
  margin: 0 1.25rem 0.85rem;
  padding: 0.9rem 1.1rem;
  background: var(--panel-bg, rgba(10, 25, 47, 0.55));
  border: 1px solid var(--panel-border, rgba(0, 240, 255, 0.18));
  border-radius: var(--radius-md, 8px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #cbd5e1;
}

.atlas-intro-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Share Tech Mono', monospace;
}

.atlas-intro-title {
  color: #00f0ff;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
}

.atlas-intro-caret {
  color: #00f0ff;
  transition: transform 0.2s ease;
}

.atlas-intro-toggle[aria-expanded="false"] .atlas-intro-caret {
  transform: rotate(-90deg);
}

.atlas-intro-body {
  margin-top: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
}

.atlas-intro-body p {
  margin: 0 0 0.75rem;
}

.atlas-intro-body p:last-child {
  margin-bottom: 0;
}

.atlas-intro-body strong {
  color: #f1f5f9;
  font-weight: 600;
}

.atlas-intro-subtle {
  color: #94a3b8;
  font-size: 0.85rem;
}

.atlas-intro-pill {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: rgba(247, 37, 133, 0.15);
  border: 1px solid rgba(247, 37, 133, 0.4);
  color: #f72585;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.atlas-intro-banner.is-collapsed .atlas-intro-body {
  display: none;
}

} /* end @layer components */
