:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #0c1b2a;
  background: #f3f7fa;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 84px;
  background: #071a2a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.brand strong {
  display: block;
  font-size: 1.35rem;
}
.brand small {
  display: block;
  color: #19d5ed;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 4px;
}
.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #08c9e7;
  color: #071a2a;
  font-size: 1.6rem;
}
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}
.card {
  background: white;
  border: 1px solid #d7e2ea;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 5px 22px #16344b0b;
}
.center {
  max-width: 620px;
  text-align: center;
  margin: 12vh auto;
}
.center p {
  color: #587087;
  line-height: 1.6;
}
.hidden {
  display: none !important;
}
h1 {
  font-size: 2rem;
  margin: 0.25rem 0;
}
h2 {
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.heading,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.heading {
  margin-bottom: 28px;
}
.eyebrow {
  color: #087b9b;
  font-weight: 700;
  margin: 0;
}
.heading p:last-child {
  color: #5b7185;
  margin: 0.5rem 0;
}
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}
.study {
  width: 100%;
  text-align: left;
  background: #f7fafc;
  color: #102235;
  margin: 0 0 8px;
  border: 1px solid #dce6ed;
}
.study.active {
  background: #e9f9fc;
  border-color: #08aeca;
}
.study small {
  display: block;
  color: #64798b;
  margin-top: 5px;
}
.wide {
  width: 100%;
  margin-top: 12px;
}
button {
  border: 0;
  border-radius: 10px;
  background: #087e9e;
  color: white;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.secondary {
  background: #e9eff3;
  color: #193247;
}
label {
  display: block;
  font-weight: 650;
  font-size: 0.88rem;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cbd8e2;
  border-radius: 9px;
  padding: 10px 11px;
  font: inherit;
  background: white;
}
textarea {
  min-height: 90px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.span {
  grid-column: span 2;
}
.admin {
  margin-top: 22px;
}
.admin summary {
  font-weight: 750;
  cursor: pointer;
  margin-bottom: 18px;
}
.steps {
  display: grid;
  gap: 16px;
}
.step {
  border: 1px solid #dce5ec;
  border-radius: 14px;
  padding: 18px;
}
.step h3 {
  margin: 0 0 8px;
}
.step p,
.meta {
  color: #60768a;
}
.status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f6f2;
  color: #087655;
  font-size: 0.78rem;
  font-weight: 750;
  margin-left: 8px;
}
.message {
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: min(560px, 90vw);
  border-radius: 16px;
  padding: 18px 24px;
  background: #e8f7fb;
  color: #075d73;
  box-shadow: 0 18px 60px #071a2a55;
  text-align: center;
  font-weight: 700;
}
.message.error {
  background: #fff0ef;
  color: #9a2922;
}
.message.busy::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: middle;
  border: 3px solid #8bcbd9;
  border-top-color: #087e9e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.run-state {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef4f7;
  color: #385268;
  font-size: 0.78rem;
  font-weight: 750;
}
.run-state.running, .run-state.queued { background: #fff4d6; color: #805b00; }
.run-state.completed { background: #e8f6f2; color: #087655; }
.run-state.failed { background: #fff0ef; color: #9a2922; }
.study-list-scroll { max-height: 620px; overflow: auto; margin-top: 12px; }
.input-route { margin-top: 14px; padding: 16px; border: 1px solid #d7e4ec; border-radius: 12px; background: #fbfdfe; }
.input-route h4 { margin: 0 0 8px; }
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.qa-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 16px 0 22px; }
.qa-metrics > div { background: #f3f8fb; border-radius: 12px; padding: 14px; }
.qa-metrics strong { display: block; font-size: 1.5rem; }
.qa-metrics span { color: #60778a; font-size: .82rem; }
.empty {
  text-align: center;
  color: #6d8091;
  padding: 120px 20px;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 26px;
  width: min(520px, 90vw);
  box-shadow: 0 20px 70px #071a2a55;
}
dialog label {
  margin: 14px 0;
}
@media (max-width: 800px) {
  .qa-grid, .qa-metrics { grid-template-columns: 1fr; }
  header {
    padding: 0 18px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: flex-start;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .span {
    grid-column: auto;
  }
}
