:root {
  /* Warm Sand & Desert Stone Design System */
  --sand-bg: #141210;
  --sand-surface: #1b1916;
  --sand-surface-hover: #24201b;
  --sand-card: #1f1c18;
  --sand-border: #2c2822;
  --sand-border-subtle: #23201a;

  --sand-gold: #d4a373;
  --sand-bone: #f7f3ee;
  --sand-muted: #9e9589;
  --sand-faint: #615a50;

  --sage-green: #609966;
  --sage-dim: rgba(96, 153, 102, 0.15);

  --terracotta: #cc6b49;
  --terracotta-dim: rgba(204, 107, 73, 0.15);

  --dune-amber: #dd9d4a;
  --dune-amber-dim: rgba(221, 157, 74, 0.15);

  /* Semantic Mappings */
  --bg-primary: var(--sand-bg);
  --bg-secondary: var(--sand-surface);
  --bg-card: var(--sand-card);
  --bg-card-hover: var(--sand-surface-hover);
  --border-color: var(--sand-border);
  --border-focus: var(--sand-gold);

  --text-main: var(--sand-bone);
  --text-muted: var(--sand-muted);
  --text-dim: var(--sand-faint);

  --color-healthy: var(--sage-green);
  --color-healthy-bg: var(--sage-dim);
  --color-root-cause: var(--terracotta);
  --color-root-cause-bg: var(--terracotta-dim);
  --color-suppressed: #a855f7;
  --color-suppressed-bg: rgba(168, 85, 247, 0.14);
  --color-degraded: var(--dune-amber);
  --color-degraded-bg: var(--dune-amber-dim);
  --color-unknown: var(--sand-faint);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius: 8px;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

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

body {
  background-color: var(--sand-bg);
  color: var(--sand-bone);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Custom Minimal Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--sand-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--sand-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--sand-gold);
}

/* ==================================================================   HEADER & NAVIGATION
   ========================================================================= */
.sentinel-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

.brand-title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.overall-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.overall-status-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.overall-status-badge.status-healthy {
  background: var(--color-healthy-bg);
  color: var(--color-healthy);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.overall-status-badge.status-critical {
  background: var(--color-root-cause-bg);
  color: var(--color-root-cause);
  border: 1px solid rgba(239, 68, 68, 0.5);
  animation: pulse-border 1.5s infinite;
}

.overall-status-badge.status-degraded {
  background: var(--color-suppressed-bg);
  color: var(--color-suppressed);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

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

.status-healthy .pulse-dot {
  background-color: var(--color-healthy);
  box-shadow: 0 0 8px var(--color-healthy);
}

.status-critical .pulse-dot {
  background-color: var(--color-root-cause);
  box-shadow: 0 0 10px var(--color-root-cause);
  animation: pulse-dot 1s infinite;
}

.status-degraded .pulse-dot {
  background-color: var(--color-suppressed);
  box-shadow: 0 0 8px var(--color-suppressed);
}

/* View Switcher */
.view-switcher {
  display: flex;
  background-color: var(--bg-primary);
  padding: 3px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

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

.view-btn.active {
  background: var(--border-color);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Quick Filter: All vs Issues Only */
.filter-toggle-group {
  display: flex;
  background-color: var(--bg-primary);
  padding: 3px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  gap: 3px;
}

.filter-toggle-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  user-select: none;
}

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

.filter-toggle-btn.active {
  background: var(--border-color);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.filter-toggle-btn.active[data-filter-mode="issues"] {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.filter-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.filter-toggle-btn.active .filter-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.filter-badge.badge-issues {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.filter-toggle-btn.active .filter-badge.badge-issues {
  background: #ef4444;
  color: #fff;
}

/* Header Right Controls */
.header-right-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-search-wrap {
  position: relative;
}

.header-search-input {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  width: 170px;
  transition: all 0.2s ease;
}

.header-search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  width: 220px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.tools-dropdown-wrapper {
  position: relative;
}

.btn-tools {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-tools:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.tools-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem 0;
  min-width: 210px;
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.tools-dropdown-menu.show {
  display: flex !important;
}

.dropdown-item {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 0.55rem 1rem;
  text-align: left;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: background 0.15s ease;
  font-family: var(--font-sans);
}

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

.btn-action {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

/* ==================================================================   SIMULATION BAR & ROOT CAUSE ALERT BANNER
   ========================================================================= */
.simulation-bar {
  background: #171d2b;
  border-bottom: 1px solid #2d3b58;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.sim-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.sim-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-sim {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all 0.15s ease;
}

.btn-sim:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #3b82f6;
}

.btn-sim.sim-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-sim.sim-danger:hover {
  background: var(--color-root-cause-bg);
  border-color: var(--color-root-cause);
}

.btn-sim.sim-reset {
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.btn-sim.sim-reset:hover {
  background: var(--color-healthy-bg);
  border-color: var(--color-healthy);
}

/* Root Cause Alert Banner */
.root-cause-banner {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.22) 0%, rgba(168, 85, 247, 0.18) 100%);
  border-bottom: 2px solid var(--color-root-cause);
  padding: 0.75rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.root-cause-banner.active {
  display: flex;
}

.root-cause-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.banner-icon {
  font-size: 1.3rem;
  animation: bounce 1s infinite alternate;
}

.banner-text-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.banner-text-desc {
  font-size: 0.8rem;
  color: #e2e8f0;
}

.banner-tag-root {
  background: var(--color-root-cause);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.banner-tag-suppressed {
  background: var(--color-suppressed);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* ==================================================================   COMPACT INLINE STATUS STRIP (~36px height)
   ========================================================================= */
.status-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.45rem 1.25rem;
  margin: 0.75rem 1.5rem 0.25rem 1.5rem;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  overflow-x: auto;
}

.status-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.status-strip-item.clickable {
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.status-strip-item.clickable:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fff;
}

.strip-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.strip-label {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.strip-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
}

.strip-sub {
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.strip-divider {
  width: 1px;
  height: 16px;
  background: var(--border-color);
  flex-shrink: 0;
}

/* Incidents Modal Styling */
.incident-card {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.incident-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.incident-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.incident-domain {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #fca5a5;
  text-transform: uppercase;
}

.incident-target {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.incident-blast-radius {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.incident-btn-inspect {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.incident-btn-inspect:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
}

/* ==================================================================   MAIN VIEW CONTAINER
   ========================================================================= */
.main-content {
  flex: 1;
  padding: 1rem 1.5rem 2rem 1.5rem;
}

.view-container {
  display: none;
}

.view-container.active {
  display: block;
}

/* ==================================================================   VIEW 1: FUNCTIONAL APP CATEGORIES
   ========================================================================= */
.noc-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.app-category-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.app-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.app-category-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.app-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.app-category-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.app-category-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.app-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.15rem;
}

.app-service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 140px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.app-service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-card-identity {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.app-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}

.app-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-card-badge.status-healthy {
  background: var(--color-healthy-bg);
  color: var(--color-healthy);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.app-card-badge.status-critical {
  background: var(--color-root-cause-bg);
  color: var(--color-root-cause);
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.app-card-badge.status-degraded {
  background: var(--color-suppressed-bg);
  color: var(--color-suppressed);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.app-card-badge.status-maintenance {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.app-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.app-card-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-card-link-btn {
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  transition: all 0.15s ease;
}

.app-card-link-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

.dual-endpoints-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.endpoint-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.endpoint-chip.up {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.endpoint-chip.sso-enforced,
.endpoint-chip.sso {
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.endpoint-chip.down {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.endpoint-chip.suppressed {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.pillar-header {
  background: #151d2f;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-count-badge {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  color: var(--text-muted);
}

.pillar-nodes-list {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 80vh;
  overflow-y: auto;
}

/* Node Card */
.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.node-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Node Card Status Accents */
.node-card.healthy {
  border-left: 4px solid var(--color-healthy);
}

.node-card.root-cause {
  border: 1px solid var(--color-root-cause);
  border-left: 6px solid var(--color-root-cause);
  background: rgba(239, 68, 68, 0.09);
  animation: pulse-card 2s infinite ease-in-out;
}

.node-card.suppressed {
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-left: 4px solid var(--color-suppressed);
  background: rgba(168, 85, 247, 0.06);
}

.node-card.degraded {
  border-left: 4px solid var(--color-degraded);
}

.node-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.node-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.node-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-type {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  text-transform: uppercase;
}

.badge-status {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.badge-status.healthy {
  background: var(--color-healthy-bg);
  color: var(--color-healthy);
}

.badge-status.root-cause {
  background: var(--color-root-cause);
  color: #fff;
}

.badge-status.suppressed {
  background: var(--color-suppressed);
  color: #fff;
}

.badge-update {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  animation: pulse-update 2.5s infinite;
}

@keyframes pulse-update {
  0%, 100% { border-color: rgba(59, 130, 246, 0.45); }
  50% { border-color: rgba(96, 165, 250, 0.9); box-shadow: 0 0 6px rgba(59, 130, 246, 0.35); }
}

.btn-launch-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.72rem;
  transition: all 0.15s ease;
  margin-left: 0.35rem;
}

.btn-launch-external:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #fff;
  transform: translateY(-1px);
}

.dual-endpoints-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-family: var(--font-mono);
}

.endpoint-chip {
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.endpoint-chip.up {
  background: var(--color-healthy-bg);
  color: #6ee7b7;
}

.endpoint-chip.down {
  background: var(--color-root-cause-bg);
  color: #fca5a5;
}

.inspector-launch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #3b82f6;
}

.inspector-launch-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.node-card-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.probe-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.probe-latency {
  color: var(--text-muted);
}

.node-root-cause-alert-tag {
  margin-top: 0.45rem;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==================================================================   VIEW 2: INTERACTIVE DEPENDENCY TREE (DAG)
   ========================================================================= */
.dag-view-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  min-height: 650px;
}

.dag-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dag-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dag-tiers-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.dag-tier-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dag-tier-header {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.4rem;
}

.dag-tier-nodes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dag-node-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.dag-node-box:hover {
  background: var(--bg-card-hover);
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.dag-node-box.selected {
  border-color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.dag-node-box.healthy {
  border-left: 4px solid var(--color-healthy);
}

.dag-node-box.root-cause {
  border: 1px solid var(--color-root-cause);
  border-left: 6px solid var(--color-root-cause);
  background: rgba(239, 68, 68, 0.12);
  animation: pulse-card 1.5s infinite;
}

.dag-node-box.suppressed {
  border: 1px solid var(--color-suppressed);
  border-left: 4px solid var(--color-suppressed);
  background: rgba(168, 85, 247, 0.08);
}

.dag-node-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.dag-node-dep-info {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
}

.dag-dep-tag {
  color: #93c5fd;
}

/* ==================================================================   VIEW 3: MOBILE PWA VIEW
   ========================================================================= */
.mobile-view-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.mobile-filter-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip.active {
  background: #2563eb;
  color: #fff;
  border-color: #3b82f6;
}

.mobile-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==================================================================   NODE INSPECTOR MODAL (SPACIOUS 1060px DIALOG)
   ========================================================================= */
.inspector-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspector-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.inspector-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 1060px;
  max-width: 95vw;
  height: 88vh;
  max-height: 88vh;
  background: #0c1322;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 14px;
  z-index: 260;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: hidden;
}

.inspector-panel.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.inspector-header {
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111a2e;
  gap: 1rem;
  flex-shrink: 0;
}

.inspector-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inspector-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inspector-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.inspector-host-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.inspector-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-inspector-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

.btn-inspector-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #60a5fa;
  color: #60a5fa;
}

.btn-inspector-action.primary {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #93c5fd;
}

.btn-inspector-action.primary:hover {
  background: rgba(59, 130, 246, 0.35);
  color: #fff;
}

.inspector-subtitle {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.btn-close-inspector {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-close-inspector:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

/* Tabbed Inspector Navigation Bar */
.inspector-tab-bar {
  display: flex;
  align-items: center;
  background: #0d1527;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 1.25rem;
  gap: 0.35rem;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.inspector-tab-bar::-webkit-scrollbar {
  display: none;
}

.inspector-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.inspector-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.03);
}

.inspector-tab-btn.active {
  color: #60a5fa;
  border-bottom-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.inspector-tab-btn .tab-icon {
  font-size: 0.95rem;
}

.tab-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
  transition: all 0.18s ease;
}

.inspector-tab-btn.active .tab-count-badge {
  background: #3b82f6;
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Tab Panes */
.inspector-tab-pane {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeInTab 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspector-tab-pane.active {
  display: flex;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-switch-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 6px;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.6rem;
  width: 100%;
}

.btn-switch-tab:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.inspector-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.inspector-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inspector-section-title {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.status-badge-lg {
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.inspector-kv-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem 1rem;
  background: var(--bg-card);
  padding: 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  border: 1px solid var(--border-color);
}

.kv-key {
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.kv-val {
  color: #f1f5f9;
  word-break: break-all;
}

.dependency-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dep-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.dep-chip:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

.dep-chip.status-healthy {
  border-left: 3px solid var(--color-healthy);
}

.dep-chip.status-critical {
  border-left: 3px solid var(--color-root-cause);
}

.dep-chip.status-suppressed {
  border-left: 3px solid var(--color-suppressed);
}

/* Sparkline / History bar */
.history-bar {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 36px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.history-pill {
  flex: 1;
  background: var(--color-healthy);
  border-radius: 2px;
  min-height: 4px;
  transition: height 0.2s ease;
}

.history-pill.down {
  background: var(--color-root-cause);
}

.history-pill.timeout {
  background: var(--color-degraded);
}

/* ==================================================================   ANIMATIONS & KEYFRAMES
   ========================================================================= */
@keyframes pulse-card {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(239, 68, 68, 0.8); }
  50% { border-color: rgba(239, 68, 68, 0.2); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

/* Empty Issues View Banner */
.empty-issues-banner {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 1.5rem auto;
  max-width: 600px;
  width: 100%;
}

/* Unambiguous Failure Scope Diagnostic Banner */
.failure-scope-card {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.failure-scope-card.scope-internal-down {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.failure-scope-card.scope-external-down {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.failure-scope-card.scope-healthy {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.failure-scope-card.scope-suppressed-down {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.failure-scope-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.failure-scope-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.failure-scope-badge.badge-internal {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.failure-scope-badge.badge-external {
  background: rgba(245, 158, 11, 0.25);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.failure-scope-badge.badge-healthy {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.failure-scope-badge.badge-suppressed {
  background: rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.failure-scope-target {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.failure-scope-body {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #f1f5f9;
}

.failure-scope-body code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #93c5fd;
  font-size: 0.76rem;
}

.failure-scope-footer {
  font-size: 0.74rem;
  color: var(--text-dim);
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.4;
}

.failure-scope-footer code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  color: #cbd5e1;
  font-size: 0.72rem;
}

/* Visual Dependency Pipeline (Spacious Full-Width Canvas, Zero Horizontal Scrollbars) */
.pipeline-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.pipeline-path-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
}

.pipeline-path-card.has-issue {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
}

.pipeline-path-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.pipeline-header-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pipeline-header-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pipeline-category-icon {
  font-size: 1rem;
}

.pipeline-path-title {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 0.84rem;
}

.pipeline-category-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pipeline-category-badge.badge-compute {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.pipeline-category-badge.badge-storage {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.pipeline-category-badge.badge-identity {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.pipeline-category-badge.badge-ingress {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pipeline-category-badge.badge-dns {
  background: rgba(6, 182, 212, 0.18);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.pipeline-category-badge.badge-network {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.pipeline-category-badge.badge-default {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pipeline-hops-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.pipeline-path-desc {
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.pipeline-path-alert {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
}

.pipeline-path-ok {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
}

.pipeline-track {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.25rem 0;
}

.pipeline-node {
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  min-width: 160px;
  max-width: 250px;
  flex: 1 0 auto;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pipeline-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  border-color: #60a5fa;
}

.pipeline-node.is-target {
  box-shadow: 0 0 0 2px #3b82f6;
  background: #13213a;
}

.pipeline-node.healthy {
  border-left: 3px solid var(--color-healthy);
}

.pipeline-node.root-cause {
  border-left: 3px solid var(--color-root-cause);
  background: rgba(239, 68, 68, 0.14);
}

.pipeline-node.suppressed {
  border-left: 3px solid var(--color-suppressed);
  background: rgba(168, 85, 247, 0.12);
}

.pipeline-node-role {
  font-size: 0.64rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pipeline-node-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
}

.pipeline-node-badge {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  width: fit-content;
  text-transform: uppercase;
}

.pipeline-node-badge.badge-healthy {
  background: var(--color-healthy-bg);
  color: var(--color-healthy);
}

.pipeline-node-badge.badge-root-cause {
  background: var(--color-root-cause);
  color: #fff;
}

.pipeline-node-badge.badge-suppressed {
  background: var(--color-suppressed);
  color: #fff;
}

.pipeline-connector {
  display: flex;
  align-items: center;
  color: #64748b;
  font-size: 0.9rem;
  padding: 0 0.1rem;
}

/* Two-Column Telemetry & Diagnostics Grid */
.inspector-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 900px) {
  .inspector-grid-2col {
    grid-template-columns: 1fr;
  }
}

.inspector-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.raw-error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.4;
  word-break: break-word;
}


.pipeline-arrow {
  color: var(--border-focus);
  opacity: 0.75;
}

/* ==================================================================   ENTERPRISE CAPABILITIES: DISCOVERY, VAULT, HOP LADDER & SLA STYLES
   ========================================================================= */

.badge-count {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  margin-left: 0.35rem;
  animation: bounce 1.5s infinite alternate;
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 100%;
  max-width: 820px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.btn-close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 1.4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* SLA Mini-Bars & Latency Sparkline on Cards */
.card-sla-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}

.mini-sla-bars {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 10px;
}

.sla-segment {
  width: 4px;
  height: 10px;
  border-radius: 1px;
}

.sla-segment.up {
  background: var(--color-healthy);
}

.sla-segment.degraded {
  background: var(--color-degraded);
}

.sla-segment.down {
  background: var(--color-root-cause);
}

.uptime-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: #a7f3d0;
  font-weight: 600;
}

/* Inter-Hop Path Latency Ladder */
.hop-ladder-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.hop-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  gap: 0.75rem;
  font-size: 0.8rem;
  position: relative;
}

.hop-item.is-choke {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.hop-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  width: 1.5rem;
}

.hop-main {
  flex: 1;
}

.hop-name {
  font-weight: 600;
  color: var(--text-bright);
}

.hop-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hop-delta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #93c5fd;
  text-align: right;
}

.hop-bottleneck-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.hop-protocol-badge {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.38);
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.hop-speed-badge {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

/* Trunk Port Bandwidth Gauge */
.trunk-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.trunk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.trunk-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.trunk-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.trunk-fill.warn {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.trunk-stats {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* Discovery Candidates Cards */
.candidate-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.candidate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.candidate-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #93c5fd;
}

.candidate-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.candidate-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.candidate-field label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.candidate-field input, .candidate-field select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
}

.candidate-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* Integrations Cards */
.integration-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.integration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.integration-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.integration-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.integration-badge.configured {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.integration-badge.unconfigured {
  background: rgba(156, 163, 175, 0.2);
  color: #d1d5db;
  border: 1px solid rgba(156, 163, 175, 0.4);
}

/* ==================================================================   FULL-WIDTH UNIFI-STYLE FLOW TOPOLOGY CANVAS
   ========================================================================= */
#view-topology {
  padding: 0;
  height: calc(100vh - 145px);
  position: relative;
  overflow: hidden;
}

.topology-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(circle at 50% 50%, #0d1526 0%, #060a12 100%);
  user-select: none;
}

.topology-toolbar {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 18, 16, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--sand-border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  gap: 1rem;
}

.topology-toolbar-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.topo-breadcrumb {
  color: var(--sand-muted);
  font-size: 0.7rem;
}

@media (max-width: 1200px) {
  .topo-breadcrumb {
    display: none;
  }
}

.topology-toolbar-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 380px;
  min-width: 260px;
}

.topo-search-wrap {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.topo-search-icon {
  position: absolute;
  left: 0.65rem;
  font-size: 0.72rem;
  color: var(--sand-muted);
  pointer-events: none;
}

.topo-search-input {
  width: 100%;
  background: #171512;
  border: 1px solid var(--sand-border);
  color: var(--sand-bone);
  padding: 0.35rem 0.75rem 0.35rem 1.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.15s ease;
}

.topo-search-input:focus {
  border-color: var(--sand-gold);
  box-shadow: 0 0 0 2px rgba(212, 163, 115, 0.2);
  background: #1c1915;
}

.topo-isolation-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 163, 115, 0.15);
  border: 1px solid var(--sand-gold);
  color: var(--sand-bone);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.topo-btn-clear-isolate {
  background: rgba(204, 107, 73, 0.2);
  border: 1px solid rgba(204, 107, 73, 0.5);
  color: var(--terracotta);
  cursor: pointer;
  padding: 0.15rem 0.45rem;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.12s ease;
  margin-left: 0.25rem;
}

.topo-btn-clear-isolate:hover {
  background: var(--terracotta);
  color: var(--sand-bg);
}

.topology-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.telemetry-cadence-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #171512;
  border: 1px solid var(--sand-border);
  border-radius: 6px;
  padding: 2px 4px;
}

.telemetry-cadence-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sand-gold);
  font-family: var(--font-mono);
  margin-right: 4px;
  padding-left: 2px;
  white-space: nowrap;
}

.cadence-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--sand-muted);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.cadence-btn:hover {
  color: var(--sand-bone);
  background: var(--sand-surface-hover);
}

.cadence-btn.active {
  background: rgba(212, 163, 115, 0.2);
  border-color: var(--sand-gold);
  color: var(--sand-gold);
  font-weight: 700;
}

.cadence-btn[data-cadence="paused"].active {
  background: rgba(221, 157, 74, 0.2);
  border-color: var(--dune-amber);
  color: var(--dune-amber);
}

.topo-btn-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.topo-btn {
  background: #171512;
  border: 1px solid var(--sand-border);
  color: var(--sand-bone);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.topo-btn:hover {
  background: var(--sand-surface-hover);
  border-color: var(--sand-gold);
  color: var(--sand-gold);
}

.topo-legend-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--border-color);
}

.topo-legend-pill {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.topo-legend-pill.status-healthy {
  background: var(--color-healthy-bg);
  color: var(--color-healthy);
}

.topo-legend-pill.status-root-cause {
  background: var(--color-root-cause-bg);
  color: var(--color-root-cause);
}

.topo-legend-pill.status-suppressed {
  background: var(--color-degraded-bg);
  color: var(--color-degraded);
}

.topology-viewport {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
}

.topology-viewport.is-panning {
  cursor: grabbing;
}

.topology-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 3200px;
  height: 2400px;
  transform-origin: 0 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.topology-viewport.is-panning .topology-stage {
  transition: none;
}

.topology-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.topology-nodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Tier Column Headers in Topology Canvas */
.topo-tier-header {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  border-bottom: 2px solid #1e293b;
  padding-bottom: 0.4rem;
  width: 230px;
  text-align: center;
  pointer-events: none;
}

/* UniFi-Style Connector Paths */
.topo-link {
  fill: none;
  stroke: #25334d;
  stroke-width: 2px;
  transition: stroke 0.3s ease, stroke-width 0.3s ease, opacity 0.3s ease;
}

.topo-link.active-healthy {
  stroke: #10b981;
  stroke-width: 3.5px;
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.7));
}

.topo-link.active-root-cause {
  stroke: #ef4444;
  stroke-width: 4px;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.9));
  animation: topo-dash 1.5s linear infinite;
  stroke-dasharray: 6, 4;
}

.topo-link.active-degraded {
  stroke: #f59e0b;
  stroke-width: 3.5px;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.7));
  stroke-dasharray: 5, 4;
}

.topo-link.logical-link {
  stroke: #38bdf8 !important;
  stroke-width: 2.2px !important;
  stroke-dasharray: 6, 4 !important;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6)) !important;
  animation: topo-dash 1.8s linear infinite !important;
}

.topo-link.dimmed {
  display: none !important;
}

/* Link Protocol / Speed Badge */
.topo-link-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  fill: #94a3b8;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.topo-link-badge-bg {
  fill: #0c1220;
  stroke: #2a3854;
  stroke-width: 1px;
  rx: 4px;
}

/* Link Utilization Heatmap Styles ('The Dude' style live telemetry) */
.topo-link.util-cool {
  stroke: #10b981;
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.4));
}

.topo-link.util-moderate {
  stroke: #f59e0b;
  stroke-width: 3.5px;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

.topo-link.util-heavy {
  stroke: #ef4444;
  stroke-width: 4.5px;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
  animation: topo-dash 1.5s linear infinite;
  stroke-dasharray: 6, 4;
}

.topo-link-badge-bg.util-cool {
  stroke: #10b981;
  fill: rgba(6, 78, 59, 0.9);
}

.topo-link-badge.util-cool {
  fill: #6ee7b7;
}

.topo-link-badge-bg.util-moderate {
  stroke: #f59e0b;
  fill: rgba(120, 53, 15, 0.9);
}

.topo-link-badge.util-moderate {
  fill: #fcd34d;
}

.topo-link-badge-bg.util-heavy {
  stroke: #ef4444;
  fill: rgba(127, 29, 29, 0.9);
}

.topo-link-badge.util-heavy {
  fill: #fca5a5;
}

/* UniFi-Style Node Cards */
.topo-node-card {
  position: absolute;
  width: 230px;
  min-height: 74px;
  background: #111a2e;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

/* Compound Node: Host Enclosure Card */
.topo-node-card.host-enclosure-card {
  width: 340px;
  padding: 0.7rem 0.85rem;
  gap: 0.6rem;
  justify-content: flex-start;
  background: #0d1527;
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.host-enclosure-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.host-enclosure-header:hover .topo-card-title {
  color: #60a5fa;
}

.host-workloads-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.host-workloads-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.host-workloads-title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.host-workloads-pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.host-workloads-pill.has-issues {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.host-workloads-grid {
  display: grid;
  gap: 0.35rem;
}

.host-workloads-grid.grid-2col {
  grid-template-columns: 1fr 1fr;
}

.host-workloads-grid.grid-1col {
  grid-template-columns: 1fr;
}

/* Enclosed Workload Chip */
.enclosed-workload-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  overflow: hidden;
}

.enclosed-workload-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-1px);
}

.enclosed-workload-chip.chip-selected {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.45);
}

.enclosed-workload-chip.chip-dependency {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.enclosed-workload-chip.chip-dimmed {
  opacity: 0.35;
}

.chip-status-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-status-dot.dot-healthy {
  background: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.6);
}

.chip-status-dot.dot-root-cause {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
  animation: pulse-red 1.6s infinite;
}

.chip-status-dot.dot-degraded {
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.6);
}

.chip-status-dot.dot-suppressed {
  background: #a855f7;
  box-shadow: 0 0 5px rgba(168, 85, 247, 0.6);
}

.chip-status-dot.dot-maintenance {
  background: #64748b;
}

.chip-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.chip-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  flex-shrink: 0;
}

.topo-node-card:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #60a5fa;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  z-index: 25;
}

.topo-node-card.selected {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px #3b82f6, 0 8px 25px rgba(59, 130, 246, 0.3);
  z-index: 30;
}

.topo-node-card.active-path {
  z-index: 20;
}

.topo-node-card.dimmed {
  display: none !important;
}

.topo-badge-group.dimmed {
  display: none !important;
}

.topo-node-card.status-healthy {
  border-left: 4px solid var(--color-healthy);
}

.topo-node-card.status-root-cause {
  border-left: 4px solid var(--color-root-cause);
  background: #221217;
  animation: pulse-border 1.5s infinite;
}

.topo-node-card.status-suppressed {
  border-left: 4px solid var(--color-degraded);
  background: #201a11;
}

.topo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.topo-card-role {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
}

.topo-card-badge {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.topo-card-badge.badge-healthy {
  background: var(--color-healthy-bg);
  color: var(--color-healthy);
}

.topo-card-badge.badge-root-cause {
  background: var(--color-root-cause);
  color: #fff;
}

.topo-card-badge.badge-suppressed {
  background: var(--color-degraded-bg);
  color: var(--color-degraded);
}

.topo-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.topo-card-ip {
  color: #93c5fd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.topo-card-latency {
  color: #cbd5e1;
}

/* ==================================================================   THE DUDE STYLE LINK UTILIZATION HEATMAP & TRAFFIC TELEMETRY
   ========================================================================= */
.topo-link.util-cool {
  stroke: #38bdf8 !important;
  stroke-width: 3px !important;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.7));
}

.topo-link.util-moderate {
  stroke: #f59e0b !important;
  stroke-width: 4.5px !important;
  stroke-dasharray: 8, 4;
  animation: topo-dash 1.2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.85));
}

.topo-link.util-heavy {
  stroke: #f43f5e !important;
  stroke-width: 6.5px !important;
  stroke-dasharray: 10, 4;
  animation: topo-dash 0.75s linear infinite;
  filter: drop-shadow(0 0 14px rgba(244, 63, 94, 1));
}

.topo-link-badge-bg.util-cool {
  fill: #08172b;
  stroke: #0284c7;
}

.topo-link-badge-bg.util-moderate {
  fill: #221505;
  stroke: #d97706;
}

.topo-link-badge-bg.util-heavy {
  fill: #2b0615;
  stroke: #f43f5e;
}

.topo-link-badge.util-cool {
  fill: #38bdf8;
}

.topo-link-badge.util-moderate {
  fill: #fbbf24;
}

.topo-link-badge.util-heavy {
  fill: #fda4af;
}

/* ==================================================================   MAINTENANCE MODE & CASCADE ALERT SUPPRESSION STYLES
   ========================================================================= */
.overall-status-badge.status-maintenance {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.status-maintenance .pulse-dot {
  background-color: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

/* Node card maintenance variations */
.node-card.status-in-maintenance,
.topo-node-card.status-in-maintenance {
  border-color: #a855f7 !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35) !important;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.12) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
}

.node-card.status-maintenance-suppressed,
.topo-node-card.status-maintenance-suppressed {
  border-color: #818cf8 !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2) !important;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  opacity: 0.85;
}

.badge-maintenance {
  background: rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.badge-maintenance-suppressed {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.45);
}

.pipeline-node.maintenance {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
}

.pipeline-node.maintenance-suppressed {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.15);
}

/* Maintenance Hub Layout */
.maintenance-hub-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.maint-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.maint-hub-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.maint-hub-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  max-width: 800px;
  line-height: 1.4;
}

.maint-hub-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.maint-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  min-width: 110px;
}

.maint-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #c084fc;
}

.maint-stat-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

/* Active Maintenance Windows Grid */
.maint-active-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.maint-section-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
}

.maint-badge-pill {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.maint-active-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1rem;
}

.maint-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.maint-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.maint-card-node-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
}

.maint-card-timer {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fbcfe8;
  background: rgba(219, 39, 119, 0.2);
  border: 1px solid rgba(219, 39, 119, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.maint-card-reason {
  font-size: 0.8rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid #a855f7;
}

.maint-card-blast {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.maint-card-blast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.maint-blast-tag {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.btn-end-maint {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  align-self: flex-start;
}

.btn-end-maint:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

/* Inventory Table */
.maint-inventory-section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.maint-inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.maint-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  min-width: 280px;
}

.maint-search-box input {
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 0.82rem;
  outline: none;
  width: 100%;
}

.maint-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.maint-chip {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.maint-chip:hover {
  color: #f1f5f9;
  border-color: var(--border-focus);
}

.maint-chip.active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: #3b82f6;
  font-weight: 600;
}

.maint-table-container {
  overflow-x: auto;
}

.maint-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.maint-table th {
  text-align: left;
  padding: 0.6rem 0.85rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.maint-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  vertical-align: middle;
}

.maint-table tr:hover td {
  background: rgba(30, 41, 59, 0.5);
}

.btn-maint-preset-group {
  display: flex;
  gap: 0.3rem;
}

.btn-maint-preset {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-maint-preset:hover {
  background: rgba(168, 85, 247, 0.3);
  color: #ffffff;
  border-color: #a855f7;
}

.btn-maint-toggle-on {
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid #a855f7;
  color: #e9d5ff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-maint-toggle-off {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Inspector Maintenance Control Block */
.inspector-maint-section {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.inspector-topo-jump-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.inspector-topo-jump-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
  border-color: #60a5fa;
  transform: translateX(2px);
}

/* Top Talkers & Flow Telemetry */
.top-talkers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  margin-top: 0.5rem;
}

.top-talkers-table th {
  text-align: left;
  padding: 0.4rem 0.5rem;
  color: var(--text-dim);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.4);
}

.top-talkers-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.top-talkers-table tr:hover td {
  background: rgba(59, 130, 246, 0.08);
}

.top-talkers-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.top-talkers-badge.proto-tcp {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.top-talkers-badge.proto-udp {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.top-talkers-badge.proto-other {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.4);
}

.top-talkers-rate {
  font-weight: 700;
  color: #38bdf8;
}

.top-talkers-empty {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.75rem;
  text-align: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.25);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ==================================================================   IN-APP YAML EDITOR & ARCHETYPE RESOURCE CREATOR
   ========================================================================= */

.btn-add-resource {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.btn-add-resource:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.yaml-modal-content {
  max-width: 980px;
  width: 92vw;
  height: 85vh;
  display: flex;
  flex-direction: column;
}

.yaml-modal-body {
  flex: 1;
  min-height: 0;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.yaml-node-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.yaml-file-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yaml-archetype-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.yaml-editor-wrapper {
  flex: 1;
  min-height: 280px;
  position: relative;
  display: flex;
}

.yaml-editor-textarea {
  width: 100%;
  height: 100%;
  background: #080d16;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  tab-size: 2;
  padding: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  resize: none;
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.yaml-editor-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-focus);
}

.yaml-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--border-color);
  background: rgba(10, 14, 23, 0.5);
  flex-shrink: 0;
}

.yaml-footer-left, .yaml-footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yaml-validation-status {
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.yaml-validation-status.valid {
  color: var(--color-healthy);
}

.yaml-validation-status.invalid {
  color: var(--color-root-cause);
}

.yaml-alert-banner {
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-all;
}

.yaml-alert-banner.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.yaml-alert-banner.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

.template-selector-bar {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.flex-1 {
  flex: 1;
}

.form-group.flex-2 {
  flex: 2;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-select, .form-input {
  background: #090e18;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  outline: none;
}

.form-select:focus, .form-input:focus {
  border-color: var(--border-focus);
}

.template-description-box {
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  color: #bfdbfe;
}

.btn-yaml-validate {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-yaml-validate:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #fff;
}

.btn-yaml-cancel {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.btn-yaml-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.btn-yaml-save {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.btn-yaml-save:hover {
  background: rgba(16, 185, 129, 0.35);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastSlideIn 0.25s ease-out;
  max-width: 420px;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.toast-success {
  background: #064e3b;
  border-color: rgba(16, 185, 129, 0.6);
  color: #d1fae5;
}

.toast.toast-error {
  background: #7f1d1d;
  border-color: rgba(239, 68, 68, 0.6);
  color: #fee2e2;
}

.toast.toast-info {
  background: #1e293b;
  border-color: rgba(59, 130, 246, 0.5);
  color: #e2e8f0;
}

/* Auto-Detection Box & Controls */
.auto-detect-box {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auto-detect-header {
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auto-detect-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-auto-detect {
  background: rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(14, 165, 233, 0.5);
  color: #7dd3fc;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.btn-auto-detect:hover {
  background: rgba(14, 165, 233, 0.4);
  color: #fff;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.35);
}

.auto-detect-status {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

.auto-detect-status.success {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.auto-detect-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-yaml-auto-detect {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #7dd3fc;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-yaml-auto-detect:hover {
  background: rgba(14, 165, 233, 0.3);
  color: #fff;
}

/* ==================================================================   HIGH-DENSITY MULTI-LENS SYSTEM & EXCEPTION SURFACING
   ========================================================================= */

/* Exception-Driven Banner */
.global-exception-banner {
  margin: 0.75rem 1.5rem 0.5rem 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--terracotta-dim);
  border: 1px solid rgba(204, 107, 73, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: fadeIn 0.2s ease-in-out;
}
.global-exception-banner.hidden {
  display: none !important;
}
.exception-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(204, 107, 73, 0.25);
  color: var(--terracotta);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.exception-content {
  flex: 1;
}
.exception-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sand-bone);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.exception-root-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(204, 107, 73, 0.25);
  color: var(--terracotta);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.exception-desc {
  font-size: 0.72rem;
  color: var(--sand-muted);
  margin-top: 0.2rem;
}
.btn-exception-inspect {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: var(--terracotta);
  color: var(--sand-bg);
  font-weight: 700;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-exception-inspect:hover {
  filter: brightness(1.15);
}

/* ==================================================================   UNIFIED MASTER SERVICES VIEW (Datadog Pulse + Linear Exceptions + Checkmk Accordions)
   ========================================================================= */

.unified-services-layout {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* 1. Top Pulse Strip (Datadog Glance Matrix) */
.fleet-pulse-strip {
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pulse-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sand-border-subtle);
  padding-bottom: 0.5rem;
}

.pulse-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sand-bone);
}

.pulse-radar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-green);
  box-shadow: 0 0 6px var(--sage-green);
  display: inline-block;
}

.pulse-summary-text {
  color: var(--sand-gold);
  font-size: 0.72rem;
  margin-left: 0.35rem;
}

.pulse-legend {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--sand-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-pip {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.legend-pip.healthy {
  background: var(--sage-green);
}

.legend-pip.degraded {
  background: var(--dune-amber);
}

.legend-pip.down {
  background: var(--terracotta);
}

.pulse-clusters-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.pulse-domain-cluster {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--sand-border-subtle);
}

.pulse-cluster-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--sand-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-pips-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pulse-pip {
  width: 9px;
  height: 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.pulse-pip:hover {
  transform: scale(1.6) translateY(-2px);
  z-index: 25;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 6px var(--sand-gold);
}

.pulse-pip.pip-healthy {
  background: var(--sage-green);
}

.pulse-pip.pip-healthy:hover {
  background: #73b37a;
}

.pulse-pip.pip-degraded {
  background: var(--dune-amber);
}

.pulse-pip.pip-degraded:hover {
  background: #e8ac5d;
}

.pulse-pip.pip-down {
  background: var(--terracotta);
  box-shadow: 0 0 6px rgba(204, 107, 73, 0.8);
  animation: pulse 1.6s infinite;
}

.pulse-pip.pip-down:hover {
  background: #de7854;
}

.pulse-pip.pip-maintenance {
  background: #64748b;
}

/* 2. Active Exceptions Deck (Linear Essence) */
.exceptions-deck {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.exceptions-nominal-banner {
  background: rgba(96, 153, 102, 0.08);
  border: 1px solid rgba(96, 153, 102, 0.3);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nominal-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nominal-icon {
  color: var(--sage-green);
  font-weight: 800;
  font-size: 0.95rem;
}

.nominal-title {
  font-weight: 700;
  color: var(--sand-bone);
  font-size: 0.82rem;
  margin-right: 0.5rem;
}

.nominal-sub {
  color: var(--sand-muted);
  font-size: 0.75rem;
}

.nominal-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sage-green);
  background: var(--sage-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(96, 153, 102, 0.25);
}

.exceptions-deck-header {
  margin-bottom: 0.25rem;
}

.exceptions-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--terracotta);
}

.exceptions-count-badge {
  background: var(--terracotta-dim);
  color: var(--terracotta);
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(204, 107, 73, 0.4);
}

.exceptions-header-sub {
  font-size: 0.73rem;
  color: var(--sand-muted);
  margin-top: 0.2rem;
}

.exceptions-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exception-card {
  background: var(--sand-surface);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.exception-card.critical-exception {
  border: 1px solid var(--terracotta);
  box-shadow: 0 0 14px rgba(204, 107, 73, 0.18);
}

.exception-card.warning-exception {
  border: 1px solid var(--dune-amber);
}

.exc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.exc-card-identity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.exc-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.badge-root {
  background: rgba(204, 107, 73, 0.2);
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
}

.badge-down {
  background: rgba(204, 107, 73, 0.15);
  color: var(--terracotta);
  border: 1px solid rgba(204, 107, 73, 0.5);
}

.badge-debouncing {
  background: rgba(221, 157, 74, 0.2);
  color: var(--dune-amber);
  border: 1px solid var(--dune-amber);
}

.badge-degraded {
  background: rgba(221, 157, 74, 0.15);
  color: var(--dune-amber);
  border: 1px solid rgba(221, 157, 74, 0.5);
}

.exc-domain-pill {
  font-size: 0.65rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #23201b;
  color: var(--sand-gold);
  border: 1px solid var(--sand-border);
}

.exc-host-pill {
  font-size: 0.65rem;
  color: var(--sand-muted);
}

.exc-card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-exc-bounce {
  background: #2a1f18;
  border: 1px solid var(--sand-gold);
  color: var(--sand-gold);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.74rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-exc-bounce:hover {
  background: var(--sand-gold);
  color: #141210;
}

.btn-exc-inspect {
  background: #1e1b18;
  border: 1px solid var(--sand-border);
  color: var(--sand-bone);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.74rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-exc-inspect:hover {
  background: var(--sand-surface-hover);
  color: var(--sand-gold);
  border-color: var(--sand-gold);
}

.exc-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.exc-node-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.exc-node-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sand-bone);
}

.exc-node-target {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--sand-muted);
}

.exc-error-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--terracotta);
  padding: 0.45rem 0.75rem;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--sand-bone);
}

.error-msg {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.exc-blast-radius {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--sand-muted);
  border-top: 1px solid var(--sand-border-subtle);
  padding-top: 0.45rem;
}

.exc-blast-radius.safe {
  color: var(--sage-green);
}

.blast-label {
  font-weight: 600;
  color: var(--sand-gold);
}

.blast-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.blast-chip {
  cursor: pointer;
  background: #26201a;
  border: 1px solid var(--sand-border);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--sand-bone);
  transition: all 0.1s ease;
}

.blast-chip:hover {
  background: var(--sand-gold);
  color: #141210;
}

/* 3. Hierarchical Domain Rollups (Checkmk Essence) */
.unified-domains-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.domain-accordion {
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  border-radius: 8px;
  overflow: hidden;
}

.domain-accordion-header {
  padding: 0.55rem 0.85rem;
  background: #171512;
  border-bottom: 1px solid var(--sand-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s ease;
}

.domain-accordion-header:hover {
  background: var(--sand-surface-hover);
}

.accordion-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.accordion-chevron {
  font-size: 0.65rem;
  color: var(--sand-muted);
  width: 14px;
}

.domain-icon {
  font-size: 0.85rem;
}

.domain-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sand-bone);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.domain-target-count {
  font-size: 0.7rem;
  color: var(--sand-muted);
}

.accordion-header-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
}

.pill-up {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--sage-dim);
  color: #a7f3d0;
  font-size: 0.68rem;
  font-weight: 600;
}

.pill-attention {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--terracotta-dim);
  color: var(--terracotta);
  font-size: 0.68rem;
  font-weight: 700;
}

.domain-accordion-content {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
}

/* 4. 36px Dense Rows & Column Grid */
.dense-table-header {
  display: grid;
  grid-template-columns: 280px 140px 180px 1fr 90px 160px;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: #13110f;
  border-bottom: 1px solid var(--sand-border-subtle);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--sand-muted);
  letter-spacing: 0.05em;
  min-width: 900px;
}

.dense-rows-list {
  display: flex;
  flex-direction: column;
  min-width: 900px;
}

.dense-node-row {
  height: 36px;
  min-height: 36px;
  display: grid;
  grid-template-columns: 280px 140px 180px 1fr 90px 160px;
  align-items: center;
  padding: 0 0.85rem;
  border-bottom: 1px solid #1a1714;
  cursor: pointer;
  font-size: 0.74rem;
  transition: background-color 0.12s ease;
}

.dense-node-row:last-child {
  border-bottom: none;
}

.dense-node-row:hover {
  background-color: var(--sand-surface-hover);
}

.dense-col-identity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.dense-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dense-status-dot.dot-healthy {
  background: var(--sage-green);
  box-shadow: 0 0 5px rgba(96, 153, 102, 0.4);
}

.dense-status-dot.dot-down {
  background: var(--terracotta);
  box-shadow: 0 0 6px rgba(204, 107, 73, 0.8);
  animation: pulse 1.6s infinite;
}

.dense-status-dot.dot-degraded {
  background: var(--dune-amber);
}

.dense-status-dot.dot-maintenance {
  background: #64748b;
}

.dense-node-name {
  font-weight: 600;
  color: var(--sand-bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dense-role-pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: #23201b;
  color: var(--sand-gold);
  border: 1px solid var(--sand-border);
  flex-shrink: 0;
}

.dense-col-host {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dense-host-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--sand-muted);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.dense-col-endpoint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--sand-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dense-col-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
}

.dense-status-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.dense-status-tag.tag-ok {
  background: var(--sage-dim);
  color: #a7f3d0;
}

.dense-status-tag.tag-error {
  background: var(--terracotta-dim);
  color: var(--terracotta);
}

.dense-error-hint {
  font-size: 0.67rem;
  color: var(--terracotta);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.dense-col-latency {
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.dense-col-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-dense-bounce {
  background: #26201b;
  border: 1px solid var(--sand-border);
  color: var(--sand-gold);
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.btn-dense-bounce:hover {
  background: var(--sand-gold);
  color: #141210;
  border-color: var(--sand-gold);
}

.btn-dense-inspect {
  background: transparent;
  border: 1px solid var(--sand-border);
  color: var(--sand-muted);
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.btn-dense-inspect:hover {
  background: var(--sand-surface-hover);
  color: var(--sand-bone);
  border-color: var(--sand-muted);
}

/* Flash animation for pip jumps */
.dense-node-row.pulse-highlight {
  animation: rowFlash 2.5s ease-out;
}

@keyframes rowFlash {
  0% {
    background-color: rgba(212, 163, 115, 0.45);
    box-shadow: inset 0 0 0 1px var(--sand-gold);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

/* Light Theme High Contrast Overrides */
[data-theme-mode="light"] .fleet-pulse-strip,
[data-theme-mode="light"] .domain-accordion,
[data-theme-mode="light"] .exception-card {
  background: #ffffff;
  border-color: #d4d4d8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme-mode="light"] .domain-accordion-header,
[data-theme-mode="light"] .dense-table-header {
  background: #f4f4f5;
  border-color: #e4e4e7;
}

[data-theme-mode="light"] .domain-name,
[data-theme-mode="light"] .dense-node-name,
[data-theme-mode="light"] .pulse-title-text,
[data-theme-mode="light"] .exc-node-name {
  color: #18181b;
}

[data-theme-mode="light"] .dense-node-row {
  border-bottom-color: #e4e4e7;
}

[data-theme-mode="light"] .dense-node-row:hover {
  background-color: #f8fafc;
}

[data-theme-mode="light"] .dense-role-pill,
[data-theme-mode="light"] .dense-host-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme-mode="light"] .btn-dense-bounce {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
}

[data-theme-mode="light"] .btn-dense-bounce:hover {
  background: #d97706;
  color: #ffffff;
}

[data-theme-mode="light"] .btn-dense-inspect {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme-mode="light"] .btn-dense-inspect:hover {
  background: #e2e8f0;
  color: #1e293b;
}


/* Tab 3: Subnets & IPAM View (phpIPAM 256 matrix) */
.ipam-container {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ipam-header-box {
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ipam-subnets-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.ipam-subnet-card {
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ipam-subnet-card:hover {
  border-color: var(--sand-gold);
  background: var(--sand-surface-hover);
}
.ipam-subnet-card.active {
  border-color: var(--sand-gold);
  background: #24201b;
  box-shadow: 0 0 12px rgba(212, 163, 115, 0.25);
}
.ipam-matrix-box {
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  border-radius: 12px;
  padding: 1.25rem;
}
.ipam-matrix-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sand-border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.ipam-matrix-legend {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--sand-muted);
}
.ipam-matrix-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ipam-matrix-legend .legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.ipam-master-detail-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 960px) {
  .ipam-master-detail-grid {
    grid-template-columns: 1fr;
  }
}
.ipam-matrix-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: fit-content;
}
.ipam-matrix-256 {
  display: grid;
  grid-template-columns: repeat(16, 24px);
  gap: 3px;
  background: #171512;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--sand-border);
}
.ip-slot {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: #23201b;
  border: 1px solid #2d2922;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--sand-faint);
  transition: all 0.12s ease;
  user-select: none;
}
.ip-slot:hover {
  transform: scale(1.35);
  z-index: 10;
  border-color: var(--sand-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.ip-slot.selected {
  outline: 2px solid var(--sand-gold);
  outline-offset: 1px;
  z-index: 11;
}
.ip-slot.active-host {
  background: var(--sage-green);
  color: var(--sand-bg);
  font-weight: 700;
  border-color: #73b37a;
}
.ip-slot.gateway-slot {
  background: var(--sand-gold);
  color: var(--sand-bg);
  font-weight: 800;
  border-color: #e4b88a;
}
.ip-slot.dns-slot {
  background: #a855f7;
  color: #fff;
  font-weight: 700;
  border-color: #c084fc;
}
.ipam-matrix-meta-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--sand-faint);
  padding: 0 4px;
}
.ipam-inspector-card {
  background: #171512;
  border: 1px solid var(--sand-border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  min-height: 445px;
  display: flex;
  flex-direction: column;
}

/* Tab 4: Fleet Management & Updates View */
.fleet-container {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.fleet-vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.fleet-host-card {
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  border-radius: 12px;
  padding: 1.15rem;
}
.fleet-host-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.vitals-meter-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.vitals-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.vitals-bar-track {
  width: 100%;
  height: 7px;
  background: #23201b;
  border-radius: 4px;
  overflow: hidden;
}
.vitals-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.vitals-bar-fill.normal {
  background: var(--sage-green);
}
.vitals-bar-fill.warning {
  background: var(--dune-amber);
}
.vitals-bar-fill.critical {
  background: var(--terracotta);
}

.reboot-sim-section {
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  border-radius: 12px;
  padding: 1.25rem;
}

/* Dense row bounce actions */
.btn-row-bounce {
  background: var(--theme-bg-surface, var(--sand-surface));
  border: 1px solid var(--theme-border, var(--sand-border));
  color: var(--theme-text-main, var(--sand-bone));
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-row-bounce:hover {
  background: var(--theme-accent, var(--sand-gold));
  color: #fff;
  border-color: var(--theme-accent, var(--sand-gold));
}

.btn-row-bounce.hover-only {
  opacity: 0;
  transition: opacity 0.15s ease;
}

tr:hover .btn-row-bounce.hover-only,
.mobile-card:hover .btn-row-bounce.hover-only {
  opacity: 1;
}

/* Fleet Staged Updates Deck & Batch Actions */
.fleet-staged-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  background: var(--theme-bg-surface, var(--sand-surface));
  border: 1px solid var(--theme-border-subtle, var(--sand-border-subtle));
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.fleet-staged-deck.has-staged {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--theme-status-healthy, var(--sage-green));
}

.fleet-deck-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--theme-text-main, var(--sand-bone));
}

.fleet-deck-hosts-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--theme-status-healthy, var(--sage-green));
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.fleet-deck-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-commit-staged {
  background: var(--theme-status-healthy, var(--sage-green)) !important;
  color: #ffffff !important;
  border: 1px solid var(--theme-status-healthy, var(--sage-green)) !important;
  font-weight: 700 !important;
  padding: 0.35rem 0.85rem !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  transition: all 0.15s ease;
}

.btn-commit-staged:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-commit-staged:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Fleet View Toggle Pills & All Workloads */
.fleet-toggle-pill {
  color: var(--theme-text-muted, var(--sand-muted));
  background: transparent;
}

.fleet-toggle-pill:hover {
  color: var(--theme-text-main, var(--sand-bone));
}

.fleet-toggle-pill.active {
  background: var(--theme-accent, var(--sand-gold)) !important;
  color: #111827 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.wl-type-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.wl-type-hypervisor {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.wl-type-storage {
  background: rgba(20, 184, 166, 0.12);
  color: #14b8a6;
  border: 1px solid rgba(20, 184, 166, 0.3);
}
.wl-type-vm {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.wl-type-lxc {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.wl-type-docker {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.wl-type-infra {
  background: rgba(100, 116, 139, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Staged Row Highlighting */
tr.row-staged {
  background: rgba(16, 185, 129, 0.08) !important;
}

.btn-stage-update.staged,
.btn-stage-host.staged {
  background: var(--theme-status-healthy, var(--sage-green)) !important;
  color: #ffffff !important;
  border-color: var(--theme-status-healthy, var(--sage-green)) !important;
  font-weight: 700;
}

/* Host Rollup Card & Explode Accordion */
.host-rollup-card {
  background: var(--theme-bg-card, var(--sand-card));
  border: 1px solid var(--theme-border, var(--sand-border));
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.host-rollup-card.staged {
  border-color: var(--theme-status-healthy, var(--sage-green));
}

.host-rollup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--theme-bg-surface, var(--sand-surface));
  cursor: pointer;
  user-select: none;
}

.host-rollup-header:hover {
  background: var(--theme-bg-surface-hover, var(--sand-surface-hover));
}

.host-rollup-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.host-explode-toggle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--theme-accent, var(--sand-gold));
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.host-explode-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.host-rollup-details {
  display: none;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--theme-border-subtle, var(--sand-border-subtle));
  background: var(--theme-bg-card, var(--sand-card));
}

.host-rollup-details.expanded {
  display: block;
}

/* Section Header Dividers */
.fleet-section-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0 0.65rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--theme-border-subtle, var(--sand-border-subtle));
}

.fleet-section-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-text-main, var(--sand-bone));
}

.fleet-section-subtitle {
  font-size: 0.7rem;
  color: var(--theme-text-muted, var(--sand-muted));
}

/* Light Theme High Contrast & Overrides */
[data-theme-mode="light"] .host-rollup-card {
  background: #ffffff;
  border-color: var(--theme-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme-mode="light"] .host-rollup-header {
  background: var(--theme-bg-surface);
}

[data-theme-mode="light"] .host-rollup-header:hover {
  background: var(--theme-bg-surface-hover);
}

[data-theme-mode="light"] .fleet-staged-deck {
  background: var(--theme-bg-surface);
  border-color: var(--theme-border);
}

[data-theme-mode="light"] .btn-commit-staged {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}

[data-theme-mode="light"] select.update-policy-select,
[data-theme-mode="light"] select.form-input,
[data-theme-mode="light"] select.form-select,
[data-theme-mode="light"] input.form-input {
  background: #ffffff !important;
  color: var(--theme-text-main) !important;
  border: 1px solid var(--theme-border) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme-mode="light"] select.update-policy-select option,
[data-theme-mode="light"] select.form-input option,
[data-theme-mode="light"] .form-select option {
  background: #ffffff;
  color: var(--theme-text-main);
}

[data-theme-mode="light"] .btn-apply-update {
  background: #ffffff;
  color: var(--theme-text-main);
  border: 1px solid var(--theme-border);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme-mode="light"] .btn-apply-update:hover {
  background: var(--theme-accent);
  color: #ffffff;
  border-color: var(--theme-accent);
}

[data-theme-mode="light"] .fleet-host-card,
[data-theme-mode="light"] .reboot-sim-section {
  background: var(--theme-bg-card);
  border-color: var(--theme-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme-mode="light"] .vitals-bar-track {
  background: var(--theme-border-subtle);
}

[data-theme-mode="light"] .btn-host-sim {
  background: #ffffff;
  color: var(--theme-text-main);
  border: 1px solid var(--theme-border);
  font-weight: 600;
}

[data-theme-mode="light"] .btn-host-sim:hover {
  background: var(--theme-bg-surface-hover);
  color: var(--theme-text-main);
}

/* ==================================================================   CANARY EDGE SENTINEL FLEET CONTROL DECK & TOPOLOGY ORBITER STYLES
   ========================================================================= */

.fleet-subnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--sand-border-subtle);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.fleet-subnav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fleet-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  color: var(--sand-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fleet-subnav-btn:hover {
  background: var(--sand-surface-hover);
  color: var(--sand-bone);
  border-color: var(--sand-gold);
}

.fleet-subnav-btn.active {
  background: rgba(212, 163, 115, 0.12);
  border-color: var(--sand-gold);
  color: var(--sand-gold);
}

.fleet-tab-section {
  display: none;
}

.fleet-tab-section.active {
  display: block;
}

.canary-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.canary-deck-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--sand-bone);
}

.canary-deck-subtitle {
  font-size: 0.74rem;
  color: var(--sand-muted);
  margin-top: 0.15rem;
}

.canary-summary-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.canary-summary-pill {
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.canary-summary-pill.pill-online {
  background: rgba(96, 153, 102, 0.15);
  border: 1px solid rgba(96, 153, 102, 0.35);
  color: var(--sage-green);
}

.canary-summary-pill.pill-degraded {
  background: rgba(221, 157, 74, 0.15);
  border: 1px solid rgba(221, 157, 74, 0.4);
  color: var(--dune-amber);
}

.canary-summary-pill.pill-offline {
  background: rgba(204, 107, 73, 0.15);
  border: 1px solid rgba(204, 107, 73, 0.4);
  color: var(--terracotta);
}

.canary-summary-pill.pill-candidate {
  background: rgba(212, 163, 115, 0.12);
  border: 1px solid rgba(212, 163, 115, 0.3);
  color: var(--sand-gold);
}

.canary-fleet-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.canary-probe-card {
  background: var(--sand-card);
  border: 1px solid var(--sand-border);
  border-radius: 8px;
  padding: 0.95rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.canary-probe-card:hover {
  border-color: var(--sand-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.canary-probe-card.status-healthy {
  border-left: 4px solid var(--sage-green);
}

.canary-probe-card.status-degraded {
  border-left: 4px solid var(--dune-amber);
}

.canary-probe-card.status-offline {
  border-left: 4px solid var(--terracotta);
}

.canary-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.canary-card-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.canary-beacon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.canary-beacon.beacon-healthy {
  background: var(--sage-green);
  box-shadow: 0 0 8px rgba(96, 153, 102, 0.7);
  animation: pulseGreen 2s infinite;
}

.canary-beacon.beacon-degraded {
  background: var(--dune-amber);
  box-shadow: 0 0 8px rgba(221, 157, 74, 0.8);
  animation: pulseAmber 1.5s infinite;
}

.canary-beacon.beacon-offline {
  background: var(--terracotta);
  box-shadow: 0 0 8px rgba(204, 107, 73, 0.9);
  animation: pulseRed 1s infinite;
}

.canary-id-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sand-bone);
}

.canary-host-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(226, 214, 187, 0.08);
  border: 1px solid rgba(226, 214, 187, 0.25);
  color: #e6dfd3;
}

.canary-runtime-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--sand-border);
  color: var(--sand-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.canary-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.canary-version-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--sand-muted);
  border: 1px solid var(--sand-border);
}

.btn-canary-update {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: #b45309;
  border: 1px solid #f59e0b;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-canary-update:hover {
  background: #d97706;
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.btn-canary-trigger {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  color: var(--sand-bone);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-canary-trigger:hover {
  background: var(--sand-surface-hover);
  border-color: var(--sand-gold);
  color: var(--sand-gold);
}

.canary-network-line {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--sand-muted);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.canary-network-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.canary-tasks-deck {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--sand-border-subtle);
}

.canary-task-pill {
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.canary-task-pill.task-healthy {
  background: rgba(96, 153, 102, 0.12);
  border: 1px solid rgba(96, 153, 102, 0.3);
  color: #86efac;
}

.canary-task-pill.task-degraded {
  background: rgba(221, 157, 74, 0.18);
  border: 1px solid rgba(221, 157, 74, 0.5);
  color: #fde047;
  animation: pulseAmberBorder 2s infinite;
}

.canary-task-pill.task-offline {
  background: rgba(204, 107, 73, 0.18);
  border: 1px solid rgba(204, 107, 73, 0.5);
  color: #fca5a5;
}

/* Topology Satellite Canary Orbiter */
.topo-canary-orbiter {
  margin: 6px 6px 8px 6px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(212, 163, 115, 0.07);
  border: 1px dashed rgba(212, 163, 115, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topo-canary-orbiter:hover {
  background: rgba(212, 163, 115, 0.15);
  border-color: var(--sand-gold);
  box-shadow: 0 0 10px rgba(212, 163, 115, 0.2);
}

.topo-canary-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topo-canary-tag {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: var(--sand-gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.topo-canary-status {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--sand-bone);
  display: flex;
  align-items: center;
  gap: 5px;
}

.topo-canary-tasks {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--sand-muted);
}

/* Modal Contextual Slide-Over Details */
.canary-modal-content {
  max-width: 680px;
  width: 90%;
}

.canary-modal-body {
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.canary-detail-section {
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.canary-detail-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sand-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.canary-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.canary-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.canary-detail-label {
  font-size: 0.68rem;
  color: var(--sand-muted);
}

.canary-detail-value {
  color: var(--sand-bone);
  font-weight: 600;
}

/* Light Theme High Contrast Overrides */
[data-theme-mode="light"] .fleet-subnav-btn {
  background: #ffffff;
  border-color: var(--theme-border);
  color: var(--theme-text-muted);
}

[data-theme-mode="light"] .fleet-subnav-btn:hover {
  background: var(--theme-bg-surface-hover);
  color: var(--theme-text-main);
  border-color: var(--theme-accent);
}

[data-theme-mode="light"] .fleet-subnav-btn.active {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--theme-accent);
  color: var(--theme-accent);
}

[data-theme-mode="light"] .canary-probe-card {
  background: #ffffff;
  border-color: var(--theme-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme-mode="light"] .canary-probe-card:hover {
  border-color: var(--theme-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme-mode="light"] .canary-id-text {
  color: var(--theme-text-main);
}

[data-theme-mode="light"] .canary-host-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme-mode="light"] .canary-runtime-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

[data-theme-mode="light"] .canary-network-line {
  color: var(--theme-text-muted);
}

[data-theme-mode="light"] .canary-detail-section {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme-mode="light"] .canary-detail-value {
  color: var(--theme-text-main);
}

[data-theme-mode="light"] .topo-canary-orbiter {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme-mode="light"] .topo-canary-orbiter:hover {
  background: #f1f5f9;
  border-color: var(--theme-accent);
}

[data-theme-mode="light"] .topo-canary-tag {
  color: var(--theme-accent);
}

[data-theme-mode="light"] .topo-canary-status {
  color: var(--theme-text-main);
}

/* ==================================================================   Wire Distance & Bilateral Path Corroboration ("Wire Tester") Component
   ========================================================================= */

.wire-tester-card {
  background: var(--sand-card, #1c1a17);
  border: 1px solid var(--sand-border, #2f2a24);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wire-tester-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wire-tester-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.wire-tester-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(212, 163, 115, 0.15);
  color: var(--sand-gold, #d4a373);
  border: 1px solid rgba(212, 163, 115, 0.35);
  letter-spacing: 0.04em;
}

.wire-tester-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sand-bone, #f7f3ee);
}

.wire-classification-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.02em;
}

.wire-classification-badge.badge-nominal {
  background: rgba(96, 153, 102, 0.18);
  color: #86efac;
  border: 1px solid rgba(96, 153, 102, 0.45);
}

.wire-classification-badge.badge-corroborated-outage {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
  animation: breakBlink 2s infinite ease-in-out;
}

.wire-classification-badge.badge-edge-fault {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.wire-classification-badge.badge-central-fault {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.btn-wire-test {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-wire-test:hover:not(:disabled) {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.btn-wire-test:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.wire-tester-subtext {
  font-size: 0.78rem;
  color: var(--sand-muted, #9e9589);
  line-height: 1.4;
}

/* Dual-Ended LED Terminals Bar */
.wire-terminals-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wire-terminal {
  flex: 1;
  min-width: 140px;
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.wire-terminal.terminal-up {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.wire-terminal.terminal-down {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
}

.terminal-led-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.wire-led-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.wire-led-indicator.led-up {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981, 0 0 16px rgba(16, 185, 129, 0.4);
  animation: ledPulseGreen 2.2s infinite ease-in-out;
}

.wire-led-indicator.led-down {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239, 68, 68, 0.6);
  animation: ledPulseRed 1.1s infinite ease-in-out;
}

@keyframes ledPulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.9); }
}

@keyframes ledPulseRed {
  0%, 100% { opacity: 1; transform: scale(1.05); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.terminal-id {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sand-bone, #f7f3ee);
  letter-spacing: 0.03em;
}

.terminal-meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.terminal-status {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 800;
}

.terminal-up .terminal-status {
  color: #34d399;
}

.terminal-down .terminal-status {
  color: #f87171;
}

.terminal-latency {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--sand-gold, #d4a373);
}

.terminal-detail {
  font-size: 0.72rem;
  color: var(--sand-muted, #9e9589);
  line-height: 1.3;
}

/* Cable Bridge Center */
.wire-bridge-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 95px;
  gap: 0.35rem;
}

.bridge-wire {
  width: 100%;
  height: 4px;
  border-radius: 2px;
}

.bridge-wire.all-clear {
  background: linear-gradient(90deg, #10b981, #34d399, #10b981);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.bridge-wire.has-fault {
  background: linear-gradient(90deg, #10b981 0%, #ef4444 50%, #10b981 100%);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

.bridge-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sand-muted, #9e9589);
}

/* Hop Bisection Cable Track */
.wire-cable-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wire-cable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sand-muted, #9e9589);
}

.wire-cable-track {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 0.9rem 0.25rem 0.4rem;
  scrollbar-width: thin;
}

.wire-hop-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wire-hop-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  min-width: 135px;
  max-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: all 0.2s ease;
}

.wire-hop-node.hop-pass {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.28);
}

.wire-hop-node.hop-fail {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

.wire-hop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wire-hop-index {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: var(--sand-faint, #615a50);
}

.wire-hop-status-pill {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.wire-hop-status-pill.hop-pass {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.wire-hop-status-pill.hop-fail {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.wire-hop-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sand-bone, #f7f3ee);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wire-hop-target {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: var(--sand-muted, #9e9589);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wire-hop-latency {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: var(--sand-gold, #d4a373);
}

/* Connector Wire Segment Between Hops */
.wire-connector {
  position: relative;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wire-connector .wire-line {
  width: 100%;
  height: 3px;
  border-radius: 1.5px;
}

.wire-connector.intact .wire-line {
  background: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.45);
}

.wire-connector.broken .wire-line {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.65);
}

/* Illuminated BREAK HERE indicator */
.wire-break-callout {
  position: absolute;
  top: -24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #dc2626;
  color: #ffffff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.85);
  animation: breakBlink 1.4s infinite ease-in-out;
  white-space: nowrap;
  z-index: 10;
}

.break-glow {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.break-dist {
  font-size: 0.55rem;
  opacity: 0.9;
}

@keyframes breakBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.96); }
}

/* Diagnostic Callout Banners */
.wire-fault-banner {
  padding: 0.75rem 0.95rem;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wire-fault-title {
  font-size: 0.76rem;
  color: #f87171;
}

.wire-fault-desc {
  font-size: 0.73rem;
  line-height: 1.4;
  color: #fee2e2;
}

.wire-nominal-banner {
  padding: 0.65rem 0.95rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #86efac;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Light Theme High Contrast Overrides */
[data-theme-mode="light"] .wire-tester-card {
  background: #ffffff;
  border-color: var(--theme-border, #e2e8f0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme-mode="light"] .wire-tester-title {
  color: var(--theme-text-main, #0f172a);
}

[data-theme-mode="light"] .wire-tester-subtext {
  color: var(--theme-text-muted, #475569);
}

[data-theme-mode="light"] .wire-terminals-bar {
  background: #f8fafc;
  border-color: var(--theme-border, #e2e8f0);
}

[data-theme-mode="light"] .wire-terminal.terminal-up {
  background: #f0fdf4;
  border-color: #86efac;
}

[data-theme-mode="light"] .wire-terminal.terminal-down {
  background: #fef2f2;
  border-color: #fca5a5;
}

[data-theme-mode="light"] .terminal-id {
  color: var(--theme-text-main, #0f172a);
}

[data-theme-mode="light"] .terminal-detail {
  color: var(--theme-text-muted, #475569);
}

[data-theme-mode="light"] .bridge-tag {
  color: var(--theme-text-muted, #475569);
}

[data-theme-mode="light"] .wire-cable-header {
  color: var(--theme-text-muted, #475569);
}

[data-theme-mode="light"] .wire-hop-node {
  background: #ffffff;
  border-color: var(--theme-border, #e2e8f0);
}

[data-theme-mode="light"] .wire-hop-name {
  color: var(--theme-text-main, #0f172a);
}

[data-theme-mode="light"] .wire-hop-target {
  color: var(--theme-text-muted, #475569);
}

[data-theme-mode="light"] .wire-fault-banner {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

[data-theme-mode="light"] .wire-fault-title {
  color: #b91c1c;
}

[data-theme-mode="light"] .wire-fault-desc {
  color: #7f1d1d;
}

[data-theme-mode="light"] .wire-nominal-banner {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

/* Keyboard Commander Styles */
.dense-node-row.keyboard-active {
  outline: 2px solid var(--sand-bone);
  outline-offset: -2px;
  background-color: var(--sand-surface-hover);
}

kbd {
  background-color: var(--sand-surface);
  color: var(--sand-bone);
  border: 1px solid var(--sand-border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

[data-theme-mode="light"] .dense-node-row.keyboard-active {
  outline-color: var(--stone-900);
  background-color: var(--stone-100);
}

[data-theme-mode="light"] kbd {
  background-color: var(--stone-100);
  color: var(--stone-900);
  border-color: var(--stone-300);
}

/* Snooze UI Enhancements */
.badge-snoozed {
  background: rgba(163, 163, 163, 0.2);
  color: #a3a3a3;
  border: 1px solid rgba(163, 163, 163, 0.4);
}

.snooze-countdown {
  font-family: var(--font-mono);
  font-weight: 700;
  margin-left: 0.25rem;
}

.btn-snooze, .btn-unsnooze {
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  color: var(--sand-bone);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-snooze:hover {
  background: var(--charcoal);
  border-color: var(--sand-gold);
}

.btn-unsnooze {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.btn-unsnooze:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.6);
}



/* Sparkline Scrubber Interactive Layer */
.history-bar {
  position: relative;
  cursor: crosshair;
}

.history-crosshair {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background-color: var(--sand-muted);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.15s ease;
  will-change: transform;
}

.history-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--sand-surface);
  border: 1px solid var(--sand-border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: opacity 0.15s ease;
  will-change: transform;
  min-width: 90px;
}

.history-tooltip-time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--sand-muted);
}

.history-tooltip-latency {
  font-weight: 700;
  color: var(--sand-bone);
  font-size: 0.8rem;
}

.history-tooltip-status {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.history-tooltip-status.status-healthy {
  color: var(--sage-green);
}

.history-tooltip-status.status-degraded {
  color: var(--dune-amber);
}

.history-tooltip-status.status-down {
  color: var(--terracotta);
}
/* ========================================================================= */
/* M-8: LIVE LOGS STREAM DECK                                                */
/* ========================================================================= */

.logs-deck {
  background-color: var(--sand-bg);
  border: 1px solid var(--sand-border);
  border-radius: var(--radius);
  margin-top: 0.5rem;
  overflow-y: auto;
  max-height: 400px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sand-bone);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.inspector-terminal {
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}

.logs-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.logs-search-input {
  background: var(--bg-secondary);
  border: 1px solid var(--sand-border);
  color: var(--text-main);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  outline: none;
}
.logs-search-input:focus {
  border-color: var(--sand-gold);
}

.btn-log-control {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--sand-border);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}
.btn-log-control:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}
.btn-log-control.active {
  background: var(--sage-dim);
  color: var(--sage-green);
  border-color: var(--sage-green);
}

.log-line {
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.4;
  padding: 0.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.log-ts {
  color: var(--sand-muted);
  margin-right: 0.5rem;
}

.log-msg {
  color: var(--sand-bone);
}

.log-level-INFO {
  color: var(--sage-green);
  margin-right: 0.5rem;
  font-weight: bold;
}

.log-level-WARN {
  color: var(--dune-amber);
  margin-right: 0.5rem;
  font-weight: bold;
}

.log-level-ERR, .log-level-ERROR {
  color: var(--terracotta);
  margin-right: 0.5rem;
  font-weight: bold;
 1547506 (feat(ui): add live streaming syslog & journalctl deck to slide-over inspector)
}

/* =========================================================================
   MILESTONE M-13: LEVEL-OF-DETAIL (LOD) CANVAS ZOOMING
   ========================================================================= */

#topology-stage [class*="topo-card"],
#topology-stage .enclosed-workload-chip,
#topology-stage .chip-name,
#topology-stage .chip-tag,
#topology-stage .host-workloads-header,
#topology-stage .topo-canary-orbiter,
#topology-stage .card-sla-row {
  transition: all 0.15s ease-out;
}

#topology-stage .topo-card-title,
#topology-stage .chip-name {
  color: var(--sand-bone) !important;
}

/* --- LOD LOW (Zoom < 0.6) --- */
#topology-stage[data-lod="low"] .enclosed-workload-chip {
  width: 6px !important;
  height: 6px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-content: center;
}

#topology-stage[data-lod="low"] .enclosed-workload-chip.status-dot-healthy {
  background: #10b981 !important;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.6) !important;
}

#topology-stage[data-lod="low"] .enclosed-workload-chip.status-dot-warning {
  background: #f59e0b !important;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.6) !important;
}

#topology-stage[data-lod="low"] .enclosed-workload-chip.status-dot-error {
  background: #ef4444 !important;
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.6) !important;
}

#topology-stage[data-lod="low"] .chip-status-dot {
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

#topology-stage[data-lod="low"] .chip-name,
#topology-stage[data-lod="low"] .chip-tag {
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

#topology-stage[data-lod="low"] .topo-card-ip,
#topology-stage[data-lod="low"] .topo-card-latency,
#topology-stage[data-lod="low"] .topo-card-role,
#topology-stage[data-lod="low"] .host-workloads-header,
#topology-stage[data-lod="low"] .topo-canary-orbiter,
#topology-stage[data-lod="low"] .card-sla-row {
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
}

/* ---------- RADAR DECK (M-24) ---------- */
.radar-deck {
  background: var(--theme-bg-surface, var(--sand-surface));
  border: 1px solid var(--theme-border, var(--sand-border));
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.radar-host-card {
  background: var(--theme-bg-card, var(--sand-card));
  border: 1px solid var(--theme-border-subtle, var(--sand-border-subtle));
  border-radius: 8px;
  padding: 1rem;
  min-width: 200px;
  flex: 1;
}

.radar-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
  color: var(--theme-text-main, var(--sand-bone));
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.radar-beacon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
  animation: radarPulse 2s infinite;
}

@keyframes radarPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- LOD MEDIUM (0.6 <= Zoom < 0.9) --- */
#topology-stage[data-lod="medium"] .topo-card-ip,
#topology-stage[data-lod="medium"] .topo-card-latency,
#topology-stage[data-lod="medium"] .topo-canary-orbiter,
#topology-stage[data-lod="medium"] .chip-tag {
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
}

/* ========================================================================= */
/* M-25: HARDWARE TELEMETRY DECK                                             */
/* ========================================================================= */

.hardware-telemetry-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--theme-bg-surface, var(--sand-surface));
  border: 1px solid var(--theme-border, var(--sand-border));
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.hardware-gauge-card {
  flex: 1;
  min-width: 220px;
  background: var(--theme-bg-card, var(--sand-card));
  border: 1px solid var(--theme-border-subtle, var(--sand-border-subtle));
  border-radius: 6px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hardware-gauge-card-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--theme-text-main, var(--sand-bone));
  text-transform: uppercase;
}

.wearout-bar-bg {
  background: #333;
  height: 8px;
  border-radius: 4px;
  width: 100%;
  overflow: hidden;
}

.wearout-bar-fill {
  height: 100%;
  background: var(--sage-green);
  transition: width 0.3s ease;
}

.corosync-jitter-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  display: inline-block;
  color: #111; /* AAA contrast on light backgrounds */
  border: 1px solid currentColor;
}

.corosync-jitter-pill.jitter-good { background: var(--sage-green); border-color: var(--sage-green); }
.corosync-jitter-pill.jitter-warn { background: var(--dune-amber); border-color: var(--dune-amber); }
.corosync-jitter-pill.jitter-fault { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

.thermal-delta-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--theme-text-main, var(--sand-bone));
  background: var(--theme-bg-surface, var(--sand-surface));
  border: 1px solid var(--theme-border, var(--sand-border));
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.oom-event-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
  background: var(--terracotta);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  font-weight: 700;
}

/* ========================================================================= */
/* M-26: MAINTENANCE SIMULATOR DRAWER                                        */
/* ========================================================================= */
.maintenance-simulator-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 450px;
  max-width: 90vw;
  height: 100vh;
  background: var(--theme-bg-surface, var(--sand-surface));
  border-left: 1px solid var(--theme-border, var(--sand-border));
  z-index: 10000;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  color: var(--theme-text-main, var(--sand-bone));
  font-family: var(--font-sans);
}
.maintenance-simulator-drawer.open { right: 0; }
.blast-radius-badge {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 800;
  padding: 0.3rem 0.6rem; border-radius: 4px; display: inline-block;
}
.blast-radius-badge.critical { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid #ef4444; }
.blast-radius-badge.high { background: rgba(249, 115, 22, 0.15); color: #f97316; border: 1px solid #f97316; }
.blast-radius-badge.medium { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid #f59e0b; }
.blast-radius-badge.low { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid #10b981; }
.restoration-step-pill {
  font-family: var(--font-mono); font-size: 0.72rem; padding: 0.4rem 0.6rem;
  border: 1px solid var(--theme-border, var(--sand-border)); border-radius: 6px;
  background: var(--theme-bg-card, var(--sand-card)); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem;
}
.affected-workload-chip {
  font-family: var(--font-mono); font-size: 0.68rem; padding: 0.2rem 0.5rem;
  border: 1px solid var(--theme-border-subtle, var(--sand-border-subtle)); border-radius: 4px;
  background: var(--theme-bg-surface, var(--sand-surface)); color: var(--theme-text-main, var(--sand-bone));
  display: inline-block; margin: 0.2rem;
}

/* Solar Auto-Schedule Styles */
body, .modal-content, .view-container, .inspector-panel {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.solar-toggle-pill {
  font-weight: bold;
  cursor: pointer;
  color: #D2B48C; /* Warm Sand */
  background-color: #2F4F4F; /* Dark background for AAA contrast */
  border: 1px solid #8B7355; /* Desert Stone */
}

.solar-toggle-pill.active {
  color: #1A1A1A; 
  background-color: #D2B48C; /* Warm Sand */
}

.solar-active-indicator {
  color: #D2B48C;
}

/* ========================================================================= */
/* M-27: KING'S CONSOLE SOVEREIGN TRAVERTINE & DARK GLASSMORPHISM STYLING     */
/* ========================================================================= */

.btn-kings-console {
  background: rgba(35, 32, 26, 0.7);
  border: 1px solid rgba(212, 163, 115, 0.35);
  color: var(--sand-gold);
  font-family: var(--font-sans);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-kings-console:hover {
  background: rgba(212, 163, 115, 0.15);
  border-color: var(--sand-gold);
  box-shadow: 0 0 12px rgba(212, 163, 115, 0.25);
}

.kings-cred-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dune-amber);
  color: #141210;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  animation: pulse-badge 2s infinite ease-in-out;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(221, 157, 74, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(221, 157, 74, 0); }
}

.kings-console-drawer {
  position: fixed;
  top: 0;
  right: -560px;
  width: 520px;
  max-width: 95vw;
  height: 100vh;
  background: rgba(22, 20, 17, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(212, 163, 115, 0.28);
  box-shadow: -8px 0 36px rgba(0, 0, 0, 0.75);
  z-index: 10050;
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--sand-bone);
  font-family: var(--font-sans);
}

.kings-console-drawer.open {
  right: 0 !important;
  display: flex !important;
}

.kings-console-header {
  padding: 1.1rem 1.25rem;
  background: rgba(27, 25, 22, 0.85);
  border-bottom: 1px solid rgba(212, 163, 115, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kings-console-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.kings-crown-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(212, 163, 115, 0.5));
}

.kings-title-text {
  display: flex;
  flex-direction: column;
}

.kings-title-main {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sand-bone);
  letter-spacing: 0.02em;
}

.kings-title-sub {
  font-size: 0.72rem;
  color: var(--sand-gold);
  font-family: var(--font-mono);
}

.kings-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kings-stream-indicator {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(96, 153, 102, 0.15);
  color: #86efac;
  border: 1px solid rgba(96, 153, 102, 0.35);
  display: inline-flex;
  align-items: center;
}

.kings-stream-indicator.error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.kings-pending-banner {
  background: rgba(221, 157, 74, 0.15);
  border-bottom: 1px solid rgba(221, 157, 74, 0.3);
  color: #fde047;
  padding: 0.5rem 1.25rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kings-chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: radial-gradient(circle at top right, rgba(35, 30, 22, 0.35), transparent 70%);
}

.kings-msg {
  display: flex;
  flex-direction: column;
  max-width: 92%;
  animation: fadeInMsg 0.2s ease-out;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.kings-msg-user {
  align-self: flex-end;
}

.kings-msg-user .kings-msg-bubble {
  background: rgba(44, 40, 34, 0.85);
  border: 1px solid rgba(212, 163, 115, 0.25);
  border-radius: 10px 10px 2px 10px;
  padding: 0.75rem 0.95rem;
  color: var(--sand-bone);
  font-size: 0.86rem;
}

.kings-msg-king {
  align-self: flex-start;
}

.kings-msg-king .kings-msg-bubble {
  background: rgba(27, 25, 22, 0.92);
  border: 1px solid rgba(212, 163, 115, 0.35);
  border-left: 3px solid var(--sand-gold);
  border-radius: 10px 10px 10px 2px;
  padding: 0.85rem 1rem;
  color: var(--sand-bone);
  font-size: 0.86rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.kings-msg-system {
  align-self: center;
  max-width: 98%;
  width: 100%;
}

.kings-msg-system .kings-msg-bubble {
  background: rgba(24, 22, 19, 0.75);
  border: 1px dashed rgba(212, 163, 115, 0.2);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--sand-muted);
  text-align: center;
}

.kings-badge-sovereign {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sand-gold);
  margin-bottom: 0.3rem;
}

.kings-discovery-item {
  background: rgba(28, 25, 21, 0.85);
  border: 1px solid rgba(212, 163, 115, 0.2);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInMsg 0.2s ease-out;
}

.kings-discovery-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.kings-travertine-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(212, 163, 115, 0.25);
  background: rgba(35, 32, 26, 0.7);
  color: var(--sand-bone);
}

.kings-travertine-badge.probing {
  border-color: rgba(221, 157, 74, 0.4);
  color: var(--dune-amber);
  background: rgba(221, 157, 74, 0.1);
}

.kings-travertine-badge.discovered {
  border-color: rgba(96, 153, 102, 0.4);
  color: #86efac;
  background: rgba(96, 153, 102, 0.12);
}

.kings-travertine-badge.workload {
  border-color: rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.12);
}

.kings-discovery-commentary {
  font-size: 0.82rem;
  color: var(--sand-bone);
  line-height: 1.35;
}

/* Credential Card */
.kings-credential-card {
  background: rgba(32, 27, 20, 0.94);
  border: 1px solid rgba(221, 157, 74, 0.5);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 6px 24px rgba(221, 157, 74, 0.18), 0 4px 12px rgba(0, 0, 0, 0.6);
  animation: fadeInMsg 0.25s ease-out;
}

.kings-cred-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kings-cred-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dune-amber);
}

.kings-cred-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.kings-cred-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(20, 18, 15, 0.8);
  border: 1px solid rgba(212, 163, 115, 0.2);
  color: var(--sand-bone);
}

.kings-cred-prompt {
  font-size: 0.83rem;
  color: var(--sand-bone);
  line-height: 1.4;
  background: rgba(20, 18, 15, 0.5);
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  border-left: 2px solid var(--dune-amber);
}

.kings-cred-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kings-cred-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kings-cred-input-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--sand-muted);
}

.kings-cred-field {
  background: rgba(18, 16, 14, 0.85);
  border: 1px solid rgba(212, 163, 115, 0.25);
  color: var(--sand-bone);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s;
}

.kings-cred-field:focus {
  border-color: var(--sand-gold);
  box-shadow: 0 0 8px rgba(212, 163, 115, 0.2);
}

.kings-cred-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.btn-kings-grant {
  flex: 1;
  background: rgba(221, 157, 74, 0.25);
  border: 1px solid var(--dune-amber);
  color: #fde047;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-kings-grant:hover {
  background: var(--dune-amber);
  color: #141210;
  box-shadow: 0 0 12px rgba(221, 157, 74, 0.4);
}

.btn-kings-skip {
  background: rgba(35, 32, 26, 0.6);
  border: 1px solid rgba(212, 163, 115, 0.2);
  color: var(--sand-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-kings-skip:hover {
  background: rgba(44, 40, 34, 0.8);
  color: var(--sand-bone);
}

.kings-cred-resolved {
  background: rgba(96, 153, 102, 0.15);
  border: 1px solid rgba(96, 153, 102, 0.4);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #86efac;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.kings-cred-skipped {
  background: rgba(35, 32, 26, 0.6);
  border: 1px solid rgba(212, 163, 115, 0.2);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: var(--sand-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* Footer & Chat Input */
.kings-console-footer {
  padding: 0.85rem 1.15rem;
  background: rgba(27, 25, 22, 0.95);
  border-top: 1px solid rgba(212, 163, 115, 0.2);
}

.kings-chat-form {
  display: flex;
  gap: 0.5rem;
}

.kings-chat-input {
  flex: 1;
  background: rgba(18, 16, 14, 0.85);
  border: 1px solid rgba(212, 163, 115, 0.25);
  color: var(--sand-bone);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.kings-chat-input:focus {
  border-color: var(--sand-gold);
  box-shadow: 0 0 10px rgba(212, 163, 115, 0.2);
}

.btn-kings-send {
  background: rgba(212, 163, 115, 0.2);
  border: 1px solid var(--sand-gold);
  color: var(--sand-gold);
  font-weight: 700;
  padding: 0 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-kings-send:hover {
  background: var(--sand-gold);
  color: #141210;
  box-shadow: 0 0 12px rgba(212, 163, 115, 0.35);
}

/* ========================================================================= */
/* KING'S GREENFIELD DISCOVERY & RECONCILIATION WORKSPACE                    */
/* ========================================================================= */

.greenfield-workspace {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-height: calc(100vh - 130px);
}

.greenfield-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(27, 25, 22, 0.85);
  border: 1px solid rgba(212, 163, 115, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.greenfield-control-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.greenfield-crown {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(212, 163, 115, 0.5));
}

.greenfield-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sand-gold, #d4a373);
  margin: 0;
  letter-spacing: 0.02em;
}

.greenfield-subtitle {
  font-size: 0.74rem;
  color: var(--sand-muted, #a8a29e);
  margin: 0.15rem 0 0 0;
}

.greenfield-survey-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.greenfield-seed-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(18, 16, 14, 0.85);
  border: 1px solid rgba(212, 163, 115, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.greenfield-seed-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--sand-bone, #f5f5f4);
}

.greenfield-seed-input {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: transparent;
  border: none;
  color: var(--sand-gold, #d4a373);
  width: 110px;
  outline: none;
  font-weight: 600;
}

.btn-greenfield-launch {
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.3), rgba(180, 130, 80, 0.5));
  border: 1px solid var(--sand-gold, #d4a373);
  color: var(--sand-bone, #f5f5f4);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-greenfield-launch:hover {
  background: var(--sand-gold, #d4a373);
  color: #141210;
  box-shadow: 0 0 14px rgba(212, 163, 115, 0.4);
}

.btn-greenfield-launch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.greenfield-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.greenfield-status-badge.status-idle {
  background: rgba(120, 113, 108, 0.15);
  border: 1px solid rgba(120, 113, 108, 0.35);
  color: #d6d3d1;
}

.greenfield-status-badge.status-idle .greenfield-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8a29e;
}

.greenfield-status-badge.status-discovering {
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.6);
  color: #facc15;
}

.greenfield-status-badge.status-discovering .greenfield-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
  animation: pulse-dot 1.2s infinite ease-in-out;
}

.greenfield-counter-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: rgba(35, 32, 27, 0.85);
  border: 1px solid rgba(212, 163, 115, 0.2);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  color: var(--sand-bone, #f5f5f4);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.greenfield-counter-badge .counter-sep {
  color: rgba(212, 163, 115, 0.4);
}

.btn-compare-fields {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.55);
  color: #c7d2fe;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-compare-fields:hover {
  background: rgba(99, 102, 241, 0.35);
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

/* Greenfield Parity Deck */
.greenfield-reconciliation-deck {
  background: rgba(18, 16, 22, 0.95);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 10px;
  padding: 1.15rem 1.4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.25rem;
  animation: fadeInDown 0.25s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.reconciliation-deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(129, 140, 248, 0.2);
  padding-bottom: 0.75rem;
}

.reconciliation-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.recon-icon {
  font-size: 1.4rem;
}

.recon-title-main {
  font-size: 0.98rem;
  font-weight: 700;
  color: #c7d2fe;
  display: block;
}

.recon-title-sub {
  font-size: 0.74rem;
  color: var(--sand-muted, #a8a29e);
  display: block;
}

.reconciliation-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.recon-accuracy-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.recon-accuracy-pill.warning {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.4);
  color: #facc15;
}

.btn-close-deck {
  background: transparent;
  border: none;
  color: var(--sand-muted, #a8a29e);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
  transition: color 0.15s;
}

.btn-close-deck:hover {
  color: #ffffff;
}

.recon-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.recon-metric-card {
  background: rgba(26, 24, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.recon-metric-num {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.recon-metric-lbl {
  font-size: 0.72rem;
  color: var(--sand-muted, #a8a29e);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recon-lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.recon-list-col {
  background: rgba(18, 16, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.85rem;
}

.recon-list-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recon-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 140px;
  overflow-y: auto;
}

.recon-item-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.recon-item-pill.verified {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #86efac;
}

.recon-item-pill.shadow {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.recon-item-pill.phantom {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde047;
}

.recon-item-pill.drift {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
}

/* Greenfield Two-Column Split Layout */
.greenfield-split-layout {
  display: flex;
  gap: 1.15rem;
  flex: 1;
  min-height: 520px;
}

.greenfield-col-feed {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  background: rgba(22, 20, 18, 0.8);
  border: 1px solid rgba(212, 163, 115, 0.22);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.greenfield-col-estate {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(22, 20, 18, 0.8);
  border: 1px solid rgba(212, 163, 115, 0.22);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.greenfield-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(27, 25, 22, 0.95);
  border-bottom: 1px solid rgba(212, 163, 115, 0.18);
}

.feed-header-title, .estate-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--sand-gold, #d4a373);
}

.greenfield-feed-stream {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 380px;
  max-height: 580px;
}

.greenfield-chat-box {
  padding: 0.75rem 1rem;
  background: rgba(27, 25, 22, 0.95);
  border-top: 1px solid rgba(212, 163, 115, 0.2);
}

.greenfield-estate-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 380px;
  max-height: 640px;
}

.greenfield-empty-slate {
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--sand-muted, #a8a29e);
  margin: auto;
}

.empty-slate-icon {
  font-size: 2.75rem;
  margin-bottom: 0.85rem;
  opacity: 0.85;
}

.empty-slate-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sand-bone, #f5f5f4);
  margin-bottom: 0.45rem;
}

.empty-slate-desc {
  font-size: 0.82rem;
  max-width: 420px;
  line-height: 1.5;
  margin: 0 auto;
}

/* Discovered Greenfield Node Cards */
.greenfield-node-card {
  background: rgba(28, 26, 23, 0.85);
  border: 1px solid rgba(212, 163, 115, 0.2);
  border-left: 3px solid var(--sand-gold, #d4a373);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
}

.greenfield-node-card:hover {
  border-color: var(--sand-gold, #d4a373);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  background: rgba(34, 31, 28, 0.95);
}

.greenfield-node-card.acl-filtered {
  border-left-color: #38bdf8;
}

.node-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.45rem;
}

.node-card-ip-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.node-card-ip {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sand-bone, #f5f5f4);
}

.node-card-hostname {
  font-size: 0.78rem;
  color: var(--sand-muted, #a8a29e);
}

.node-card-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(212, 163, 115, 0.15);
  border: 1px solid rgba(212, 163, 115, 0.35);
  color: var(--sand-gold, #d4a373);
}

.node-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.node-card-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sand-muted, #a8a29e);
}

.node-card-pill.pivot-pill {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.3);
  background: rgba(147, 197, 253, 0.1);
}

.node-card-pill.acl-pill {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
}

.node-card-commentary {
  font-size: 0.74rem;
  color: #d6d3d1;
  line-height: 1.4;
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
  .greenfield-split-layout {
    flex-direction: column;
  }
  .greenfield-col-feed {
    flex: 1;
    max-width: 100%;
  }
}


