/* =============================================================================
   O³ Enterprise Studio - Scaled Agile Framework (SAFe 6.0) Portfolio Kanban
   High-performance cybernetic dark theme, responsive kanban grid, flow metrics
   ============================================================================= */

:root {
  --bg-darkest: #040811;
  --bg-primary: #070d18;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #162238;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-hover: #1e293b;
  --bg-input: #090e17;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: #334155;
  --border-focus: #38bdf8;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;
  --accent-violet: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --drawer-width: 480px;
  --header-height: 52px;
  --ribbon-height: 42px;
  --telemetry-height: 64px;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-darkest);
  color: var(--text-main);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

/* =============================================================================
   1. Header & Brand Section
   ============================================================================= */
header {
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.3);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brand-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-tag {
  font-size: 0.65rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Studio Switcher Dropdown */
.studio-switcher-wrap {
  position: relative;
}

.studio-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-switcher-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-focus);
}

.studio-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  background: #0b1329;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  padding: 10px;
}

.studio-dropdown.open {
  display: block;
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.studio-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.studio-hub-link {
  color: var(--accent-cyan);
  text-decoration: none;
}

.studio-grid-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.studio-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.15s;
}

.studio-menu-item:hover {
  background: rgba(56, 189, 248, 0.1);
}

.studio-menu-item.active {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.studio-menu-item .item-icon {
  font-size: 1.1rem;
}

.studio-menu-item .item-text {
  display: flex;
  flex-direction: column;
}

.studio-menu-item .item-title {
  font-size: 0.78rem;
  font-weight: 700;
}

.studio-menu-item .item-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}

.status-pill.simulation {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  border-color: var(--accent-cyan);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--accent-cyan);
}

.btn-accent-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.4);
}

.btn-accent-purple:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.72rem;
}

.btn-micro {
  padding: 2px 6px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-micro:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

.btn-micro-archive {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.btn-micro-archive:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
}

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

.filter-pill-archive {
  border-color: rgba(148, 163, 184, 0.3);
}

.filter-pill-archive.active {
  background: rgba(148, 163, 184, 0.25) !important;
  color: #f1f5f9 !important;
  border-color: rgba(148, 163, 184, 0.6) !important;
}

/* =============================================================================
   2. Context & Scoping Ribbon
   ============================================================================= */
.context-ribbon {
  height: var(--ribbon-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.ribbon-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ribbon-label {
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.ribbon-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  outline: none;
  cursor: pointer;
}

.ribbon-select:focus {
  border-color: var(--border-focus);
}

.ribbon-divider {
  color: var(--text-dim);
  opacity: 0.4;
}

.badge-model-display {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.ribbon-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-pill {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover, .filter-pill.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.4);
}

/* =============================================================================
   3. SAFe Flow Telemetry Ribbon
   ============================================================================= */
.flow-telemetry-ribbon {
  height: var(--telemetry-height);
  background: linear-gradient(180deg, #091020 0%, #060b17 100%);
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  gap: 16px;
  overflow-x: auto;
}

.telemetry-metrics-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  min-width: 140px;
}

.metric-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.85);
}

.metric-icon {
  font-size: 1.3rem;
  opacity: 0.9;
}

.metric-body {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-value {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}

.metric-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.distribution-bar {
  display: flex;
  height: 6px;
  width: 100px;
  border-radius: 3px;
  overflow: hidden;
  background: #1e293b;
  margin-top: 3px;
}

.distribution-segment-business {
  background: var(--accent-cyan);
  transition: width 0.3s;
}

.distribution-segment-enabler {
  background: #ff2238;
  transition: width 0.3s;
}

.telemetry-live-feed {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

/* =============================================================================
   4. Kanban Board Layout
   ============================================================================= */
.kanban-board-container {
  position: relative;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  padding: 14px 16px;
  gap: 14px;
  background: var(--bg-darkest);
}

.kanban-column {
  flex: 1;
  min-width: 250px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  background: rgba(11, 19, 36, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.kanban-column.drag-over {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.06);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

/* Composite Implementing Column (split into 2 sub-columns) */
.kanban-column-composite {
  min-width: 480px;
  max-width: 580px;
  flex: 1.8;
}

.composite-body {
  display: flex;
  gap: 10px;
  flex: 1;
  padding: 8px;
  overflow-y: hidden;
}

.sub-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(7, 13, 24, 0.6);
  border: 1px dashed var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
}

.sub-column.drag-over {
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.08);
}

.sub-column-header {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.4);
}

.sub-column-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Column Header */
.column-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-medium);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.column-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-icon {
  font-size: 1rem;
}

.column-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.wip-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.wip-badge.wip-ok {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.wip-badge.wip-warn {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.15);
}

.wip-badge.wip-exceeded {
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.2);
  animation: pulseExceeded 1.5s infinite;
}

@keyframes pulseExceeded {
  0%, 100% { box-shadow: 0 0 0 rgba(244, 63, 94, 0); }
  50% { box-shadow: 0 0 8px rgba(244, 63, 94, 0.6); }
}

.column-policy-desc {
  font-size: 0.65rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.column-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

/* Card List Body */
.column-body {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =============================================================================
   5. Epic & Enabler Kanban Card Styles
   ============================================================================= */
.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 11px 12px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: grab;
  position: relative;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease;
  user-select: none;
  backdrop-filter: blur(8px);
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  border-color: rgba(56, 189, 248, 0.35);
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.35;
  transform: scale(0.96);
  border: 1px dashed var(--accent-cyan);
}

/* Vertical Drop Position Indicator / Placeholder */
.kanban-drop-indicator {
  height: 4px;
  background: linear-gradient(90deg, #38bdf8 0%, #a855f7 50%, #38bdf8 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8), 0 0 18px rgba(168, 85, 247, 0.6);
  margin: 4px 0;
  pointer-events: none;
  animation: pulseDropLine 1s infinite alternate;
}

@keyframes pulseDropLine {
  from { opacity: 0.7; transform: scaleY(0.9); }
  to { opacity: 1; transform: scaleY(1.4); }
}

/* Business Epic vs Enabler Epic Indicators & Rich Sticky-Note Tinted Backgrounds */
.kanban-card.card-epic {
  border-left: 6px solid #38bdf8;
  background: linear-gradient(170deg, rgba(2, 132, 199, 0.78) 0%, rgba(3, 105, 161, 0.68) 50%, rgba(12, 74, 110, 0.85) 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.65);
  border-right: 1px solid rgba(14, 165, 233, 0.5);
  border-bottom: 1px solid rgba(2, 132, 199, 0.45);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.kanban-card.card-epic:hover {
  background: linear-gradient(170deg, rgba(2, 132, 199, 0.88) 0%, rgba(3, 105, 161, 0.78) 50%, rgba(12, 74, 110, 0.92) 100%);
  border-color: rgba(125, 211, 252, 0.85);
  box-shadow: 0 8px 26px rgba(2, 132, 199, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.kanban-card.card-epic .card-title {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.kanban-card.card-epic .card-owner-info {
  color: #bae6fd;
}

.kanban-card.card-epic .card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.kanban-card.card-epic .card-metrics-stack {
  background: rgba(8, 47, 73, 0.65);
  border-color: rgba(56, 189, 248, 0.25);
}

.kanban-card.card-enabler {
  border-left: 6px solid #fb7185;
  background: linear-gradient(170deg, rgba(225, 29, 72, 0.78) 0%, rgba(190, 18, 60, 0.68) 50%, rgba(136, 19, 55, 0.85) 100%);
  border-top: 1px solid rgba(255, 68, 88, 0.65);
  border-right: 1px solid rgba(244, 63, 94, 0.5);
  border-bottom: 1px solid rgba(225, 29, 72, 0.45);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.kanban-card.card-enabler:hover {
  background: linear-gradient(170deg, rgba(225, 29, 72, 0.88) 0%, rgba(190, 18, 60, 0.78) 50%, rgba(136, 19, 55, 0.92) 100%);
  border-color: rgba(254, 205, 211, 0.85);
  box-shadow: 0 8px 26px rgba(225, 29, 72, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.kanban-card.card-enabler .card-title {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.kanban-card.card-enabler .card-owner-info {
  color: #fecdd3;
}

.kanban-card.card-enabler .card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.kanban-card.card-enabler .card-metrics-stack {
  background: rgba(76, 5, 25, 0.65);
  border-color: rgba(255, 68, 88, 0.25);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.card-type-pill {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.04em;
}

.card-type-pill.type-business {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.card-type-pill.type-enabler {
  background: rgba(255, 34, 56, 0.18);
  color: #ff3b50;
  border: 1px solid rgba(255, 34, 56, 0.45);
  font-weight: 800;
}

.enabler-subtype-tag {
  font-size: 0.58rem;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Compliance: Subtle Indigo / Steel Blue */
.enabler-subtype-tag.subtype-compliance {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

/* Architecture: Cool Cyan / Teal */
.enabler-subtype-tag.subtype-architecture {
  background: rgba(45, 212, 191, 0.15);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.35);
}

/* Infrastructure: Sky Blue */
.enabler-subtype-tag.subtype-infrastructure {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Exploration: Warm Amber / Gold */
.enabler-subtype-tag.subtype-exploration {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.card-sentinel-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.card-sentinel-badge.badge-aligned {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.card-sentinel-badge.badge-gaps {
  background: rgba(239, 68, 68, 0.22);
  color: #ff3344;
  border: 1px solid #ff3344;
  font-weight: 800;
  box-shadow: 0 0 6px rgba(255, 51, 68, 0.35);
}

.card-sentinel-badge.badge-misaligned {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.card-sentinel-badge.badge-insufficient {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Audit status styling: top banner and subtle border tint, but LEFT EDGE is strictly reserved for type (Business=Blue, Enabler=Red) */
.kanban-card.card-audit-gaps {
  border-top: 1px solid rgba(255, 51, 68, 0.75);
  border-right: 1px solid rgba(255, 51, 68, 0.65);
  border-bottom: 1px solid rgba(255, 51, 68, 0.5);
  box-shadow: 0 4px 16px rgba(255, 51, 68, 0.25), inset 0 0 16px rgba(255, 51, 68, 0.08);
}

.kanban-card.card-audit-misaligned {
  border-top: 1px solid rgba(239, 68, 68, 0.9);
  border-right: 1px solid rgba(239, 68, 68, 0.8);
  border-bottom: 1px solid rgba(239, 68, 68, 0.65);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35), inset 0 0 16px rgba(239, 68, 68, 0.1);
}

.kanban-card.card-audit-insufficient {
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  border-right: 1px solid rgba(148, 163, 184, 0.4);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.18);
}

.kanban-card.card-processing {
  border-top: 1px solid rgba(56, 189, 248, 0.95);
  border-right: 1px solid rgba(56, 189, 248, 0.85);
  border-bottom: 1px solid rgba(168, 85, 247, 0.85);
  animation: cardActorProcessingPulse 1.4s ease-in-out infinite alternate;
}

@keyframes cardActorProcessingPulse {
  0% {
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4), inset 0 0 12px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.9);
  }
  50% {
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.65), inset 0 0 18px rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 1);
  }
  100% {
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.8), inset 0 0 24px rgba(56, 189, 248, 0.35);
    border-color: rgba(56, 189, 248, 1);
  }
}

.kanban-card.card-audit-aligned {
  /* Retain type-based left border without overriding */
}

/* Prominent Alert Banner at the very top of the Card (Slimmed vertically) */
.card-sentinel-banner {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  margin: -3px 0 0 0;
  letter-spacing: 0.02em;
}

.card-sentinel-banner.banner-valid,
.card-sentinel-banner.banner-aligned {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.15);
}

.card-sentinel-banner.banner-issue,
.card-sentinel-banner.banner-gaps,
.card-sentinel-banner.banner-misaligned {
  background: rgba(255, 51, 68, 0.22);
  border: 1px solid rgba(255, 51, 68, 0.7);
  color: #ff3344;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(255, 51, 68, 0.2);
}

.card-sentinel-banner.banner-insufficient {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #cbd5e1;
  box-shadow: 0 0 5px rgba(148, 163, 184, 0.12);
}

.card-sentinel-banner.banner-processing {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.25) 0%, rgba(168, 85, 247, 0.3) 50%, rgba(56, 189, 248, 0.25) 100%);
  background-size: 200% 100%;
  border: 1px solid rgba(56, 189, 248, 0.85);
  color: #7dd3fc;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  animation: sentinelScan 1.6s ease infinite;
}

@keyframes sentinelScan {
  0% { background-position: 100% 0; box-shadow: 0 0 6px rgba(56, 189, 248, 0.3); }
  50% { background-position: 0 0; box-shadow: 0 0 16px rgba(168, 85, 247, 0.6); }
  100% { background-position: -100% 0; box-shadow: 0 0 6px rgba(56, 189, 248, 0.3); }
}

.card-sentinel-banner .banner-icon {
  font-size: 0.62rem;
  line-height: 1;
  flex-shrink: 0;
}

.card-sentinel-banner .banner-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-aging {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.card-aging .age-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
  flex-shrink: 0;
  opacity: 0.7;
}

.card-aging .age-sep {
  opacity: 0.4;
  margin: 0 1px;
}

.card-aging .age-text {
  color: #94a3b8;
}

/* Subtle, dignified distinction without neon glare */
.card-aging.age-fresh .age-text {
  color: #94a3b8;
}

.card-aging.age-aging .age-text {
  color: #cbd5e1;
}

.card-aging.age-stale {
  border-color: rgba(255, 255, 255, 0.12);
}
.card-aging.age-stale .age-text {
  color: #e2e8f0;
}
.card-aging.age-stale .age-dot {
  background: #94a3b8;
  opacity: 1;
}

.card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-owner-info {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dim);
  font-size: 0.65rem;
  margin-top: -2px;
}

.card-owner-info .owner-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #334155, #1e293b);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
}

.card-theme-tag {
  font-size: 0.62rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  align-self: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
  font-size: 0.65rem;
}

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

.card-metrics-stack {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 3px 6px;
  border-radius: 4px;
}

.card-metric-item {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1;
}

.card-metric-item .metric-label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.card-metric-item .metric-val {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.58rem;
}

.card-metric-item .metric-val.wsjf-accent {
  color: var(--accent-amber);
}

.card-metric-interactive {
  cursor: pointer;
  padding: 1px 3px;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.card-metric-interactive:hover {
  background: rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}

.card-metric-divider {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.card-wsjf-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-wsjf-badge:hover {
  background: rgba(245, 158, 11, 0.3);
  transform: scale(1.05);
}

.card-mvp-badge {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* =============================================================================
   6. Inspector Drawer (Right Side)
   ============================================================================= */
.detail-drawer {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: var(--drawer-width);
  background: #090f1d;
  border-left: 1px solid var(--border-medium);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(100%);
}

.detail-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-medium);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  gap: 4px;
}

.drawer-tab {
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.drawer-tab:hover {
  color: var(--text-main);
}

.drawer-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px;
}

.drawer-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hypothesis-box {
  background: rgba(7, 13, 24, 0.8);
  border-left: 3px solid var(--accent-emerald);
  padding: 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.hypothesis-row {
  margin-bottom: 6px;
}

.hypothesis-label {
  font-weight: 700;
  color: var(--accent-cyan);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.15s;
}

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

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

/* =============================================================================
   7. Modals
   ============================================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 17, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: #0d1527;
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 14px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 12px 18px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* WSJF Fibonacci Button Matrix */
.fibonacci-matrix {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.fib-btn {
  flex: 1;
  padding: 6px 0;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.fib-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-cyan);
}

.fib-btn.active {
  background: var(--accent-cyan);
  color: #040811;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.wsjf-summary-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(22, 34, 56, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wsjf-result-number {
  font-size: 2rem;
  font-family: var(--font-mono);
  font-weight: 900;
  color: var(--accent-amber);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--accent-cyan);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  animation: slideInRight 0.2s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.success {
  border-left-color: var(--accent-emerald);
}

.toast.warn {
  border-left-color: var(--accent-amber);
}

.toast.error {
  border-left-color: var(--accent-rose);
}

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

/* =============================================================================
   9. Executive Audio Briefing Trigger & Floating HUD
   ============================================================================= */
.btn-briefing {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28) 0%, rgba(99, 102, 241, 0.35) 100%);
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #f3e8ff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.btn-briefing:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45) 0%, rgba(99, 102, 241, 0.55) 100%);
  border-color: rgba(216, 180, 254, 0.8);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.45);
  transform: translateY(-1px);
}

.btn-briefing.playing {
  border-color: #c084fc;
  box-shadow: 0 0 18px rgba(192, 132, 252, 0.6);
  animation: pulseBriefingBtn 1.8s infinite;
}

@keyframes pulseBriefingBtn {
  0%, 100% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.3); }
  50% { box-shadow: 0 0 24px rgba(192, 132, 252, 0.7); }
}

.briefing-hud {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 520px;
  max-width: calc(100vw - 48px);
  background: rgba(11, 19, 36, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(168, 85, 247, 0.25);
  backdrop-filter: blur(18px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.briefing-hud.is-dragging {
  opacity: 0.92;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(168, 85, 247, 0.45);
  border-color: #c084fc;
  cursor: grabbing !important;
}

/* Small / Compact floating widget mode */
.briefing-hud.mode-small {
  width: 420px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.3);
}

.briefing-hud.mode-small .briefing-hud-body {
  padding: 8px 12px;
  gap: 6px;
}

.briefing-hud.mode-small .briefing-headline {
  font-size: 0.74rem;
  line-height: 1.25;
}

.briefing-hud.mode-small .briefing-teleprompter {
  max-height: 48px;
  font-size: 0.68rem;
  padding: 6px 8px;
  line-height: 1.35;
}

.briefing-hud.mode-small .briefing-bullets-grid,
.briefing-hud.mode-small .briefing-action-box {
  display: none !important;
}

.briefing-hud.mode-small .briefing-waveform {
  height: 12px;
}

@keyframes hudSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.briefing-hud-header {
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
}

.briefing-drag-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: grab;
  flex: 1;
  overflow: hidden;
}

.briefing-drag-grip {
  color: rgba(168, 85, 247, 0.6);
  font-size: 0.85rem;
  letter-spacing: -2px;
  cursor: grab;
  transition: color 0.15s ease;
}

.briefing-drag-zone:hover .briefing-drag-grip {
  color: #c084fc;
}

.briefing-title-text {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.btn-mode-toggle {
  font-weight: 700;
  border-color: rgba(168, 85, 247, 0.5) !important;
  color: #e9d5ff !important;
}

.btn-mode-toggle:hover {
  background: rgba(168, 85, 247, 0.25) !important;
}

.briefing-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  display: inline-block;
  animation: pulseLiveDot 1.4s infinite;
}

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

.briefing-hud-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  user-select: text;
}

.briefing-headline {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.briefing-teleprompter {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid #a855f7;
  max-height: 140px;
  overflow-y: auto;
}

.briefing-bullets-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.briefing-bullet-item {
  font-size: 0.68rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.briefing-action-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 6px;
  padding: 8px 10px;
}

/* Audio Waveform Bars */
.briefing-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 4px;
}

.wave-bar {
  flex: 1;
  width: 4px;
  height: 4px;
  background: #c084fc;
  border-radius: 2px;
  transition: height 0.15s ease;
}

.briefing-hud.active-voice .wave-bar {
  animation: waveMotion 1s infinite ease-in-out alternate;
}

.briefing-hud.active-voice .bar-1 { animation-delay: 0.1s; }
.briefing-hud.active-voice .bar-2 { animation-delay: 0.3s; }
.briefing-hud.active-voice .bar-3 { animation-delay: 0.15s; }
.briefing-hud.active-voice .bar-4 { animation-delay: 0.4s; }
.briefing-hud.active-voice .bar-5 { animation-delay: 0.25s; }
.briefing-hud.active-voice .bar-6 { animation-delay: 0.45s; }
.briefing-hud.active-voice .bar-7 { animation-delay: 0.2s; }
.briefing-hud.active-voice .bar-8 { animation-delay: 0.5s; }
.briefing-hud.active-voice .bar-9 { animation-delay: 0.35s; }
.briefing-hud.active-voice .bar-10 { animation-delay: 0.15s; }

@keyframes waveMotion {
  0% { height: 4px; background: #9333ea; }
  50% { height: 18px; background: #c084fc; }
  100% { height: 8px; background: #38bdf8; }
}

/* Spotlight pulsing card when mentioned in Executive Briefing */
.kanban-card.briefing-spotlight {
  box-shadow: 0 0 24px rgba(192, 132, 252, 0.9), inset 0 0 12px rgba(192, 132, 252, 0.4) !important;
  border-color: #c084fc !important;
  transform: translateY(-4px) scale(1.02);
  transition: all 0.3s ease;
}

/* Spotlight pulsing column lane when stage is discussed in Executive Briefing */
.kanban-column.briefing-column-spotlight,
.sub-column.briefing-column-spotlight {
  border-color: #c084fc !important;
  box-shadow: 0 0 24px rgba(192, 132, 252, 0.35) !important;
  transition: all 0.3s ease;
}

/* =============================================================================
   DIGITAL PROCESS TWIN "WOW" EXTENSIONS
   © 2026 STREAM TO TEAM, LLC. ALL RIGHTS RESERVED.
   ============================================================================= */

/* View Mode Selector in Header */
.twin-view-mode-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.twin-mode-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.twin-mode-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(168, 85, 247, 0.3));
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.btn-wow-simulator {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}
.btn-wow-simulator:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

/* Twin Lens Pills in Ribbon */
.twin-lens-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.twin-lens-pill:hover {
  color: #f1f5f9;
  border-color: rgba(56, 189, 248, 0.4);
}
.twin-lens-pill.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}
.lens-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
}
.twin-lens-pill.active .lens-indicator {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

/* =============================================================================
   DIGITAL PROCESS TWIN VISUAL ENHANCEMENTS
   ============================================================================= */

/* Card Hologram Tags in X-Ray */
.twin-card-indicators {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.twin-agent-hologram {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.15));
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #e9d5ff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.twin-chokepoint-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fca5a5;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.twin-chokepoint-badge.downstream-power {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
}

/* SVG Dependency Arcs in X-Ray Mode */
.twin-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 45;
  overflow: visible;
}

.dep-path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 4;
  animation: depConduitFlow 25s linear infinite;
  transition: opacity 0.25s ease, stroke-width 0.25s ease;
  pointer-events: stroke;
  cursor: pointer;
}

.dep-path.critical {
  stroke: #ef4444;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
}

.dep-path.high {
  stroke: #f59e0b;
  filter: drop-shadow(0 0 7px rgba(245, 158, 11, 0.7));
}

.dep-path.normal {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

.dep-path.dimmed {
  opacity: 0.12 !important;
  stroke-width: 1.5 !important;
}

.dep-path.focused {
  opacity: 1 !important;
  stroke-width: 4 !important;
  stroke-dasharray: 6 3;
}

.dep-node-dot {
  fill: #38bdf8;
  transition: all 0.25s ease;
}

.dep-node-dot.critical { fill: #ef4444; }
.dep-node-dot.high { fill: #f59e0b; }
.dep-node-dot.dimmed { opacity: 0.12 !important; }

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

/* =============================================================================
   CYTOSCAPE LIVING DIGITAL PROCESS TWIN VIEWPORT
   ============================================================================= */
.twin-graph-viewport {
  position: relative;
  width: 100%;
  height: calc(100vh - 165px);
  background: radial-gradient(circle at 50% 50%, #0c172b 0%, #030712 100%);
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-top: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0, 0, 0, 0.9);
}

.twin-graph-controls {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.twin-graph-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 600;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-epic { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.legend-enabler { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.legend-theme { background: #10b981; box-shadow: 0 0 8px #10b981; }
.legend-owner { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
.legend-gate { background: #ec4899; box-shadow: 0 0 8px #ec4899; }

.twin-graph-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.twin-graph-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.twin-select-sm {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  outline: none;
}

/* Cytoscape Container */
.twin-cy-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

/* Floating Node Inspector Popover */
.twin-node-popover {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 340px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 14px;
  z-index: 110;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
  animation: popoverFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.popover-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.popover-body {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 12px;
}

.popover-footer {
  display: flex;
  justify-content: flex-end;
}


/* =============================================================================
   WHAT-IF DECISION SANDBOX MODAL
   ============================================================================= */
.whatif-sandbox-card {
  max-width: 980px !important;
  background: linear-gradient(180deg, #0f172a 0%, #090d16 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(245, 158, 11, 0.15) !important;
}

.whatif-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.whatif-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-amber);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scenario-buttons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 6px;
}

.scenario-card-btn {
  display: flex;
  flex-direction: column;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-card-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(245, 158, 11, 0.4);
}

.scenario-card-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.scen-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 2px;
}

.scen-desc {
  font-size: 0.65rem;
  color: #94a3b8;
  line-height: 1.3;
  margin-top: 2px;
}

.whatif-metrics-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.whatif-kpi-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.whatif-kpi-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: #94a3b8;
}

.whatif-kpi-value {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 2px 0;
}
.whatif-kpi-value.positive { color: #10b981; }
.whatif-kpi-value.negative { color: #ef4444; }

.whatif-kpi-sub {
  font-size: 0.58rem;
  color: #64748b;
}

.whatif-cascade-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}

.cascade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.cascade-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
}

.cascade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
}

.whatif-narrative-box {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 10px;
}

.whatif-narrative-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 4px;
}

.whatif-narrative-text {
  font-size: 0.72rem;
  color: #f1f5f9;
  line-height: 1.45;
  margin: 0;
}
