* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: #f5f7fa;
  color: #1f2937;
}

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

.header {
  background: #0f172a;
  color: #fff;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.version {
  color: #94a3b8;
  font-size: 0.75rem;
}

.badge {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
}

.warning {
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin: 1rem 0;
}

.panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

input,
button {
  font: inherit;
  padding: 0.45rem 0.55rem;
}

button {
  align-self: end;
  cursor: pointer;
}

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

th,
td {
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.55rem;
  font-size: 0.92rem;
}

.status {
  font-weight: 700;
}

.status-queued,
.status-claimed {
  color: #6b7280;
}

.status-running {
  color: #2563eb;
}

.status-completed {
  color: #15803d;
}

.status-failed,
.status-canceled {
  color: #b91c1c;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.55rem 1rem;
}

.error {
  margin: 0.75rem 0;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #991b1b;
  padding: 0.6rem;
  border-radius: 0.375rem;
}

pre {
  background: #0b1020;
  color: #d1d5db;
  padding: 0.9rem;
  border-radius: 0.375rem;
  overflow: auto;
  max-height: 380px;
}