:root { font-family: system-ui, sans-serif; color: #17283e; background: #f2f6fa; }
main { max-width: 42rem; margin: 2rem auto; padding: 1.25rem; }
h1 { font-size: clamp(1.5rem, 5vw, 2.25rem); }
form, section { padding: 1.1rem; background: white; border: 1px solid #d9e3ee; border-radius: 12px; }
label { display: block; font-weight: 600; }
input, button { font: inherit; padding: .6rem .8rem; margin: .4rem 0; border: 1px solid #bdccde; border-radius: 7px; }
input { display: block; max-width: 100%; box-sizing: border-box; }
button { color: white; background: #2b5e94; cursor: pointer; }
ul { list-style: none; padding: 0; }
li { padding: .8rem 0; border-top: 1px solid #d9e3ee; }
main { max-width: 52rem; }
#report { margin-top: 1rem; }
#report-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
#report h2 { margin-top: 0; }
#report h3 { margin-top: 1.25rem; }
.report-row, .exam-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .7rem;
}
.report-row {
  border: 1px solid #d9e3ee;
  border-radius: 8px;
  margin: .6rem 0;
  padding: .65rem;
}
.report-row button { justify-self: start; }
.exam-card { border: 1px solid #d9e3ee; border-radius: 8px; margin: .75rem 0; min-width: 0; }
.exam-card legend { font-weight: 650; }
#report input, #report select, #report textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  padding: .6rem;
  margin: .3rem 0;
  border: 1px solid #bdccde;
  border-radius: 7px;
}
#report textarea { resize: vertical; }
#add-exam { margin-bottom: 1rem; }
button.secondary { background: #fff; color: #24548a; }
button:disabled { opacity: .55; cursor: default; }
@media (min-width: 700px) {
  .report-row { grid-template-columns: 1.1fr 1.4fr .8fr 1fr auto; align-items: end; }
}
