:root {
  color-scheme: light;
  --ink: #172a30;
  --muted: #5e6e72;
  --line: #dbe4df;
  --paper: #f6f8f5;
  --green: #0b6651;
  --mint: #e7f3eb;
  --amber: #785520;
  --red: #a53333;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
button,
input {
  font: inherit;
}
button {
  border: 1px solid var(--green);
  border-radius: 9px;
  background: var(--green);
  color: white;
  padding: 11px 20px;
  font-weight: 650;
  cursor: pointer;
}
button:hover:not(:disabled) {
  background: #074c3c;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
.secondary {
  background: transparent;
  color: var(--green);
}
.secondary:hover:not(:disabled) {
  background: var(--mint);
}
:focus-visible {
  outline: 3px solid #cf920d;
  outline-offset: 4px;
}
.shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.13em;
  font-size: 19px;
  white-space: nowrap;
}
.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
  background: white;
}
.intro {
  padding: 38px 0 22px;
  max-width: 760px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 750;
  color: var(--green);
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin: 12px 0 18px;
}
h2,
legend {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin: 22px 0 8px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 700px;
}
.notice {
  background: #fff7e7;
  border: 1px solid #eadabc;
  border-left: 4px solid #b18b46;
  border-radius: 8px;
  padding: 15px 18px;
  font-size: 14px;
  margin-bottom: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px;
  margin: 18px 0;
}
.muted,
.footnote {
  color: var(--muted);
}
.footnote {
  font-size: 12px;
  margin: 18px 0 0;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
  margin-bottom: 16px;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mode {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  cursor: pointer;
}
.mode:has(input:checked) {
  background: var(--mint);
  border-color: var(--green);
}
.mode input {
  margin: 6px 0 0;
  accent-color: var(--green);
}
.mode strong,
.mode small {
  display: block;
}
.mode small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.phase-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
}
.phase {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
}
.phase strong,
.phase span {
  display: block;
}
.phase strong {
  font-size: 14px;
}
.phase span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.phase[data-state="received"] {
  background: var(--mint);
  border-color: #afd2bc;
}
.phase[data-state="missing"] {
  background: #fff7ed;
  border-color: #e1c8a3;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0;
}
.metrics div {
  border-left: 2px solid var(--line);
  padding-left: 16px;
}
.metrics dt {
  font-size: 13px;
  color: var(--muted);
}
.metrics dd {
  font-size: 32px;
  font-weight: 700;
  margin: 3px 0;
}
.metrics dd.small-value {
  font-size: 19px;
}
details {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--paper);
  padding: 14px;
  border-radius: 8px;
  font-size: 12px;
  max-height: 300px;
  overflow: auto;
}
#errors {
  font-size: 13px;
  color: var(--red);
  padding-left: 20px;
}
#status {
  margin-bottom: 4px;
}
#missing {
  font-size: 13px;
  margin-top: 4px;
}
iframe {
  display: block;
  width: 100%;
  height: 370px;
  border: 1px solid #bdcdc5;
  border-radius: 9px;
  background: var(--paper);
}
footer {
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0 32px;
}
.runner-body {
  background: #f1f6f2;
}
.interaction {
  padding: 20px;
  max-width: 720px;
  margin: auto;
}
.interaction label {
  display: block;
  font-size: 13px;
  margin: 12px 0 6px;
}
.interaction input {
  width: 100%;
  max-width: 420px;
  border: 1px solid #b6c8bf;
  border-radius: 8px;
  padding: 10px;
  margin: 0 10px 12px 0;
  background: white;
}
.interaction button {
  padding: 10px 16px;
}
.scroll-surface {
  height: 780px;
  border-top: 1px dashed #aec4b5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 20px;
  padding: 20px 0;
  color: var(--muted);
  font-size: 14px;
}
.scroll-surface p {
  max-width: 420px;
}
#runner-status {
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .shell {
    width: calc(100% - 24px);
  }
  .masthead > .muted {
    display: none;
  }
  .panel {
    padding: 18px;
  }
  .mode-grid {
    grid-template-columns: 1fr;
  }
  .mode {
    padding: 12px;
  }
  .phase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics {
    gap: 8px;
  }
  .metrics div {
    padding-left: 9px;
  }
  .metrics dt {
    font-size: 11px;
  }
  .metrics dd {
    font-size: 27px;
  }
  .lead {
    font-size: 16px;
  }
}
