body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  background: #f5f6f8;
  color: #1c1f26;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: #111827;
  color: #fff;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.menu {
  display: flex;
  gap: 10px;
}

.tab {
  background: #374151;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
}

.tab.active {
  background: #2563eb;
}

.container {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 20px;
}

.panel {
  display: none;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

.panel.active {
  display: block;
}

.muted {
  color: #6b7280;
}

textarea {
  width: 100%;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 14px;
  font: inherit;
  box-sizing: border-box;
}

.actions {
  margin: 18px 0;
  display: flex;
  gap: 10px;
}

button.primary,
button.secondary,
button.danger {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}

button.primary { background: #2563eb; color: #fff; }
button.secondary { background: #e5e7eb; color: #111827; }
button.danger { background: #dc2626; color: #fff; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

pre {
  background: #111827;
  color: #f9fafb;
  padding: 14px;
  border-radius: 12px;
  overflow: auto;
}

.result-card {
  margin-top: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.result-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 12px;
}

.summary-label {
  font-weight: 700;
  color: #334155;
}

.summary-value a {
  color: #2563eb;
  text-decoration: none;
}

.pipeline-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.pipeline-step {
  min-width: 180px;
  max-width: 220px;
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-left: 6px solid #2563eb;
  border-radius: 12px;
  padding: 12px;
}

.pipeline-step-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.pipeline-step-meta {
  font-size: 0.9rem;
  color: #64748b;
}

.pipeline-arrow {
  font-size: 1.4rem;
  color: #94a3b8;
  font-weight: 700;
}

.artifacts-list {
  display: grid;
  gap: 10px;
}

.artifact-item {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.runner-trace-list {
  display: grid;
  gap: 14px;
}

.runner-step-card {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-left: 6px solid #2563eb;
  border-radius: 12px;
  padding: 14px;
}

.runner-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.runner-step-title {
  font-weight: 700;
  font-size: 1rem;
}

.runner-step-status {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
}

.runner-step-script {
  background: #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.88rem;
  margin-bottom: 10px;
  word-break: break-all;
}

.runner-step-artifacts-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.runner-step-artifacts {
  display: grid;
  gap: 8px;
}

.runner-step-artifact {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.86rem;
  word-break: break-all;
}
