/* test-runner.css — 从 styles.css 原行号 L13707-L13855 原样切出,顺序即级联顺序 */
/* ============================================
   Test Runner
   ============================================ */
.test-runner-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.test-runner-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-bottom: 1px solid var(--panel-border);
  min-height: 26px;
}

.test-runner-stats {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  gap: 10px;
}

.test-runner-stat-pass {
  color: #6abf69;
}

.test-runner-stat-fail {
  color: #e06c75;
}

.test-runner-stat-skip {
  color: #e5c07b;
}

.test-runner-tree {
  flex: 1;
  overflow: auto;
  padding: 4px 0;
  font-size: 12px;
}

.test-runner-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text-primary);
  transition: background 0.08s;
}

.test-runner-item:hover {
  background: var(--bg-hover);
}

.test-runner-item.selected {
  background: var(--bg-active);
}

.test-runner-item-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test-runner-item-icon.pass {
  color: #6abf69;
}

.test-runner-item-icon.fail {
  color: #e06c75;
}

.test-runner-item-icon.running {
  color: #e5c07b;
}

.test-runner-item-icon.pending {
  color: var(--text-secondary);
}

.test-runner-item-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.test-runner-item-duration {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--text-secondary);
}

.test-runner-children {
  padding-left: 16px;
}

.test-runner-output {
  border-top: 1px solid var(--panel-border);
  max-height: 120px;
  overflow: auto;
  padding: 6px 10px;
  font-size: 11px;
  font-family: var(--editor-font-family, 'Cascadia Mono', 'Consolas', monospace);
  color: var(--text-secondary);
  white-space: pre-wrap;
  background: var(--bg-primary);
}

.test-runner-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
}

.test-runner-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11px;
  color: var(--text-secondary);
}

.test-runner-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--panel-border);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: test-runner-spin 0.8s linear infinite;
}

@keyframes test-runner-spin {
  to {
    transform: rotate(360deg);
  }
}