:root {
  color: #1f2933;
  background: #f6f8fa;
  font-family: system-ui, sans-serif;
  line-height: 1.45;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
}

h1 { margin: 0; }
header p { margin: 0.35rem 0 1.5rem; color: #52606d; }

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.filters label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.filters input,
.filters select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

input,
select,
button {
  min-height: 2.25rem;
  border: 1px solid #bcccdc;
  border-radius: 0.25rem;
  padding: 0.4rem 0.55rem;
  color: inherit;
  background: white;
  font: inherit;
}

button { cursor: pointer; }
button:hover { background: #eaf2f8; }
.search { grid-column: span 2; }

.summary {
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d9e2ec;
  border-radius: 0.375rem;
  background: white;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.7rem;
  border-bottom: 1px solid #e4e7eb;
  text-align: left;
  vertical-align: top;
}

th {
  color: #334e68;
  background: #f0f4f8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.job-row { cursor: pointer; }
.job-row:hover { background: #f7fbff; }
.job-row:focus { outline: 3px solid #9fb3c8; outline-offset: -3px; }
.detail td { padding: 0.9rem 1rem 1rem; background: #f7fbff; white-space: pre-line; }
.detail p { margin: 0.6em 0 0; }
.detail pre { white-space: pre; overflow-x: auto; }
.links { white-space: nowrap; }
.links a + a { margin-left: 0.65rem; }
.empty { color: #627d98; text-align: center; }

@media (max-width: 640px) {
  main { padding: 1rem; }
  .search { grid-column: auto; }
}
