:root {
  color-scheme: light dark;
  --bg: #f8f9fb;
  --surface: #fff;
  --text: #111827;
  --muted: #4b5563;
  --line: #d1d5db;
  --brand: #047857;
  --tint: #ecfdf5;
  font:
    16px/1.6 'Geist',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--text);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e14;
    --surface: #151821;
    --text: #f0f2f5;
    --muted: #c9cdd5;
    --line: #414754;
    --brand: #6ee7b7;
    --tint: #15362e;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main,
.site-nav {
  max-width: 1000px;
  margin: auto;
  padding: 24px;
}
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
.brand {
  font-weight: 700;
  margin-right: auto;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 23ch;
  text-wrap: balance;
}
h2 {
  line-height: 1.3;
  margin-top: 32px;
}
h3 {
  margin: 0;
  font-size: 1.2rem;
}
p {
  max-width: 78ch;
}
.intro {
  font-size: 1.15rem;
  color: var(--muted);
}
.boundary {
  padding: 16px;
  border-left: 4px solid var(--brand);
  background: var(--tint);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
button {
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
}
button:hover {
  border-color: var(--brand);
  background: var(--tint);
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
button:first-child {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}
label {
  display: block;
  font-weight: 600;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  min-height: 44px;
}
textarea {
  resize: vertical;
}
.check {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
#checks {
  margin-top: 24px;
}
.fields {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  gap: 20px;
}
.evidence {
  color: var(--muted);
}
#feedback {
  min-height: 2em;
  color: var(--muted);
}
#synthetic-example,
#next-step {
  border-top: 1px solid var(--line);
  padding-bottom: 24px;
}
dt {
  font-weight: 700;
  margin-top: 16px;
}
dd {
  margin-left: 0;
  max-width: 78ch;
  overflow-wrap: anywhere;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 12px;
  background: var(--surface);
}
.skip:focus {
  top: 8px;
}
#print-output {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .fields {
    grid-template-columns: 1fr;
  }
  main,
  .site-nav {
    padding: 16px;
  }
  .site-nav {
    gap: 14px;
  }
  .actions button {
    flex: 1 1 180px;
  }
}
@media print {
  :root {
    color-scheme: light;
    color: #000;
    background: #fff;
    font: 11pt/1.45 sans-serif;
  }
  .site-nav,
  .skip,
  header,
  .instructions,
  .actions,
  #feedback,
  #copy-fallback,
  form,
  #synthetic-example,
  #next-step,
  noscript {
    display: none !important;
  }
  main {
    padding: 0;
    max-width: none;
  }
  #print-output {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: inherit;
  }
  @page {
    margin: 16mm;
  }
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 24px 0;
}
