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

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-hover: #1a1a1a;
  --yellow: #f5c518;
  --yellow-dim: #a8890f;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f97316;
  --gray: #6b7280;
  --text: #e5e5e5;
  --text-dim: #9ca3af;
  --border: #2a2a2a;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--yellow);
}

.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

.page-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.status {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-passed  { background: #052e16; color: var(--green); }
.status-failed  { background: #2d0a0a; color: var(--red); }
.status-running { background: #1a1500; color: var(--yellow); animation: pulse 2s infinite; }
.status-pending { background: #1a1a1a; color: var(--gray); }
.status-waiting { background: #1a1a1a; color: var(--gray); }
.status-errored { background: #1a0d00; color: var(--orange); }
.status-skipped, .status-cancelled { background: #1a1a1a; color: var(--text-dim); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.table tr:hover td {
  background: var(--bg-hover);
}

.log-viewer {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  max-height: 70vh;
  overflow-y: auto;
}

.log-line {
  white-space: pre;
  color: var(--text-dim);
}

.log-line-stderr {
  color: var(--red);
}

.log-seq {
  color: var(--gray);
  user-select: none;
  margin-right: 1rem;
  min-width: 3ch;
  display: inline-block;
  text-align: right;
}

.run-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 0.95rem;
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

.empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-dim);
}
