.access-form {
  margin-top: 26px;
}

.access-form .field-block {
  margin: 0;
}

.access-form .field-block label {
  font-weight: 700;
  font-size: 12px;
}

.access-form input {
  font:
    700 21px Manrope,
    sans-serif;
  letter-spacing: 5px;
  text-align: center;
}

.privacy-note {
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 11px !important;
}

.exam-header {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 32px;
  background: var(--surface);
  border-top: 5px solid var(--green);
  border-radius: 7px;
}

.exam-header h1 {
  font:
    700 31px Manrope,
    sans-serif;
  margin: 11px 0;
}

.exam-header p {
  font-size: 13px;
}

.exam-progress {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 14px;
  font-size: 11px;
  color: var(--muted);
}

.exam-form {
  max-width: 760px;
  margin: 0 auto;
}

.exam-question {
  border: 0;
  padding: 28px 32px;
  margin: 12px 0;
  background: var(--surface);
  border-radius: 7px;
  min-width: 0;
}

.exam-question legend {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  font:
    600 17px/1.55 Manrope,
    sans-serif;
}

.question-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--green);
  font-size: 11px;
}

.answer-options {
  display: grid;
  gap: 2px;
  margin: 23px 0 0 46px;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 14px;
}

.answer-option:hover {
  background: var(--surface-soft);
}

.answer-option input {
  position: absolute;
  opacity: 0;
}

.radio-custom,
.check-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid #aeb8ac;
  border-radius: 50%;
  flex: none;
}

.check-custom {
  border-radius: 4px;
}

.answer-option input:checked+.radio-custom {
  border: 5px solid var(--green);
}

.answer-option input:checked+.check-custom {
  background: var(--green);
  border-color: var(--green);
  box-shadow: inset 0 0 0 3px var(--surface);
}

.answer-input {
  display: block;
  margin: 24px 0 0 46px;
  width: calc(100% - 46px);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding-left: 0;
}

.answer-input.long-answer {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  resize: vertical;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 40px;
  font-size: 11px;
}

.completion {
  max-width: 560px;
  margin: 90px auto;
  text-align: center;
  padding: 30px;
}

.completion .success-mark {
  margin: 0 auto 22px;
  width: 52px;
  height: 52px;
  font-size: 26px;
}

.completion h1 {
  font-size: 40px;
}

.completion p {
  line-height: 1.7;
  margin: 15px auto 25px;
  max-width: 420px;
}

.muted-symbol {
  font-size: 50px;
  margin-bottom: 20px;
}

.messages {
  margin-bottom: 22px;
}

.message {
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 13px;
  background: var(--surface-soft);
}

.message.success {
  color: var(--green);
}

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

.answer-cell {
  max-width: 250px;
  line-height: 1.5;
}

.small-text {
  font-size: 10px;
  margin-top: 5px;
}

.score {
  font-weight: 700;
}

.grade-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.grade-form input {
  width: 74px;
  min-height: 32px;
  padding: 5px 7px;
}

.staff-form {
  max-width: 850px;
}

.permission-set {
  border: 1px solid var(--line);
  padding: 18px 20px;
  margin: 0 0 20px;
  border-radius: 6px;
}

.permission-set legend {
  font-weight: 700;
  font-size: 13px;
  padding: 0 5px;
}

.permission-set>p {
  font-size: 11px;
  margin: 5px 0 13px;
}

.permission-set ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.permission-set li label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
}

.permission-set input {
  accent-color: var(--green);
  margin-top: 2px;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .topbar {
    gap: 22px;
    padding: 0 18px;
  }

  .nav-links {
    gap: 13px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .user-label {
    display: none;
  }

  .page-shell {
    padding: 38px 20px 60px;
  }

  .page-heading h1 {
    font-size: 35px;
  }

  .generate-layout {
    gap: 28px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .auth-aside {
    min-height: 280px;
    padding: 30px;
  }

  .auth-aside:before {
    inset: 0 -25vw;
    border-radius: 0;
  }

  .auth-aside h1 {
    font-size: 39px;
    margin: 15px 0;
  }

  .aside-index {
    margin-top: 20px;
  }

  .auth-panel {
    padding: 40px 20px;
  }

  .auth-layout {
    margin: -38px -20px 0;
  }

  .stat-strip>div {
    padding: 13px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .stat-strip strong {
    font-size: 20px;
  }

  .form-sheet {
    padding: 23px;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: auto;
    min-height: 64px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .brand {
    font-size: 17px;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    height: 34px;
    overflow-x: auto;
  }

  .nav-links a {
    height: 34px;
    flex: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-actions form {
    display: none;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .page-shell {
    padding: 30px 16px 50px;
  }

  .generate-layout {
    grid-template-columns: 1fr;
  }

  .process-note {
    max-width: none;
    padding: 0;
  }

  .result-modal {
    padding: 28px 22px;
  }

  .exam-header {
    padding: 25px 20px;
  }

  .exam-question {
    padding: 23px 18px;
  }

  .exam-question legend {
    font-size: 15px;
    gap: 11px;
  }

  .answer-options {
    margin-left: 36px;
  }

  .answer-input {
    margin-left: 36px;
    width: calc(100% - 36px);
  }

  .submit-row {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .submit-row .button {
    width: 100%;
  }

  .permission-set ul {
    grid-template-columns: 1fr;
  }

  .copy-row {
    flex-direction: column;
  }

  .copy-row .button {
    width: 100%;
  }

  .auth-aside {
    min-height: 250px;
  }

  .auth-aside h1 {
    font-size: 34px;
  }

  .completion {
    margin: 50px auto;
    padding: 18px;
  }

  .completion h1 {
    font-size: 33px;
  }
}