html {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f8fb;
  color: #17202a;
}

body {
  margin: 0;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: #ffffff;
  border-bottom: 1px solid #dde5ee;
}

.eyebrow {
  margin: 0 0 6px;
  color: #587089;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

a {
  color: #0f5f8f;
  font-weight: 700;
  text-decoration: none;
}

nav a {
  padding: 8px 10px;
  border: 1px solid #cfd9e4;
  border-radius: 6px;
  background: #fbfdff;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px;
  gap: 12px;
  margin-bottom: 16px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: #52697f;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea,
button {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #cbd7e3;
  border-radius: 6px;
  background: #ffffff;
  color: #17202a;
  font: inherit;
}

input,
select,
textarea {
  min-height: 40px;
  padding: 9px 10px;
}

button {
  min-height: 40px;
  padding: 9px 12px;
  background: #175d82;
  color: #ffffff;
  border-color: #175d82;
  font-weight: 800;
  cursor: pointer;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary div {
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 16px;
}

.summary strong,
.summary span {
  display: block;
}

.summary strong {
  font-size: 22px;
}

.summary span {
  color: #5c7187;
  font-size: 13px;
}

.table-wrap,
.panel {
  overflow: auto;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  background: #ffffff;
}

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

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: top;
}

th {
  color: #4c647b;
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
}

code {
  display: inline-block;
  max-width: 360px;
  overflow-wrap: anywhere;
  border-radius: 4px;
  background: #eef4f8;
  padding: 3px 5px;
  font-size: 12px;
}

.muted {
  color: #66798b;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 16px;
}

.panel {
  padding: 16px;
}

.stack {
  display: grid;
  gap: 12px;
}

.job {
  border-bottom: 1px solid #edf1f5;
  padding: 12px 0;
}

.job:last-child {
  border-bottom: 0;
}

.status {
  display: inline-block;
  min-width: 76px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #edf4f8;
  color: #234b63;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 760px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .controls,
  .summary,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
