/* =============================================
   Skill 深度演示 v2 - 5大模块样式（升级版）
   ============================================= */

/* ---------- Skill Pipeline Nav ---------- */
.skill-pipeline {
  display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1100px;
}
.skill-pipeline .pipeline-nav-btn.active {
  background: rgba(244, 114, 182, 0.08); color: var(--neon-pink);
}
.skill-pipeline .pipeline-nav-btn.active .step-num {
  background: var(--neon-pink); color: var(--bg-dark); border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(244,114,182,0.4);
}

/* ============================================================
   1. Skill Anatomy (Upgraded)
   ============================================================ */
.anatomy-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.anatomy-skill-btn {
  padding: 16px 12px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.06);
  background: var(--bg-card); text-align: center; cursor: pointer;
  transition: var(--transition); font-family: inherit; color: var(--text-main);
  position: relative; overflow: hidden;
}
.anatomy-skill-btn:hover { border-color: rgba(244,114,182,0.3); transform: translateY(-2px); }
.anatomy-skill-btn.active {
  border-color: var(--neon-pink); box-shadow: 0 0 16px rgba(244,114,182,0.2);
  background: rgba(244,114,182,0.05);
}
.anatomy-skill-btn .sk-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.anatomy-skill-btn .sk-name { font-weight: 700; font-size: 0.82rem; display: block; }
.anatomy-skill-btn .sk-badge {
  position: absolute; top: 6px; right: 6px; font-size: 0.55rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; background: rgba(244,114,182,0.15);
  color: var(--neon-pink);
}
.sk-badge-purple { background: rgba(168,85,247,0.15) !important; color: var(--neon-purple) !important; }
.sk-badge-cyan { background: rgba(34,211,238,0.15) !important; color: var(--neon-green) !important; }
.sk-badge-orange { background: rgba(251,146,60,0.15) !important; color: rgba(251,146,60,1) !important; }
.sk-badge-green { background: rgba(74,222,128,0.15) !important; color: rgba(74,222,128,1) !important; }
.sk-badge-yellow { background: rgba(250,204,21,0.15) !important; color: rgba(250,204,21,1) !important; }

/* Anatomy flow v2 */
.anatomy-flow-v2 {
  display: flex; align-items: stretch; gap: 0; min-height: 260px;
  background: rgba(0,0,0,0.2); border-radius: 16px; border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden; position: relative;
}
.anat-phase {
  flex: 1; padding: 20px 16px; display: flex; flex-direction: column; gap: 6px;
  transition: all 0.5s; opacity: 0.4; position: relative;
}
.anat-phase.anat-active { opacity: 1; }
.anat-phase.anat-done { opacity: 0.85; }
.anat-phase-input { background: rgba(0,212,255,0.03); border-right: 1px solid rgba(255,255,255,0.04); }
.anat-phase-process { background: rgba(168,85,247,0.03); border-right: 1px solid rgba(255,255,255,0.04); }
.anat-phase-output { background: rgba(34,211,238,0.03); }
.anat-phase-input.anat-active { background: rgba(0,212,255,0.06); }
.anat-phase-process.anat-active { background: rgba(168,85,247,0.06); }
.anat-phase-output.anat-active { background: rgba(34,211,238,0.06); }

.anat-phase-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.anat-phase-icon {
  width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; flex-shrink: 0;
}
.anat-phase-input .anat-phase-icon { background: rgba(0,212,255,0.1); color: var(--neon-blue); }
.anat-phase-process .anat-phase-icon { background: rgba(168,85,247,0.1); color: var(--neon-purple); }
.anat-phase-output .anat-phase-icon { background: rgba(34,211,238,0.1); color: var(--neon-green); }
.anat-phase-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.anat-phase-input .anat-phase-label { color: var(--neon-blue); }
.anat-phase-process .anat-phase-label { color: var(--neon-purple); }
.anat-phase-output .anat-phase-label { color: var(--neon-green); }
.anat-phase-status {
  margin-left: auto; font-size: 0.6rem; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; display: none;
}
.anat-phase-status.show { display: inline-block; }
.anat-phase-status.working { background: rgba(244,114,182,0.15); color: var(--neon-pink); animation: pulse-dot 1s ease infinite; }
.anat-phase-status.done { background: rgba(34,211,238,0.15); color: var(--neon-green); }

.anat-phase-body { display: flex; flex-direction: column; gap: 5px; }
.anat-item {
  padding: 7px 10px; border-radius: 8px; font-size: 0.78rem; line-height: 1.5;
  animation: msg-in 0.4s ease; opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.anat-item.show { opacity: 1; transform: translateY(0); }
.anat-phase-input .anat-item { background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.1); }
.anat-phase-process .anat-item { background: rgba(168,85,247,0.06); border: 1px solid rgba(168,85,247,0.1); }
.anat-phase-output .anat-item { background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.1); }

/* SVG arrows */
.anat-arrow-v2 {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 60px; opacity: 0.3; transition: opacity 0.5s;
}
.anat-arrow-v2.anat-arrow-active { opacity: 1; }

/* Model call visualization */
.anat-model-call {
  margin-top: 8px; border-radius: 10px; border: 1px solid rgba(168,85,247,0.15);
  background: rgba(0,0,0,0.3); overflow: hidden; display: none;
}
.anat-model-call.show { display: block; animation: msg-in 0.5s ease; }
.anat-model-call-header {
  padding: 8px 12px; background: rgba(168,85,247,0.06);
  font-size: 0.72rem; font-weight: 600; color: var(--neon-purple);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(168,85,247,0.1);
}
.anat-model-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--neon-purple);
  box-shadow: 0 0 8px rgba(168,85,247,0.5); animation: pulse-dot 1s ease infinite;
  display: inline-block;
}
.anat-model-call-body {
  padding: 10px 12px; font-size: 0.7rem; line-height: 1.6;
  font-family: 'Courier New', monospace; color: rgba(255,255,255,0.6);
}
.anat-model-tokens {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.anat-model-token {
  padding: 2px 6px; border-radius: 4px; font-size: 0.65rem; animation: msg-in 0.3s ease;
  background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.15); color: var(--neon-purple);
}

/* Metrics */
.anat-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px;
}
.anat-metric {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px; padding: 14px; text-align: center; transition: all 0.5s;
}
.anat-metric.active { border-color: rgba(244,114,182,0.2); background: rgba(244,114,182,0.04); }
.anat-metric-icon { font-size: 1.2rem; margin-bottom: 6px; }
.anat-metric-value { font-size: 1.1rem; font-weight: 800; color: var(--text-bright); margin-bottom: 2px; }
.anat-metric-label { font-size: 0.65rem; color: var(--text-dim); }

/* ============================================================
   2. Live Execution (Upgraded)
   ============================================================ */
.exec-skill-selector { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.exec-skill-chip {
  padding: 10px 18px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.06);
  background: var(--bg-card); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); font-family: inherit; color: var(--text-dim);
  display: flex; align-items: center; gap: 6px;
}
.exec-skill-chip:hover { border-color: rgba(244,114,182,0.3); }
.exec-skill-chip.active { border-color: var(--neon-pink); color: var(--neon-pink); background: rgba(244,114,182,0.06); }

/* Resource monitors */
.exec-monitors {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px;
}
.exec-monitor {
  background: rgba(0,0,0,0.2); border-radius: 10px; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.04);
}
.exec-monitor-label { font-size: 0.65rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.exec-monitor-bar {
  height: 6px; background: rgba(255,255,255,0.04); border-radius: 3px; overflow: hidden; margin-bottom: 4px;
}
.exec-monitor-fill { height: 100%; border-radius: 3px; transition: width 0.5s, background 0.5s; width: 0%; }
.exec-cpu-fill { background: linear-gradient(90deg, rgba(0,212,255,0.6), rgba(0,212,255,1)); }
.exec-mem-fill { background: linear-gradient(90deg, rgba(168,85,247,0.6), rgba(168,85,247,1)); }
.exec-model-fill { background: linear-gradient(90deg, rgba(244,114,182,0.6), rgba(244,114,182,1)); }
.exec-progress-fill-v2 { background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-blue)); }
.exec-monitor-val { font-size: 0.7rem; font-weight: 700; color: var(--text-main); text-align: right; }

/* Split pane */
.exec-split-pane { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; }
.exec-terminal-pane { min-width: 0; }
.exec-visual-pane {
  background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden; display: flex; flex-direction: column;
}
.exec-visual-header {
  padding: 10px 16px; background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.78rem; font-weight: 600; color: var(--text-dim);
}
.exec-visual-body {
  flex: 1; padding: 16px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 240px; overflow-y: auto;
}
.exec-visual-placeholder {
  text-align: center; color: var(--text-dim);
}

/* Existing terminal styles preserved */
.exec-log-area { background: #0a0a0a; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.exec-log-header {
  padding: 10px 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.75rem; color: var(--text-dim); font-family: 'Courier New', monospace;
  display: flex; align-items: center; gap: 6px;
}
.exec-log-header .terminal-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.exec-log-header .terminal-dot.red { background: #ff5f57; }
.exec-log-header .terminal-dot.yellow { background: #febc2e; }
.exec-log-header .terminal-dot.green { background: #28c840; }
.exec-timer {
  margin-left: auto; font-family: 'Courier New', monospace; font-size: 0.72rem;
  color: var(--neon-green); font-weight: 700;
}
.exec-log-body {
  padding: 16px; min-height: 240px; max-height: 300px; overflow-y: auto;
  font-family: 'Courier New', monospace; font-size: 0.78rem; line-height: 2;
}
.exec-log-line { animation: msg-in 0.3s ease; }
.exec-prompt { color: var(--neon-green); font-weight: bold; }
.exec-cmd { color: var(--neon-blue); }
.exec-info { color: rgba(251,146,60,0.9); }
.exec-log { color: rgba(255,255,255,0.6); }
.exec-data { color: rgba(0,212,255,0.85); padding-left: 12px; }
.exec-typing { color: var(--neon-pink); padding-left: 12px; }
.exec-success { color: var(--neon-green); font-weight: bold; }

/* Visual output items */
.exec-visual-item {
  width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 0.78rem;
  margin-bottom: 8px; animation: msg-in 0.4s ease; line-height: 1.6;
}
.exec-visual-bar-wrap {
  width: 100%; margin-bottom: 10px;
}
.exec-visual-bar-label { font-size: 0.7rem; color: var(--text-dim); margin-bottom: 4px; display: flex; justify-content: space-between; }
.exec-visual-bar {
  height: 8px; background: rgba(255,255,255,0.04); border-radius: 4px; overflow: hidden;
}
.exec-visual-bar-fill {
  height: 100%; border-radius: 4px; transition: width 1s ease;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
}

/* ============================================================
   3. Pipeline Builder (Upgraded)
   ============================================================ */
.pipe-header-actions { display: flex; gap: 8px; }
.pipe-builder-label, .pipe-lane-label {
  font-size: 0.85rem; font-weight: 600; color: var(--text-dim); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.pipe-lane-label { margin-top: 20px; }
.pipe-available {
  display: flex; gap: 10px; flex-wrap: wrap; padding: 16px;
  background: rgba(255,255,255,0.02); border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.08); min-height: 56px;
}
.pipe-skill-draggable {
  padding: 10px 16px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.08);
  background: var(--bg-card); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); user-select: none; display: flex; align-items: center; gap: 6px;
  color: var(--text-main); font-family: inherit;
}
.pipe-skill-draggable:hover { border-color: rgba(244,114,182,0.3); transform: translateY(-2px); }
.pipe-skill-draggable.in-pipeline { opacity: 0.3; pointer-events: none; border-style: dashed; }

.pipe-lane {
  display: flex; align-items: center; gap: 0; padding: 20px;
  background: rgba(0,0,0,0.2); border-radius: 14px; border: 2px dashed rgba(244,114,182,0.15);
  min-height: 90px; overflow-x: auto; flex-wrap: nowrap;
}
.pipe-lane-empty { color: var(--text-dim); font-size: 0.85rem; width: 100%; text-align: center; }
.pipe-node {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 18px; background: rgba(244,114,182,0.06); border: 1px solid rgba(244,114,182,0.15);
  border-radius: 10px; min-width: 90px; text-align: center; position: relative;
  animation: msg-in 0.3s ease; flex-shrink: 0; transition: all 0.4s; cursor: grab;
}
.pipe-node.dragging { opacity: 0.5; transform: scale(0.95); }
.pipe-node.drag-over { border-color: var(--neon-green); box-shadow: 0 0 16px rgba(34,211,238,0.3); }
.pipe-node.pipe-active {
  border-color: var(--neon-pink); box-shadow: 0 0 20px rgba(244,114,182,0.3);
  background: rgba(244,114,182,0.12); transform: scale(1.08);
}
.pipe-node.pipe-done {
  border-color: rgba(34,211,238,0.3); background: rgba(34,211,238,0.06);
}
.pipe-node .pipe-icon { font-size: 1.3rem; }
.pipe-node .pipe-name { font-size: 0.75rem; font-weight: 700; color: var(--neon-pink); }
.pipe-node.pipe-done .pipe-name { color: var(--neon-green); }
.pipe-node .pipe-remove {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(255,95,87,0.8); color: white; font-size: 0.55rem;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.pipe-node .pipe-remove:hover { transform: scale(1.2); background: #ff5f57; }
.pipe-arrow-node {
  padding: 0 10px; color: rgba(244,114,182,0.3); font-size: 1.1rem; flex-shrink: 0;
  transition: all 0.4s;
}
.pipe-arrow-node.pipe-arrow-active { color: var(--neon-green); }

/* Flow canvas */
.pipe-flow-visual {
  margin-top: 16px; display: none; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04); background: rgba(0,0,0,0.15);
}
.pipe-flow-visual.show { display: block; }

/* Per-step results */
.pipe-exec-results {
  margin-top: 12px; display: flex; flex-direction: column; gap: 8px;
}
.pipe-exec-result-item {
  padding: 12px 16px; background: rgba(0,0,0,0.15); border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04); font-size: 0.8rem; line-height: 1.7;
  animation: msg-in 0.4s ease;
}
.pipe-exec-result-item .pipe-result-header {
  font-weight: 700; font-size: 0.82rem; margin-bottom: 6px; color: var(--neon-pink);
}

.pipe-data-flow {
  margin-top: 16px; padding: 16px 20px; background: rgba(244,114,182,0.04);
  border-radius: 10px; border: 1px solid rgba(244,114,182,0.1);
  font-size: 0.82rem; color: var(--text-dim); line-height: 1.9; min-height: 50px;
}

/* ============================================================
   4. Skill Store (Upgraded)
   ============================================================ */
/* Dashboard */
.store-dashboard {
  display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin-bottom: 24px;
}
.store-radar-area {
  background: rgba(0,0,0,0.2); border-radius: 14px; border: 1px solid rgba(255,255,255,0.05);
  padding: 16px; text-align: center;
}
.store-radar-title {
  font-size: 0.82rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px;
}
#storeRadarCanvas { max-width: 100%; }
.store-stats-area { display: flex; flex-direction: column; gap: 12px; }

.store-installed-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; background: rgba(244,114,182,0.04); border-radius: 12px;
  border: 1px solid rgba(244,114,182,0.1); transition: all 0.5s;
}
.store-installed-label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.store-installed-label i { color: var(--neon-green); }
.store-installed-count { font-size: 0.85rem; font-weight: 700; color: var(--neon-pink); }
.store-power-bar {
  flex: 1; min-width: 80px; height: 8px; background: rgba(255,255,255,0.04);
  border-radius: 4px; overflow: hidden;
}
.store-power-fill {
  height: 100%; width: 0%; border-radius: 4px; transition: width 0.8s;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
}
.store-power-text { font-size: 0.8rem; font-weight: 600; color: var(--neon-pink); transition: color 0.5s; }

/* Level badges */
.store-level-area {
  background: rgba(0,0,0,0.15); border-radius: 10px; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.04);
}
.store-level-label { font-size: 0.72rem; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; }
.store-level-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.store-level-badge {
  padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700;
  background: rgba(255,255,255,0.03); color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.04); transition: all 0.5s;
}
.store-level-badge.active {
  background: rgba(244,114,182,0.1); border-color: rgba(244,114,182,0.2);
  color: var(--neon-pink); box-shadow: 0 0 10px rgba(244,114,182,0.15);
}

/* Store log */
.store-log-area {
  flex: 1; background: rgba(0,0,0,0.15); border-radius: 10px; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.04); overflow-y: auto; max-height: 120px;
  font-family: 'Courier New', monospace; font-size: 0.72rem; line-height: 1.8;
}
.store-log-line { color: rgba(255,255,255,0.5); }
.store-log-line.success { color: var(--neon-green); }
.store-log-line.installing { color: rgba(251,146,60,0.9); }

/* Store cards */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.store-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px;
  padding: 22px; transition: var(--transition); position: relative; overflow: hidden;
}
.store-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }
.store-card.installed { border-color: rgba(34,211,238,0.15); }
.store-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.store-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.store-card-name { font-weight: 700; font-size: 1rem; color: var(--text-bright); }
.store-card-ver { font-size: 0.7rem; color: var(--text-dim); }
.store-card-rating {
  margin-left: auto; font-size: 0.72rem; color: rgba(250,204,21,0.9); font-weight: 600;
  text-align: right; white-space: nowrap;
}
.store-downloads { display: block; font-size: 0.6rem; color: var(--text-dim); font-weight: 400; }
.store-card-desc { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 14px; line-height: 1.6; }
.store-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.store-tag { padding: 3px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 600; background: rgba(255,255,255,0.04); color: var(--text-dim); }
.store-install-btn {
  width: 100%; padding: 10px; border: 1px solid rgba(244,114,182,0.3); border-radius: 10px;
  background: rgba(244,114,182,0.06); color: var(--neon-pink); font-weight: 700; font-size: 0.85rem;
  cursor: pointer; transition: var(--transition); font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.store-install-btn:hover { background: rgba(244,114,182,0.15); }
.store-install-btn.installed {
  border-color: rgba(34,211,238,0.3); background: rgba(34,211,238,0.06);
  color: var(--neon-green); cursor: default;
}
.store-install-btn.installing {
  border-color: rgba(251,146,60,0.3); background: rgba(251,146,60,0.06);
  color: rgba(251,146,60,0.9); cursor: wait;
}
.store-progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
  border-radius: 0 0 14px 14px; width: 0%; transition: width 1.5s linear;
}

/* ============================================================
   5. Combo Power (Upgraded)
   ============================================================ */
.combo-scenario {
  padding: 0; background: transparent; border: none; margin-bottom: 16px;
}
.combo-scenario-inner {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  background: linear-gradient(135deg, rgba(244,114,182,0.06), rgba(168,85,247,0.04));
  border-radius: 14px; border: 1px solid rgba(244,114,182,0.12);
}
.combo-boss-avatar {
  font-size: 2.2rem; width: 56px; height: 56px; border-radius: 14px;
  background: rgba(244,114,182,0.08); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.combo-boss-speech { font-size: 0.92rem; line-height: 1.7; }

/* Agent coordinator */
.combo-agent-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  background: rgba(168,85,247,0.04); border-radius: 12px;
  border: 1px solid rgba(168,85,247,0.1); margin-bottom: 16px;
  transition: all 0.5s;
}
.combo-agent-bar.thinking {
  border-color: rgba(244,114,182,0.2); background: rgba(244,114,182,0.06);
}
.combo-agent-icon { font-size: 1.5rem; }
.combo-agent-thought {
  flex: 1; font-size: 0.82rem; color: var(--text-dim); font-style: italic;
  transition: all 0.3s;
}
.combo-agent-thought.active { color: var(--text-main); font-style: normal; }
.combo-agent-badge {
  padding: 4px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 700;
  background: rgba(255,255,255,0.04); color: var(--text-dim);
  transition: all 0.3s;
}
.combo-agent-badge.running { background: rgba(244,114,182,0.15); color: var(--neon-pink); animation: pulse-dot 1s ease infinite; }
.combo-agent-badge.done { background: rgba(34,211,238,0.15); color: var(--neon-green); }

/* Timeline */
.combo-timeline { margin-bottom: 20px; padding: 0 10px; }
.combo-timeline-track {
  width: 100%; height: 4px; background: rgba(255,255,255,0.04); border-radius: 2px;
  position: relative; margin-bottom: 10px;
}
.combo-timeline-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
  transition: width 0.8s ease;
}
.combo-timeline-dots {
  display: flex; justify-content: space-between;
}
.combo-tl-dot {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.5s;
}
.combo-tl-dot.active {
  border-color: var(--neon-pink); box-shadow: 0 0 12px rgba(244,114,182,0.3);
  background: rgba(244,114,182,0.1); transform: scale(1.1);
}
.combo-tl-dot.done {
  border-color: rgba(34,211,238,0.2); background: rgba(34,211,238,0.06);
}

/* Combo steps */
.combo-flow-area { display: flex; flex-direction: column; gap: 0; }
.combo-step { display: flex; gap: 16px; padding: 12px 0; opacity: 0.15; transition: all 0.5s; }
.combo-step.active { opacity: 1; }
.combo-step.done { opacity: 0.85; }
.combo-step-line { display: flex; flex-direction: column; align-items: center; width: 44px; flex-shrink: 0; }
.combo-step-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0; transition: all 0.5s;
}
.combo-step.active .combo-step-icon {
  border-color: var(--neon-pink); box-shadow: 0 0 16px rgba(244,114,182,0.4);
  background: rgba(244,114,182,0.08);
}
.combo-step.done .combo-step-icon {
  background: rgba(34,211,238,0.06); border-color: rgba(34,211,238,0.2);
}
.combo-step-connector { width: 2px; flex: 1; min-height: 8px; background: rgba(255,255,255,0.03); transition: all 0.5s; }
.combo-step.done .combo-step-connector { background: rgba(34,211,238,0.2); }
.combo-step-content { flex: 1; }
.combo-step-label {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  font-size: 0.68rem; font-weight: 700; margin-bottom: 6px;
  background: rgba(244,114,182,0.1); color: var(--neon-pink);
}
.combo-step-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; color: var(--text-bright); }
.combo-step-desc { font-size: 0.82rem; color: var(--text-dim); }
.combo-step-output {
  margin-top: 10px; padding: 14px 16px; background: rgba(0,0,0,0.15); border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04); font-size: 0.8rem; line-height: 1.8;
  display: none; color: var(--text-main);
}
.combo-step.done .combo-step-output { display: block; animation: msg-in 0.5s ease; }

/* Data handoff animation */
.combo-step-handoff {
  margin-top: 8px; display: none;
}
.combo-step.done .combo-step-handoff { display: block; animation: msg-in 0.4s ease; }
.combo-handoff-arrow {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: linear-gradient(90deg, rgba(244,114,182,0.04), rgba(168,85,247,0.06));
  border-radius: 8px; border: 1px dashed rgba(244,114,182,0.15);
  font-size: 0.75rem;
}
.combo-handoff-data { color: var(--neon-pink); font-weight: 600; }
.combo-handoff-arrow i { color: var(--neon-purple); animation: arrow-bounce 1s ease infinite; }
.combo-handoff-target { color: var(--text-dim); }
@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Combo Summary */
.combo-summary {
  margin-top: 20px; opacity: 0; transform: translateY(20px); transition: all 0.6s ease;
}
.combo-summary.visible { opacity: 1; transform: translateY(0); }
.combo-summary-inner {
  background: linear-gradient(135deg, rgba(244,114,182,0.06), rgba(168,85,247,0.06));
  border: 1px solid rgba(244,114,182,0.15);
  border-radius: 16px; padding: 28px; text-align: center;
}
.combo-summary-icon { font-size: 2.5rem; margin-bottom: 10px; }
.combo-summary-title {
  font-size: 1.2rem; font-weight: 800; color: var(--text-bright); margin-bottom: 20px;
}
.combo-summary-stats {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 20px;
}
.combo-stat {
  background: rgba(0,0,0,0.2); border-radius: 12px; padding: 14px 20px; min-width: 80px;
}
.combo-stat-num {
  font-size: 1.8rem; font-weight: 900; color: var(--neon-pink);
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.combo-stat-label { font-size: 0.72rem; color: var(--text-dim); margin-top: 4px; }
.combo-summary-text {
  font-size: 0.88rem; line-height: 1.8; color: var(--text-main); text-align: left;
  max-width: 600px; margin: 0 auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .anatomy-flow-v2 { flex-direction: column; }
  .anat-arrow-v2 { transform: rotate(90deg); padding: 8px 0; width: 100%; }
  .anatomy-grid { grid-template-columns: repeat(3, 1fr); }
  .anat-metrics { grid-template-columns: repeat(2, 1fr); }
  .exec-monitors { grid-template-columns: repeat(2, 1fr); }
  .exec-split-pane { grid-template-columns: 1fr; }
  .store-dashboard { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: 1fr; }
  .combo-summary-stats { gap: 12px; }
  .combo-stat { min-width: 60px; padding: 10px 14px; }
  .combo-stat-num { font-size: 1.4rem; }
  .pipe-lane { flex-wrap: wrap; gap: 8px; }
  .pipe-arrow-node { padding: 0 4px; }
  .exec-skill-selector { gap: 6px; }
  .exec-skill-chip { padding: 8px 12px; font-size: 0.8rem; }
  .store-installed-bar { flex-direction: column; gap: 8px; align-items: flex-start; }
  .combo-scenario-inner { flex-direction: column; text-align: center; }
  .combo-timeline-dots { gap: 4px; }
  .combo-tl-dot { width: 30px; height: 30px; font-size: 0.85rem; }
}
