:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #eaf0f4;
  background: #08131b;
  color-scheme: dark;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 860px;
  margin: auto;
  padding: 28px 20px 48px;
}
header {
  padding: 12px 0 20px;
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin: 0.4em 0;
}
h2 {
  font-size: 1.3rem;
}
.brand {
  color: #f29a38;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}
section,
.notice {
  border: 1px solid #304451;
  background: #12222d;
  border-radius: 14px;
  padding: 24px;
  margin: 18px 0;
}
.notice {
  border-left: 4px solid #ed912e;
}
label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid #49606f;
  border-radius: 8px;
  background: #0a1821;
  color: inherit;
  min-height: 46px;
  padding: 10px;
}
button {
  cursor: pointer;
  border: 1px solid #526675;
  border-radius: 8px;
  background: #11212d;
  color: inherit;
  padding: 11px 15px;
  min-height: 46px;
  font: inherit;
  font-weight: 600;
}
button:hover {
  background: #263c4c;
}
button[aria-pressed="true"],
form > button,
section > button {
  background: #ed912e;
  color: #08131b;
  border-color: #ed912e;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #ffae54;
  outline-offset: 3px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0;
  min-width: 0;
}
legend {
  font-weight: 700;
}
.question {
  margin: 20px 0;
}
.question legend {
  font-weight: 500;
  margin-bottom: 10px;
}
.ratings {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ratings button:last-child {
  font-size: 0.85rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: #ed912e;
}
.teacher {
  border-top: 1px solid #304451;
  margin-top: 24px;
  padding-top: 12px;
}
.muted,
footer {
  font-size: 0.85rem;
  color: #b7c8d5;
}
footer {
  margin-top: 30px;
}
p {
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  main {
    padding: 16px 12px 32px;
  }
  section,
  .notice {
    padding: 18px;
  }
  .ratings button:last-child {
    flex-basis: 100%;
  }
}
