/* ============================================================
   rmc-cp-200x.css — Manager control plane "200x luxury" elements
   ------------------------------------------------------------
   v3.55.0+ / 2026-05-21 — Introduced.

   Cascades the 10 luxury elements from the v8 200x preview into
   the live manager control plane. Loaded AFTER `manager-cockpit-v7.css`
   so cockpit-200x rules can refine v7 baseline where needed.

   ALL rules are scoped to the manager shell where possible. The
   grid override for the 3-column app shell is scoped via
   `[data-rmc-shell-main="control-plane"]` ancestor so the tenant
   2-column grid is NOT affected.

   TOKEN POLICY
   - Reuses existing dark-chrome tokens (--cp-chrome-*, --cp-glow-*).
   - Where a luxury aesthetic demands a literal (gradient, pulse halo
     color, severity stripe), each declaration carries an
     `off-token-allow` marker with a categorical reason — see
     scan_off_token_colors.py baseline.
   - Respects `@media (prefers-reduced-motion: reduce)` for all
     keyframe animations.
   ============================================================ */


/* ============================================================
   Shell grid extension — adds the 3rd column for the AI Copilot rail
   Scoped to manager host only.
   ============================================================ */
[data-rmc-shell-main="control-plane"] .rmc-app-shell {
  grid-template-columns: var(--rmc-app-shell-sidebar-w, clamp(240px, 18vw, 320px)) 1fr var(--rmc-app-shell-copilot-w, var(--rmc-operator-copilot-collapsed-w, 44px));
  transition: grid-template-columns var(--motion-slow, 420ms cubic-bezier(0.22, 0.61, 0.36, 1));
}

[data-rmc-shell-main="control-plane"] .rmc-app-shell[data-copilot="expanded"] {
  --rmc-app-shell-copilot-w: var(--rmc-copilot-expanded-w, 360px);
}

/* Copilot MUST stay in grid col 3 (narrow right rail). Unscoped auto-placement can
   park the aside on a full-width implicit row — a bottom band with vertically
   stacked icons that steals ~1/3 of the viewport. */
[data-rmc-shell-main="control-plane"] .rmc-app-shell__copilot,
[data-rmc-isomorphic-template="operator-control-plane"] .rmc-app-shell__copilot,
body.control-plane-shell .rmc-app-shell__copilot {
  grid-row: 2;
  grid-column: 3;
  width: var(--rmc-app-shell-copilot-w, var(--rmc-operator-copilot-collapsed-w, 44px));
  max-width: var(--rmc-app-shell-copilot-w, var(--rmc-operator-copilot-collapsed-w, 44px));
  justify-self: stretch;
  align-self: stretch;
}

.rmc-app-shell__copilot {
  background: linear-gradient(180deg, rgba(15, 21, 48, 0.92) 0%, rgba(7, 9, 26, 0.95) 100%); /* off-token-allow: dark-chrome-copilot-glass */
  border-left: 1px solid var(--cp-chrome-hairline);
  color: var(--cp-chrome-text);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  z-index: 32;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: -12px 0 32px rgba(0,0,0,0.30); /* off-token-allow: dark-chrome-copilot-glass */
  overflow: hidden;
  /* Scrollbar paint removed 2026-09-18 — an independent transparent/transparent
     baseline for the operator shell (audit/scrollbars_pass1.md §1.3, §1.6
     finding 4). rmc-scrollbar.css owns the paint. */
}

/* Shell auxiliaries are not grid chrome — keep them out of auto-placement. */
[data-rmc-shell-main="control-plane"] .rmc-app-shell > dialog.rmc-sheet:not([open]),
[data-rmc-isomorphic-template="operator-control-plane"] .rmc-app-shell > dialog.rmc-sheet:not([open]) {
  position: fixed;
  grid-column: 1;
  grid-row: 1;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

[data-rmc-shell-main="control-plane"] .rmc-app-shell > [data-rmc-operator-notebook],
[data-rmc-isomorphic-template="operator-control-plane"] .rmc-app-shell > [data-rmc-operator-notebook] {
  position: fixed;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  height: auto;
  margin: 0;
  pointer-events: auto;
}

body[data-rmc-assist-layout="edge-tray"] .rmc-app-shell > [data-rmc-operator-notebook] {
  position: fixed !important;
}

@media (max-width: 1199.98px) {
  [data-rmc-shell-main="control-plane"] .rmc-app-shell {
    grid-template-columns: var(--rmc-app-shell-sidebar-w, clamp(240px, 18vw, 320px)) 1fr;
  }
  body.control-plane-shell .rmc-app-shell__copilot,
  [data-rmc-isomorphic-template="operator-control-plane"] .rmc-app-shell__copilot {
    display: none;
  }
}

/* Phone: collapse the control-plane shell to a single column and hide the
   static sidebar — matching the base .rmc-app-shell contract in
   rmc-app-shell.css (@media max-width:991.98px). Without this, the higher-
   specificity control-plane grid above kept a 2-column layout on phones, so
   the sidebar (280px) stayed painted over the canvas and squeezed the content
   pane to a sliver — the MFA "Verify" page rendered its card behind the nav.
   Sidebar nav remains reachable via the offcanvas toggle. */
@media (max-width: 991.98px) {
  [data-rmc-shell-main="control-plane"] .rmc-app-shell {
    grid-template-columns: 1fr;
  }
  [data-rmc-shell-main="control-plane"] .rmc-app-shell__sidebar {
    display: none;
  }
  [data-rmc-shell-main="control-plane"] .rmc-app-shell__canvas {
    grid-column: 1 / -1;
  }
  /* Offcanvas drawer mode (the base rmc-app-shell.css rule for
     [data-rmc-shell-sidebar="offcanvas"] .rmc-app-shell__sidebar) still slides
     the sidebar in over the canvas; this collapse only governs the static grid. */
  [data-rmc-shell-main="control-plane"] .rmc-app-shell[data-rmc-shell-sidebar="offcanvas"] .rmc-app-shell__sidebar {
    display: block;
  }
}


/* ============================================================
   Element 10 — Operator presence indicator (header capsule)
   ============================================================ */
.cp-presence {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 8px;
  border-radius: var(--radius-pill, 999px);
  background: rgba(255,255,255,0.05); /* off-token-allow: dark-chrome-presence-capsule */
  border: 1px solid var(--cp-chrome-hairline);
}

.cp-presence__avatars {
  display: inline-flex;
  align-items: center;
}

.cp-presence__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white; /* off-token-allow: dark-chrome-presence-avatar */
  font-size: 10px;
  font-weight: 700;
  border: 2px solid var(--cp-chrome-bg);
  margin-left: -6px;
}
.cp-presence__avatar:first-child { margin-left: 0; }
.cp-presence__avatar--indigo {
  background: linear-gradient(135deg, #6366f1, #8b5cf6); /* off-token-allow: dark-chrome-presence-avatar */
}
.cp-presence__avatar--emerald {
  background: linear-gradient(135deg, #10b981, #059669); /* off-token-allow: dark-chrome-presence-avatar */
}
.cp-presence__avatar--amber {
  background: linear-gradient(135deg, #f59e0b, #d97706); /* off-token-allow: dark-chrome-presence-avatar */
}

.cp-presence__count {
  font-size: 11px;
  color: var(--cp-chrome-text-muted);
  white-space: nowrap; /* horizontal-overflow-risk-allow: short-numeric-content-bounded */
}

.cp-presence__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #bbf7d0; /* off-token-allow: dark-chrome-presence-status-ink */
  padding-left: 10px;
  border-left: 1px solid var(--cp-chrome-hairline);
}
.cp-presence__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success, #22c55e); /* off-token-allow: dark-chrome-slo-pulse */
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18); /* off-token-allow: dark-chrome-slo-pulse */
  /* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
  animation: cp-pulse-soft 2.2s ease-in-out infinite;
}

@keyframes cp-pulse-soft {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0.04); }
}
@media (prefers-reduced-motion: reduce) {
  .cp-presence__status::before { animation: none; }
}


/* Two-column layout (preview v8 200x: heatmap + trust nutrition side-by-side) */
.lx-cols-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) {
  .lx-cols-2 { grid-template-columns: 1fr; }
}

/* Manager /super/ landing stack — preview v8 density (no collapsible chrome). */
.rmc-cp-200x-landing {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0.75rem;
}
/* Globe landing — shell layout + globe mount sizing/position only (WebGL/arcs/wow untouched). */
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] {
  padding-top: 0 !important;
  padding-bottom: 0.25rem;
  --rmc-globe-landing-frame-height: clamp(520px, calc(100dvh - 5.5rem), 1024px);
  /* ~2–3% edge pad on the map cell (pairs with JS mount sizing + landing camera). */
  --rmc-globe-landing-edge-pad: clamp(4px, 2.25%, 14px);
  --rmc-globe-landing-disk-fill: 0.92;
  --rmc-globe-landing-fit-pad: var(--rmc-globe-landing-edge-pad);
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .cp-page-body {
  padding-top: 0;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .rmc-cp-200x-landing {
  margin-top: 0;
  margin-bottom: 0;
  gap: 0;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] #rmc-globe-master-lab.lx-world-lab--globe-landing {
  margin-top: 0;
  gap: 6px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: var(--rmc-globe-landing-frame-height);
  max-height: var(--rmc-globe-landing-frame-height);
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .rmc-app-shell__canvas-body {
  padding-top: 0;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world-lab--globe-landing .lx-world-lab__header {
  padding: 0 2px 0;
  margin: 0;
  flex: 0 0 auto;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world-lab--globe-landing .lx-world-lab__title,
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world-lab--globe-landing .lx-world-lab__note {
  display: none;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"],
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-deck-v2="1"] {
  --brand: #818cf8;
  --good: #6ee7b7;
  --ai: #c4b5fd;
  --warn: #fde68a;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --rmc-globe-lab-glass: rgba(18, 24, 41, 0.92);
}

[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world-lab--globe-landing .lx-world-lab__ai-guide {
  margin: 0;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world-lab--globe-landing .lx-world-lab__controls-advanced {
  flex: 0 0 auto;
  margin: 0;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world-lab--globe-landing .lx-world-lab__controls-advanced-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--rmc-globe-lab-glass);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 650;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world-lab--globe-landing .lx-world-lab__controls-advanced:not([open]) .lx-world-lab__controls {
  display: none;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world-lab--globe-landing .lx-world-lab__controls-advanced[open] .lx-world-lab__controls {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 8px 10px;
  gap: 5px;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world-lab--globe-landing .lx-world-lab__controls {
  display: none;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world__chrome-rail--globe-landing-hidden {
  display: none !important;
}
/* Deck v2 owns KPIs in side rails — do not force orphan C/D voids on the map
   (they looked like hidden buttons under "C · Caption / Blueprint applied"). */
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"][data-rmc-cp-globe-deck-v2="1"] .lx-world__map .lx-world__void-zone--chrome-rail-hide,
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"][data-rmc-cp-globe-deck-v2="1"] .lx-world--hero .lx-world__void-band {
  display: none !important;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"]:not([data-rmc-cp-globe-deck-v2="1"]) .lx-world__map .lx-world__void-zone--chrome-rail-hide {
  display: block !important;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] #master-card.lx-world--hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(272px, 27vw);
  grid-template-rows: minmax(0, 1fr) auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  height: 100%;
  overflow: hidden;
  align-items: stretch;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero .lx-world__map {
  grid-column: 1;
  grid-row: 1;
  height: 100%;
  min-height: 0;
  max-height: none;
  align-self: stretch;
  container-type: size;
  --rmc-globe-landing-edge-pad: clamp(4px, 2.25%, 14px);
  background:
    radial-gradient(ellipse 92% 86% at 50% 48%, rgba(99, 102, 241, 0.11), transparent 58%),
    radial-gradient(ellipse 68% 62% at 46% 54%, rgba(16, 185, 129, 0.07), transparent 52%),
    radial-gradient(120% 110% at 42% 38%, rgba(16, 185, 129, 0.1), transparent 68%);
}
/* Non-deck landing: chrome rail hosts the glass dock (never sr-clip it). */
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"]:not([data-rmc-cp-globe-deck-v2="1"]) .lx-world--hero .lx-world__chrome-rail--stacked {
  display: flex !important;
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  overflow: visible;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"]:not([data-rmc-cp-globe-deck-v2="1"]) .lx-world--hero .lx-world__void-band {
  display: flex !important;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero .lx-world__glass-dock--stacked.lx-world__glass-dock--in-chrome {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero .lx-world__pulse-timeline {
  display: block;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world__void-band .rmc-cockpit-pulse__label {
  display: none;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world__void-band .rmc-cockpit-pulse-card {
  min-height: 58px;
  padding: 6px 8px;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world__void-explain.rmc-page-explain-strip {
  padding: 6px 10px;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero .lx-world__legend-panel {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  max-height: 100%;
  height: 100%;
  align-self: stretch;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero .lx-world__operator-guide {
  display: none;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero .lx-world__map::after {
  display: none;
}
/* Edge-to-edge globe mount — sizing via JS + 100% fallback (WebGL/arcs/wow untouched). */
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero .lx-world__globe-stage {
  align-items: stretch;
  justify-content: stretch;
  z-index: 0;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero #rmc-world-globe,
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero .lx-world__globe {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: none;
  max-width: none;
  max-height: none;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero .lx-world__svg-fallback {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: none;
  max-width: none;
  max-height: none;
}
[data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero.lx-world--hero {
  min-height: 0;
  max-height: 100%;
}
/* Hero stack (all manager landing pages using hero layout). */
.lx-world--hero .lx-world__chrome-rail--stacked {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  grid-column: 1;
  padding: 10px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 12, 20, 0.95); /* off-token-allow: rgba-decorative */
  pointer-events: auto;
}
/* Dock lives inside chrome-rail host — never sr-only clip interactive KPIs. */
.lx-world--hero .lx-world__glass-dock--stacked.lx-world__glass-dock--in-chrome {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.lx-world--hero .lx-world__chrome-rail-dock {
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}
.lx-world--hero .lx-world__glass-dock-chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  [data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] {
    --rmc-globe-landing-frame-height: clamp(360px, calc(100dvh - 10rem), 780px);
  }
  [data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] #master-card.lx-world--hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  [data-rmc-shell-main="control-plane"] .cp-layout[data-rmc-cp-globe-landing="1"] .lx-world--hero .lx-world__legend-panel {
    grid-column: 1;
    grid-row: 2;
    max-height: 11rem;
    height: auto;
  }
  .lx-world--hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(200px, 48vh) auto auto auto auto;
  }
  .lx-world--hero .lx-world__legend-panel {
    grid-column: 1;
    grid-row: 5;
    max-height: 240px;
  }
}
.rmc-cp-200x-landing > .lx-card,
.rmc-cp-200x-landing > .lx-slo,
.rmc-cp-200x-landing > .lx-forecast-section,
.rmc-cp-200x-landing > .lx-cols-2 {
  margin-bottom: 0;
}

/* ============================================================
   Shared luxury card chrome (used by elements 2 / 5 / 6 / 7 / 8)
   ============================================================ */
.lx-card {
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg, 16px);
  padding: 18px 20px;
  box-shadow: var(--elev-1);
  position: relative;
  overflow: hidden;
}
.lx-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.lx-card__eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-tertiary);
  font-weight: 700;
}
.lx-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0 0;
  letter-spacing: -0.01em;
}
.lx-card__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--text-secondary);
}
.lx-card__meta {
  font-size: 11px;
  color: var(--text-tertiary);
}


/* ============================================================
   Element 2 — Live world map
   ============================================================ */
.lx-world-lab {
  --rmc-globe-lab-card: #121829;
  --rmc-globe-lab-canvas: #0c101c;
  --rmc-globe-lab-glass: rgba(14, 18, 32, 0.72);
  display: grid;
  gap: 14px;
  color: var(--text-primary);
}
.lx-world-lab__header {
  display: grid;
  gap: 8px;
}
.lx-world-lab__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lx-world-lab__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}
.lx-world-lab__tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.15); /* off-token-allow: globe-preview-live-pill */
  color: #a5b4fc; /* off-token-allow: globe-preview-live-pill */
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.lx-world-lab__note {
  margin: 0;
  max-width: 920px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.lx-world-lab__ai-guide {
  display: grid;
  grid-template-columns: auto minmax(9rem, auto) minmax(12rem, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(196, 181, 253, 0.22); /* off-token-allow: globe-ai-guide */
  border-radius: var(--radius-md, 12px);
  background:
    linear-gradient(135deg, rgba(196, 181, 253, 0.1), rgba(16, 185, 129, 0.055)), /* off-token-allow: globe-ai-guide */
    rgba(12, 16, 28, 0.78); /* off-token-allow: globe-ai-guide */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025); /* off-token-allow: globe-ai-guide */
  backdrop-filter: blur(16px) saturate(140%);
}
.lx-world-lab__ai-guide strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lx-world-lab__ai-guide span:not(.lx-world-lab__tag) {
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lx-world-lab__ai-guide-btn {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.28); /* off-token-allow: globe-ai-guide */
  background: rgba(12, 16, 28, 0.86); /* off-token-allow: globe-ai-guide */
  color: var(--text-primary);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.lx-world-lab__ai-guide-btn:hover {
  border-color: rgba(196, 181, 253, 0.48); /* off-token-allow: globe-ai-guide */
  box-shadow: 0 0 18px rgba(196, 181, 253, 0.12); /* off-token-allow: globe-ai-guide */
}
@media (max-width: 980px) {
  .lx-world-lab__ai-guide {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .lx-world-lab__ai-guide span:not(.lx-world-lab__tag) {
    grid-column: 1 / -1;
    white-space: normal;
  }
}
@media (max-width: 560px) {
  .lx-world-lab__ai-guide {
    grid-template-columns: 1fr 1fr;
  }
  .lx-world-lab__ai-guide .lx-world-lab__tag,
  .lx-world-lab__ai-guide strong,
  .lx-world-lab__ai-guide span:not(.lx-world-lab__tag) {
    grid-column: 1 / -1;
  }
}
.lx-world-lab__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md, 12px);
  background: var(--rmc-globe-lab-glass);
  backdrop-filter: blur(16px) saturate(140%);
}
.lx-world-lab__controls label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(129, 140, 248, 0.38); /* off-token-allow: globe-preview-control-border */
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.08); /* off-token-allow: globe-preview-control-bg */
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.lx-world-lab__controls input {
  accent-color: #818cf8; /* off-token-allow: globe-preview-control-accent */
}
.lx-world-lab__sep {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: var(--hairline);
}
.lx-world-lab__btn {
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--rmc-globe-lab-canvas);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color var(--motion-fast, 180ms) var(--ease-out, ease-out),
    box-shadow var(--motion-fast, 180ms) var(--ease-out, ease-out),
    transform var(--motion-fast, 180ms) var(--ease-out, ease-out);
}
.lx-world-lab__btn:hover {
  border-color: rgba(129, 140, 248, 0.42); /* off-token-allow: globe-preview-control-hover */
  transform: translateY(-1px);
}
.lx-world-lab__btn--primary {
  background: rgba(129, 140, 248, 0.18); /* off-token-allow: globe-preview-primary-control */
  border-color: rgba(129, 140, 248, 0.45); /* off-token-allow: globe-preview-primary-control */
}
.lx-world-lab__btn--wow.on {
  background: rgba(251, 191, 36, 0.12); /* off-token-allow: globe-preview-wow-control */
  border-color: rgba(251, 191, 36, 0.5); /* off-token-allow: globe-preview-wow-control */
  color: #fde68a; /* off-token-allow: globe-preview-wow-control */
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.15); /* off-token-allow: globe-preview-wow-control */
}
.lx-world-lab--void-hidden .lx-world__void-zone {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.96);
}
.lx-world-lab--ai-hidden [data-rmc-globe-ai-block],
.lx-world-lab--ai-hidden .lx-world__void-zone--ai {
  display: none !important;
}
.lx-world-lab--wow-hidden .lx-world__void-zone--share,
.lx-world-lab--wow-hidden .lx-world__terminator,
.lx-world-lab--wow-hidden .lx-world__celebrate {
  display: none !important;
}
.lx-world-lab .lx-world__day-arc,
.lx-world-lab .lx-world__hero-metric,
.lx-world-lab .lx-world__orbit-chip {
  display: none !important;
}
.lx-world__glass-dock {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(680px, calc(100% - 250px));
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.16); /* off-token-allow: globe-command-dock */
  border-radius: 999px;
  background: rgba(9, 13, 24, 0.78); /* off-token-allow: globe-command-dock */
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32); /* off-token-allow: globe-command-dock */
  backdrop-filter: blur(18px) saturate(150%);
}
.lx-world__glass-dock-metric {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.lx-world__glass-dock-sep {
  flex: 0 0 1px;
  align-self: stretch;
  background: rgba(148, 163, 184, 0.16); /* off-token-allow: globe-command-dock */
}
.lx-world__glass-dock-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}
/* Scrollbar hide removed 2026-09-18 — this chip dock scrolls sideways and now
   shows the shared bar (audit/scrollbars_pass1.md §9 row 16). */
.lx-world__glass-dock-chip {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.22); /* off-token-allow: globe-command-dock */
  background: rgba(129, 140, 248, 0.075); /* off-token-allow: globe-command-dock */
  color: var(--text-primary);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.lx-world__glass-dock-chip.on,
.lx-world__glass-dock-chip.lx-world__legend-row--active,
.lx-world__glass-dock-chip.lx-world__status-chip--active,
.lx-world__glass-dock-chip:hover {
  border-color: rgba(110, 231, 183, 0.42); /* off-token-allow: globe-command-dock */
  background: rgba(16, 185, 129, 0.13); /* off-token-allow: globe-command-dock */
}
.lx-world__kbd-bar {
  position: absolute;
  z-index: 7;
  left: 14px;
  top: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: min(360px, 48%);
  pointer-events: none;
}
.lx-world__kbd-bar span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid rgba(148, 163, 184, 0.14); /* off-token-allow: globe-kbd-bar */
  border-radius: 999px;
  background: rgba(9, 13, 24, 0.68); /* off-token-allow: globe-kbd-bar */
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1;
  backdrop-filter: blur(12px);
}
.lx-world__kbd-bar kbd {
  min-width: 16px;
  padding: 2px 4px;
  border-radius: 5px;
  background: rgba(129, 140, 248, 0.16); /* off-token-allow: globe-kbd-bar */
  color: #c7d2fe; /* off-token-allow: globe-kbd-bar */
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}
.lx-world__icon-rail {
  position: absolute;
  z-index: 7;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
}
.lx-world__icon-rail-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16); /* off-token-allow: globe-icon-rail */
  background: rgba(9, 13, 24, 0.72); /* off-token-allow: globe-icon-rail */
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(14px);
}
.lx-world__icon-rail-btn:hover,
.lx-world__icon-rail-btn[aria-pressed="true"] {
  border-color: rgba(129, 140, 248, 0.5); /* off-token-allow: globe-icon-rail */
  background: rgba(129, 140, 248, 0.18); /* off-token-allow: globe-icon-rail */
}
.lx-world__pulse-timeline {
  grid-column: 1 / -1;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12); /* off-token-allow: globe-pulse-timeline */
  background: rgba(9, 13, 24, 0.58); /* off-token-allow: globe-pulse-timeline */
}
.lx-world__pulse-timeline-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.lx-world__pulse-timeline-evt {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(148, 163, 184, 0.12); /* off-token-allow: globe-pulse-timeline */
  border-radius: var(--radius-sm, 8px);
  background: rgba(15, 23, 42, 0.62); /* off-token-allow: globe-pulse-timeline */
}
.lx-world__pulse-timeline-evt time {
  display: block;
  margin-bottom: 3px;
  color: var(--text-tertiary);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lx-world__pulse-timeline-evt strong {
  display: block;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

/* Globe chrome rail + nexus interstitial (fills 88px void — design lab v2) */
.lx-world__map:has([data-rmc-globe-chrome-rail]) .lx-world__void-zone--chrome-rail-hide {
  display: none !important;
}
.lx-world__chrome-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(108px, 1fr) minmax(0, 2.2fr) minmax(108px, 1fr);
  gap: 8px;
  align-items: end;
  padding: 0 10px 8px;
  pointer-events: none;
}
.lx-world__chrome-rail > * {
  pointer-events: auto;
  min-width: 0;
}
.lx-world__chrome-rail-caption,
.lx-world__chrome-rail-whisper {
  position: static;
  max-width: none;
  margin: 0;
  font-size: 10px;
}
.lx-world__glass-dock--chrome-rail {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: min(92%, 640px);
  z-index: 7;
  margin: 0;
}
.lx-world__interstitial {
  grid-column: 1 / -1;
  position: relative;
  height: 88px;
  max-height: 88px;
  overflow: hidden;
  border-top: 1px solid rgba(148, 163, 184, 0.12); /* off-token-allow: globe-nexus-interstitial */
  background: rgba(9, 13, 22, 0.92); /* off-token-allow: globe-nexus-interstitial */
}
.lx-world__nexus {
  position: absolute;
  inset: 0;
  padding: 6px 10px;
  overflow: hidden;
}
.lx-world__nexus-aurora {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(99, 102, 241, 0.14),
    rgba(110, 231, 183, 0.1),
    rgba(196, 181, 253, 0.12)
  ); /* off-token-allow: decorative-gradient */
  background-size: 300% 100%;
  /* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
  animation: lx-nexus-aurora 14s linear infinite;
}
@keyframes lx-nexus-aurora {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.lx-world__nexus-ribbon {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  height: 100%;
}
.lx-world__nexus-context {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.lx-world__nexus-glyph {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(129, 140, 248, 0.35); /* off-token-allow: globe-nexus-glyph */
  background: rgba(129, 140, 248, 0.12); /* off-token-allow: globe-nexus-glyph */
  color: var(--brand, #818cf8);
  font-size: 14px;
}
.lx-world__nexus-context-copy strong {
  display: block;
  font-size: 11px;
  color: var(--text-primary);
}
.lx-world__nexus-context-copy span {
  display: block;
  font-size: 9px;
  color: var(--text-tertiary);
}
.lx-world__nexus-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lx-world__nexus-node {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16); /* off-token-allow: globe-nexus-node */
  background: rgba(15, 23, 42, 0.55); /* off-token-allow: globe-nexus-node */
  color: var(--text-secondary);
  font-size: 10px;
  text-decoration: none;
}
.lx-world__nexus-node--live {
  border-color: rgba(110, 231, 183, 0.45); /* off-token-allow: globe-nexus-node-live */
  color: #6ee7b7; /* off-token-allow: globe-nexus-node-live */
}
.lx-world__nexus-node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.lx-world__nexus-metrics {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.lx-world__nexus-metric {
  text-align: center;
  min-width: 34px;
}
.lx-world__nexus-metric-v {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}
.lx-world__nexus-metric-k {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

/* ── Void band — original explain strip + platform pulse (balanced, full width) ── */
.lx-world__void-band {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 64%);
  gap: 10px;
  align-items: stretch;
  min-height: 84px;
  max-height: 96px;
  padding: 8px 10px;
  border-top: 1px solid var(--hairline);
  background: var(--surface-canvas);
}
.lx-world--hero:has(.lx-world__chrome-rail--stacked) .lx-world__void-band {
  grid-column: 1;
}
.lx-world__void-band__explain {
  min-width: 0;
  display: flex;
  align-items: stretch;
}
.lx-world__void-explain.rmc-page-explain-strip {
  margin: 0;
  width: 100%;
  height: 100%;
  padding: 8px 12px;
  align-items: center;
  flex-wrap: nowrap;
  border-radius: var(--radius-md, 8px);
  background: var(--surface-elevated);
}
.lx-world__void-explain.rmc-page-explain-strip--flow .rmc-page-explain-strip__lead {
  min-width: 0;
}
.lx-world__void-explain .rmc-page-explain-strip__title {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lx-world__void-explain .rmc-page-explain-strip__next {
  flex-shrink: 0;
  padding: 6px 10px;
}
.lx-world__void-band__pulse {
  min-width: 0;
  display: flex;
  align-items: stretch;
}
.lx-world__void-band .rmc-cockpit-pulse {
  margin: 0;
  width: 100%;
  height: 100%;
  gap: 6px;
  justify-content: center;
}
.lx-world__void-band .rmc-cockpit-pulse__label {
  flex-shrink: 0;
  font-size: 9px;
  margin: 0;
  letter-spacing: 0.08em;
}
.lx-world__void-band .rmc-cockpit-pulse__cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  min-height: 0;
  min-width: 0;
}
.lx-world__void-band .rmc-cockpit-pulse-card {
  height: 100%;
  min-height: 72px;
  padding: 8px 10px;
  gap: 4px;
  justify-content: space-between;
}
.lx-world__void-band .rmc-cockpit-pulse-card__value {
  font-size: 18px;
  line-height: 1.1;
}
.lx-world__void-band .rmc-cockpit-pulse-card__head {
  font-size: 9px;
}
.lx-world__void-band .rmc-cockpit-pulse-card__label {
  font-size: 10px;
  line-height: 1.2;
}
.lx-world__void-band .rmc-cockpit-pulse-card__delta,
.lx-world__void-band .rmc-cockpit-pulse-card__spark,
.lx-world__void-band .rmc-cockpit-pulse-card__status-row {
  display: none;
}
@media (max-width: 1100px) {
  .lx-world__void-band {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 8px;
  }
  .lx-world__void-band .rmc-cockpit-pulse__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .lx-world__void-band .rmc-cockpit-pulse__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@keyframes lx-prism-mesh-drift {
  0% { transform: translate(-2%, 0) scale(1); }
  100% { transform: translate(3%, -4%) scale(1.08); }
}
@keyframes lx-prism-edge-flow {
  to { background-position: 200% 0; }
}
@keyframes lx-prism-lens-spin {
  to { transform: rotate(360deg); }
}
@keyframes lx-prism-beacon {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(110, 231, 183, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); }
}
.lx-world__holo-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  flex: 1;
  min-width: 0;
  height: 68px;
  padding: 4px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09); /* off-token-allow: white-overlay */
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(99, 102, 241, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.28) 100%); /* off-token-allow: decorative-gradient */
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 24px rgba(0, 0, 0, 0.25);
}
.lx-world__holo-strip-sweep {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.09) 50%, transparent 62%); /* off-token-allow: decorative-gradient */
  transform: translateX(-130%);
  /* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
  animation: lx-prism-holo-sweep 6s ease-in-out infinite;
}
@keyframes lx-prism-holo-sweep {
  0%, 75% { transform: translateX(-130%); opacity: 0; }
  80% { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}
.lx-world__holo-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
  padding: 4px 3px 3px;
  border: 1px solid rgba(255, 255, 255, 0.06); /* off-token-allow: white-overlay */
  border-radius: 8px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(129, 140, 248, 0.08), transparent 60%),
    rgba(8, 12, 22, 0.55); /* off-token-allow: decorative-gradient */
  cursor: pointer;
  font: inherit;
  color: inherit;
  overflow: hidden;
  transition: transform 0.22s var(--ease-out, ease), box-shadow 0.22s var(--ease-out, ease), border-color 0.22s var(--ease-out, ease);
}
.lx-world__holo-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 65%); /* off-token-allow: decorative-gradient */
  transition: opacity 0.22s var(--ease-out, ease);
  pointer-events: none;
}
.lx-world__holo-cell:hover,
.lx-world__holo-cell:focus-visible,
.lx-world__holo-cell--focus {
  z-index: 2;
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(129, 140, 248, 0.35); /* off-token-allow: rgba-decorative */
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 20px rgba(129, 140, 248, 0.12);
}
.lx-world__holo-cell:hover::after,
.lx-world__holo-cell--focus::after { opacity: 1; }
.lx-world__holo-cell--ok { --lx-holo-accent: #22c55e; --lx-holo-glow: rgba(34, 197, 94, 0.35); }
.lx-world__holo-cell--warn { --lx-holo-accent: #f59e0b; --lx-holo-glow: rgba(245, 158, 11, 0.4); }
.lx-world__holo-cell--muted { --lx-holo-accent: #64748b; --lx-holo-glow: rgba(100, 116, 139, 0.2); }
.lx-world__holo-cell--focus.lx-world__holo-cell--ok,
.lx-world__holo-cell--focus.lx-world__holo-cell--warn {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 18px var(--lx-holo-glow);
  border-color: color-mix(in srgb, var(--lx-holo-accent) 50%, transparent);
}
.lx-world__holo-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  margin-bottom: 1px;
  position: relative;
  z-index: 1;
}
.lx-world__holo-cell-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--lx-holo-accent, #64748b);
  box-shadow: 0 0 5px var(--lx-holo-glow, transparent);
}
.lx-world__holo-cell-head {
  flex: 1;
  min-width: 0;
  font-size: 5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.lx-world__holo-cell-v-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  min-height: 17px;
}
.lx-world__holo-cell-v {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.lx-world__holo-cell--ok .lx-world__holo-cell-v { color: #6ee7b7; /* off-token-allow: hex-literal-decorative */ text-shadow: 0 0 14px rgba(110, 231, 183, 0.35); }
.lx-world__holo-cell--warn .lx-world__holo-cell-v { color: #fcd34d; /* off-token-allow: hex-literal-decorative */ font-size: 12px; text-shadow: 0 0 14px rgba(245, 158, 11, 0.3); }
.lx-world__holo-cell--muted .lx-world__holo-cell-v { color: #94a3b8; /* off-token-allow: hex-literal-decorative */ font-size: 14px; }
.lx-world__holo-cell-delta {
  font-size: 5px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1.2;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lx-world__holo-cell-delta--up { color: #6ee7b7; /* off-token-allow: hex-literal-decorative */ background: rgba(6, 18, 14, 0.9); /* off-token-allow: rgba-decorative */ }
.lx-world__holo-cell-delta--down { color: #fca5a5; /* off-token-allow: hex-literal-decorative */ background: rgba(24, 8, 8, 0.9); /* off-token-allow: rgba-decorative */ }
.lx-world__holo-cell-delta--flat { color: var(--text-tertiary); opacity: 0.7; }
.lx-world__holo-cell-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px;
  margin-top: 1px;
  min-height: 12px;
}
.lx-world__holo-cell-sub {
  font-size: 5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}
.lx-world__holo-cell-spark {
  width: 100%;
  max-width: 34px;
  height: 11px;
  flex-shrink: 0;
  opacity: 0.85;
}
.lx-world__holo-cell-spark polyline {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: lx-prism-spark-draw var(--dur-slow, 400ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}
.lx-world__holo-cell-spark .lx-world__holo-spark-fill { opacity: 0.22; }
.lx-world__holo-strip .lx-world__holo-cell:nth-child(2) .lx-world__holo-cell-spark polyline { animation-delay: 0.08s; }
.lx-world__holo-strip .lx-world__holo-cell:nth-child(3) .lx-world__holo-cell-spark polyline { animation-delay: 0.16s; }
.lx-world__holo-strip .lx-world__holo-cell:nth-child(4) .lx-world__holo-cell-spark polyline { animation-delay: 0.24s; }
.lx-world__holo-strip .lx-world__holo-cell:nth-child(5) .lx-world__holo-cell-spark polyline { animation-delay: 0.32s; }
.lx-world__holo-strip .lx-world__holo-cell:nth-child(6) .lx-world__holo-cell-spark polyline { animation-delay: 0.4s; }
.lx-world__holo-strip .lx-world__holo-cell:nth-child(7) .lx-world__holo-cell-spark polyline { animation-delay: 0.48s; }
@keyframes lx-prism-spark-draw { to { stroke-dashoffset: 0; } }
.lx-world__holo-cell--focus .lx-world__holo-cell-spark { filter: drop-shadow(0 0 4px var(--lx-holo-glow)); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .lx-world__holo-strip-sweep,
  .lx-world__holo-cell-spark polyline {
    animation: none;
  }
  .lx-world__holo-cell:hover,
  .lx-world__holo-cell--focus { transform: none; }
  .lx-world__holo-cell-spark polyline { stroke-dashoffset: 0; }
}
@media (max-width: 900px) {
  .lx-world__holo-strip {
    height: 56px;
  }
}

@media (max-width: 720px) {
  .lx-world__nexus-ribbon {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .lx-world__chrome-rail {
    grid-template-columns: 1fr;
    padding-bottom: 72px;
  }
  .lx-world__glass-dock--chrome-rail {
    width: calc(100% - 20px);
  }
}

@media (max-width: 980px) {
  .lx-world__glass-dock {
    width: calc(100% - 28px);
    bottom: 8px;
  }
  .lx-world__kbd-bar {
    max-width: calc(100% - 72px);
  }
}
@media (max-width: 720px) {
  .lx-world__glass-dock {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    margin: 8px 10px 10px;
    border-radius: var(--radius-sm, 8px);
  }
  .lx-world__glass-dock-sep {
    display: none;
  }
  .lx-world__icon-rail {
    right: 8px;
    gap: 6px;
  }
  .lx-world__icon-rail-btn {
    width: 28px;
    height: 28px;
  }
  .lx-world__kbd-bar {
    display: none;
  }
  .lx-world__pulse-timeline {
    padding-inline: 10px;
  }
}
.lx-world-lab #rmc-world-globe-wow-demo,
.lx-world-lab #rmc-world-globe-snapshot-export,
.lx-world-lab #rmc-world-globe-tour-stop,
.lx-world-lab #rmc-world-globe-tour-narrator-wrap {
  display: none !important;
}
.lx-world {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.82fr);
  gap: 20px;
  align-items: stretch;
  min-width: 0;
  padding: 24px 26px;
  background:
    radial-gradient(960px 480px at 100% 0%, rgba(99,102,241,0.12), transparent 62%), /* off-token-allow: dark-chrome-world-glow */
    radial-gradient(720px 420px at 0% 100%, rgba(16,185,129,0.07), transparent 60%), /* off-token-allow: dark-chrome-world-glow */
    var(--surface-elevated);
}
/* Phase A — hero layout: globe column + legend column (no overlap). */
.lx-world--hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(320px, 34%);
  gap: 0;
  padding: 0;
  min-height: 520px;
  overflow: hidden;
  align-items: stretch;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg, 16px);
  background: var(--rmc-globe-lab-card, var(--surface-elevated));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45), /* off-token-allow: globe-preview-master-card-shadow */
    inset 0 0 0 1px rgba(255, 255, 255, 0.03); /* off-token-allow: globe-preview-master-card-shadow */
}
.lx-world--hero .lx-world__map {
  grid-column: 1;
  grid-row: 1;
  min-height: 520px;
  height: min(72vh, 640px);
  max-height: 640px;
  border-radius: var(--radius-lg, 16px) 0 0 var(--radius-lg, 16px);
  background: radial-gradient(120% 110% at 42% 38%, rgba(99,102,241,0.16), transparent 68%); /* off-token-allow: dark-chrome-world-panel */
}
/* Hero stack — map → chrome rail → 96px prism → 6D timeline (approval mock order). */
.lx-world--hero:has(.lx-world__chrome-rail--stacked) {
  grid-template-rows: minmax(180px, 1fr) auto auto auto;
  min-height: 0;
  max-height: min(78vh, 680px);
}
.lx-world--hero:has(.lx-world__chrome-rail--stacked) .lx-world__map {
  height: 100%;
  min-height: 180px;
  max-height: none;
  border-radius: var(--radius-lg, 16px) 0 0 0;
}
.lx-world--hero:has(.lx-world__chrome-rail--stacked) .lx-world__legend-panel {
  grid-row: 1 / -1;
}
.lx-world--hero:has(.lx-world__chrome-rail--stacked) .lx-world__chrome-rail--stacked {
  grid-row: 2;
}
.lx-world--hero:has(.lx-world__chrome-rail--stacked) .lx-world__void-band {
  grid-column: 1;
  grid-row: 3;
}
.lx-world--hero:has(.lx-world__chrome-rail--stacked) .lx-world__pulse-timeline {
  grid-column: 1;
  grid-row: 4;
}
.lx-world--hero .lx-world__globe,
.lx-world--hero .lx-world__globe-skeleton {
  inset: 0;
}
.lx-world--hero .lx-world__legend-panel {
  position: relative;
  top: auto;
  right: auto;
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
  width: auto;
  height: 100%;
  max-height: none;
  margin: 0;
  align-self: stretch;
  border-radius: 0 var(--radius-lg, 16px) var(--radius-lg, 16px) 0;
  border-left: 1px solid var(--hairline);
  box-shadow: none;
  backdrop-filter: none;
  background: color-mix(in srgb, var(--rmc-globe-lab-card, var(--surface-elevated)) 96%, transparent);
  padding: 18px 20px;
  overflow-y: auto;
}
.lx-world--side {
  /* legacy side-by-side — grid above */
}
/* FIX(world-map leak): bound the map cell. Its height tracks the legend column
   (grid stretch) + a sane floor/ceiling — NOT the SVG's intrinsic aspect ratio,
   which ballooned to ~380px on the wide manager canvas and covered the forecast
   lane + graphs below, squishing the Platform-Pulse cards.
   v4.02.x presence pass: raised the floor 200→300 and ceiling 320→480 so the
   globe commands the canvas even on a small fleet (few legend rows). The SVG
   stays absolutely-positioned (below) so a taller floor can never re-introduce
   the leak — the cell still bounds the SVG, never the reverse. */
.lx-world__map {
  position: relative;
  min-width: 0;
  min-height: 420px;
  max-height: 620px;
  align-self: stretch;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  background: radial-gradient(130% 130% at 50% 0%, rgba(99,102,241,0.10), transparent 70%); /* off-token-allow: dark-chrome-world-panel */
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    inset 0 -56px 96px -48px rgba(0,0,0,0.45); /* off-token-allow: dark-chrome-world-panel-vignette */
}
.lx-world__globe-skeleton {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  opacity: 1;
  transition: opacity var(--motion-fast, 180ms) var(--ease-out, ease-out);
}
.lx-world__map:has(.lx-world__globe-stage.lx-world__globe--webgl-ready) .lx-world__globe-skeleton,
.lx-world__map:has(.lx-world__globe-stage.lx-world__globe--fallback) .lx-world__globe-skeleton,
.lx-world__map:has(.lx-world__globe--webgl-ready) .lx-world__globe-skeleton,
.lx-world__map:has(.lx-world__globe--fallback) .lx-world__globe-skeleton {
  opacity: 0;
  pointer-events: none;
}
.lx-world__globe-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--motion-normal, 280ms) var(--ease-out, ease-out);
}
.lx-world__globe-stage.lx-world__globe--webgl-ready,
.lx-world__globe-stage.lx-world__globe--fallback,
.lx-world__globe {
  opacity: 1;
}
.lx-world__globe--webgl-ready,
.lx-world__globe--fallback {
  opacity: 1;
}
.lx-world__map-chrome {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.lx-world__globe-mode-toggle {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface-elevated) 92%, transparent);
  overflow: hidden;
}
.lx-world__globe-mode-btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  line-height: 1.2;
}
.lx-world__globe-mode-btn + .lx-world__globe-mode-btn {
  border-left: 1px solid var(--hairline);
}
.lx-world__globe-mode-btn.on {
  color: rgba(110, 231, 183, 0.95); /* off-token-allow: dark-chrome-world-freshness-ink */
  background: rgba(52, 211, 153, 0.12); /* off-token-allow: dark-chrome-world-mode-active */
}
.lx-world__globe-mode-btn[data-rmc-globe-mode="offline"].on {
  color: rgba(251, 191, 36, 0.95); /* off-token-allow: dark-chrome-world-offline-ink */
  background: rgba(251, 191, 36, 0.1); /* off-token-allow: dark-chrome-world-offline-active */
}
.lx-world__globe-mode-btn:focus-visible {
  outline: 2px solid var(--color-primary-500, #6366f1);
  outline-offset: 1px;
}
.lx-world__freshness {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 8px);
  background: color-mix(in srgb, var(--surface-elevated) 90%, transparent);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
}
.lx-world__freshness--live {
  color: rgba(110, 231, 183, 0.95); /* off-token-allow: dark-chrome-world-freshness-ink */
  border-color: rgba(52, 211, 153, 0.35); /* off-token-allow: dark-chrome-world-freshness-border */
}
.lx-world__freshness--live::before {
  content: "● ";
  /* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
  animation: lx-world-presence-blink 1.2s ease infinite;
}
.lx-world--wow-on .lx-world__map-chrome--wow-hide {
  display: none;
}
.lx-world__wow-demo-btn.on {
  border-color: rgba(251, 191, 36, 0.5); /* off-token-allow: rgba-decorative */
  color: #fde68a; /* off-token-allow: hex-literal-decorative */
  background: rgba(251, 191, 36, 0.12); /* off-token-allow: rgba-decorative */
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.15);
}
.lx-world__block-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lx-world__block-badge--data {
  background: rgba(110, 231, 183, 0.12); /* off-token-allow: rgba-decorative */
  color: var(--good, #6ee7b7);
}
.lx-world__block-badge--ai {
  background: rgba(196, 181, 253, 0.15); /* off-token-allow: rgba-decorative */
  color: #c4b5fd; /* off-token-allow: hex-literal-decorative */
}
.lx-world__ai-brief-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  font-weight: 700;
  margin-bottom: 8px;
}
.lx-world__delta-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.14); /* off-token-allow: rgba-decorative */
  color: var(--good, #6ee7b7);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.lx-world__delta-badge--down {
  background: rgba(253, 164, 175, 0.14); /* off-token-allow: rgba-decorative */
  color: #fda4af; /* off-token-allow: hex-literal-decorative */
}
.lx-world--wow-on .lx-world__tour-caption:not(:empty) {
  display: none;
}
.lx-world__tour-controls {
  display: flex;
  gap: 6px;
}
.lx-world__tour-btn {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--hairline);
  background: var(--surface-canvas);
  color: var(--text-primary);
  cursor: pointer;
}
.lx-world__tour-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  max-width: min(420px, 70%);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm, 8px);
  background: color-mix(in srgb, var(--surface-elevated) 88%, transparent);
  border: 1px solid var(--hairline);
}
/* Void zones A–D + fleet aurora (globe elevation wave) — lab parity (globe-void-ai-lab) */
.lx-world__void-zone {
  position: absolute;
  z-index: 6;
  max-width: min(220px, 42%);
  padding: 8px 11px;
  border-radius: var(--radius-sm, 8px);
  font-size: 10px;
  line-height: 1.4;
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35); /* off-token-allow: dark-chrome-world-void-zone-shadow */
  pointer-events: none;
  transition:
    opacity var(--motion-normal, 280ms) var(--ease-out, ease-out),
    transform var(--motion-fast, 180ms) var(--ease-out, ease-out);
}
.lx-world__void-zone--ui {
  border-color: rgba(129, 140, 248, 0.35); /* off-token-allow: rgba-decorative */
  background: rgba(10, 14, 26, 0.82); /* off-token-allow: dark-chrome-world-void-ui */
}
.lx-world__void-zone--data {
  border-color: rgba(110, 231, 183, 0.35); /* off-token-allow: rgba-decorative */
  background: rgba(6, 18, 14, 0.82); /* off-token-allow: dark-chrome-world-void-data */
}
.lx-world__void-zone--ai {
  border-color: rgba(196, 181, 253, 0.35); /* off-token-allow: rgba-decorative */
  background: rgba(18, 12, 32, 0.85); /* off-token-allow: dark-chrome-world-void-ai */
}
.lx-world__void-zone--wow {
  border-color: rgba(251, 191, 36, 0.4); /* off-token-allow: rgba-decorative */
  background: rgba(24, 18, 6, 0.88); /* off-token-allow: dark-chrome-world-void-wow */
}
.lx-world__void-zone b {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 700;
}
.lx-world__void-zone--ui b { color: var(--brand, #818cf8); }
.lx-world__void-zone--data b { color: var(--good, #6ee7b7); }
.lx-world__void-zone--ai b { color: #c4b5fd; /* off-token-allow: hex-literal-decorative */ }
.lx-world__void-zone--wow b { color: #fcd34d; /* off-token-allow: hex-literal-decorative */ }
.lx-world__void-zone--tr { top: 14px; right: 14px; }
.lx-world__void-zone--mr { top: 42%; right: 10px; max-width: 160px; }
.lx-world__void-zone--bl { bottom: 14px; left: 14px; max-width: 240px; }
.lx-world__void-zone--br { bottom: 14px; right: 14px; max-width: 190px; }
.lx-world__void-zone--share {
  top: 14px;
  right: 14px;
  opacity: 0;
  pointer-events: none;
}
.lx-world--wow-on .lx-world__void-zone--share {
  opacity: 1;
}
.lx-world--wow-on .lx-world__void-zone--tr:not(.lx-world__void-zone--share) {
  top: 58px;
}
.lx-world__presence {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 9px;
  color: var(--good, #6ee7b7);
}
.lx-world__presence--wow { display: none; }
.lx-world--wow-on .lx-world__presence--wow { display: inline-flex; }
.lx-world__presence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good, #6ee7b7);
  box-shadow: 0 0 8px var(--good, #6ee7b7);
  /* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
  animation: lx-world-presence-blink 2s ease infinite;
}
@keyframes lx-world-presence-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.lx-world--surface-elevated .lx-world__map {
  box-shadow:
    inset 0 0 calc(20px + (var(--rmc-globe-elevation-level, 1) * 4px)) rgba(99, 102, 241, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.34); /* off-token-allow: globe-surface-elevation */
}
.lx-world--surface-elevated[data-rmc-globe-elevation-state="warn"] .lx-world__map {
  box-shadow:
    inset 0 0 calc(22px + (var(--rmc-globe-elevation-level, 1) * 5px)) rgba(251, 191, 36, 0.14),
    0 18px 42px rgba(0, 0, 0, 0.34); /* off-token-allow: globe-surface-elevation */
}
.lx-world__celebrate {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good, #6ee7b7);
  opacity: 0;
}
.lx-world__celebrate--pop {
  animation: lx-world-celebrate var(--dur-slow, 400ms) var(--ease-out, ease-out) forwards;
}
@keyframes lx-world-celebrate {
  0% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.6); }
  100% { opacity: 0; transform: scale(4); box-shadow: 0 0 40px 20px rgba(110, 231, 183, 0); }
}
.lx-world__delta-badge {
  margin-left: 6px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.15); /* off-token-allow: rgba-decorative */
  color: var(--good, #6ee7b7);
  vertical-align: middle;
}
.lx-world__delta-badge--down {
  background: rgba(253, 164, 175, 0.15); /* off-token-allow: rgba-decorative */
  color: #fda4af; /* off-token-allow: hex-literal-decorative */
}
.lx-world__fleet-pulse-item--flash {
  animation: lx-world-pulse-flash var(--dur-slow, 400ms) var(--ease-out, ease-out);
}
@keyframes lx-world-pulse-flash {
  from { background: rgba(110, 231, 183, 0.12); /* off-token-allow: rgba-decorative */ }
  to { background: transparent; }
}
.lx-world__expansion-radar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.lx-world__expansion-radar-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.lx-world__expansion-radar-copy {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.lx-world__freshness--live::before {
  content: "● ";
  /* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
  animation: lx-world-presence-blink 1.2s ease infinite;
}
.lx-world__map-chrome { z-index: 5; }
.lx-world__map.lx-world__map--aurora-warn {
  background: radial-gradient(120% 110% at 42% 38%, rgba(251,191,36,0.14), transparent 68%),
    radial-gradient(80% 60% at 30% 70%, rgba(252,211,77,0.06), transparent 55%); /* off-token-allow: dark-chrome-world-aurora-warn */
}
.lx-world__map.lx-world__map--aurora-good {
  background: radial-gradient(120% 110% at 42% 38%, rgba(16,185,129,0.1), transparent 68%); /* off-token-allow: dark-chrome-world-aurora-good */
}
.lx-world__map.lx-world__map--aurora-danger {
  background: radial-gradient(120% 110% at 42% 38%, rgba(244,114,182,0.12), transparent 68%); /* off-token-allow: dark-chrome-world-aurora-danger */
}
.lx-world__count.lx-world__count--bump {
  color: var(--good, #6ee7b7);
  animation: lx-world-count-bump var(--dur-slow, 400ms) var(--ease-out, ease-out);
}
@keyframes lx-world-count-bump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.06); }
}
.lx-world__fleet-pulse {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.lx-world__fleet-pulse-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.lx-world__fleet-pulse-item {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  gap: 8px;
}
.lx-world__fleet-pulse-item:last-child { border-bottom: 0; }
.lx-world__fleet-pulse-item time {
  color: var(--text-tertiary);
  font-size: 10px;
  min-width: 28px;
}
.lx-world__ai-brief {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(196,181,253,0.22); /* off-token-allow: rgba-decorative */
  background: color-mix(in srgb, rgba(196,181,253,0.08) 60%, transparent); /* off-token-allow: rgba-decorative */
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.lx-world__ai-brief strong { color: var(--text-primary); }
.lx-world__ask-fleet {
  margin-top: 8px;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 11px;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--hairline);
  background: var(--surface-canvas, #0c101c);
  color: var(--text-primary);
  cursor: pointer;
}
.lx-world__ask-fleet:hover {
  border-color: rgba(196,181,253,0.35); /* off-token-allow: rgba-decorative */
}
.lx-world__operator-guide--compact .lx-world__operator-guide-list { display: none; }
.lx-world__operator-guide--compact.is-expanded .lx-world__operator-guide-list { display: grid; }
.lx-world__guide-toggle {
  font-size: 11px;
  color: var(--brand, #818cf8);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.lx-world__globe-stage.lx-world__globe--revealed {
  animation: lx-world-globe-reveal var(--dur-slow, 400ms) var(--ease-out, ease-out);
}
@keyframes lx-world-globe-reveal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lx-world__globe-stage.lx-world__globe--revealed { animation: none; }
  .lx-world__count.lx-world__count--bump { animation: none; }
  .lx-world__globe.lx-world__globe--pulse { animation: none; }
}
.lx-world__globe.lx-world__globe--pulse {
  animation: lx-world-globe-reveal var(--dur-slow, 400ms) var(--ease-out, ease-out);
}
.lx-world__terminator {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.5;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.78) 0%,
    rgba(15, 23, 42, 0.78) calc(var(--rmc-terminator-x, 50%) - 10%),
    rgba(110, 231, 183, 0.28) calc(var(--rmc-terminator-x, 50%) - 3%),
    rgba(253, 224, 71, 0.42) var(--rmc-terminator-x, 50%),
    rgba(110, 231, 183, 0.22) calc(var(--rmc-terminator-x, 50%) + 3%),
    rgba(15, 23, 42, 0.78) calc(var(--rmc-terminator-x, 50%) + 10%),
    rgba(15, 23, 42, 0.78) 100%
  );
  mix-blend-mode: soft-light;
  z-index: 2;
  transition: opacity var(--motion-normal, 280ms) var(--ease-out, ease-out);
}
.lx-world__map[data-rmc-day-phase="day"] .lx-world__terminator {
  opacity: 0.38;
}
.lx-world__map[data-rmc-day-phase="night"] .lx-world__terminator {
  opacity: 0.58;
}
.lx-world__celestial {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  border-radius: 50%;
  transform: translateZ(0);
  transition: left var(--motion-slow, 400ms) var(--ease-out, ease-out), top var(--motion-slow, 400ms) var(--ease-out, ease-out);
}
.lx-world__celestial--sun {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 35% 35%, #fff7c2, #fde047 42%, #f59e0b 100%); /* off-token-allow: celestial-sun-glow */
  box-shadow:
    0 0 22px rgba(253, 224, 71, 0.75),
    0 0 48px rgba(251, 191, 36, 0.35); /* off-token-allow: celestial-sun-glow */
}
.lx-world__celestial--moon {
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 30% 30%, #f8fafc, #cbd5e1 55%, #64748b 100%); /* off-token-allow: celestial-moon-glow */
  box-shadow:
    0 0 14px rgba(203, 213, 225, 0.55),
    inset -3px -2px 4px rgba(15, 23, 42, 0.35); /* off-token-allow: celestial-moon-glow */
}
.lx-world__globe-sun,
.lx-world__globe-moon {
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.lx-world__globe-sun {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 35% 35%, #fff7c2, #fde047 45%, #f59e0b); /* off-token-allow: celestial-sun-glow */
  box-shadow: 0 0 18px rgba(253, 224, 71, 0.8); /* off-token-allow: celestial-sun-glow */
}
.lx-world__globe-moon {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #f8fafc, #94a3b8 70%); /* off-token-allow: celestial-moon-glow */
  box-shadow: 0 0 12px rgba(203, 213, 225, 0.65); /* off-token-allow: celestial-moon-glow */
}
.lx-world__tour-narrator-optin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 4px;
  cursor: pointer;
  user-select: none;
}
.lx-world__tour-narrator-optin input {
  accent-color: var(--brand, #818cf8);
}
.lx-world__operator-guide {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 11px;
  color: var(--text-secondary);
}
.lx-world__operator-guide-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.lx-world__operator-guide-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 4px;
}
.lx-world__legend-row {
  cursor: pointer;
  transition: background var(--motion-fast, 180ms) var(--ease-out, ease-out);
}
.lx-world__legend-row--active,
.lx-world__legend-row:hover,
.lx-world__legend-row:focus-visible {
  background: color-mix(in srgb, var(--surface-elevated) 85%, rgba(99, 102, 241, 0.25));
  border-color: rgba(99, 102, 241, 0.45); /* off-token-allow: rgba-decorative */
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  outline: none;
}
.lx-world__status-chip {
  cursor: pointer;
  transition: box-shadow var(--motion-fast, 180ms) var(--ease-out, ease-out);
}
.lx-world__status-chip--active {
  box-shadow: inset 0 0 0 1px rgba(99,102,241,0.45);
}
.lx-world__stream-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  padding: 9px 0 2px;
  border-top: 1px solid rgba(148, 163, 184, 0.12); /* off-token-allow: globe-stream-key */
  color: var(--text-tertiary);
  font-size: 10px;
  line-height: 1.2;
}
.lx-world__stream-key-title {
  flex-basis: 100%;
  color: var(--text-secondary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lx-world__stream-key span:not(.lx-world__stream-key-title) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
}
.lx-world__stream-swatch {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  box-shadow: 0 0 10px currentColor;
}
.lx-world__stream-swatch--command {
  background: rgba(129, 140, 248, 0.92); /* off-token-allow: globe-stream-key */
  color: rgba(129, 140, 248, 0.6); /* off-token-allow: globe-stream-key */
}
.lx-world__stream-swatch--hours {
  background: rgba(252, 211, 77, 0.92); /* off-token-allow: globe-stream-key */
  color: rgba(252, 211, 77, 0.58); /* off-token-allow: globe-stream-key */
}
.lx-world__stream-swatch--ai {
  background: rgba(103, 232, 249, 0.86); /* off-token-allow: globe-stream-key */
  color: rgba(103, 232, 249, 0.52); /* off-token-allow: globe-stream-key */
}
.lx-world__stream-swatch--data {
  background: rgba(110, 231, 183, 0.82); /* off-token-allow: globe-stream-key */
  color: rgba(110, 231, 183, 0.5); /* off-token-allow: globe-stream-key */
}
.lx-world__sheet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lx-world__sheet-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
/* FIX(world-map leak): absolutely-position the SVG so it FILLS the bounded cell
   instead of driving its height. Globe canvas uses the same contract. */
.lx-world__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lx-world__svg-land {
  fill: rgba(148, 163, 184, 0.11); /* off-token-allow: dark-chrome-world-landmass-fill */
  stroke: rgba(99, 102, 241, 0.22); /* off-token-allow: dark-chrome-world-landmass-stroke */
  stroke-width: 0.6;
  transition: fill var(--motion-fast, 180ms) var(--ease-out, ease-out),
    opacity var(--motion-fast, 180ms) var(--ease-out, ease-out);
}
.lx-world__svg-region-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: fill var(--motion-fast, 180ms) var(--ease-out, ease-out),
    opacity var(--motion-fast, 180ms) var(--ease-out, ease-out);
}
.lx-world__svg-region-label--active {
  font-weight: 700;
}
.lx-world__svg-country-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.01em;
  pointer-events: none;
  transition: opacity var(--motion-fast, 180ms) var(--ease-out, ease-out);
}
.lx-world__dot-group {
  transition: opacity var(--motion-fast, 180ms) var(--ease-out, ease-out);
}
.lx-world__globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lx-world__globe canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}
.lx-world__globe-stage:has(.lx-world__globe[data-rmc-world-globe-inited="1"]):not(.lx-world__globe--offline):not([data-rmc-globe-mode="svg-offline"]) .lx-world__svg-fallback {
  display: none;
}
.lx-world__globe-stage.lx-world__globe--offline .lx-world__svg-fallback,
.lx-world__globe-stage[data-rmc-globe-mode="svg-offline"] .lx-world__svg-fallback,
.lx-world__globe--offline .lx-world__svg-fallback,
.lx-world__globe[data-rmc-globe-mode="svg-offline"] .lx-world__svg-fallback {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1;
}
.lx-world__globe-stage.lx-world__globe--offline .lx-world__globe canvas,
.lx-world__globe-stage[data-rmc-globe-mode="svg-offline"] .lx-world__globe canvas,
.lx-world__globe--offline canvas,
.lx-world__globe[data-rmc-globe-mode="svg-offline"] canvas {
  display: none !important;
}
.lx-world__globe-tip {
  padding: 6px 10px;
  border-radius: var(--radius-sm, 8px);
  background: var(--rmc-cockpit-chrome-surface, #0f1530); /* off-token-allow: dark-chrome-globe-tooltip */
  border: 1px solid var(--hairline);
  color: var(--text-primary, #f8fafc);
  font-size: 11px;
  line-height: 1.35;
  box-shadow: var(--elev-2, 0 8px 24px rgba(0, 0, 0, 0.35));
}
.lx-world__globe-tip strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}
.lx-world__globe-tip-meta {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-tertiary, #94a3b8);
  letter-spacing: 0.02em;
}
.lx-world__globe-tip span {
  color: var(--text-secondary, #94a3b8);
}
.lx-world__offline-note {
  margin-top: var(--space-2, 0.5rem);
  color: var(--text-secondary, #94a3b8);
}
.lx-world__legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.lx-world__count {
  /* v4.02.x presence pass: dramatized the mega-number (was a flat 38px) so the
     live footprint count carries the same weight the mock implied. */
  font-size: clamp(46px, 4.2vw, 62px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--text-primary);
}
.lx-world__count-suffix {
  font-size: 15px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.lx-world__count-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.lx-world__legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm, 8px);
  background: var(--surface-canvas);
  border: 1px solid var(--hairline);
}
.lx-world__legend-row strong { color: var(--text-primary); font-weight: 600; font-size: 13px; }
.lx-world__legend-row__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.lx-world__legend-row__dot[data-rmc-dot-color="indigo"]  { background: #a5b4fc; } /* off-token-allow: dark-chrome-world-pulse-ring */
.lx-world__legend-row__dot[data-rmc-dot-color="emerald"] { background: #6ee7b7; } /* off-token-allow: dark-chrome-world-pulse-ring */
.lx-world__legend-row__dot[data-rmc-dot-color="amber"]   { background: #fcd34d; } /* off-token-allow: dark-chrome-world-pulse-ring */
.lx-world__legend-row__dot[data-rmc-dot-color="rose"]    { background: #fda4af; } /* off-token-allow: dark-chrome-world-pulse-ring */

/* v4.02.x presence pass: stack the footprint on a narrow manager canvas so the
   globe gets the full width instead of being squeezed into ~55% of a slim
   column. Below the breakpoint the map sits above the legend at a comfortable
   fixed height. */
@media (max-width: 1100px) {
  .lx-world { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .lx-world--hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 0;
    min-height: 400px;
  }
  .lx-world--hero .lx-world__map {
    grid-column: 1;
    grid-row: 1;
    min-height: 320px;
    max-height: 440px;
    border-radius: 0;
  }
  .lx-world--hero .lx-world__legend-panel {
    grid-column: 1;
    grid-row: 2;
    position: static;
    width: auto;
    max-height: none;
    height: auto;
    margin: 0 16px 16px;
    border-left: none;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--hairline);
  }
  .lx-world--hero .lx-world__globe,
  .lx-world--hero .lx-world__globe-skeleton {
    inset: 0;
  }
  .lx-world__map { min-height: 320px; max-height: 440px; }
  .lx-world__legend { justify-content: flex-start; }
}

/* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
.lx-world__dot { animation: lx-world-pulse 2.6s ease-in-out infinite; }
/* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
.lx-world__ring { animation: lx-world-ring 2.6s ease-out infinite; }

@keyframes lx-world-pulse {
  0%, 100% { opacity: 0.65; r: 4; }
  50%      { opacity: 1;    r: 7; }
}
@keyframes lx-world-ring {
  0%   { opacity: 0.55; r: 4; }
  100% { opacity: 0;    r: 22; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-world__dot  { animation: none; }
  .lx-world__ring { animation: none; opacity: 0.20; }
}


/* ============================================================
   Element 3 — Forecast lane
   ============================================================ */
.lx-forecast-section { display: flex; flex-direction: column; gap: 8px; }

.lx-forecast__heading {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lx-forecast__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a5b4fc; /* off-token-allow: dark-chrome-forecast-live-dot */
  /* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
  animation: cp-ticker-pulse 1.6s ease-in-out infinite;
}

.lx-forecast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px) {
  .lx-forecast { grid-template-columns: 1fr; }
}
.lx-forecast__card {
  position: relative;
  padding: 16px 18px 18px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--hairline);
  background: var(--surface-elevated);
  box-shadow: var(--elev-1);
  overflow: hidden;
}
.lx-forecast__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-tertiary);
  font-weight: 700;
}
.lx-forecast__value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 4px;
}
.lx-forecast__pred {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.lx-forecast__svg {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 10px;
}
.lx-forecast__caption {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
}
.lx-forecast__caption-em {
  font-family: var(--serif);
  font-style: italic;
}

@keyframes cp-ticker-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .lx-forecast__live-dot { animation: none; }
}


/* ============================================================
   Element 5 — Tenant heatmap
   ============================================================ */
.lx-heatmap { display: flex; flex-direction: column; gap: 10px; }
.lx-heatmap__grid {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 4px;
}
@media (max-width: 1200px) {
  .lx-heatmap__grid { grid-template-columns: repeat(15, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .lx-heatmap__grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
.lx-heatmap__tile {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(34,197,94,0.40); /* off-token-allow: dark-chrome-heatmap-tile-okay */
  position: relative;
  cursor: pointer;
  transition: transform var(--motion-fast, 150ms cubic-bezier(0.4, 0, 0.2, 1)),
              box-shadow var(--motion-fast, 150ms cubic-bezier(0.4, 0, 0.2, 1));
}
.lx-heatmap__tile:hover {
  transform: scale(1.4);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(15,23,42,0.25); /* off-token-allow: dark-chrome-heatmap-tile-shadow */
}
.lx-heatmap__tile--healthy {
  background: rgba(34,197,94,0.70); /* off-token-allow: dark-chrome-heatmap-tile-healthy */
}
.lx-heatmap__tile--okay {
  background: rgba(34,197,94,0.40); /* off-token-allow: dark-chrome-heatmap-tile-okay */
}
.lx-heatmap__tile--warn {
  background: rgba(245,158,11,0.70); /* off-token-allow: dark-chrome-heatmap-tile-warn */
}
.lx-heatmap__tile--danger {
  background: rgba(239,68,68,0.75); /* off-token-allow: dark-chrome-heatmap-tile-danger */
}
.lx-heatmap__tile--idle {
  background: rgba(148,163,184,0.35); /* off-token-allow: dark-chrome-heatmap-tile-idle */
}

.lx-heatmap__tile[data-label]::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0b1020; /* off-token-allow: dark-chrome-tooltip-bg */
  color: white; /* off-token-allow: dark-chrome-tooltip-ink */
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap; /* horizontal-overflow-risk-allow: short-controlled-content-by-design */
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--motion-fast, 150ms cubic-bezier(0.4, 0, 0.2, 1));
  box-shadow: 0 4px 12px rgba(0,0,0,0.30); /* off-token-allow: dark-chrome-tooltip-shadow */
  z-index: 3;
}
.lx-heatmap__tile:hover::after,
.lx-heatmap__tile:focus-visible::after { opacity: 1; }

.lx-heatmap__legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-tertiary);
  align-items: center;
  flex-wrap: wrap;
}
.lx-heatmap__legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lx-heatmap__legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.lx-heatmap__legend .lx-l-healthy::before {
  background: rgba(34,197,94,0.70); /* off-token-allow: dark-chrome-heatmap-tile-healthy */
}
.lx-heatmap__legend .lx-l-okay::before {
  background: rgba(34,197,94,0.40); /* off-token-allow: dark-chrome-heatmap-tile-okay */
}
.lx-heatmap__legend .lx-l-warn::before {
  background: rgba(245,158,11,0.70); /* off-token-allow: dark-chrome-heatmap-tile-warn */
}
.lx-heatmap__legend .lx-l-danger::before {
  background: rgba(239,68,68,0.75); /* off-token-allow: dark-chrome-heatmap-tile-danger */
}
.lx-heatmap__legend .lx-l-idle::before {
  background: rgba(148,163,184,0.35); /* off-token-allow: dark-chrome-heatmap-tile-idle */
}
.lx-heatmap__legend-hint {
  margin-left: auto;
  color: var(--text-muted);
  font-family: var(--serif);
  font-style: italic;
}


/* ============================================================
   Element 6 — Revenue waterfall
   ============================================================ */
.lx-waterfall { padding: 18px 20px 22px; }
.lx-waterfall__svg { width: 100%; height: 220px; display: block; }
.lx-waterfall__legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
}
@media (max-width: 720px) {
  .lx-waterfall__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lx-waterfall__legend > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 8px);
  background: var(--surface-canvas);
  border: 1px solid var(--hairline);
}
.lx-waterfall__legend strong {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lx-waterfall__legend small {
  color: var(--text-tertiary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.lx-waterfall__legend-value--up {
  color: #16a34a; /* off-token-allow: dark-chrome-waterfall-bar-new */
}
.lx-waterfall__legend-value--down {
  color: #dc2626; /* off-token-allow: dark-chrome-waterfall-bar-churn */
}
.lx-waterfall__legend-value--neutral { color: var(--text-primary); }


/* ============================================================
   Element 7 — Structured audit feed
   ============================================================ */
.lx-audit { padding: 0; }
.lx-audit__head {
  padding: 16px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--hairline);
}
.lx-audit__title { font-weight: 700; font-size: 15px; color: var(--text-primary); }
.lx-audit__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--text-secondary);
}
.lx-audit__filter {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 999px);
  background: var(--surface-canvas);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-family: var(--mono);
}
.lx-audit__table { width: 100%; border-collapse: collapse; font-size: 12px; }
.lx-audit__table thead th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-tertiary);
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  background: var(--surface-canvas);
  border-bottom: 1px solid var(--hairline);
}
.lx-audit__col-time  { width: 120px; }
.lx-audit__col-actor { width: 140px; }
.lx-audit__col-scope { width: 200px; }
.lx-audit__col-sev   { width: 90px; }

.lx-audit__table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-secondary);
  vertical-align: top;
}
.lx-audit__table tbody tr:last-child td { border-bottom: 0; }
.lx-audit__table tbody tr {
  position: relative;
  transition: background var(--motion-fast, 150ms cubic-bezier(0.4, 0, 0.2, 1));
}
.lx-audit__table tbody tr:hover { background: var(--surface-canvas); }

.lx-audit__sev {
  display: inline-block;
  width: 3px;
  border-radius: 2px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}
.lx-audit__sev--info {
  background: #60a5fa; /* off-token-allow: dark-chrome-audit-stripe-info */
}
.lx-audit__sev--ok { background: var(--success, #22c55e); }
.lx-audit__sev--warn { background: var(--warning, #f59e0b); }
.lx-audit__sev--danger { background: var(--danger, #ef4444); }

.lx-audit__time {
  color: var(--text-tertiary);
  font-family: var(--mono);
  font-size: 11px;
}
.lx-audit__actor { color: var(--text-primary); font-weight: 600; font-size: 12px; }
.lx-audit__event { color: var(--text-primary); }
.lx-audit__scope { color: var(--text-tertiary); font-family: var(--mono); font-size: 11px; }

.lx-audit__sev-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill, 999px);
}
.lx-audit__sev-label--info {
  color: #1d4ed8; /* off-token-allow: dark-chrome-audit-stripe-info */
  background: #dbeafe; /* off-token-allow: dark-chrome-audit-stripe-info */
}
.lx-audit__sev-label--ok {
  color: #166534; /* off-token-allow: dark-chrome-audit-stripe-ok */
  background: #dcfce7; /* off-token-allow: dark-chrome-audit-stripe-ok */
}
.lx-audit__sev-label--warn {
  color: #92400e; /* off-token-allow: dark-chrome-audit-stripe-watch */
  background: #fef3c7; /* off-token-allow: dark-chrome-audit-stripe-watch */
}
.lx-audit__sev-label--danger {
  color: #991b1b; /* off-token-allow: dark-chrome-audit-stripe-risk */
  background: #fee2e2; /* off-token-allow: dark-chrome-audit-stripe-risk */
}

/* Full-row severity left-border stripe (logical property for RTL).
   Scoped to control-plane personality so the colored stripe never
   leaks onto an audit feed rendered on a tenant subdomain. */
body[data-rmc-shell-main="control-plane"] .lx-audit__row,
[data-rmc-page-personality="control-plane"] .lx-audit__row {
  border-inline-start: 3px solid transparent;
}
body[data-rmc-shell-main="control-plane"] .lx-audit__row--ok,
[data-rmc-page-personality="control-plane"] .lx-audit__row--ok {
  border-inline-start-color: var(--cp-glow-emerald, var(--success, #22c55e)); /* off-token-allow: severity-stripe-glow-rgba */
}
body[data-rmc-shell-main="control-plane"] .lx-audit__row--info,
[data-rmc-page-personality="control-plane"] .lx-audit__row--info {
  border-inline-start-color: var(--cp-glow-sky, #60a5fa); /* off-token-allow: severity-stripe-glow-rgba */
}
body[data-rmc-shell-main="control-plane"] .lx-audit__row--warn,
[data-rmc-page-personality="control-plane"] .lx-audit__row--warn {
  border-inline-start-color: var(--cp-glow-amber, var(--warning, #f59e0b)); /* off-token-allow: severity-stripe-glow-rgba */
}
body[data-rmc-shell-main="control-plane"] .lx-audit__row--danger,
[data-rmc-page-personality="control-plane"] .lx-audit__row--danger {
  border-inline-start-color: var(--cp-glow-rose, var(--danger, #ef4444)); /* off-token-allow: severity-stripe-glow-rgba */
}


/* ============================================================
   Element 8 — Trust nutrition label
   ============================================================ */
.lx-trust { padding: 0; }
.lx-trust__head {
  padding: 18px 20px 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.lx-trust__head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0;
  font-style: italic;
  color: var(--text-primary);
}
.lx-trust__head small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-tertiary);
  font-weight: 700;
}
.lx-trust__rule {
  height: 6px;
  background: var(--text-primary);
  margin: 0 20px;
}
.lx-trust__rows {
  padding: 8px 20px 18px;
  display: flex;
  flex-direction: column;
}
.lx-trust__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px;
}
.lx-trust__row:last-child { border-bottom: 0; }
.lx-trust__label { color: var(--text-secondary); }
.lx-trust__value {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 12px;
}
.lx-trust__value--ok {
  color: #166534; /* off-token-allow: dark-chrome-audit-stripe-ok */
}
.lx-trust__value--warn {
  color: #92400e; /* off-token-allow: dark-chrome-audit-stripe-watch */
}
.lx-trust__value--danger {
  color: #991b1b; /* off-token-allow: dark-chrome-audit-stripe-risk */
}
.lx-trust__value--neutral { color: var(--text-primary); }
.lx-trust__caption {
  padding: 12px 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--surface-canvas);
  border-top: 1px solid var(--hairline);
}


/* ============================================================
   Element 9 — Live SLO clocks
   ============================================================ */
.lx-slo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px) {
  .lx-slo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lx-slo { grid-template-columns: 1fr; }
}
.lx-slo__card {
  background: linear-gradient(135deg, #0a0d22, #131a35); /* off-token-allow: dark-chrome-slo-card */
  color: var(--cp-chrome-text);
  border: 1px solid rgba(255,255,255,0.06); /* off-token-allow: dark-chrome-slo-card */
  border-radius: var(--radius-md, 12px);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--elev-2);
}
.lx-slo__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 100% 0%, rgba(99,102,241,0.20), transparent 60%); /* off-token-allow: dark-chrome-slo-card */
  pointer-events: none;
}
.lx-slo__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--cp-chrome-text-muted);
  font-weight: 700;
}
.lx-slo__value {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.02em;
  color: white; /* off-token-allow: dark-chrome-slo-card */
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.lx-slo__value small {
  font-size: 12px;
  color: var(--cp-chrome-text-muted);
  font-weight: 500;
}
.lx-slo__name {
  font-size: 12px;
  color: var(--cp-chrome-text-muted);
  margin-top: 4px;
}
.lx-slo__dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success, #22c55e); /* off-token-allow: dark-chrome-slo-pulse */
  box-shadow: 0 0 0 4px rgba(34,197,94,0.20); /* off-token-allow: dark-chrome-slo-pulse */
  /* motion-budget-allow: looping ambient animation (infinite); the global prefers-reduced-motion reset stops it */
  animation: cp-pulse-soft 2.4s ease-in-out infinite;
}
.lx-slo__dot--warn {
  background: var(--warning, #f59e0b);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.18); /* off-token-allow: dark-chrome-slo-pulse */
}
.lx-slo__dot--info {
  background: #60a5fa; /* off-token-allow: dark-chrome-slo-pulse */
  box-shadow: 0 0 0 4px rgba(96,165,250,0.18); /* off-token-allow: dark-chrome-slo-pulse */
}
.lx-slo__dot--danger {
  background: var(--danger, #ef4444);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.18); /* off-token-allow: dark-chrome-slo-pulse */
}
/* Percentile sub-label alias (preview uses .lx-slo__subtitle in some contexts;
   production partials emit .lx-slo__name — keep both rendering identically so
   future template variants don't need a CSS change). */
.lx-slo__subtitle {
  font-size: 12px;
  color: var(--cp-chrome-text-muted);
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .lx-slo__dot { animation: none; }
}

/* ------------------------------------------------------------
   Tenant-bleed safety: even though the partial renders only when
   cockpit.slo_clocks.enabled and the control_plane_skeleton gate
   requires public_host_kind == 'manager', re-scope the entire
   .lx-slo* surface as defense in depth so a misrouted include
   on a tenant subdomain cannot paint dark chrome.

   The unscoped block above keeps the dark inset aesthetic only
   inside the control-plane shell; the scoped block here disables
   the dark gradient + light-on-dark text outside it.
   ------------------------------------------------------------ */
:where(:not(body[data-rmc-shell-main="control-plane"], [data-rmc-page-personality="control-plane"]) *) .lx-slo__card {
  /* If a tenant ever renders the partial, fall back to neutral
     surface tokens so the dark gradient doesn't bleed. */
  background: var(--surface-elevated);
  color: var(--text-primary);
  border-color: var(--hairline);
}
:where(:not(body[data-rmc-shell-main="control-plane"], [data-rmc-page-personality="control-plane"]) *) .lx-slo__value {
  color: var(--text-primary);
}
:where(:not(body[data-rmc-shell-main="control-plane"], [data-rmc-page-personality="control-plane"]) *) .lx-slo__label,
:where(:not(body[data-rmc-shell-main="control-plane"], [data-rmc-page-personality="control-plane"]) *) .lx-slo__name,
:where(:not(body[data-rmc-shell-main="control-plane"], [data-rmc-page-personality="control-plane"]) *) .lx-slo__subtitle,
:where(:not(body[data-rmc-shell-main="control-plane"], [data-rmc-page-personality="control-plane"]) *) .lx-slo__value small {
  color: var(--text-secondary);
}


/* ============================================================
   Element 1 — AI Copilot persistent rail (interior chrome)
   ============================================================ */
.lx-copilot {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.lx-copilot__collapsed {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 14px;
  width: 100%;
}
.rmc-app-shell[data-copilot="expanded"] .lx-copilot__collapsed { display: none; }

.lx-copilot__toggle {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); /* off-token-allow: dark-chrome-copilot-mark */
  border: 1px solid rgba(255,255,255,0.10); /* off-token-allow: dark-chrome-copilot-mark */
  color: white; /* off-token-allow: dark-chrome-copilot-mark */
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(99,102,241,0.40); /* off-token-allow: dark-chrome-copilot-mark */
  font-family: inherit;
}
.lx-copilot__rail-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--cp-chrome-text-muted);
  border: 1px solid var(--cp-chrome-hairline);
  background: rgba(255,255,255,0.04); /* off-token-allow: dark-chrome-copilot-glass */
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}
.lx-copilot__rail-icon:hover {
  background: rgba(255,255,255,0.10); /* off-token-allow: dark-chrome-copilot-glass */
  color: white; /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__rail-icon--help {
  font-weight: 700;
  font-size: 14px;
}
.lx-copilot__page-help-wrap {
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--cp-chrome-hairline);
}
.lx-copilot__page-help {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--cp-chrome-hairline);
  background: rgba(255,255,255,0.04); /* off-token-allow: dark-chrome-copilot-glass */
  color: var(--cp-chrome-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.lx-copilot__page-help:hover,
.lx-copilot__page-help:focus-visible {
  background: rgba(99,102,241,0.14); /* off-token-allow: dark-chrome-copilot-glass */
  border-color: rgba(99,102,241,0.35); /* off-token-allow: dark-chrome-copilot-glass */
  color: var(--cp-chrome-text);
  outline: none;
}
.lx-copilot__page-help-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); /* off-token-allow: dark-chrome-copilot-mark */
  color: white; /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__page-help-label {
  flex: 1 1 auto;
  min-width: 0;
}

/* v4.04.35 — "At a glance" disclosure. Folds Pulse + Governance + page-help into one
   collapsible group (default closed) so they stop crowding the chat thread out of the
   panel and bleeding past the bottom edge that the parent clips. flex:0 0 auto keeps
   it at its natural (collapsed) height; the thread below keeps flex:1 + min-height:0
   and absorbs the scroll, so the composer is always reachable. */
.lx-copilot__glance {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--cp-chrome-hairline);
}
.lx-copilot__glance-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cp-chrome-text-muted);
}
.lx-copilot__glance-summary::-webkit-details-marker { display: none; }
.lx-copilot__glance-summary::after {
  content: "\203A"; /* › */
  font-size: 14px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform var(--motion-fast, 160ms ease);
  color: var(--cp-chrome-text-faint);
}
.lx-copilot__glance[open] .lx-copilot__glance-summary::after { transform: rotate(-90deg); }
.lx-copilot__glance-summary:hover { color: var(--cp-chrome-text); }
/* When opened, bound the group so a long Pulse + Governance stack still can't shove the
   composer off-screen — it scrolls inside the disclosure instead of bleeding past. */
.lx-copilot__glance[open] {
  max-height: 46vh;
  overflow-y: auto;
}
.lx-copilot__kbd {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--mono);
  font-size: 10px;
  /* 10px text on the dark rail: the faint tier measured 3.98:1. */
  color: var(--cp-chrome-text-muted);
  margin-top: auto;
  margin-bottom: 12px;
  letter-spacing: 0.10em;
}

.lx-copilot__expanded {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.rmc-app-shell[data-copilot="expanded"] .lx-copilot__expanded { display: flex; }

/* v4.04.98: tenant + manager-portal-bridge copilot mounts live OUTSIDE
   .rmc-app-shell (fixed column on body). Toggle sets data-copilot on <body>
   via findShell() — width rules already key off body[data-copilot=expanded]
   in rmc-platform-vertical-compact.css; panel visibility must match. */
body[data-copilot="expanded"] .rmc-tenant-portal-copilot-mount .lx-copilot__expanded,
body[data-copilot="expanded"] .rmc-manager-portal-copilot-mount .lx-copilot__expanded,
body[data-rmc-copilot-shell="expanded"] .rmc-tenant-portal-copilot-mount .lx-copilot__expanded,
body[data-rmc-copilot-shell="expanded"] .rmc-manager-portal-copilot-mount .lx-copilot__expanded {
  display: flex;
}
body[data-copilot="expanded"] .rmc-tenant-portal-copilot-mount .lx-copilot__collapsed,
body[data-copilot="expanded"] .rmc-manager-portal-copilot-mount .lx-copilot__collapsed,
body[data-rmc-copilot-shell="expanded"] .rmc-tenant-portal-copilot-mount .lx-copilot__collapsed,
body[data-rmc-copilot-shell="expanded"] .rmc-manager-portal-copilot-mount .lx-copilot__collapsed {
  display: none;
}

/* Collapsed state — icon rail only (horizontal collapse to inline-end edge).
   Mirrors /super/ grid-column shrink; tenant uses fixed mount width instead. */
body[data-copilot="collapsed"] .rmc-tenant-portal-copilot-mount .lx-copilot__expanded,
body[data-copilot="collapsed"] .rmc-manager-portal-copilot-mount .lx-copilot__expanded,
body[data-rmc-copilot-shell="collapsed"] .rmc-tenant-portal-copilot-mount .lx-copilot__expanded,
body[data-rmc-copilot-shell="collapsed"] .rmc-manager-portal-copilot-mount .lx-copilot__expanded {
  display: none;
}
body[data-copilot="collapsed"] .rmc-tenant-portal-copilot-mount .lx-copilot__collapsed,
body[data-copilot="collapsed"] .rmc-manager-portal-copilot-mount .lx-copilot__collapsed,
body[data-rmc-copilot-shell="collapsed"] .rmc-tenant-portal-copilot-mount .lx-copilot__collapsed,
body[data-rmc-copilot-shell="collapsed"] .rmc-manager-portal-copilot-mount .lx-copilot__collapsed,
.rmc-tenant-portal-copilot-mount .lx-copilot__collapsed,
.rmc-manager-portal-copilot-mount .lx-copilot__collapsed {
  display: flex;
}

.lx-copilot__header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cp-chrome-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lx-copilot__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-chrome-text);
}
.lx-copilot__title-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--cp-chrome-text-muted);
  font-size: 12px;
}
.lx-copilot__title-em em { font-style: italic; }
.lx-copilot__title-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, #6366f1, #a855f7); /* off-token-allow: dark-chrome-copilot-mark */
  display: grid;
  place-items: center;
  color: white; /* off-token-allow: dark-chrome-copilot-mark */
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(99,102,241,0.40); /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__close {
  background: transparent;
  border: 1px solid var(--cp-chrome-hairline);
  color: var(--cp-chrome-text-muted);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
}
.lx-copilot__insight {
  margin: 12px 16px;
  padding: 12px 14px;
  background:
    radial-gradient(closest-side at 0% 0%, rgba(99,102,241,0.25), transparent 70%), /* off-token-allow: dark-chrome-copilot-glass */
    rgba(255,255,255,0.04); /* off-token-allow: dark-chrome-copilot-glass */
  border: 1px solid rgba(99,102,241,0.30); /* off-token-allow: dark-chrome-copilot-glass */
  border-radius: var(--radius-md, 12px);
  font-size: 12px;
  color: var(--cp-chrome-text);
  line-height: 1.5;
  position: relative;
}
.lx-copilot__insight::before {
  content: "★";
  color: #c4b5fd; /* off-token-allow: dark-chrome-copilot-mark */
  margin-right: 6px;
  font-size: 11px;
}
.lx-copilot__insight em {
  font-family: var(--serif);
  font-style: italic;
  color: #c4b5fd; /* off-token-allow: dark-chrome-copilot-mark */
}

.lx-copilot__thread {
  flex: 1;
  /* min-height:0 is REQUIRED for a flex child to shrink below its content. Without
     it the chat thread (the default tab) refuses to shrink as messages accumulate
     and pushes .lx-copilot__input-wrap past the panel's bottom edge, where the
     parent .rmc-app-shell__copilot { overflow:hidden } clips it — the user opens
     the copilot and cannot see where to type. The panes already set this (below);
     the thread did not. */
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lx-copilot__msg {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.55;
  max-width: 92%;
}
.lx-copilot__msg--user {
  background: rgba(99,102,241,0.20); /* off-token-allow: dark-chrome-copilot-mark */
  border: 1px solid rgba(99,102,241,0.30); /* off-token-allow: dark-chrome-copilot-mark */
  align-self: flex-end;
  color: white; /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__msg--ai {
  background: rgba(255,255,255,0.04); /* off-token-allow: dark-chrome-copilot-glass */
  border: 1px solid var(--cp-chrome-hairline);
  align-self: flex-start;
  color: var(--cp-chrome-text);
}
.lx-copilot__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 12px;
  color: var(--cp-chrome-text-muted);
}
.lx-copilot__empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); /* off-token-allow: dark-chrome-copilot-mark */
  color: white; /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__empty-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--cp-chrome-text);
}
.lx-copilot__empty-lede {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  max-width: 28ch;
}
.lx-copilot__msg em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cp-chrome-text-muted);
}
.lx-copilot__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 8px;
}
.lx-copilot__suggestion {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--radius-pill, 999px);
  background: rgba(255,255,255,0.04); /* off-token-allow: dark-chrome-copilot-glass */
  border: 1px solid var(--cp-chrome-hairline);
  color: var(--cp-chrome-text);
  cursor: pointer;
  font-family: inherit;
}
.lx-copilot__suggestion:hover {
  background: rgba(99,102,241,0.18); /* off-token-allow: dark-chrome-copilot-mark */
  border-color: rgba(99,102,241,0.30); /* off-token-allow: dark-chrome-copilot-mark */
}

.lx-copilot__input-wrap {
  /* Pin the composer to the panel bottom and never let it shrink or be clipped:
     it is the one element the user must always be able to reach. flex:0 0 auto
     keeps it at its natural height while the thread/panes above absorb the
     scroll (they carry flex:1 + min-height:0). */
  flex: 0 0 auto;
  border-top: 1px solid var(--cp-chrome-hairline);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(7, 9, 26, 0.45); /* off-token-allow: dark-chrome-copilot-glass */
}

/* Safety net for short viewports: the "Pulse" insights block is the only
   variable-height element ABOVE the scrolling thread, so bound it and let it
   scroll internally. Otherwise a long insight list can crowd the fixed header +
   tabs + composer past the panel height and clip the input even with the thread
   fully collapsed. Keeps everything in frame — no bleeding past the edge. */
.lx-copilot__insights-wrap {
  flex: 0 1 auto;
  max-height: 30vh;
  overflow-y: auto;
}
.lx-copilot__input {
  width: 100%;
  background: rgba(255,255,255,0.05); /* off-token-allow: dark-chrome-copilot-glass */
  border: 1px solid var(--cp-chrome-hairline);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--cp-chrome-text);
  font-size: 12px;
  resize: none;
  font-family: inherit;
  min-height: 64px;
}
.lx-copilot__input::placeholder {
  color: var(--cp-chrome-text-faint);
  font-family: var(--serif);
  font-style: italic;
}
.lx-copilot__input:focus {
  outline: none;
  border-color: rgba(99,102,241,0.50); /* off-token-allow: dark-chrome-copilot-mark */
  background: rgba(255,255,255,0.08); /* off-token-allow: dark-chrome-copilot-glass */
}
.lx-copilot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--cp-chrome-text-faint);
}
.lx-copilot__cmdk {
  font-family: var(--mono);
  padding: 2px 6px;
  border: 1px solid var(--cp-chrome-hairline);
  border-radius: 5px;
  font-size: 10px;
  color: var(--cp-chrome-text-muted);
}
.lx-copilot__send {
  background: linear-gradient(135deg, #6366f1, #8b5cf6); /* off-token-allow: dark-chrome-copilot-mark */
  color: white; /* off-token-allow: dark-chrome-copilot-mark */
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}


/* ============================================================
   Element 4 — Operator notebook quick-capture (floating)
   ============================================================ */
/* Footer-docked notebook (opens above operator footer; keeps drag handle) */
body[data-rmc-notebook-footer-dock="1"] .rmc-footer-notebook-anchor .lx-notebook {
  position: fixed;
  bottom: calc(var(--rmc-operator-footer-height, 56px) + 12px);
  right: 20px;
  left: auto;
  z-index: 60;
}

body[data-rmc-notebook-footer-dock="1"] .rmc-footer-notebook-anchor .lx-notebook[data-rmc-notebook-state="minimized"] {
  bottom: calc(var(--rmc-operator-footer-height, 56px) + 8px);
}

.lx-notebook {
  position: fixed;
  bottom: 100px;
  right: 80px;
  width: 320px;
  background: rgba(15, 21, 48, 0.88); /* off-token-allow: dark-chrome-notebook-glass */
  border: 1px solid var(--cp-chrome-hairline);
  border-radius: var(--radius-lg, 16px);
  padding: 14px;
  box-shadow: var(--elev-luxury, 0 24px 68px rgba(8, 11, 28, 0.55));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  z-index: 50;
  color: var(--cp-chrome-text);
}
@media (max-width: 720px) {
  .lx-notebook { right: 16px; bottom: 80px; width: calc(100vw - 32px); max-width: 320px; }
}
.lx-notebook__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.lx-notebook__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--cp-chrome-text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lx-notebook__title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #fbbf24); /* off-token-allow: dark-chrome-notebook-dot */
}
.lx-notebook__min {
  background: transparent;
  border: 1px solid var(--cp-chrome-hairline);
  color: var(--cp-chrome-text-muted);
  width: 22px;
  height: 22px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  display: grid;
  place-items: center;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.lx-notebook__min:hover {
  background: rgba(255,255,255,0.06); /* off-token-allow: dark-chrome-notebook-glass */
  color: var(--cp-chrome-text);
}
/* Minimized state: collapse to a slim title-only pill, retain ability to expand. */
.lx-notebook[data-rmc-notebook-state="minimized"] {
  padding: 8px 12px;
  width: auto;
  max-width: 240px;
}
.lx-notebook[data-rmc-notebook-state="minimized"] .lx-notebook__head { margin-bottom: 0; }
.lx-notebook[data-rmc-notebook-state="minimized"] .lx-notebook__form,
.lx-notebook[data-rmc-notebook-state="minimized"] .lx-notebook__hint {
  display: none;
}
.lx-notebook[data-rmc-notebook-state="minimized"] .lx-notebook__min::before {
  content: "+";
  font-size: 13px;
  line-height: 1;
}
.lx-notebook[data-rmc-notebook-state="minimized"] .lx-notebook__min {
  font-size: 0;
}
.lx-notebook__form { display: flex; flex-direction: column; gap: 0; }
.lx-notebook__field {
  width: 100%;
  background: rgba(255,255,255,0.05); /* off-token-allow: dark-chrome-notebook-glass */
  border: 1px solid var(--cp-chrome-hairline);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--cp-chrome-text);
  font-size: 12px;
  resize: vertical;
  min-height: 52px;
  font-family: var(--serif);
  font-style: italic;
}
.lx-notebook__field::placeholder { color: var(--cp-chrome-text-faint); }
.lx-notebook__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 8px;
}
.lx-notebook__mic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239,68,68,0.30), rgba(245,158,11,0.18)); /* off-token-allow: dark-chrome-notebook-mic */
  border: 1px solid rgba(239,68,68,0.35); /* off-token-allow: dark-chrome-notebook-mic */
  color: #fecaca; /* off-token-allow: dark-chrome-notebook-mic */
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.lx-notebook__save {
  background: linear-gradient(135deg, #4f46e5, #7c3aed); /* off-token-allow: dark-chrome-copilot-mark */
  color: white; /* off-token-allow: dark-chrome-copilot-mark */
  border: 0;
  border-radius: var(--radius-pill, 999px);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-left: auto;
  box-shadow: 0 4px 12px rgba(79,70,229,0.40); /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-notebook__hint {
  font-size: 10px;
  color: var(--cp-chrome-text-faint);
  margin-top: 8px;
}
.lx-notebook__hint-em { font-family: var(--mono); }

/* ============================================================
   v3.58 (2026-05-22) — Notebook drag handle + recent-notes
   ------------------------------------------------------------
   The drag handle is the entire head element so the operator can grab
   anywhere on the title row. The grip glyph just signals it's draggable.
   When [data-rmc-notebook-dragging="1"] is set, we soften shadow and
   suppress the text cursor so the move-cursor wins.
   ============================================================ */
.lx-notebook[data-rmc-notebook-draggable="1"] .lx-notebook__head {
  cursor: grab;
  user-select: none;
}
.lx-notebook[data-rmc-notebook-dragging="1"] {
  box-shadow: 0 30px 80px rgba(8, 11, 28, 0.65), 0 2px 4px rgba(255,255,255,0.06) inset; /* off-token-allow: dark-chrome-notebook-glass */
  cursor: grabbing;
  transition: none;
}
.lx-notebook[data-rmc-notebook-dragging="1"] .lx-notebook__head { cursor: grabbing; }
.lx-notebook__grip {
  color: var(--cp-chrome-text-faint);
  font-size: 12px;
  letter-spacing: -1px;
  margin-right: 4px;
  cursor: grab;
}
.lx-notebook__head-actions {
  display: flex; gap: 4px; align-items: center; margin-left: auto;
}
.lx-notebook__action {
  background: transparent;
  border: 1px solid var(--cp-chrome-hairline);
  color: var(--cp-chrome-text-muted);
  width: 22px; height: 22px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  display: grid; place-items: center;
  transition: background var(--motion-fast), color var(--motion-fast);
}
.lx-notebook__action:hover {
  background: rgba(255,255,255,0.06); /* off-token-allow: dark-chrome-notebook-glass */
  color: var(--cp-chrome-text);
}

/* Recent-notes section — collapsed by default; expands when
   [data-rmc-notebook-history-state="open"]. Compact list, scroll-locked
   to ~140px so the widget stays small. */
.lx-notebook__history {
  margin-top: 10px;
  border-top: 1px dashed var(--cp-chrome-hairline);
  padding-top: 8px;
}
.lx-notebook__history-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--cp-chrome-text-faint); font-weight: 700;
  margin-bottom: 6px;
}
.lx-notebook__history-count {
  font-family: var(--mono);
  background: rgba(255,255,255,0.05); /* off-token-allow: dark-chrome-notebook-glass */
  border-radius: 999px; padding: 1px 6px;
  font-size: 9.5px; color: var(--cp-chrome-text-muted);
}
.lx-notebook__history-list {
  list-style: none; padding: 0; margin: 0;
  display: none;
  max-height: 144px; overflow-y: auto;
}
.lx-notebook[data-rmc-notebook-state="minimized"] .lx-notebook__history { display: none; }
.lx-notebook__history-empty {
  font-size: 10.5px; color: var(--cp-chrome-text-faint);
  font-style: italic; margin: 0; padding: 4px 0 2px;
  font-family: var(--serif);
}
.lx-notebook__history[data-rmc-notebook-history-state="open"] .lx-notebook__history-list { display: block; }
.lx-notebook__history[data-rmc-notebook-history-state="open"] .lx-notebook__history-empty { display: block; }
.lx-notebook__history[data-rmc-notebook-history-state="collapsed"] .lx-notebook__history-list { display: none; }
.lx-notebook__history[data-rmc-notebook-history-state="collapsed"] .lx-notebook__history-empty { display: none; }
.lx-notebook__history-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--cp-chrome-text-muted);
  transition: background var(--motion-fast), color var(--motion-fast);
}
.lx-notebook__history-item:hover {
  background: rgba(255,255,255,0.05); /* off-token-allow: dark-chrome-notebook-glass */
  color: var(--cp-chrome-text);
}
.lx-notebook__history-preview {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--serif); font-style: italic;
}
.lx-notebook__history-age {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--cp-chrome-text-faint);
  flex-shrink: 0;
}

/* Auto-resized title row when there are head actions on the right. */
.lx-notebook__head { gap: 6px; }

/* ============================================================
   v3.58 (2026-05-22) — Copilot rail: tabs + posture pill + panes
   ============================================================ */
.lx-copilot__header-actions {
  display: flex; gap: 8px; align-items: center;
}
.lx-copilot__posture {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04); /* off-token-allow: dark-chrome-copilot-glass */
  border: 1px solid var(--cp-chrome-hairline);
  font-size: 10px; font-weight: 600;
  color: var(--cp-chrome-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.lx-copilot__posture-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cp-chrome-text-faint);
}
.lx-copilot__posture[data-state="live_cloud"] {
  color: #c7d2fe; /* off-token-allow: dark-chrome-copilot-mark */
  border-color: rgba(99,102,241,0.40); /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__posture[data-state="live_cloud"] .lx-copilot__posture-dot {
  background: #6366f1; /* off-token-allow: dark-chrome-copilot-mark */
  box-shadow: 0 0 8px rgba(99,102,241,0.6); /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__posture[data-state="live_local"] {
  color: #a7f3d0; /* off-token-allow: dark-chrome-copilot-mark */
  border-color: rgba(16,185,129,0.40); /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__posture[data-state="live_local"] .lx-copilot__posture-dot {
  background: #10b981; /* off-token-allow: dark-chrome-copilot-mark */
  box-shadow: 0 0 8px rgba(16,185,129,0.6); /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__posture[data-state="guided"] {
  color: #fde68a; /* off-token-allow: dark-chrome-copilot-mark */
  border-color: rgba(245,158,11,0.40); /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__posture[data-state="guided"] .lx-copilot__posture-dot {
  background: #f59e0b; /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__posture[data-state="unavailable"] {
  color: #fecaca; /* off-token-allow: dark-chrome-copilot-mark */
  border-color: rgba(239,68,68,0.40); /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__posture[data-state="unavailable"] .lx-copilot__posture-dot { background: var(--danger); }

.lx-copilot__tabs {
  display: flex; gap: 4px;
  padding: 0 14px 8px;
  border-bottom: 1px solid var(--cp-chrome-hairline);
}
.lx-copilot__tab {
  background: transparent; border: 0; padding: 6px 10px;
  font-family: inherit; font-size: 11px; font-weight: 600;
  color: var(--cp-chrome-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: color var(--motion-fast), border-color var(--motion-fast);
}
.lx-copilot__tab:hover { color: var(--cp-chrome-text); }
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="lens"]    .lx-copilot__thread,
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="lens"]    .lx-copilot__input-wrap {
  display: none;
}
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="chat"]      .lx-copilot__tab[data-rmc-copilot-tab="chat"],
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="lens"]      .lx-copilot__tab[data-rmc-copilot-tab="lens"],
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="actions"]   .lx-copilot__tab[data-rmc-copilot-tab="actions"],
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="threads"]   .lx-copilot__tab[data-rmc-copilot-tab="threads"],
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="shortcuts"] .lx-copilot__tab[data-rmc-copilot-tab="shortcuts"],
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="today"]     .lx-copilot__tab[data-rmc-copilot-tab="today"] {
  color: var(--cp-chrome-text);
  border-bottom-color: #6366f1; /* off-token-allow: dark-chrome-copilot-mark */
}

.lx-copilot__pane { display: none; flex: 1; padding: 12px 14px; min-height: 0; overflow-y: auto; }
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="chat"]    .lx-copilot__thread { display: flex; flex-direction: column; gap: 8px; }
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="lens"]      .lx-copilot__thread,
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="actions"]   .lx-copilot__thread,
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="threads"]   .lx-copilot__thread,
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="shortcuts"] .lx-copilot__thread,
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="today"]     .lx-copilot__thread { display: none; }
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="lens"]      .lx-copilot__pane[data-rmc-copilot-pane="lens"] { display: block; }
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="actions"]   .lx-copilot__pane[data-rmc-copilot-pane="actions"] { display: block; }
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="threads"]   .lx-copilot__pane[data-rmc-copilot-pane="threads"] { display: block; }
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="shortcuts"] .lx-copilot__pane[data-rmc-copilot-pane="shortcuts"] { display: block; }
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="today"]     .lx-copilot__pane[data-rmc-copilot-pane="today"] { display: block; }
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="shortcuts"] .lx-copilot__input-wrap,
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="today"]     .lx-copilot__input-wrap { display: none; }

.lx-copilot__selection { min-height: 1.25rem; }
.lx-copilot__insights-wrap { border-bottom: 1px solid var(--hairline, rgba(255, 255, 255, 0.08)); }
.lx-copilot__insights-list .rmc-copilot-rail__insight,
.lx-copilot__insights-list .lx-copilot__insight {
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline, rgba(255, 255, 255, 0.06));
  color: var(--cp-chrome-text-muted, rgba(255, 255, 255, 0.72));
}
.lx-copilot__lens-card {
  border: 1px solid var(--hairline, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-md, 8px);
  padding: 10px 12px;
  background: color-mix(in srgb, var(--surface-elevated, #1a1a22) 88%, transparent);
}
.lx-copilot__lens-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.lx-copilot__lens-card-head-copy { flex: 1 1 auto; min-width: 0; }
.lx-copilot__lens-dismiss {
  flex: 0 0 auto;
  margin-top: 2px;
  opacity: 0.72;
}
.lx-copilot__lens-dismiss:hover,
.lx-copilot__lens-dismiss:focus-visible {
  opacity: 1;
}
.lx-copilot__lens-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--hairline, rgba(255, 255, 255, 0.12));
}
.lx-copilot__lens-pill--success {
  color: var(--text-success, #34d399);
  border-color: color-mix(in srgb, var(--text-success, #34d399) 45%, transparent); /* off-token-allow: status-pill-accent */
}
.lx-copilot__lens-pill--warning {
  color: var(--text-warning, #fbbf24);
  border-color: color-mix(in srgb, var(--text-warning, #fbbf24) 45%, transparent); /* off-token-allow: status-pill-accent */
}
.lx-copilot__lens-pill--danger {
  color: var(--text-danger, #f87171);
  border-color: color-mix(in srgb, var(--text-danger, #f87171) 45%, transparent); /* off-token-allow: status-pill-accent */
}
.lx-copilot__lens-pill--secondary,
.lx-copilot__lens-pill--muted {
  color: var(--cp-chrome-text-muted, rgba(255, 255, 255, 0.72));
}
.lx-copilot__lens-kv { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 2px 0; }
.lx-copilot__lens-k { color: var(--cp-chrome-text-faint, rgba(255, 255, 255, 0.55)); }
.lx-copilot__lens-v { font-weight: 500; text-align: right; }
.lx-copilot__lens-chip {
  border: 1px solid var(--hairline, rgba(255, 255, 255, 0.12));
  background: transparent;
  color: var(--cp-chrome-text, #f4f4f5);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: background var(--motion-fast), border-color var(--motion-fast);
}
.lx-copilot__lens-chip:hover {
  background: color-mix(in srgb, #6366f1 18%, transparent); /* off-token-allow: dark-chrome-copilot-mark */
  border-color: color-mix(in srgb, #6366f1 45%, transparent); /* off-token-allow: dark-chrome-copilot-mark */
}
.lx-copilot__lens-pin { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.lx-copilot__lens-pin-remove {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.lx-copilot__lens-provision-train {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 9.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.lx-copilot__lens-provision-step {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--cp-chrome-text-muted, rgba(255, 255, 255, 0.72));
}

.lx-copilot__lens-provision-step__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 0.2rem;
  border-radius: 999px;
  background: var(--hairline, rgba(255, 255, 255, 0.22));
}

.lx-copilot__lens-provision-step--done .lx-copilot__lens-provision-step__dot {
  background: var(--text-success, #34d399);
}

.lx-copilot__lens-provision-step--active .lx-copilot__lens-provision-step__dot {
  background: var(--text-warning, #fbbf24);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-warning, #fbbf24) 28%, transparent); /* off-token-allow: status-pill-accent */
}

.lx-copilot__lens-provision-step--failed .lx-copilot__lens-provision-step__dot {
  background: var(--text-danger, #f87171);
}

.lx-copilot__lens-provision-step--active .lx-copilot__lens-provision-step__label {
  color: var(--cp-chrome-text, #f4f4f5);
  font-weight: 600;
}

.lx-copilot__actions-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lx-copilot__threads-empty {
  font-family: var(--serif); font-style: italic;
  color: var(--cp-chrome-text-faint); font-size: 12px; margin: 0;
}

/* ============================================================
   v3.57.8 (2026-05-22) — Sidebar 200x-preview parity retrofit
   Targets the legacy `.cp-sidebar-nav .cp-sidebar-ultra` markup in
   templates/partials/control_plane_sidebar.html so it inherits the
   typography, spacing, active-state gradient, and group affordances
   from the v8 200x preview without requiring a template rewrite.
   ============================================================ */
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav {
  padding: 8px 10px 12px;
  font-size: 13px;
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .rmc-type-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cp-chrome-text-muted, #94a3b8);
  padding: 12px 10px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--cp-chrome-text, #f1f5f9);
  font-size: 13px;
  text-decoration: none;
  transition: background var(--motion-fast, 150ms ease), color var(--motion-fast, 150ms ease);
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.06); /* off-token-allow: dark-chrome-sidebar-hover */
  color: var(--cp-chrome-text, #f1f5f9);
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .nav-link.active {
  background: linear-gradient(135deg, rgba(79,70,229,0.40), rgba(16,185,129,0.30)); /* off-token-allow: dark-chrome-sidebar-active-gradient */
  color: #ffffff; /* off-token-allow: dark-chrome-sidebar-active-fg */
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(79,70,229,0.30); /* off-token-allow: dark-chrome-sidebar-active-glow */
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .cp-nav-icon {
  font-size: 14px;
  width: 18px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .cp-pin-btn {
  opacity: 0;
  transition: opacity var(--motion-fast, 150ms ease);
  color: var(--cp-chrome-text-muted, #94a3b8);
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .nav-item:hover .cp-pin-btn,
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .cp-pin-btn:focus-visible {
  opacity: 0.7;
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .cp-pin-pinned {
  opacity: 0.85;
  color: var(--school-primary, #4f46e5);
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .cp-nav-group-toggle {
  padding: 12px 10px 4px;
  margin-top: 4px;
  color: var(--cp-chrome-text-muted, #94a3b8);
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .cp-nav-group-toggle:hover {
  color: var(--cp-chrome-text, #f1f5f9);
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .cp-nav-group-toggle .cp-nav-group-chevron {
  transition: transform var(--motion-fast, 150ms ease);
  font-size: 10px;
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .cp-nav-group-toggle[aria-expanded="false"] .cp-nav-group-chevron {
  transform: rotate(-90deg);
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .cp-sidebar-compact-toggle {
  border-color: var(--cp-chrome-hairline, rgba(255,255,255,0.08));
  color: var(--cp-chrome-text-muted, #94a3b8);
  background: transparent;
}
[data-rmc-shell-main="control-plane"] .cp-sidebar-nav .cp-sidebar-compact-toggle:hover {
  background: rgba(255, 255, 255, 0.06); /* off-token-allow: dark-chrome-sidebar-compact-toggle-hover */
  color: var(--cp-chrome-text, #f1f5f9);
}

/* ============================================================
   v3.58.0 (2026-05-22) — Vertical density tightening on /super/
   ------------------------------------------------------------
   Per operator feedback: pages look "short" — too much air between
   the dark header and the first dashboard section. Trim ~14-18px
   of breathing room from the canvas, the breadcrumb row, and the
   first dashboard section. Keeps content density close to the v8
   preview, which shows the platform-pulse strip pressed up tight
   against the header.
   ============================================================ */
[data-rmc-shell-main="control-plane"] .rmc-app-shell__canvas-body {
  /* Pull the first child upward toward the header. */
  padding-top: 0;
}
[data-rmc-shell-main="control-plane"] .cp-layout {
  /* Container-fluid .py-2 is 8px+8px — drop to 4px+8px so the first
     row hugs the header. The .py-2 utility class wins specificity if
     templates use it explicitly; this override targets the .cp-layout
     class which co-occurs and gives us a class to specialize. */
  padding-top: 4px !important;
}
/* Breadcrumb / status strips above the page hero — tighten margins. */
[data-rmc-shell-main="control-plane"] .rmc-cockpit-ticker {
  /* Ticker is now in the header chrome; if it ever escapes back to
     the canvas (legacy path), shrink its top margin so it doesn't
     create a second band of whitespace. */
  margin-top: 0;
}
[data-rmc-shell-main="control-plane"] .cp-platform-pulse,
[data-rmc-shell-main="control-plane"] [data-rmc-cockpit-section="platform_pulse"] {
  /* First landing section after the header — pin it tight. */
  margin-top: 6px;
}
[data-rmc-shell-main="control-plane"] .breadcrumb {
  margin-bottom: 4px;
}
/* Page-h1 spacing: control-plane pages use either .page-h1 (custom)
   or Bootstrap h1. The visual gap between header chrome and "Control
   Plane" title can be ~36px on tall viewports; this brings it to ~20. */
[data-rmc-shell-main="control-plane"] .page-h1,
[data-rmc-shell-main="control-plane"] .cp-page-header h1,
[data-rmc-shell-main="control-plane"] .cp-page-header .page-h1 {
  margin-top: 8px;
}
/* The breadcrumb-row container — landing pages use this wrapper. */
[data-rmc-shell-main="control-plane"] .rmc-os-page-header,
[data-rmc-shell-main="control-plane"] .rmc-os-page-header__head {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* ============================================================
   Copilot rail v4.00.18 — quickstats strip + shortcuts/today panes.
   ============================================================ */

.lx-copilot__quickstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline, rgba(255, 255, 255, 0.08));
}
.lx-copilot__quickstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: var(--radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-elevated, #1a1a22) 60%, transparent);
  color: var(--cp-chrome-text, #f4f4f5);
  text-decoration: none;
  transition: background var(--motion-fast), transform var(--motion-fast);
  min-width: 0;
}
.lx-copilot__quickstat:hover {
  background: color-mix(in srgb, var(--surface-elevated, #1a1a22) 90%, transparent);
  transform: translateY(-1px);
}
.lx-copilot__quickstat-icon {
  font-size: 11px;
  line-height: 1;
  opacity: 0.7;
}
.lx-copilot__quickstat-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.lx-copilot__quickstat-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cp-chrome-text-muted, rgba(255, 255, 255, 0.6));
}

.lx-copilot__pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--hairline, rgba(255, 255, 255, 0.06));
}
.lx-copilot__pane-head--secondary { margin-top: 10px; }
.lx-copilot__pane-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cp-chrome-text-muted, rgba(255, 255, 255, 0.6));
}
.lx-copilot__pane-meta {
  font-size: 10px;
  color: var(--cp-chrome-text-faint, rgba(255, 255, 255, 0.5));
  font-variant-numeric: tabular-nums;
}
.lx-copilot__pane-edit {
  background: transparent;
  border: 0;
  color: var(--cp-chrome-text-muted, rgba(255, 255, 255, 0.6));
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lx-copilot__pane-edit:hover { color: var(--cp-chrome-text, #f4f4f5); }

.lx-copilot__shortcuts {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lx-copilot__shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--radius-sm, 6px);
  color: var(--cp-chrome-text, #f4f4f5);
  text-decoration: none;
  font-size: 12px;
  transition: background var(--motion-fast);
}
.lx-copilot__shortcut:hover {
  background: color-mix(in srgb, var(--surface-elevated, #1a1a22) 80%, transparent);
}
.lx-copilot__shortcut-icon {
  width: 18px;
  text-align: center;
  opacity: 0.7;
  font-size: 13px;
}

.lx-copilot__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.lx-copilot__chip {
  background: transparent;
  border: 1px solid var(--hairline, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--cp-chrome-text, #f4f4f5);
  cursor: pointer;
  transition: background var(--motion-fast), border-color var(--motion-fast);
}
.lx-copilot__chip:hover {
  background: color-mix(in srgb, var(--surface-elevated, #1a1a22) 90%, transparent);
  border-color: color-mix(in srgb, var(--hairline, rgba(255, 255, 255, 0.18)) 100%, transparent);
}

.lx-copilot__agenda,
.lx-copilot__due-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lx-copilot__agenda li,
.lx-copilot__due-list li {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: var(--radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-elevated, #1a1a22) 50%, transparent);
  color: var(--cp-chrome-text, #f4f4f5);
}
.lx-copilot__agenda-empty,
.lx-copilot__due-empty {
  color: var(--cp-chrome-text-faint, rgba(255, 255, 255, 0.5)) !important; /* style-allow: dark-chrome-empty-muted */
  background: transparent !important; /* style-allow: dark-chrome-empty-no-bg */
  font-style: italic;
}

.lx-copilot__quick-capture {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.lx-copilot__quick-capture-input {
  flex: 1 1 auto;
  background: color-mix(in srgb, var(--surface-elevated, #1a1a22) 70%, transparent);
  border: 1px solid var(--hairline, rgba(255, 255, 255, 0.1));
  border-radius: var(--radius-sm, 6px);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--cp-chrome-text, #f4f4f5);
  min-width: 0;
}
.lx-copilot__quick-capture-input::placeholder {
  color: var(--cp-chrome-text-faint, rgba(255, 255, 255, 0.4));
}
.lx-copilot__quick-capture-send {
  flex: 0 0 auto;
  width: 30px;
  background: #4f46e5; /* off-token-allow: dark-chrome-copilot-mark */ /* v4.01: was #6366f1 (4.47:1 vs #fff, < WCAG AA 4.5); indigo-600 = ~6.2:1 */
  border: 0;
  border-radius: var(--radius-sm, 6px);
  color: #fff; /* off-token-allow: dark-chrome-copilot-mark */
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.lx-copilot__quick-capture-send:hover { filter: brightness(1.08); }

/* ============================================================
   Copilot rail v4.00.23 — Context tab (page-personality aware).
   ============================================================ */

.lx-copilot__pane--context {
  padding: 14px 14px 18px !important; /* style-allow: context-pane-pad */
}

.lx-copilot__context-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--rmc-page-accent-soft, rgba(99, 102, 241, 0.12));
  color: var(--rmc-page-accent, #6366f1); /* off-token-allow: context-eyebrow-fallback */
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lx-copilot__context-glyph {
  font-size: 12px;
  line-height: 1;
}
.lx-copilot__context-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--cp-chrome-text, #f4f4f5);
}
.lx-copilot__context-description {
  font-size: 12px;
  line-height: 1.5;
  color: var(--cp-chrome-text-muted, rgba(255, 255, 255, 0.7));
  margin: 0 0 12px;
}

.lx-copilot__context-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.lx-copilot__context-metric {
  position: relative;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-elevated, #1a1a22) 70%, transparent);
  border-left: 2px solid var(--rmc-page-accent, #6366f1); /* off-token-allow: context-metric-accent */
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lx-copilot__context-metric[data-href] { cursor: pointer; }
.lx-copilot__context-metric[data-href]:hover {
  background: color-mix(in srgb, var(--surface-elevated, #1a1a22) 100%, transparent);
}
.lx-copilot__context-metric-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cp-chrome-text-faint, rgba(255, 255, 255, 0.55));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lx-copilot__context-metric-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--cp-chrome-text, #f4f4f5);
}
.lx-copilot__context-metric-delta {
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lx-copilot__context-metric-delta--up   { color: #16a34a; /* off-token-allow: delta-direction-up-status */ }
.lx-copilot__context-metric-delta--down { color: #dc2626; /* off-token-allow: delta-direction-down-status */ }
.lx-copilot__context-metric-delta--neutral { color: var(--cp-chrome-text-faint, rgba(255, 255, 255, 0.55)); }

.lx-copilot__context-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lx-copilot__context-recent li {
  font-size: 11px;
  line-height: 1.4;
  padding: 6px 8px;
  border-radius: var(--radius-sm, 6px);
  background: color-mix(in srgb, var(--surface-elevated, #1a1a22) 50%, transparent);
  color: var(--cp-chrome-text-muted, rgba(255, 255, 255, 0.7));
}
.lx-copilot__context-recent-empty {
  font-style: italic;
  color: var(--cp-chrome-text-faint, rgba(255, 255, 255, 0.45)) !important; /* style-allow: context-recent-empty */
  background: transparent !important; /* style-allow: context-recent-empty */
}

/* Collapsed-rail Context icon adopts the page accent so the user can
   read the current domain at a glance from the 44px strip. */
[data-rmc-page-domain] .lx-copilot__rail-icon--context {
  color: var(--rmc-page-accent, #6366f1);
}

/* v4.05.55 — Globe landing mission/ops split + 200x empty states */
.rmc-cp-landing-mode {
  display: block;
}

.rmc-cp-landing-mode__tabs {
  max-width: 28rem;
}
.rmc-cp-landing-pane[hidden] {
  display: none !important;
}
[data-rmc-cp-landing-mode="operations"] .rmc-cp-landing-pane[data-rmc-cp-landing-pane="mission"] {
  display: none !important;
}
[data-rmc-cp-landing-mode="operations"] .rmc-cp-landing-pane[data-rmc-cp-landing-pane="operations"] {
  display: block !important;
}
[data-rmc-cp-landing-mode="operations"] .rmc-cp-landing-pane[data-rmc-cp-landing-pane="operations"][hidden] {
  display: block !important;
}
.lx-cockpit-empty {
  text-align: center;
  padding: 1.25rem 1rem;
}
.lx-cockpit-empty__icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  opacity: 0.85;
}
.lx-cockpit-empty__title {
  font-weight: 650;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}
.rmc-cp-cockpit-live-stale[hidden] {
  display: none !important;
}

/* Active-tab wiring for Context follows the same pattern as the other
   tabs in the existing rule block. */
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="context"] .lx-copilot__pane[data-rmc-copilot-pane="context"] { display: block; }
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="context"] .lx-copilot__thread,
[data-rmc-copilot-rail][data-rmc-copilot-active-tab="context"] .lx-copilot__input-wrap { display: none; }


/* Adopted 2026-09-02 from static/css/rmc-copilot-rail.css, which was deleted.
   That file defined 18 selectors; 15 were used ONLY by
   templates/studio_os/partials/cockpit_copilot_rail.html, whose sole include
   sits inside the {% if False %} block at studio_os/shell.html:87 -- the
   retired v3.53 Mission Cockpit chrome, kept unreachable on purpose. This is
   the one rule a LIVE template still needs: the insights list in
   templates/partials/cockpit/_ai_copilot_rail.html, which renders on
   portal_base and control_plane_skeleton. rmc-cp-200x.css reaches both
   (bundled into portal-shell-enhanced.min.css for the portal shell, linked
   directly on the control plane), so the rule is delivered where the file
   never was -- nothing loaded rmc-copilot-rail.css at all. */
.rmc-copilot-rail__insights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
