:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
  color: #16243a;
  background: #f4f6f8;
  font-synthesis: none;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid #d3dce6;
  background: white;
  border-radius: 9px;
  padding: 10px 15px;
  color: #16243a;
  font-weight: 600;
}
button:hover {
  background: #edf3f6;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: #c7ed79;
  border-color: #c7ed79;
  color: #1b2b22;
}
.primary:hover {
  background: #b7dd69;
}
.danger {
  color: #9d3333;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  color: #16243a;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #304e37;
}
label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 550;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
h1 {
  font-size: 2rem;
  letter-spacing: -0.05em;
  margin: 0 0 10px;
}
h2 {
  font-size: 1.12rem;
  margin: 0 0 13px;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: #526176;
}
.shell {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #101f36;
  color: white;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand {
  font-size: 22px;
  letter-spacing: 0.18em;
  font-weight: 750;
}
.sidebar small {
  color: #bac9dc;
}
.sidebar select {
  background: #1b2e49;
  color: white;
  border-color: #3d506b;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav {
  background: transparent;
  border: 0;
  color: #c4cfdf;
  text-align: left;
  padding: 13px 14px;
}
.nav:hover,
.nav.selected {
  background: #29415c;
  color: white;
}
.sidebar footer {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.7;
}
.sidebar footer button {
  display: block;
  margin-top: 14px;
}
.main {
  padding: 42px min(5vw, 72px);
  max-width: 1400px;
  width: 100%;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  font-weight: 700;
  color: #56705f;
  margin-bottom: 17px;
}
.intro {
  max-width: 680px;
  color: #526176;
  margin-bottom: 28px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid #dce3eb;
  border-radius: 16px;
  padding: 24px;
  min-width: 0;
}
.card p {
  font-size: 0.92rem;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.badge {
  border-radius: 30px;
  padding: 5px 9px;
  font-size: 11px;
  white-space: nowrap;
  background: #edf1f5;
  color: #526176;
}
.badge.active,
.badge.completed {
  background: #edf7df;
  color: #386125;
}
.badge.error,
.badge.failed,
.badge.unknown {
  background: #fff0ed;
  color: #9c4031;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.auth {
  max-width: 470px;
  margin: 8vh auto;
  padding: 36px;
}
.auth .brand {
  margin-bottom: 36px;
}
.auth h1 {
  font-size: 1.65rem;
}
.auth p {
  font-size: 14px;
}
.notice {
  padding: 13px 16px;
  margin: 18px 0;
  border-radius: 9px;
  background: #e8f2de;
  line-height: 1.5;
}
.notice.error {
  background: #ffefea;
  color: #8a352d;
}
.empty {
  padding: 46px 25px;
  background: white;
  border: 1px dashed #c7d2de;
  border-radius: 14px;
  color: #657389;
  text-align: center;
}
.stack {
  display: grid;
  gap: 16px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  font-family: inherit;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.span {
  grid-column: 1/-1;
}
dialog {
  width: min(640px, 94vw);
  max-height: 90vh;
  border: 1px solid #d5deea;
  border-radius: 18px;
  padding: 28px;
  color: #16243a;
}
dialog::backdrop {
  background: #0c193bb3;
  backdrop-filter: blur(3px);
}
dialog .actions {
  position: sticky;
  bottom: -28px;
  background: white;
  padding: 16px 0;
  margin-top: 12px;
  border-top: 1px solid #e8edf2;
}
details {
  padding: 15px;
  border: 1px solid #e1e6ed;
  border-radius: 9px;
  margin-bottom: 18px;
}
summary {
  cursor: pointer;
  margin-bottom: 12px;
}
.details {
  font-size: 13px;
  color: #53637a;
  overflow-wrap: anywhere;
}
.token {
  font-family: monospace;
  font-size: 12px;
}
.busy {
  opacity: 0.7;
}
.list-button {
  text-align: left;
  width: 100%;
  background: white;
  padding: 20px;
}
.caps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.caps span {
  background: #f3f6fa;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
}
.question {
  max-width: 760px;
  margin-bottom: 25px;
}
.question textarea {
  min-height: 125px;
}
.date {
  font-size: 12px;
  color: #63738a;
}
.inline-error {
  color: #9b342c;
  line-height: 1.5;
  margin: 10px 0;
}
a {
  color: #224d88;
}
button:focus-visible {
  box-shadow: 0 0 0 3px #92b4ed;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  margin-bottom: 12px;
  font-weight: 600;
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .sidebar {
    padding: 25px 15px;
  }
  .main {
    padding: 30px 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 18px;
    gap: 16px;
  }
  .sidebar .brand {
    font-size: 18px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
  }
  .nav {
    white-space: nowrap;
    font-size: 13px;
    padding: 10px;
  }
  .sidebar footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .sidebar footer button {
    margin: 0;
  }
  .main {
    padding: 26px 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth {
    margin: 3vh 15px;
    padding: 25px;
  }
  .row {
    flex-wrap: wrap;
  }
  dialog {
    padding: 20px;
  }
}
