/* ARCH: shell→shared→pack→active — geometry shell.css; color L2 shared; this file pack content only */
/**
 * hub-next · Dashboard styles (BP-scoped)
 * Loads with bp.hub.neit.dashboard.v1 · pack.js boot only.
 * Shell geometry: shell.css. Do not merge into other BP CSS.
 */

/**
 * Visual tokens — load only. Intelligence SOT (personas):
 *   hub.shared.persona.brand.v1  — naming, type, voice  → docs/BRAND_IDENTITY_GUIDE.md
 *   persona.signal.color.v1   — decision color       → docs/COLOR_GUIDE.md
 *   hub.shared.persona.shell.v1  — geometry / scroll    → docs/SHELL_GUIDE.md
 *
 * Color priority: status > work_type > information
 *
 * Select language — L2 hub.shared.persona.color.v1 (shell/shared tokens; pack uses var() only):
 *   BLUE  (--select-execute) = pulse / genie / motion — command to RUN
 *   PURPLE (--select-view)   = filter / view / inspect / subject selection
 * One purple for ALL view-chosen chrome (type chips = MD group chips = insp tabs = card).
 * Never use blue for filters; never use purple for execute CTAs.
 */
:root {
  /* Color/select tokens: L2 shared hub.shared.persona.color.v1 via pack-bpaas — do not redefine hex here */
  /* â€”â€” 1. Traffic light (status) â€”â€” */

  /* â€”â€” 1b. Select language (persona.signal.color.v1 · select) â€”â€” */
  /* Single ring recipe — every view-chosen control uses this exact shadow */

  /* â€”â€” 2. Work type (identity only â€” never competes with HOT red) â€”â€” */
  --type-incident: #f43f5e;
  --type-security: #a855f7;
  --type-request: #3b82f6;
  --type-maintenance: #14b8a6;
  --type-project: #8b5cf6;
  --type-backup: #f59e0b;
  --type-general: #94a3b8;

  /* â€”â€” 3. Cards — outline-active = VIEW/inspect selection (purple) â€”â€” */
  --card-bg: #0e141c;
  --card-bg-elevated: #141c28;
  --card-border: rgba(148, 163, 184, 0.14);
  --card-outline-active: var(--select-view);
  --card-outline-active-glow: var(--select-view-glow);
  --metric-positive: #22c55e;
  --metric-negative: #ef4444;
  --metric-neutral: #cbd5e1;
  --metric-label: rgba(255, 255, 255, 0.58);
  --section-header: rgba(255, 255, 255, 0.5);
  /* Card titles: brighter grey only — not white, not status colors */
  --card-title: rgba(255, 255, 255, 0.88);

  /* â€”â€” App shell surfaces (layout unchanged) â€”â€” */
  --msp-bg: #080b10;
  --msp-s1: var(--card-bg);
  --msp-s2: var(--card-bg-elevated);
  --msp-s3: #1a2433;
  --msp-border: var(--card-border);
  --msp-border-strong: rgba(148, 163, 184, 0.28);

  /* Aliases: accent = execute (blue); view selection uses --card-outline-active */
  --msp-accent: var(--select-execute);
  --msp-good: var(--signal-good);
  --msp-good-soft: #4ade80;
  --msp-attention: var(--signal-attention);
  --msp-attention-soft: #facc15;
  --msp-critical: var(--signal-critical);
  --msp-critical-soft: #f87171;
  --msp-text: #f2f4f8;
  /* Grey text: brighter than before, still not pure white */
  --msp-text-2: rgba(255, 255, 255, 0.72);
  --msp-text-3: rgba(255, 255, 255, 0.55);
  --msp-font: Inter, "Geist", system-ui, -apple-system, sans-serif;
  --msp-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* â€”â€” App / shell chrome (quiet) â€”â€” */
.hub-next-root {
  height: 100%;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden; /* no page scroll — only workbench list / fact stream / inspector */
  background: var(--msp-bg);
  color: var(--msp-text);
  font-family: var(--msp-font);
}
.shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--msp-border);
  background: var(--msp-s1);
  flex-shrink: 0;
}
.shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shell-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--msp-accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
.shell-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.shell-brand-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--msp-text);
}
.shell-brand-sub {
  font-size: 11px;
  color: var(--msp-text-2);
}
.shell-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.hub-next-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--msp-border-strong);
  color: var(--msp-text-2);
  background: transparent;
  font-family: inherit;
}
.hub-next-pill--pack {
  border-color: rgba(91, 106, 240, 0.35);
  color: #a5b0f7;
}
.hub-next-pill--skin {
  cursor: pointer;
  border-color: var(--msp-border-strong);
  color: var(--msp-text-2);
  background: var(--msp-s2);
}
.hub-next-pill--skin:hover {
  background: var(--msp-s3);
  color: var(--msp-text);
}
button.hub-next-pill {
  cursor: pointer;
}
/* shell-body geometry: shell.css L0 only (stripped pack override) */
/* Expand = a bit past 2× original, still capped (no 50vw grab) */
/* inspector expand width: shell.css --inspector-width only */
.shell-pane {
  border-right: 1px solid var(--msp-border);
  min-height: 0;
  min-width: 0;
  background: var(--msp-bg);
}
.shell-inspector {
  border-right: 0;
  border-left: 1px solid var(--msp-border);
  background: var(--msp-s1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.shell-tab-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  background: var(--msp-s1);
}
.shell-pane-label,
.shell-pane-head,
.shell-pane-body,
.shell-slot-empty,
.shell-ops-empty {
  /* product mounts replace chrome; hide leftover shell stubs */
}
.shell-workbench {
  background: var(--msp-s1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.shell-ops {
  padding: 0 !important;
  /* NO full-ops vertical scroller — only Fact Stream scrolls inside */
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--msp-bg);
  height: 100%;
  max-height: 100%;
}
.shell-workbench > .shell-pane-head,
.shell-workbench > .shell-pane-body,
.shell-workbench > .shell-pane-label,
.shell-inspector > .shell-pane-head,
.shell-inspector > .shell-pane-body {
  display: none;
}
/* Tab content in shell rail only â€” soft frosted icon buttons (ref style) */
.hub-next-rail-mounted {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 0;
}
.hub-next-rail-mounted--frost {
  gap: 12px;
  padding-top: 8px;
}

/* Frosted glass pill tabs â€” rounded square, soft elevation */
.hub-frost-tab {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(0, 0, 0, 0.12) 100%
  );
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.hub-frost-tab:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 55%,
    rgba(0, 0, 0, 0.1) 100%
  );
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 20px rgba(96, 165, 250, 0.18);
  transform: translateY(-1px);
}
.hub-frost-tab.is-active {
  color: #fff;
  border-color: rgba(109, 124, 255, 0.45);
  background: linear-gradient(
    160deg,
    rgba(109, 124, 255, 0.35) 0%,
    rgba(96, 165, 250, 0.18) 45%,
    rgba(14, 20, 28, 0.7) 100%
  );
  box-shadow:
    0 0 0 1px rgba(109, 124, 255, 0.25),
    0 0 24px rgba(109, 124, 255, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.hub-frost-tab:disabled {
  opacity: 0.4;
  cursor: default;
}
.hub-frost-tab-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}
.hub-frost-tab-icon svg {
  display: block;
}

/* legacy class hooks (if any remaining) */
.hub-next-tab {
  width: 42px;
  height: 42px;
}
.hub-next-rail-note {
  font-size: 9px;
  text-align: center;
  line-height: 1.25;
  margin: 4px 2px 0;
  color: var(--msp-text-3);
}
.muted {
  color: var(--msp-text-2);
  font-size: 12px;
}
code {
  font-family: var(--msp-mono);
  font-size: 10px;
  color: var(--msp-text-2);
}

/* Seed markers â€” quiet */
.msp-seed-tag {
  color: var(--msp-text-3);
  font-weight: 500;
  font-size: 11px;
}
.msp-seed-pill {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--msp-border);
  color: var(--msp-text-3);
  background: transparent;
}
.msp-trend {
  font-style: normal;
  font-size: 11px;
  color: var(--msp-good-soft);
  margin-left: 4px;
  font-weight: 600;
  text-shadow: none;
}

/* ===== Workbench HOT â€” color-managed queue (fills shell workbench only) ===== */
.msp-wb {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: calc(100vh - 52px);
  background: var(--card-bg);
}
.msp-wb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--msp-border);
}
.msp-wb-title {
  font-size: 12px;
  font-weight: 650;
  color: var(--card-title);
}
.msp-wb-meta {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--msp-critical);
  font-weight: 600;
}
.msp-wb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 10px 4px;
}
.msp-wb-chip {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--msp-border);
  color: var(--msp-text-3);
}
.msp-wb-chip--hot {
  color: #e8a090;
  border-color: rgba(209, 107, 91, 0.35);
  background: rgba(209, 107, 91, 0.1);
}
.msp-wb-chip--critical {
  color: var(--msp-critical);
  border-color: rgba(209, 107, 91, 0.45);
  background: rgba(209, 107, 91, 0.14);
}
.msp-wb-chip--attention {
  color: var(--msp-attention);
  border-color: rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.1);
}
.msp-wb-chip--alert {
  color: #7eb8d4;
  border-color: rgba(91, 106, 240, 0.3);
  background: rgba(91, 106, 240, 0.1);
}
.msp-wb-list {
  flex: 1;
  overflow: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msp-hot-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  text-align: left;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: var(--card-bg);
  color: inherit;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 0 0 1px var(--card-border);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
/* Color means action: red rail + HOT only when immediate; else no color */
.msp-hot-rail {
  width: 3px;
  flex-shrink: 0;
  align-self: stretch;
  background: transparent;
}
.msp-hot-rail--status {
  width: 3px;
  background: transparent;
}
.msp-hot-row--critical .msp-hot-rail--status {
  background: var(--signal-critical);
}
.msp-hot-row--neutral .msp-hot-rail--status {
  background: transparent;
}
.msp-hot-row:hover {
  background: var(--card-bg-elevated);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.28);
}
.msp-hot-row.is-selected {
  background: var(--card-bg-elevated);
  box-shadow:
    0 0 0 1.5px var(--card-outline-active),
    0 0 16px var(--card-outline-active-glow);
}
/* Immediate HOT keeps red status rail; selection outline is green (chosen, not urgency) */
.msp-hot-row--critical.is-selected {
  box-shadow:
    0 0 0 1.5px var(--card-outline-active),
    0 0 16px var(--card-outline-active-glow);
}
.msp-hot-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 2px;
}
.msp-hot-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--msp-text-2);
  text-transform: uppercase;
}
.msp-hot-tag--status.msp-hot-tag--critical {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.18);
}
.msp-hot-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 10px 10px 8px;
  flex: 1;
}
.msp-hot-badge {
  font-size: 9px;
  color: var(--card-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.92;
}
.msp-wb-chip--type {
  color: var(--type-security);
  border-color: rgba(168, 85, 247, 0.35);
}
.msp-hot-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--msp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msp-hot-sub {
  font-size: 11px;
  color: var(--msp-text-2);
}
.msp-ph-note {
  margin: 8px 12px;
  font-size: 9px;
  color: var(--msp-text-3);
  font-family: var(--msp-mono);
}

/* ===== Ops board â€” fill pane height; only D·Fact Stream scrolls ===== */
.msp-ops {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  width: 100%;
  background: var(--msp-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.msp-ops--pop {
  /* Quiet depth only â€” no big color washes behind the board */
  background: var(--msp-bg);
}
.msp-ops--pop::before {
  content: none;
}
.msp-ops-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  /* Clear air between major bands */
  gap: 16px;
  overflow: hidden;
  /* Ops-pane width (not viewport) drives B|C stack vs side-by-side */
  container-type: inline-size;
  container-name: msp-ops;
}
/* A keeps natural height; B|C|D row fills remaining ops height */
.msp-ops-body > .msp-zone--scoreboard,
.msp-ops-body > .msp-ops-titlebar {
  flex-shrink: 0;
}
.msp-ops-body > .msp-row-bcd {
  flex: 1 1 auto;
  min-height: 0;
}
.msp-zone--stream .msp-zone-head,
.msp-zone--stream .msp-stream-cols,
.msp-zone--stream .msp-ph-note {
  flex-shrink: 0;
}

/*
 * B tall left (full height of C+D)
 * Right column: C MSP estate ~half height, D fact stream same width + more room
 * Fact stream is NOT full ops width — matches estate width.
 */
.msp-row-bcd {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 12px 14px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
}
.msp-zone--bcd-actions {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.msp-col-cd {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow: hidden;
}
/* C · MSP estate — ~1.5× previous half-band */
.msp-zone--bcd-estate {
  flex: 0 0 auto;
  max-height: 63%; /* was 42% → +50% */
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 14px 10px;
}
.msp-zone--bcd-estate .msp-zone-head {
  margin-bottom: 10px;
}
.msp-zone--bcd-estate .msp-ph-note {
  margin: 6px 0 0;
}
/* D · Fact stream — same width as C, takes remaining vertical room */
.msp-zone--bcd-stream {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.msp-actions--stack {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
/* Tall actions pane fills height next to C+D */
.msp-actions--tall {
  justify-content: flex-start;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 4px;
}
.msp-actions--tall .msp-action {
  flex: 0 0 auto;
}
.msp-actions--stack .msp-action {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  height: auto;
  min-height: 38px;
  padding: 10px 12px;
  white-space: normal;
  line-height: 1.25;
}
.msp-actions--stack .msp-action--hero {
  width: 100%;
  min-height: 46px;
  font-size: 13px;
  padding: 12px 14px;
}
/* Estate band: ~1.5× cell scale vs prior compact half */
.msp-estate-grid--compact,
.msp-estate-grid--half {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.msp-estate-grid--half .msp-estate-cell {
  padding: 8px 9px 7px;
  min-height: 0;
  border-radius: 9px;
}
.msp-estate-grid--half .msp-estate-num {
  font-size: 13px;
  padding-left: 28px;
}
.msp-estate-grid--half .msp-estate-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.msp-estate-grid--half .msp-estate-ico svg {
  width: 14px;
  height: 14px;
}
.msp-estate-grid--half .msp-estate-lab {
  font-size: 9px;
}
.msp-estate-grid--half .msp-estate-top {
  gap: 7px;
}
/* Only stack when the *ops pane* is genuinely tight */
@container msp-ops (max-width: 780px) {
  .msp-row-bcd {
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .msp-zone--bcd-actions {
    max-height: none;
  }
  .msp-actions--tall {
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
  }
  .msp-actions--tall .msp-action {
    width: auto;
    min-width: 140px;
    flex: 1 1 auto;
  }
  .msp-actions--tall .msp-action--hero {
    flex: 1 1 100%;
  }
  .msp-zone--bcd-estate {
    max-height: none;
  }
  .msp-estate-grid--compact,
  .msp-estate-grid--half {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@container msp-ops (max-width: 520px) {
  .msp-estate-grid--compact,
  .msp-estate-grid--half {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@supports not (container-type: inline-size) {
  @media (max-width: 900px) {
    .msp-row-bcd {
      grid-template-columns: 1fr;
    }
  }
}

/* Sparklines â€” instrument pop without 3D twin */
.msp-spark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  flex-shrink: 0;
}
.msp-spark i {
  display: block;
  width: 3px;
  min-height: 15%;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.msp-spark--good i {
  background: var(--msp-good);
  opacity: 0.85;
  box-shadow: none;
}
.msp-spark--attention i {
  background: var(--msp-attention);
  opacity: 0.85;
  box-shadow: none;
}
.msp-spark--critical i {
  background: var(--msp-critical);
  opacity: 0.9;
  box-shadow: none;
}
.msp-spark--accent i {
  background: var(--msp-accent);
  opacity: 0.85;
  box-shadow: none;
}
.msp-spark--neutral i {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.1));
}
.msp-ops-titlebar h1 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--msp-text);
}
.msp-ops-titlebar p {
  margin: 0;
  font-size: 12px;
  color: var(--msp-text-2);
}

/* Zones + blocks â€” industrial green surface; green outline when active/chosen */
.msp-zone {
  border: none;
  border-radius: 14px;
  background: rgba(14, 20, 28, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 16px 16px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px var(--card-border),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.msp-zone--scoreboard {
  background: rgba(14, 20, 28, 0.94);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px var(--card-border),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Shared subject-block chosen outline = same --select-view ring (persona) */
.msp-is-active,
.msp-hero-card.is-active,
.msp-support.is-active,
.msp-estate-cell.is-active,
.msp-hot-row.is-selected {
  outline: none;
  box-shadow: var(--select-view-ring), 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
.msp-zone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.msp-zone-kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--card-title);
}
.msp-zone-meta,
.msp-zone-cmd {
  font-size: 10px;
  color: var(--msp-text-3);
  font-family: var(--msp-mono);
}
.msp-zone-cmd {
  margin-left: auto;
  opacity: 0.7;
}

/* â€”â€” Attention hierarchy (modern) â€”â€”
 * 1 Fleet Good Standing hero
 * 2 HOT NOW tile
 * 3 Create Matter
 * 4 other tiles
 * 5 fact scoreboard
 * 6 fact stream
 */

/* â€”â€” 3 equal columns: hero on top, 4 supports below — each group framed â€”â€” */
.msp-heroes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  width: 100%;
}
/* Group box: hero + 4 supports — buffer + easy identity */
.msp-hero-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 10px;
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 4px 18px rgba(0, 0, 0, 0.22);
}
.msp-hero-col--primary {
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, 0.38),
    0 0 20px rgba(96, 165, 250, 0.07),
    0 4px 18px rgba(0, 0, 0, 0.24);
}
.msp-hero-col--cases {
  box-shadow:
    inset 0 0 0 1px rgba(248, 113, 113, 0.18),
    0 4px 18px rgba(0, 0, 0, 0.22);
}
.msp-hero-col--revenue {
  box-shadow:
    inset 0 0 0 1px rgba(129, 140, 248, 0.22),
    0 4px 18px rgba(0, 0, 0, 0.22);
}
.msp-hero-card {
  display: flex;
  text-align: left;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: var(--card-bg-elevated);
  box-shadow:
    0 0 0 1px var(--card-border),
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  min-height: 128px;
  width: 100%;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.msp-hero-card:hover {
  background: var(--msp-s3);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.msp-hero-card.is-active {
  background: var(--msp-s3);
  box-shadow:
    var(--select-view-ring),
    0 10px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* Primary hero = default view-chosen outline (same purple ring) */
.msp-hero-card--primary,
.msp-hero-col--primary .msp-hero-card {
  box-shadow:
    var(--select-view-ring),
    0 8px 24px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.msp-hero-card--primary .msp-hero-card-value,
.msp-hero-col--primary .msp-hero-card-value {
  font-size: 44px;
}
.msp-hero-card--standing .msp-hero-card-accent {
  background: var(--signal-good);
}
.msp-hero-card--cases .msp-hero-card-accent {
  background: var(--signal-critical);
}
.msp-hero-card--revenue .msp-hero-card-accent {
  background: var(--signal-accent);
}
.msp-hero-card-accent {
  width: 4px;
  flex-shrink: 0;
}
.msp-hero-card-body {
  flex: 1;
  padding: 16px 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.msp-hero-card-label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--card-title);
}
.msp-hero-card-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.msp-hero-card-value {
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.msp-hero-card-unit {
  font-size: 12px;
  color: var(--msp-text-3);
  font-weight: 500;
}
.msp-hero-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.msp-hero-pill--good {
  color: #0b1a12;
  background: var(--msp-good);
}
.msp-hero-pill--attention {
  color: #1a1505;
  background: var(--msp-attention);
}
.msp-hero-pill--critical {
  color: #1a0a08;
  background: var(--msp-critical);
}
.msp-hero-pill--accent {
  color: #fff;
  background: var(--msp-accent);
}
.msp-hero-card-sub {
  font-size: 12px;
  color: var(--msp-text-2);
}
.msp-hero-card-cmd {
  font-size: 8px;
  font-family: var(--msp-mono);
  color: var(--msp-text-3);
  opacity: 0.55;
  margin-top: 2px;
}

/* 4 supports in a 2Ã—2 under each hero */
.msp-hero-supports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}
.msp-support {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: left;
  padding: 10px 10px;
  border: none;
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow:
    0 0 0 1px var(--card-border),
    0 2px 8px rgba(0, 0, 0, 0.22);
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-height: 56px;
  width: 100%;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.msp-support:hover {
  background: var(--card-bg-elevated);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.28);
}
.msp-support.is-active {
  background: var(--card-bg-elevated);
  box-shadow: var(--select-view-ring), 0 4px 12px rgba(0, 0, 0, 0.28);
}
.msp-support-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--card-title);
}
.msp-support-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--msp-text);
  letter-spacing: -0.02em;
}
.msp-support--critical .msp-support-value {
  color: var(--msp-critical-soft);
}
.msp-support--attention .msp-support-value {
  color: var(--msp-attention-soft);
}
.msp-support--good .msp-support-value {
  color: var(--msp-good-soft);
}
.msp-support--accent .msp-support-value {
  color: #c0c7ff;
}

/* MSP estate fact grid (C) — dense pills, not large cards */
.msp-zone--estate {
  background: rgba(14, 20, 28, 0.85);
}
.msp-estate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 6px;
}
.msp-estate-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: left;
  padding: 6px 8px 5px;
  border: none;
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 0 0 1px var(--card-border);
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.msp-estate-cell:hover {
  background: var(--card-bg-elevated);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.28);
}
.msp-estate-cell.is-active {
  background: var(--card-bg-elevated);
  box-shadow:
    0 0 0 1.5px var(--card-outline-active),
    0 0 12px var(--card-outline-active-glow);
}
.msp-estate-top {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
/* Icon pill — small life without eating real estate */
.msp-estate-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--msp-text-2);
}
.msp-estate-ico svg {
  width: 12px;
  height: 12px;
  display: block;
}
.msp-estate-ico--good {
  color: var(--msp-good-soft);
  background: rgba(52, 211, 153, 0.1);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.22);
}
.msp-estate-ico--attention {
  color: var(--msp-attention-soft);
  background: rgba(251, 191, 36, 0.1);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.22);
}
.msp-estate-ico--critical {
  color: var(--msp-critical-soft);
  background: rgba(248, 113, 113, 0.12);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28);
}
.msp-estate-ico--neutral {
  color: rgba(180, 190, 210, 0.85);
}
.msp-estate-lab {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--card-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.msp-estate-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--msp-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding-left: 26px; /* align under label, past icon */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.msp-estate-cell--good .msp-estate-num {
  color: var(--msp-good-soft);
}
.msp-estate-cell--attention .msp-estate-num {
  color: var(--msp-attention-soft);
}
.msp-estate-cell--critical .msp-estate-num {
  color: var(--msp-critical-soft);
}
.msp-estate-cell--neutral .msp-estate-num {
  color: var(--msp-text);
}

.msp-stream-rail {
  width: 2px;
  align-self: stretch;
  border-radius: 1px;
  background: transparent;
  flex-shrink: 0;
}
.msp-stream-item.is-hot .msp-stream-rail {
  background: var(--msp-critical);
}

@media (max-width: 1100px) {
  .msp-heroes {
    grid-template-columns: 1fr;
  }
  .msp-estate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Workbench must stay visible â€” shell grid owns layout; ensure ops doesn't break out */
.shell-workbench {
  min-width: 0;
}
.msp-ops,
.msp-ops-body,
.msp-zone--scoreboard,
.msp-heroes {
  max-width: 100%;
  box-sizing: border-box;
}
/* Inspector mount fills pane height so its own scroll works */
.shell-inspector > .msp-insp {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

/* Priority 2+4 â€” tiles */
.msp-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.msp-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  text-align: left;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: none;
  background: rgba(11, 12, 14, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-height: 88px;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.msp-tile--pop:hover {
  background: rgba(24, 27, 34, 0.9);
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.msp-tile-top {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.msp-tile-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--msp-text-3);
}
.msp-tile-value {
  font-family: var(--msp-font);
  font-size: 26px;
  font-weight: 650;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: none;
}
.msp-tile-dim {
  font-size: 9px;
  color: var(--msp-text-3);
  font-family: var(--msp-mono);
  opacity: 0.5;
  word-break: break-all;
}

/* Priority 2 â€” HOT NOW: solid accent, no heavy gradient wash */
.msp-tile--hot {
  background: rgba(255, 107, 92, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 107, 92, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--msp-critical);
  min-height: 96px;
  padding-left: 11px;
}
.msp-tile--hot .msp-tile-label {
  color: var(--msp-critical-soft);
  opacity: 1;
  text-shadow: none;
}
.msp-tile--hot .msp-tile-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--msp-critical-soft);
  letter-spacing: -0.03em;
  text-shadow: none;
}
.msp-tile--hot:hover {
  background: rgba(255, 107, 92, 0.14);
  transform: translateY(-1px);
}

/* Demoted secondary metrics */
.msp-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.msp-metrics--quiet .msp-metric {
  padding: 7px 10px;
  min-width: 120px;
  opacity: 0.9;
  background: rgba(11, 12, 14, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
.msp-metrics--quiet .msp-metric:hover {
  opacity: 1;
  background: var(--msp-s2);
}
.msp-metrics--quiet .msp-metric-label {
  font-size: 9px;
  color: var(--card-title);
  font-weight: 600;
}
.msp-metrics--quiet .msp-metric-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--msp-text);
}
.msp-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 11px;
  border-radius: 6px;
  border: none;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--msp-border);
  color: inherit;
  cursor: pointer;
  font: inherit;
  min-width: 108px;
}
.msp-metric:hover {
  background: var(--msp-s2);
}
.msp-metric-label {
  font-size: 10px;
  color: var(--card-title);
  font-weight: 600;
}
.msp-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.msp-metric-value {
  font-family: var(--msp-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--msp-text);
}
.msp-metrics--quiet .msp-spark {
  height: 14px;
  opacity: 0.85;
}

/* B Â· Quick Actions â€” Priority 3 Create Matter */
.msp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.msp-action {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 0 14px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--msp-border-strong);
  background: transparent;
  color: var(--msp-text-2);
  cursor: pointer;
}
.msp-action:hover {
  background: var(--msp-s2);
  color: var(--msp-text);
  border-color: var(--msp-border-strong);
}
.msp-action--primary {
  background: var(--msp-accent);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.msp-action--primary:hover {
  /* L2 shared-select-chrome owns solid blue hover */
  background: var(--select-execute);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.msp-action--hero {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
}

/* Priority 5â€“6 â€” lower than scoreboard but still glass */
.msp-zone--demoted {
  background: rgba(14, 20, 28, 0.7);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0.95;
}
.msp-zone--demoted .msp-zone-kicker {
  color: var(--card-title);
  font-size: 11px;
  font-weight: 650;
}
.msp-zone--demoted .msp-strip {
  background: rgba(11, 12, 14, 0.45);
  opacity: 1;
}
.msp-zone--demoted .msp-strip-row {
  font-size: 12px;
}
.msp-zone--demoted .msp-strip-row b {
  font-weight: 500;
  color: var(--msp-text-2);
}
.msp-zone--scoreboard {
  padding-bottom: 14px;
}

/* C Â· Fact Scoreboard â€” dimension cells that pop */
.msp-strips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.msp-strip {
  padding: 12px 12px 10px;
  border-radius: 10px;
  border: none;
  background: var(--msp-bg);
  cursor: pointer;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px var(--msp-border);
}
.msp-strip:hover {
  background: var(--msp-s2);
}
.msp-strip-label {
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 10px;
  color: var(--card-title);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.msp-strip-label em {
  font-style: normal;
  font-size: 9px;
  color: var(--msp-text-3);
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.msp-dim-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.msp-dim-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 8px;
  background: var(--msp-s1);
  box-shadow: inset 0 0 0 1px var(--msp-border);
  min-height: 52px;
}
.msp-dim-cell--good {
  background: rgba(61, 255, 160, 0.1);
  box-shadow: inset 0 0 0 1px rgba(61, 255, 160, 0.35);
}
.msp-dim-cell--attention {
  background: rgba(255, 210, 58, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 58, 0.35);
}
.msp-dim-cell--critical {
  background: rgba(255, 107, 92, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 92, 0.4);
}
.msp-dim-cell--accent {
  background: rgba(109, 124, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(109, 124, 255, 0.35);
}
.msp-dim-lab {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--msp-text-3);
}
.msp-dim-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--msp-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.msp-dim-cell--good .msp-dim-num {
  color: var(--msp-good-soft);
  text-shadow: none;
}
.msp-dim-cell--attention .msp-dim-num {
  color: var(--msp-attention-soft);
  text-shadow: none;
}
.msp-dim-cell--critical .msp-dim-num {
  color: var(--msp-critical-soft);
  text-shadow: none;
}
.msp-dim-cell--accent .msp-dim-num {
  color: #c0c7ff;
  text-shadow: none;
}
.msp-dim-meta {
  font-size: 10px;
  color: var(--msp-text-2);
}
.msp-strip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--msp-text-2);
}
.msp-strip-row b {
  color: var(--msp-text);
  font-family: var(--msp-font);
  font-weight: 500;
  margin-left: 4px;
}
.msp-strip-cmd {
  margin-top: 10px;
  font-size: 9px;
  color: var(--msp-text-3);
  font-family: var(--msp-mono);
  opacity: 0.7;
}

/* D Â· Fact Stream — full-width rich fact rows */
.msp-filter {
  margin-left: auto;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 10px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--msp-border);
  background: transparent;
  color: var(--msp-text-3);
  cursor: pointer;
}
.msp-filter:hover {
  color: var(--msp-text-2);
  background: var(--msp-s2);
}
.msp-filter.is-on {
  border-color: rgba(209, 107, 91, 0.4);
  color: var(--msp-critical);
  background: rgba(209, 107, 91, 0.08);
}
/* Column labels for full ops width */
.msp-stream-cols {
  display: grid;
  grid-template-columns: 3px 44px 72px minmax(180px, 1.6fr) minmax(100px, 0.9fr) 88px 88px 90px minmax(100px, 0.85fr);
  gap: 8px 10px;
  align-items: center;
  padding: 4px 10px 8px 6px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--msp-text-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 4px;
}
.msp-stream {
  list-style: none;
  margin: 0;
  padding: 0 2px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* ONLY scroller in ops — fact stream category, not whole ops screen */
  flex: 1 1 auto;
  min-height: 120px;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.msp-stream-item {
  display: grid;
  grid-template-columns: 3px 44px 72px minmax(180px, 1.6fr) minmax(100px, 0.9fr) 88px 88px 90px minmax(100px, 0.85fr);
  gap: 8px 10px;
  align-items: center;
  padding: 10px 10px 10px 6px;
  border-radius: 10px;
  font-size: 13px;
  border: none;
  background: var(--card-bg);
  box-shadow: 0 0 0 1px var(--card-border);
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}
.msp-stream-item:hover {
  background: var(--card-bg-elevated);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.28);
}
.msp-stream-item.is-hot {
  background: rgba(248, 113, 113, 0.04);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.16);
}
.msp-stream-item.is-hot:hover {
  background: rgba(248, 113, 113, 0.08);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.3);
}
.msp-stream-rail {
  width: 3px;
  align-self: stretch;
  border-radius: 2px;
  background: transparent;
  flex-shrink: 0;
}
.msp-stream-item.is-hot .msp-stream-rail {
  background: var(--msp-critical);
}
.msp-stream-item--attention .msp-stream-rail {
  background: var(--msp-attention);
}
.msp-stream-item--good .msp-stream-rail {
  background: var(--msp-good);
}
.msp-stream-t {
  font-family: var(--msp-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--msp-text-3);
}
.msp-stream-kind {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 5px;
  text-align: center;
  color: var(--msp-text-2);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.msp-stream-kind--matter {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.1);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}
.msp-stream-kind--client {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.1);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.22);
}
.msp-stream-kind--alert {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.25);
}
.msp-stream-kind--estate {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.08);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.2);
}
.msp-stream-kind--finance {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.08);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.2);
}
.msp-stream-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.msp-stream-title {
  color: var(--msp-text);
  line-height: 1.3;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msp-stream-item.is-hot .msp-stream-title {
  font-weight: 650;
}
.msp-stream-summary {
  color: var(--msp-text-2);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msp-stream-wt {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--msp-text-3);
  margin-top: 1px;
}
.msp-stream-client,
.msp-stream-ref,
.msp-stream-actor {
  font-size: 12px;
  color: var(--msp-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.msp-stream-client {
  font-weight: 500;
  color: var(--card-title);
}
.msp-stream-ref {
  font-family: var(--msp-mono);
  font-size: 11px;
  color: var(--msp-text-3);
}
.msp-stream-status {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.msp-stream-status--critical {
  color: var(--msp-critical-soft);
}
.msp-stream-status--attention {
  color: var(--msp-attention-soft);
}
.msp-stream-status--good {
  color: var(--msp-good-soft);
}
.msp-stream-status--neutral {
  color: var(--msp-text-2);
}
.msp-stream-flags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 0;
}
.msp-stream-hot {
  font-size: 9px;
  font-weight: 700;
  color: var(--msp-critical-soft);
  letter-spacing: 0.06em;
  text-shadow: none;
}
.msp-stream-cmd {
  font-family: var(--msp-mono);
  font-size: 9px;
  color: var(--msp-text-3);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
/* Narrow ops: stack secondary meta under fact */
@container msp-ops (max-width: 900px) {
  .msp-stream-cols {
    display: none;
  }
  .msp-stream-item {
    grid-template-columns: 3px 40px 64px 1fr auto;
    grid-template-rows: auto auto;
  }
  .msp-stream-client,
  .msp-stream-status,
  .msp-stream-ref,
  .msp-stream-actor {
    display: none;
  }
  .msp-stream-main {
    grid-column: 4;
  }
  .msp-stream-flags {
    grid-column: 5;
    grid-row: 1 / span 2;
  }
}
.msp-cmd-toast {
  position: sticky;
  bottom: 8px;
  align-self: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-family: var(--msp-mono);
  background: var(--msp-s3);
  border: 1px solid var(--msp-border-strong);
  color: var(--msp-text-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 5;
}
.msp-cmd-toast.is-on {
  opacity: 1;
}

/* Inspector — wide pane, NO vertical body scroll; drag-to-pan horizontal */
.msp-insp {
  padding: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden; /* never vertical scroll the inspector shell */
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.msp-insp-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
}
.msp-insp-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.msp-insp-tab {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  color: var(--msp-text-2);
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.msp-insp-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}
.msp-insp-tab-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}
/* Separator before fleet kind surface tabs (MSP | Peer | ValOS) */
.msp-insp-tab-sep {
  width: 1px;
  height: 22px;
  margin: 0 4px 0 6px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 1px;
  align-self: center;
}
/* Kind tabs — same icon chrome as core tabs; label only in hover title */
.msp-insp-tab--kind {
  width: 34px;
  min-width: 34px;
  padding: 0;
}
.msp-insp-tab-kind-label {
  /* legacy text labels retired — icons + title hover only */
  display: none;
}
.msp-insp-tab--kind-msp.is-active,
.msp-insp-tab--kind-peer.is-active,
.msp-insp-tab--kind-valos.is-active {
  /* same select-view purple as other active insp tabs */
}
.msp-insp-expand {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: transparent;
  color: var(--msp-text-2);
  cursor: pointer;
  flex-shrink: 0;
}
.msp-insp-expand:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.08);
}
.msp-insp-identity {
  padding: 10px 14px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
/*
 * Tab pages — discrete data contracts (NOT a horizontal wheel).
 * Only .is-on page fills the pane.
 */
.msp-insp-pages {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.msp-insp-page {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 0 14px 14px;
  box-sizing: border-box;
}
.msp-insp-page.is-on {
  display: flex;
}
.msp-insp-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  padding: 12px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  flex-shrink: 0;
}
.msp-insp-contract {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--msp-text-3);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
}
.msp-insp-page-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--msp-text);
  letter-spacing: -0.01em;
}
.msp-insp-page-id {
  margin-left: auto;
  font-family: var(--msp-mono);
  font-size: 10px;
  color: var(--msp-text-3);
}
.msp-insp-page-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 2px 2px 4px;
}
.msp-insp-lead {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-title);
  flex-shrink: 0;
}
.msp-insp-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--msp-text-2);
  flex-shrink: 0;
}
/* Evidence / log — 2-col contract fields in-pane */
.msp-insp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.msp-insp-list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--msp-text-2);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card-bg-elevated);
  box-shadow: 0 0 0 1px var(--card-border);
  min-width: 0;
  max-width: 100%;
}
.msp-insp-list-t {
  font-family: var(--msp-mono);
  font-size: 10px;
  color: var(--msp-text-3);
}
/* Dimensions — full page 2-col field grid */
.msp-insp-dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 0;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  flex: 1 1 auto;
  align-content: start;
}
.msp-insp-dim {
  transition: box-shadow 0.15s ease;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.msp-insp-dim:hover {
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.3);
}
.msp-insp-hint {
  margin: 6px 0 0;
  font-size: 10px;
  color: var(--msp-text-3);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.msp-insp-actions-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.msp-insp-actions-row .msp-insp-run {
  flex: 1 1 auto;
  min-width: 140px;
}
.msp-insp-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.msp-insp-kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--msp-text-3);
  font-weight: 600;
}
.msp-insp-type {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--msp-text-2);
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--msp-border);
}
.msp-insp-type--critical {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.15);
}
.msp-insp-type--neutral {
  color: var(--msp-text-2);
  border-color: var(--card-border);
  background: transparent;
}
.msp-insp-type--source {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.1);
  letter-spacing: 0.06em;
}
.msp-stream-item.is-active {
  background: var(--card-bg-elevated);
  box-shadow: var(--select-view-ring);
}
/* msp-action.is-active = execute (overridden to blue in select-execute block) */
.msp-insp-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--msp-text);
}
.msp-insp-sub {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--msp-text-2);
}
.msp-insp-dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.msp-insp-dim {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 10px;
  border-radius: 10px;
  background: var(--msp-bg);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px var(--msp-border);
  min-height: 64px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.msp-insp-dim--good {
  background: rgba(61, 255, 160, 0.1);
  box-shadow: inset 0 0 0 1px rgba(61, 255, 160, 0.35);
}
.msp-insp-dim--attention {
  background: rgba(255, 210, 58, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 58, 0.35);
}
.msp-insp-dim--critical {
  background: rgba(255, 107, 92, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 92, 0.4);
}
.msp-insp-dim--accent {
  background: rgba(109, 124, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(109, 124, 255, 0.35);
}
.msp-insp-dim--neutral {
  background: var(--msp-s2);
}
.msp-insp-dim-lab {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--card-title);
}
.msp-insp-dim-num {
  font-size: 15px;
  font-weight: 600;
  color: var(--msp-text);
  line-height: 1.25;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.msp-insp-dim--good .msp-insp-dim-num {
  color: var(--msp-good-soft);
  text-shadow: none;
}
.msp-insp-dim--attention .msp-insp-dim-num {
  color: var(--msp-attention-soft);
  text-shadow: none;
}
.msp-insp-dim--critical .msp-insp-dim-num {
  color: var(--msp-critical-soft);
  text-shadow: none;
}
.msp-insp-dim--accent .msp-insp-dim-num {
  color: #c8ceff;
  text-shadow: none;
}
.msp-insp-dim-meta {
  font-size: 10px;
  color: var(--msp-text-2);
}
.msp-insp-run {
  width: 100%;
}

/* ===== Legacy hud_v0 (A/B only â€” SpaceX lab) ===== */
.msp-ops--hud_v0 {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(14, 116, 144, 0.14), transparent 55%),
    linear-gradient(180deg, #030508 0%, #070b12 50%, #05070a 100%);
}
.msp-ops--hud_v0 .msp-zone {
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(8px);
}
.msp-ops--hud_v0 .msp-tile {
  background: rgba(8, 12, 20, 0.4);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}
.msp-ops--hud_v0 .msp-tile-value {
  font-family: var(--msp-mono);
  text-shadow: 0 0 20px rgba(125, 211, 252, 0.2);
}
.msp-ops--hud_v0 .msp-headline-score {
  font-family: var(--msp-mono);
  text-shadow: 0 0 28px rgba(125, 211, 252, 0.25);
}
.msp-ops--hud_v0 .msp-zone-kicker {
  color: #7dd3fc;
  letter-spacing: 0.12em;
}
.msp-ops--hud_v0 .msp-action--primary {
  background: rgba(14, 116, 144, 0.45);
  border-color: rgba(56, 189, 248, 0.45);
}

.hud-strip {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 1.2fr) 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.55), rgba(8, 12, 20, 0.2));
  backdrop-filter: blur(14px);
}
.hud-gauges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hud-gauge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: radial-gradient(circle at 50% 45%, rgba(15, 23, 42, 0.2), rgba(2, 6, 12, 0.75));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.08);
}
.hud-gauge-label {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #94a3b8;
  font-weight: 600;
}
.hud-gauge-value {
  font-family: var(--msp-mono);
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
}
.hud-gauge-unit {
  font-size: 8px;
  color: #64748b;
  letter-spacing: 0.08em;
}
.hud-center {
  text-align: center;
}
.hud-mission {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #94a3b8;
  margin-bottom: 2px;
}
.hud-clock {
  font-family: var(--msp-mono);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.04em;
  text-shadow: 0 0 36px rgba(125, 211, 252, 0.25);
}
.hud-phase-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 4px;
  max-width: 180px;
}
.hud-phase-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.hud-phase-dot.is-on {
  background: #7dd3fc;
  border-color: #7dd3fc;
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.7);
}
.hud-phase-line {
  height: 1px;
  flex: 1;
  min-width: 24px;
  background: rgba(148, 163, 184, 0.25);
}
.hud-phase-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #64748b;
}
.hud-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.hud-badge {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}
.hud-badge--dim {
  border-color: rgba(148, 163, 184, 0.2);
  color: #64748b;
}

.hub-next-root[data-dash-skin="hud_v0"] .shell-header,
.hub-next-root[data-dash-skin="hud_v0"] .shell-tab-rail,
.hub-next-root[data-dash-skin="hud_v0"] .shell-workbench,
.hub-next-root[data-dash-skin="hud_v0"] .shell-inspector {
  background: rgba(5, 8, 14, 0.55);
}

@media (max-width: 1200px) {
  .msp-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .msp-strips {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 960px) {
  /* shell responsive geometry: shell.css only */
  .hud-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hud-gauges,
  .hud-side {
    justify-content: center;
    align-items: center;
  }
}

