:root {
  --navy: #213342;
  --violet: #5947fa;
  --ink: #213342;
  --muted: #64748b;
  --bg: #f7f8fa;
  --card: #ffffff;
  --line: #e4e8ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.logo { height: 34px; }

.app-name {
  font-size: 18px;
  font-weight: 700;
  padding-left: 14px;
  border-left: 2px solid var(--violet);
}

.spacer { flex: 1; }

.status { color: var(--muted); font-size: 13px; }

button {
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: var(--violet);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }

main { max-width: 1200px; margin: 0 auto; padding: 28px; }

#welcome h1 { font-size: 34px; margin-top: 40px; }
#welcome p { max-width: 640px; line-height: 1.5; }
.muted { color: var(--muted); }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.tile .value { font-size: 26px; font-weight: 700; }
.tile .label { color: var(--muted); font-size: 13px; margin-top: 2px; }

.run {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.run > h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
}

.run > h2 .crumb { color: #9fb0c0; font-weight: 400; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }

th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

th, td { padding: 10px 18px; border-top: 1px solid var(--line); }
tr:first-child th { border-top: none; }

.chip {
  display: inline-block;
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 10px;
  margin-right: 6px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg);
}
.chip:hover { border-color: var(--violet); }
.chip .n { color: var(--violet); font-weight: 700; }

.mono { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }

footer.note {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 20px;
}

nav { display: flex; gap: 4px; margin-left: 14px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
}
nav a:hover { color: var(--ink); background: var(--bg); }
nav a.active { color: var(--violet); font-weight: 700; }

.pill {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
}
.pill.success { color: #0a7d43; background: #e0f4e9; }
.pill.failed { color: #b3251e; background: #fbe5e4; }

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
}
.dot.success { background: #27b569; }
.dot.failed { background: #e0453d; }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  min-height: 36px;
}

.filters select {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
}
.filters select:focus { outline: 2px solid var(--violet); }
