:root {
  /* Playwright reporter dark mode palette (GitHub Primer) */
  --bg-default: #0d1117;
  --bg-subtle: #161b22;
  --bg-inset: #010409;
  --fg-default: #c9d1d9;
  --fg-muted: #8b949e;
  --fg-subtle: #484f58;
  --border-default: #30363d;
  --border-muted: #21262d;
  --accent-fg: #58a6ff;
  --accent-emphasis: #1f6feb;
  --success-fg: #3fb950;
  --success-subtle: rgba(46, 160, 67, 0.15);
  --danger-fg: #f85149;
  --attention-fg: #d29922;
  --attention-subtle: rgba(187, 128, 9, 0.15);
  --code-fg: #79c0ff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--bg-default);
  color: var(--fg-default);
  min-height: 100vh;
  padding: 2rem 1rem;
}

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

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

header .subtitle a {
  color: var(--fg-muted);
  text-decoration: none;
}

header .subtitle a:hover {
  color: var(--accent-fg);
}

.btn {
  display: inline-block;
  background: var(--accent-emphasis);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-fg);
  text-decoration: none;
}

.btn-sm {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  overflow: hidden;
}

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

th {
  background: var(--bg-inset);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}

td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-muted);
}

tr:hover td {
  background: rgba(56, 139, 253, 0.05);
}

td a {
  color: var(--accent-fg);
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

td a.btn {
  color: #fff;
}

td a.btn:hover {
  text-decoration: none;
}

code {
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: 0.85rem;
  color: var(--code-fg);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-passed {
  background: var(--success-subtle);
  color: var(--success-fg);
}

.badge-failed {
  background: rgba(248, 81, 73, 0.15);
  color: var(--danger-fg);
}

.badge-cancelled {
  background: var(--attention-subtle);
  color: var(--attention-fg);
}

.badge-push,
.badge-pr,
.badge-manual {
  background: rgba(139, 148, 158, 0.15);
  color: var(--fg-muted);
}

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

.loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--fg-muted);
}

footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--fg-subtle);
  font-size: 0.8rem;
}

footer a {
  color: var(--fg-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-fg);
}

@media (max-width: 700px) {
  .card {
    overflow-x: auto;
  }
}
