/* ==========================================================================
   Visual Engineering Flow Canvas Styles
   Inspired by Langflow, Dify, and modern topology DAG builders
   ========================================================================== */

:root {
  --vf-bg-canvas: #080c14;
  --vf-bg-panel: rgba(15, 23, 42, 0.94);
  --vf-bg-card: rgba(22, 32, 54, 0.95);
  --vf-bg-card-hover: rgba(30, 44, 76, 0.98);
  --vf-border: rgba(255, 255, 255, 0.09);
  --vf-border-active: #38bdf8;
  --vf-text-primary: #f8fafc;
  --vf-text-secondary: #94a3b8;
  --vf-text-muted: #64748b;
  --vf-accent-cyan: #38bdf8;
  --vf-accent-indigo: #6366f1;
  --vf-accent-purple: #a855f7;
  --vf-accent-emerald: #10b981;
  --vf-accent-amber: #f59e0b;
  --vf-accent-rose: #f43f5e;
  --vf-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --vf-font-mono: 'JetBrains Mono', monospace;
  --vf-font-display: 'Space Grotesk', sans-serif;
}

/* Three-Panel Outer Workspace */
.vf-workspace {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--vf-bg-canvas);
  color: var(--vf-text-primary);
  font-family: var(--vf-font-sans);
  overflow: hidden;
  user-select: none;
}

/* Custom Sleek Dark Scrollbars */
.vf-workspace *::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.vf-workspace *::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.vf-workspace *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.vf-workspace *::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

.vf-workspace * {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) rgba(0, 0, 0, 0.25);
}

/* Workspace Top Navigation Bar */
.vf-topbar {
  height: 52px;
  background: rgba(8, 12, 20, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--vf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 50;
  flex-shrink: 0;
}

.vf-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vf-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--vf-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.vf-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--vf-accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-family: var(--vf-font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Mode Switcher (Explore / Learn / Visual Flow) */
.vf-mode-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--vf-border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.vf-mode-btn {
  background: transparent;
  border: none;
  color: var(--vf-text-secondary);
  font-family: var(--vf-font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vf-mode-btn:hover {
  color: #fff;
}

.vf-mode-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--vf-accent-cyan);
  font-weight: 600;
}

/* Studio Selector Dropdown */
.vf-studio-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--vf-border);
  border-radius: 8px;
  padding: 0.2rem 0.65rem;
}

.vf-studio-label {
  font-family: var(--vf-font-mono);
  font-size: 0.72rem;
  color: var(--vf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.vf-studio-select {
  background: transparent;
  color: #fff;
  border: none;
  font-family: var(--vf-font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  max-width: 260px;
}

.vf-studio-select option {
  background: #0f172a;
  color: #f8fafc;
}

.vf-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vf-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--vf-border);
  color: #fff;
  font-family: var(--vf-font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.vf-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.vf-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

.vf-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
}

/* Engine Mode Pill */
.vf-engine-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: var(--vf-font-mono);
  color: #34d399;
}

.vf-engine-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

/* Main Body Area: Left / Center / Right */
.vf-main {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* LEFT PANEL: Node Palette & Templates */
.vf-sidebar-left {
  width: 290px;
  background: var(--vf-bg-panel);
  border-right: 1px solid var(--vf-border);
  display: flex;
  flex-direction: column;
  z-index: 20;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  transition: width 0.22s ease, min-width 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.vf-sidebar-left.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-right: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.vf-panel-collapse-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--vf-border);
  color: var(--vf-text-secondary);
  border-radius: 4px;
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vf-panel-collapse-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #fff;
}

.vf-panel-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--vf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vf-panel-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vf-text-secondary);
  font-family: var(--vf-font-mono);
}

.vf-search-input {
  width: calc(100% - 1.5rem);
  margin: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--vf-border);
  border-radius: 6px;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  font-family: inherit;
}

.vf-search-input:focus {
  border-color: var(--vf-accent-cyan);
}

.vf-palette-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0.75rem 1.5rem;
}

/* Category Sections */
.vf-cat-title {
  font-size: 0.72rem;
  font-family: var(--vf-font-mono);
  color: var(--vf-text-muted);
  text-transform: uppercase;
  margin: 0.85rem 0 0.4rem 0.25rem;
  letter-spacing: 0.04em;
}

.vf-palette-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--vf-border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.45rem;
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.15s ease;
}

.vf-palette-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(2px);
}

.vf-palette-item:active {
  cursor: grabbing;
}

.vf-item-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.vf-item-text {
  flex: 1;
  overflow: hidden;
}

.vf-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.vf-item-sub {
  font-size: 0.7rem;
  color: var(--vf-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Starter Templates Pill List */
.vf-template-btn {
  width: 100%;
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-family: var(--vf-font-sans);
  font-size: 0.78rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.vf-template-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: #818cf8;
}

/* CENTER CANVAS */
.vf-canvas-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: var(--vf-bg-canvas);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 24px 24px;
}

.vf-canvas-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
}

/* SVG Connection Overlay */
.vf-svg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 10000px;
  height: 10000px;
  pointer-events: none;
  z-index: 5;
}

.vf-wire {
  fill: none;
  stroke: #64748b;
  stroke-width: 2.5px;
  stroke-linecap: round;
  transition: stroke 0.2s ease, stroke-width 0.2s ease;
  pointer-events: stroke;
  cursor: pointer;
  marker-end: url(#vf-arrow-idle);
  will-change: stroke, stroke-dashoffset;
}

.vf-wire:hover {
  stroke: #38bdf8;
  stroke-width: 3.5px;
  marker-end: url(#vf-arrow-active);
}

.vf-wire.active {
  stroke: #38bdf8;
  stroke-dasharray: 6 4;
  animation: vfFlowPulse 1s linear infinite;
  marker-end: url(#vf-arrow-active);
}

.vf-wire.success {
  stroke: #10b981;
  marker-end: url(#vf-arrow-success);
}

.vf-wire.failed {
  stroke: #f43f5e;
  marker-end: url(#vf-arrow-failed);
}

@keyframes vfFlowPulse {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

.vf-canvas-viewport {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
  backface-visibility: hidden;
}

/* Learning & Curriculum Guidance Styles */
.vf-guide-curriculum {
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.vf-curriculum-step {
  display: flex;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  transition: all 0.2s ease;
}
.vf-curriculum-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.35);
}
.vf-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.vf-step-content {
  flex: 1;
}
.vf-step-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 2px;
}
.vf-step-desc {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.35;
}
.vf-guide-cli-box {
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin-top: 0.55rem;
}
.vf-cli-title {
  font-size: 0.66rem;
  color: #38bdf8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.vf-guide-cli-box code {
  font-family: var(--vf-font-mono, monospace);
  font-size: 0.7rem;
  color: #a5f3fc;
  display: block;
  word-break: break-all;
}

/* Draggable Node Card */
.vf-node {
  position: absolute;
  width: 280px;
  background: linear-gradient(180deg, rgba(22, 32, 54, 0.96) 0%, rgba(14, 21, 37, 0.98) 100%);
  border: 1px solid var(--vf-border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.52), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  z-index: 10;
  cursor: grab;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  overflow: visible;
}

.vf-node:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 12px rgba(56, 189, 248, 0.15);
}

.vf-node.selected {
  border-color: var(--vf-accent-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35), 0 16px 40px rgba(0, 0, 0, 0.75);
}

.vf-node.state-running {
  border-color: var(--vf-accent-cyan);
  animation: nodeGlow 1.2s ease-in-out infinite alternate;
}

@keyframes nodeGlow {
  from { box-shadow: 0 0 12px rgba(56, 189, 248, 0.3); }
  to { box-shadow: 0 0 26px rgba(56, 189, 248, 0.7); }
}

.vf-node.state-success {
  border-color: #10b981;
}

.vf-node.state-failed {
  border-color: #f43f5e;
}

/* Category Accent Strip */
.vf-node-accent {
  height: 3px;
  width: 100%;
  border-radius: 12px 12px 0 0;
  background: var(--vf-accent-cyan);
}

.vf-node-accent.vf-accent-input { background: linear-gradient(90deg, #38bdf8, #0284c7); }
.vf-node-accent.vf-accent-model { background: linear-gradient(90deg, #a855f7, #6366f1); }
.vf-node-accent.vf-accent-transform { background: linear-gradient(90deg, #f59e0b, #d97706); }
.vf-node-accent.vf-accent-storage { background: linear-gradient(90deg, #10b981, #059669); }
.vf-node-accent.vf-accent-tool { background: linear-gradient(90deg, #06b6d4, #0284c7); }
.vf-node-accent.vf-accent-security { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.vf-node-accent.vf-accent-deploy,
.vf-node-accent.vf-accent-output { background: linear-gradient(90deg, #ec4899, #8b5cf6); }

/* Node Header */
.vf-node-header {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--vf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.vf-node-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.vf-node-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}

.vf-node-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
}

.vf-node-badge {
  font-size: 0.65rem;
  font-family: var(--vf-font-mono);
  padding: 0.12rem 0.4rem;
  border-radius: 9999px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--vf-text-secondary);
}

.vf-badge-input { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.vf-badge-model { background: rgba(168, 85, 247, 0.12); color: #c084fc; border-color: rgba(168, 85, 247, 0.3); }
.vf-badge-transform { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.vf-badge-storage { background: rgba(16, 185, 129, 0.12); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.vf-badge-tool { background: rgba(6, 182, 212, 0.12); color: #22d3ee; border-color: rgba(6, 182, 212, 0.3); }
.vf-badge-security { background: rgba(244, 63, 94, 0.12); color: #fb7185; border-color: rgba(244, 63, 94, 0.3); }
.vf-badge-output, .vf-badge-deploy { background: rgba(236, 72, 153, 0.12); color: #f472b6; border-color: rgba(236, 72, 153, 0.3); }

.vf-node-delete {
  background: transparent;
  border: none;
  color: var(--vf-text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.vf-node-delete:hover {
  color: var(--vf-accent-rose);
  background: rgba(244, 63, 94, 0.12);
}

/* Node Body & Fields */
.vf-node-body {
  padding: 0.75rem 0.85rem;
  font-size: 0.78rem;
  color: var(--vf-text-secondary);
}

.vf-node-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vf-node-params {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.vf-node-param {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--vf-font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.45rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
}

.vf-param-key {
  color: #94a3b8;
}

.vf-param-val {
  color: var(--vf-accent-cyan);
  font-weight: 600;
  background: rgba(56, 189, 248, 0.08);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Connection Port Handles (Inputs on Left, Outputs on Right) */
.vf-port {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #080c14;
  box-shadow: 0 0 7px rgba(56, 189, 248, 0.7);
  cursor: crosshair;
  z-index: 15;
  transform: translateY(-50%);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.vf-port:hover {
  transform: translateY(-50%) scale(1.45);
  background: #7dd3fc;
  box-shadow: 0 0 12px rgba(56, 189, 248, 1);
}

.vf-port-input {
  left: -5px;
}

.vf-port-output {
  right: -5px;
}

/* Floating Canvas Controls (Zoom, Pan, Layout) */
.vf-floating-toolbar {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--vf-border);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 30;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.vf-tool-btn {
  background: transparent;
  border: none;
  color: var(--vf-text-secondary);
  font-size: 0.82rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--vf-font-sans);
  font-weight: 500;
}

.vf-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.vf-tool-btn#vfFitViewBtn {
  background: rgba(56, 189, 248, 0.12);
  color: var(--vf-accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

.vf-tool-btn#vfFitViewBtn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

/* RIGHT PANEL: Node Inspector & AI Assistant */
.vf-sidebar-right {
  width: 330px;
  background: var(--vf-bg-panel);
  border-left: 1px solid var(--vf-border);
  display: flex;
  flex-direction: column;
  z-index: 20;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: width 0.22s ease, min-width 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.vf-sidebar-right.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-left: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Floating Expand Tabs when Sidebars are Collapsed */
.vf-floating-tab {
  position: absolute;
  top: 1rem;
  z-index: 25;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--vf-border);
  color: var(--vf-text-secondary);
  font-family: var(--vf-font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  transition: all 0.15s ease;
}

.vf-floating-tab:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

.vf-floating-tab.left {
  left: 1rem;
}

.vf-floating-tab.right {
  right: 1rem;
}

.vf-floating-tab.visible {
  display: flex !important;
}

.vf-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--vf-border);
  color: var(--vf-text-secondary);
}

.vf-btn-ghost:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #fff;
}

.vf-inspector-pane {
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vf-inspector-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.vf-empty-inspector {
  text-align: center;
  color: var(--vf-text-muted);
  font-size: 0.82rem;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Component Inspector Overview & Quick Stage Navigator */
.vf-inspector-overview {
  padding: 0.25rem 0;
}

.vf-overview-header {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--vf-border);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.vf-overview-badge {
  font-family: var(--vf-font-mono);
  font-size: 0.68rem;
  color: var(--vf-accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.vf-overview-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.vf-overview-sub {
  font-size: 0.72rem;
  color: var(--vf-text-muted);
  font-family: var(--vf-font-mono);
}

.vf-overview-stages-label {
  font-size: 0.72rem;
  font-family: var(--vf-font-mono);
  color: var(--vf-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.vf-stage-quick-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vf-stage-quick-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--vf-border);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: var(--vf-font-sans);
}

.vf-stage-quick-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(3px);
  color: #fff;
}

.vf-stage-quick-title {
  font-size: 0.78rem;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-stage-quick-badge {
  font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: var(--vf-font-mono);
  text-transform: uppercase;
  flex-shrink: 0;
}

.vf-guide-pane {
  flex-shrink: 0;
  max-height: 250px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--vf-border);
  background: rgba(0, 0, 0, 0.2);
}

.vf-copilot-guide {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--vf-text-secondary);
}

.vf-form-group {
  margin-bottom: 1rem;
}

.vf-form-label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--vf-font-mono);
  color: var(--vf-text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.vf-form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--vf-border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
}

.vf-form-control:focus {
  border-color: var(--vf-accent-cyan);
}

/* AI Explanation Box */
.vf-ai-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  padding: 0.85rem;
  margin-top: 1rem;
}

.vf-ai-box-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 0.4rem;
}

.vf-ai-box-body {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* BOTTOM DRAWER: Logs & Telemetry */
.vf-drawer {
  background: rgba(6, 10, 18, 0.98);
  border-top: 1px solid var(--vf-border);
  height: 220px;
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: height 0.2s ease;
  flex-shrink: 0;
}

.vf-drawer.collapsed {
  height: 38px;
}

.vf-drawer-header {
  height: 38px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.vf-drawer-tabs {
  display: flex;
  gap: 0.5rem;
}

.vf-drawer-tab {
  background: transparent;
  border: none;
  color: var(--vf-text-secondary);
  font-family: var(--vf-font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.vf-drawer-tab.active {
  color: var(--vf-accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  font-weight: 600;
}

.vf-drawer-panels {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
}

.vf-drawer-panel {
  flex: 1;
  overflow-y: auto;
  height: 100%;
}

.vf-terminal-body {
  padding: 0.75rem 1rem;
  font-family: var(--vf-font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.6;
  background: #04070e;
}

.vf-log-entry {
  display: flex;
  gap: 0.75rem;
}

.vf-log-time {
  color: var(--vf-text-muted);
}

.vf-log-engine {
  color: var(--vf-accent-cyan);
  font-weight: 600;
}

.vf-log-msg {
  color: #f1f5f9;
}

/* Golden Signals Dashboard */
.vf-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.vf-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.vf-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.vf-metric-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vf-text-secondary);
}

.vf-metric-status.ok {
  font-size: 0.65rem;
  font-family: var(--vf-font-mono);
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

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

.vf-metric-unit {
  font-size: 0.8rem;
  color: var(--vf-accent-cyan);
  font-weight: 500;
}

.vf-metric-sub {
  font-size: 0.68rem;
  color: var(--vf-text-muted);
  margin-top: 0.2rem;
  font-family: var(--vf-font-mono);
}

.vf-slo-breakdown {
  padding: 0 1rem 1rem;
}

.vf-slo-breakdown-title {
  font-size: 0.72rem;
  font-family: var(--vf-font-mono);
  color: var(--vf-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.vf-slo-stage-row {
  display: grid;
  grid-template-columns: 2fr 100px 80px 80px 1.5fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  margin-bottom: 0.25rem;
  font-family: var(--vf-font-mono);
  font-size: 0.72rem;
}

.vf-slo-stage-name {
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-slo-stage-type {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  text-align: center;
  text-transform: uppercase;
}

.vf-slo-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.vf-slo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 3px;
}

.vf-code-preview {
  background: #04070e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.75rem;
  font-family: var(--vf-font-mono);
  font-size: 0.75rem;
  color: #38bdf8;
  overflow-x: auto;
  line-height: 1.5;
  margin: 0;
}

/* Responsive collapse on mobile */
@media (max-width: 900px) {
  .vf-sidebar-left {
    position: absolute;
    left: 0;
    top: 52px;
    bottom: 0;
    transform: translateX(-100%);
  }
  .vf-sidebar-left.open {
    transform: translateX(0);
  }
  .vf-sidebar-right {
    display: none;
  }
}

/* ==========================================================================
   MASTER IMPLEMENTATION EXTENSIONS: 8 STATES, 12 FLOWS, HINTS, MANIM MCP
   ========================================================================== */

/* 12 Flow Direction Selector */
.vf-direction-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--vf-border);
}

.vf-direction-label {
  font-size: 0.72rem;
  font-family: var(--vf-font-mono);
  color: var(--vf-accent-cyan);
  font-weight: 600;
}

.vf-direction-select {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-family: var(--vf-font-sans);
  outline: none;
  cursor: pointer;
}

.vf-direction-select option {
  background: #0f172a;
  color: #f8fafc;
}

/* 8 Node States */
.vf-node.state-pending {
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.vf-node.state-running {
  border-color: var(--vf-accent-cyan) !important;
  animation: nodeGlow 1.2s ease-in-out infinite alternate;
}

.vf-node.state-passed,
.vf-node.state-success {
  border-color: #10b981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.vf-node.state-failed {
  border-color: #f43f5e !important;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.45);
}

.vf-node.state-blocked {
  border-color: #f59e0b !important;
  opacity: 0.75;
  filter: saturate(0.8);
}

.vf-node.state-skipped {
  border-color: #64748b !important;
  opacity: 0.5;
  border-style: dashed;
}

.vf-node.state-unknown {
  border-color: #a855f7 !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

.vf-node.state-stale {
  border-color: #eab308 !important;
  border-style: dotted;
  opacity: 0.85;
}

/* Node Status Pills */
.vf-node-status-pill {
  font-size: 0.6rem;
  font-family: var(--vf-font-mono);
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vf-status-pending { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.vf-status-running { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.vf-status-passed  { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.vf-status-failed  { background: rgba(244, 63, 94, 0.2); color: #f43f5e; }
.vf-status-blocked { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.vf-status-skipped { background: rgba(100, 116, 139, 0.2); color: #64748b; }
.vf-status-unknown { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.vf-status-stale   { background: rgba(234, 179, 8, 0.2); color: #eab308; }

/* Interactive Playback & Simulation Bar */
.vf-playback-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--vf-border);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.vf-playback-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--vf-border);
  color: #f8fafc;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.18s ease;
}

.vf-playback-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.vf-playback-btn.danger {
  color: #f43f5e;
}

.vf-playback-btn.danger:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
}

/* Progressive 3-Level Hints in Inspector */
.vf-hints-container {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vf-hint-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--vf-border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  transition: all 0.2s ease;
}

.vf-hint-card.level-1 { border-left: 3px solid #38bdf8; }
.vf-hint-card.level-2 { border-left: 3px solid #f59e0b; }
.vf-hint-card.level-3 { border-left: 3px solid #10b981; }

.vf-hint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-family: var(--vf-font-mono);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #e2e8f0;
}

.vf-hint-reveal-btn {
  background: transparent;
  border: 1px solid var(--vf-border);
  color: var(--vf-accent-cyan);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  cursor: pointer;
}

.vf-hint-reveal-btn:hover {
  background: rgba(56, 189, 248, 0.15);
}

.vf-hint-content {
  font-size: 0.75rem;
  color: var(--vf-text-secondary);
  line-height: 1.45;
}

/* Dual Explanation (Beginner vs Technical) */
.vf-dual-exp-tabs {
  display: flex;
  border-bottom: 1px solid var(--vf-border);
  margin-bottom: 0.6rem;
}

.vf-dual-exp-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--vf-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

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

.vf-dual-exp-body {
  font-size: 0.75rem;
  color: var(--vf-text-secondary);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Common Mistakes & Verification Box */
.vf-check-box {
  margin: 0.75rem 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.vf-check-box.mistakes {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fca5a5;
}

.vf-check-box.verification {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

/* Hub Action Links */
.vf-action-hub-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.vf-action-hub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--vf-border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.72rem;
  font-family: var(--vf-font-mono);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.18s ease;
}

.vf-action-hub-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateY(-1px);
}

/* Manim MCP Modal */
.vf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.vf-modal-container {
  width: 100%;
  max-width: 820px;
  background: #0b111e;
  border: 1.5px solid var(--vf-accent-cyan);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vf-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--vf-border);
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vf-modal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vf-modal-close {
  background: transparent;
  border: none;
  color: var(--vf-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.vf-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.vf-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  max-height: 80vh;
}

/* 12 Flow Direction Controls & Topbar Styling */
.vf-direction-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 0.2rem 0.65rem;
  transition: all 0.2s ease;
}

.vf-direction-wrapper:hover,
.vf-direction-wrapper:focus-within {
  border-color: var(--vf-accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.12);
}

.vf-direction-label {
  font-family: var(--vf-font-mono);
  font-size: 0.72rem;
  color: var(--vf-accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.vf-direction-select {
  background: transparent;
  color: #fff;
  border: none;
  font-family: var(--vf-font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  max-width: 320px;
}

.vf-direction-select option {
  background: #0b1120;
  color: #f8fafc;
  padding: 8px 12px;
}

/* Dynamic Flow Direction HUD Banner */
.vf-direction-banner {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  z-index: 25;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.18);
  animation: vfSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.vf-dir-banner-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.vf-dir-banner-icon {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--vf-border);
  flex-shrink: 0;
}

.vf-dir-banner-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.vf-dir-banner-badge {
  font-family: var(--vf-font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vf-dir-banner-summary {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.4;
}

.vf-dir-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.vf-dir-banner-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.vf-dir-banner-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Node Mode Pills (Visual Flow Direction Annotations) */
.vf-node-mode-pill {
  font-family: var(--vf-font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.vf-node-mode-pill.learning {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.vf-node-mode-pill.security {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.vf-node-mode-pill.observability {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.vf-node-mode-pill.recovery {
  background: rgba(20, 184, 166, 0.2);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.4);
}

.vf-node-mode-pill.performance {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.vf-node-mode-pill.reverse {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.vf-node-mode-pill.failure {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.vf-node-mode-pill.retry {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.vf-node-mode-pill.rollback {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.vf-node-mode-pill.dependency {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.vf-node-mode-pill.data {
  background: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

/* Guide Section Styles */
.vf-guide-section {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.vf-guide-step-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.vf-guide-step-list {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.vf-guide-step-list li {
  line-height: 1.45;
}


