@font-face {
  font-family: Manrope;
  src: url("/manrope.woff2") format("woff2");
  font-display: swap;
  font-weight: 200 800;
}
:root {
  --ground: #fbf9f8;
  --surface: #fff;
  --ink: #252322;
  --muted: #706360;
  --accent: #613d3e;
  --accent-hover: #4c2c2e;
  --line: #e6deda;
  --tint: #f2e9e7;
  --good: #286548;
  --good-bg: #edf5ef;
  --warn: #79520c;
  --warn-bg: #fff4dc;
  --bad: #a12e36;
  --bad-bg: #fff0ef;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
  font-size: 14px;
  font-synthesis: none;
  scrollbar-color: #c3aaa6 var(--ground);
  accent-color: var(--accent);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
::selection {
  background: #e5cecb;
  color: #392326;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  min-height: 38px;
  padding: 8px 14px;
  transition: background 0.15s ease;
}
button:hover {
  background: var(--tint);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.primary:hover {
  background: var(--accent-hover);
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.topbar {
  height: 66px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  color: #fff8f7;
}
.topbar .quiet {
  color: inherit;
}
.topbar .quiet:hover {
  background: #795254;
}
.topbar :focus-visible {
  outline-color: #fff;
}
.brand {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
  color: inherit;
}
.brand span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 14px;
  opacity: 0.9;
}
main {
  max-width: 1536px;
  margin: auto;
  padding: 38px 42px 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.page-heading p {
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.6;
}
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--tint);
  color: var(--accent);
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.good {
  background: var(--good-bg);
  color: var(--good);
}
.warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.control-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  border-block: 1px solid var(--line);
  padding: 19px 0 21px;
  margin-bottom: 34px;
}
.worker-control {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
}
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  overflow: hidden;
}
.stepper button {
  border: 0;
  border-radius: 0;
  font-size: 19px;
  min-width: 36px;
  padding: 4px 9px;
}
.stepper output {
  padding: 0 12px;
  font-variant-numeric: tabular-nums;
}
dl {
  margin: 0;
  display: flex;
  gap: 40px;
}
dl div {
  min-width: 65px;
}
dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
dd {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 38px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-note {
  margin-top: -7px;
  margin-bottom: 15px;
  line-height: 1.6;
}
.worker-list {
  border-block: 1px solid var(--line);
}
.worker {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 15px;
  padding: 18px 0;
  align-items: center;
}
.worker + .worker {
  border-top: 1px solid var(--line);
}
.worker strong {
  font-size: 13px;
}
.worker .company {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.worker small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}
.empty {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  padding: 23px 0;
}
.run-section {
  margin-top: 35px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 11px 8px;
  border-block: 1px solid var(--line);
  background: #f5f0ee;
}
td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
td:first-child {
  width: 48%;
}
td strong {
  font-weight: 600;
  font-size: 13px;
  display: block;
  overflow-wrap: anywhere;
}
td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.detail-toggle {
  font-size: 12px;
  padding: 5px 9px;
  min-height: 32px;
}
.run-detail td {
  padding: 18px;
  background: #f5f0ee;
}
.run-detail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.65;
  max-height: 500px;
  overflow: auto;
}
.count {
  font-size: 11px;
  padding: 3px 7px;
  background: var(--tint);
  color: var(--accent);
  border-radius: 4px;
}
.issues-section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.issue {
  margin-bottom: 15px;
}
.issue p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--bad);
}
.issue small {
  color: var(--muted);
  font-size: 11px;
}
.recent-errors {
  font-size: 12px;
  margin-top: 9px;
}
.recent-errors summary {
  cursor: pointer;
  color: var(--muted);
  padding: 8px 0;
}
.recent-errors p {
  font-size: 12px;
  line-height: 1.7;
  margin: 9px 0;
  overflow-wrap: anywhere;
}
.queue-section {
  margin-top: 25px;
}
.queue-list {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: queue;
}
.queue-list li {
  counter-increment: queue;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 35px;
  gap: 10px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.queue-list li::before {
  content: counter(queue, decimal-leading-zero);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.queue-list strong {
  font-size: 12px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.queue-list small {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.error-banner {
  color: var(--bad);
  background: var(--bad-bg);
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 13px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  border-top: 7px solid var(--accent);
}
.login {
  padding: 40px;
  max-width: 455px;
  width: 100%;
}
.login .brand {
  color: var(--accent);
  margin-bottom: 49px;
}
.login h1 {
  font-size: 27px;
}
.login p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
  font-size: 13px;
}
.login form {
  margin-top: 30px;
}
.login label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0 7px;
}
.login input {
  width: 100%;
  border: 1px solid #bba9a3;
  background: #fff;
  border-radius: 6px;
  padding: 11px 12px;
  caret-color: var(--accent);
}
.login button {
  width: 100%;
  margin-top: 18px;
}
.login #error {
  color: var(--bad);
  font-size: 12px;
}
.login .footnote {
  margin-top: 28px;
  font-size: 11px;
}
.flash {
  animation: status-change 0.7s ease-out;
}
@keyframes status-change {
  from {
    background: #e5cecb;
  }
  to {
    background: transparent;
  }
}
@media (min-width: 1600px) {
  main {
    padding-inline: 50px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 48px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 25px;
  }
  main {
    padding: 28px 25px 0;
  }
  .topbar {
    padding-inline: 25px;
  }
  dl {
    gap: 22px;
  }
  .control-strip {
    gap: 16px;
  }
  .worker-control {
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 58px;
    padding-inline: 20px;
  }
  .brand {
    font-size: 21px;
  }
  .brand span {
    font-size: 11px;
    margin-left: 7px;
  }
  main {
    padding: 24px 20px 0;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 26px;
  }
  .actions {
    width: 100%;
    justify-content: space-between;
  }
  .control-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 21px;
    padding-block: 18px;
  }
  .worker-control {
    justify-content: space-between;
  }
  dl {
    justify-content: space-between;
    gap: 9px;
  }
  dl div {
    min-width: 0;
  }
  dt {
    font-size: 11px;
  }
  dd {
    font-size: 17px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .worker {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }
  .worker > .badge {
    grid-column: 2;
    justify-self: start;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  aside {
    display: grid;
    grid-template-columns: 1fr;
  }
  .queue-section {
    margin-top: 26px;
  }
  td {
    font-size: 11px;
    padding-inline: 5px;
  }
  td:first-child {
    width: 42%;
  }
  td strong {
    font-size: 11px;
  }
  .badge {
    font-size: 11px;
    padding: 5px 6px;
  }
  .detail-toggle {
    font-size: 11px;
    padding: 5px 6px;
  }
  footer {
    flex-direction: column;
    gap: 9px;
    line-height: 1.7;
  }
  .login {
    padding: 30px;
  }
  .login .brand {
    margin-bottom: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.workspace {
  grid-template-areas: "work issues" "runs queue";
  row-gap: 32px;
  align-items: start;
}
.work-section {
  grid-area: work;
}
.run-section {
  grid-area: runs;
  margin-top: 0;
}
.issues-section {
  grid-area: issues;
}
.queue-section {
  grid-area: queue;
  margin-top: 0;
}
@media (max-width: 760px) {
  .workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "work" "issues" "runs" "queue";
    gap: 28px;
  }
  .queue-section {
    margin-top: 0;
  }
}
