:root {
  color-scheme: light;
  font-family: Arial, "Noto Sans", sans-serif;
  background: #f6f7f9;
  color: #1f2933;
}

body {
  margin: 0;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 32px;
}

h2 {
  font-size: 18px;
}

.panel {
  background: #ffffff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  border: 1px solid #b8c2d1;
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
}

button,
.button-secondary,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid #1f6feb;
  padding: 0 14px;
  background: #1f6feb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button-secondary,
.nav-link {
  background: #ffffff;
  color: #1f6feb;
}

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

th,
td {
  border-bottom: 1px solid #e5e9f0;
  padding: 10px 8px;
  text-align: left;
}

.status {
  display: inline-block;
  min-width: 76px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef2f7;
  text-align: center;
  font-size: 13px;
}

.status-succeeded {
  background: #dcfce7;
  color: #166534;
}

.status-failed {
  background: #fee2e2;
  color: #991b1b;
}

.status-running {
  background: #dbeafe;
  color: #1e40af;
}

.muted {
  color: #697586;
}

.error {
  color: #991b1b;
  font-weight: 700;
}

.meta {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 14px;
}

.meta dt {
  font-weight: 700;
}

.meta dd {
  margin: 0;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

pre {
  overflow: auto;
  white-space: pre-wrap;
  background: #111827;
  color: #f9fafb;
  border-radius: 6px;
  padding: 16px;
}

@media (max-width: 760px) {
  .header,
  form {
    display: grid;
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
