:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17352f;
  background: #f3f6f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: #12634f;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4rem;
  padding: 0.75rem max(1.5rem, calc((100% - 70rem) / 2));
  color: #f7fbf9;
  background: #17352f;
}

.site-header a {
  color: inherit;
}

.site-header--anonymous {
  justify-content: center;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-navigation {
  display: flex;
  gap: 1.25rem;
}

.member-menu {
  margin-left: auto;
  position: relative;
}

.member-menu summary {
  cursor: pointer;
}

.member-menu[open] {
  padding: 0.75rem;
  color: #17352f;
  background: #ffffff;
  border-radius: 0.35rem;
}

.member-menu a,
.member-menu form {
  display: block;
  margin-top: 0.75rem;
}

.member-menu[open] a {
  color: #12634f;
}

.page-shell {
  width: min(70rem, calc(100% - 3rem));
  margin: 3rem auto;
}

.panel {
  padding: 2rem;
  background: #ffffff;
  border: 1px solid #d7e1dc;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgb(23 53 47 / 8%);
}

.auth-panel {
  max-width: 34rem;
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: #527069;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin-top: 0;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #9dafaa;
  border-radius: 0.3rem;
  color: inherit;
  background: #ffffff;
}

button {
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  background: #12634f;
  border: 0;
  border-radius: 0.3rem;
  cursor: pointer;
}

.errorlist {
  color: #a32121;
}

.panel > form[enctype="multipart/form-data"] {
  display: grid;
  gap: 1.25rem;
  max-width: 42rem;
  margin-top: 2rem;
}

.job-form__field {
  padding-left: 1rem;
  border-left: 0.25rem solid #d7e1dc;
}

.job-form__field:has(.errorlist) {
  border-left-color: #a32121;
}

.job-form__help {
  margin: 0.4rem 0 0;
  color: #527069;
  font-size: 0.9rem;
}

.job-form__actions {
  margin-top: 0.5rem;
}

.validation-report {
  max-width: 50rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: #fff7f2;
  border: 1px solid #a32121;
  border-left-width: 0.35rem;
  border-radius: 0.5rem;
}

.validation-report h2 {
  margin-top: 0;
}

.validation-report__summary,
.validation-report__hidden {
  font-weight: 600;
}

.validation-report__errors {
  display: grid;
  gap: 0.6rem;
  max-height: 30rem;
  padding-left: 2rem;
  overflow-y: auto;
}

.validation-report__error {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e5cbc5;
}

.validation-report__location {
  color: #722020;
}

.validation-report__hidden {
  padding-top: 0.75rem;
  border-top: 2px solid #722020;
}

.job-detail > p {
  color: #527069;
}

.job-status,
.job-outcomes {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid #d7e1dc;
  border-radius: 0.5rem;
  background: #f7fbf9;
}

.job-status__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-badge,
.outcome-badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-badge--queued {
  color: #3f514d;
  background: #dfe6e3;
}

.status-badge--running {
  color: #07566b;
  background: #d9f0f5;
}

.status-badge--done {
  color: #12634f;
  background: #dcefe7;
}

.status-badge--failed {
  color: #8a2020;
  background: #f7dddd;
}

.status-badge--cancelled {
  color: #654f45;
  background: #e9e1dc;
}

.job-progress {
  margin: 0;
  font-weight: 600;
}

.job-failure {
  margin-top: 1rem;
  padding: 1rem;
  color: #722020;
  background: #fff7f2;
  border-left: 0.3rem solid #a32121;
  border-radius: 0.35rem;
}

.job-failure h2,
.job-failure p {
  margin: 0;
}

.job-failure p {
  margin-top: 0.5rem;
}

.job-download {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  background: #12634f;
  border-radius: 0.3rem;
  font-weight: 700;
  text-decoration: none;
}

.job-outcomes h2 {
  margin-top: 0;
}

.outcome-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcome-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #d7e1dc;
  border-left-width: 0.3rem;
  border-radius: 0.35rem;
}

.outcome-row--delineated {
  border-left-color: #12634f;
}

.outcome-row--failed {
  border-left-color: #a32121;
}

.gauge-metadata {
  display: grid;
  gap: 0.2rem;
}

.gauge-metadata span,
.outcome-empty {
  color: #527069;
}

.outcome-badge--delineated {
  color: #12634f;
  background: #dcefe7;
}

.outcome-badge--failed {
  color: #8a2020;
  background: #f7dddd;
}

.outcome-reason {
  grid-column: 1 / -1;
  margin: 0;
  color: #722020;
}

.outcome-empty {
  margin-bottom: 0;
}

.archive__header,
.archive-row__heading,
.archive-row__actions,
.archive-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.archive__header > div > p:last-child {
  max-width: 48rem;
  color: #527069;
}

.archive-filter {
  padding: 0.65rem 0.9rem;
  border: 1px solid #12634f;
  border-radius: 0.3rem;
  font-weight: 700;
  text-decoration: none;
}

.archive-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.archive-row {
  padding: 1.25rem;
  background: #f7fbf9;
  border: 1px solid #d7e1dc;
  border-radius: 0.5rem;
}

.archive-row__heading h2,
.archive-row__metadata,
.archive-row__metadata dd {
  margin: 0;
}

.archive-row__metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.archive-row__metadata dt {
  margin-bottom: 0.25rem;
  color: #527069;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.archive-row__actions {
  justify-content: flex-start;
  margin-top: 1rem;
}

.archive-row__actions .job-download {
  margin-top: 0;
}

.archive-empty {
  margin: 2rem 0 0;
  color: #527069;
}

.archive-pagination {
  justify-content: center;
  margin-top: 2rem;
}

.operator-status__intro {
  max-width: 48rem;
  color: #527069;
}

.status-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.status-item {
  padding: 1rem;
  background: #f7fbf9;
  border: 1px solid #d7e1dc;
  border-left: 0.3rem solid #12634f;
  border-radius: 0.35rem;
}

.status-item--neutral {
  border-left-color: #9dafaa;
}

.status-item--degraded {
  color: #722020;
  background: #fff7f2;
  border-left-color: #a32121;
}

.status-item dt {
  margin-bottom: 0.35rem;
  color: #527069;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-item dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.status-item dd + dd {
  margin-top: 0.35rem;
}

.status-item__detail {
  font-size: 0.9rem;
}

@media (max-width: 44rem) {
  .archive-row__metadata,
  .status-summary {
    grid-template-columns: 1fr;
  }
}
