:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #20382c;
  background: #f4faf5;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: #176a49; }

.site-head {
  padding: 12px max(16px, calc((100% - 720px) / 2));
  border-bottom: 1px solid #cbdcd1;
  background: white;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

main {
  max-width: 752px;
  margin: auto;
  padding: clamp(20px, 4vw, 40px) 16px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e1f3e4;
  color: #176a49;
  font-weight: 700;
}

h1 { margin-block: 6px; font-size: clamp(1.9rem, 5vw, 2.75rem); }
h2 { font-size: 1.2rem; }
.class-name { color: #456154; font-size: .9rem; }

.card, .next {
  margin-top: 20px;
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid #cbdcd1;
  border-radius: 16px;
}
.card { background: white; }
.next a { display: inline-block; margin-top: 8px; font-weight: 700; }

fieldset { min-width: 0; margin: 12px 0 16px; padding: 0; border: 0; }
legend { margin-bottom: 6px; padding: 0; }

.student {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 8px;
  border-bottom: 1px solid #e1ece4;
}

button, select {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #687f72;
  border-radius: 8px;
  color: inherit;
  background: white;
  font: inherit;
}

button { cursor: pointer; font-weight: 700; }
button:hover { background: #f4faf5; }
.primary { border-color: #176a49; background: #176a49; color: white; }
.primary:hover { background: #115538; }

button:focus-visible, select:focus-visible, a:focus-visible, h3:focus {
  outline: 2px solid #176a49;
  outline-offset: 3px;
}

#demo-result { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
