:root {
  color-scheme: light;
  --ink: #20242a;
  --muted: #5d6673;
  --line: #d8dee7;
  --panel: #ffffff;
  --wash: #f4f7fb;
  --accent: #116149;
  --accent-strong: #0c4937;
  --error: #9f2525;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.intro,
.entry-form,
.message,
.summary,
.results {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.intro h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
}

.intro p,
.message p,
.summary p {
  margin: 0;
  color: var(--muted);
}

.intro p + p,
.message p + p {
  margin-top: 8px;
}

.eyebrow,
.meta,
.code {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.small-warning {
  color: #8a5a00;
  font-weight: 700;
}

.entry-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

label span {
  color: var(--ink);
}

.field-note {
  color: var(--muted);
  font-weight: 400;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: #ffffff;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #b7dfd1;
  border-color: var(--accent);
}

.settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: end;
}

.checkbox {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

button {
  justify-self: start;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
button:focus {
  background: var(--accent-strong);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.message {
  border-color: #d5c06b;
  background: #fff9dc;
}

.message-error {
  border-color: #e2a0a0;
  background: #fff1f1;
}

.message-error p {
  color: var(--error);
}

.results h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.result-list {
  display: grid;
  gap: 12px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfe;
}

.result-item h3,
.result-item p,
.terms {
  margin: 0;
}

.result-item h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.result-item strong {
  white-space: nowrap;
  color: var(--accent);
}

.marc {
  margin-bottom: 8px;
  font-family: Consolas, "Courier New", monospace;
  color: var(--accent-strong);
}

.terms {
  color: var(--muted);
}

.status-list {
  display: grid;
  gap: 8px;
}

.status-list p {
  margin: 0;
  color: var(--muted);
}

.status-list p::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.candidate-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  main {
    width: min(100% - 20px, 1120px);
    padding-top: 20px;
  }

  .intro,
  .entry-form,
  .message,
  .summary,
  .results {
    padding: 18px;
  }

  .intro h1 {
    font-size: 26px;
  }

  .settings,
  .result-item {
    grid-template-columns: 1fr;
    display: grid;
  }

  button {
    width: 100%;
  }
}
