.asp-publish-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fcf8f9;
}

.asp-publish-settings label {
  margin-top: 0;
}

.asp-student-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  max-height: 310px;
  overflow: auto;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.asp-student-choices label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px;
  border: 1px solid #eee4e7;
  border-radius: 10px;
  cursor: pointer;
}

.asp-student-choices input {
  width: auto;
  flex: 0 0 auto;
}

.asp-student-choices span,
.asp-student-choices b,
.asp-student-choices small {
  display: block;
}

.asp-student-choices small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}

.asp-share-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #cfe7d8;
  border-radius: 15px;
  background: #f1fbf5;
}

.asp-share-box strong,
.asp-share-box small {
  display: block;
}

.asp-share-box input {
  direction: ltr;
  margin: 10px 0;
  background: #fff;
}

.asp-share-box > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asp-share-box a,
.asp-teacher-exam-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 11px;
  background: #f1e5e9;
  color: var(--q);
  font-weight: 800;
  text-decoration: none;
}

.asp-share-box small {
  margin-top: 10px;
  color: #326848;
}

.asp-draft-note {
  margin-top: 16px;
  padding: 13px;
  border-radius: 12px;
  background: #fff3dc;
  color: #815100;
  font-weight: 800;
}

.asp-teacher-exams {
  margin-top: 28px;
}

.asp-teacher-exam {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 22px #5410240a;
}

.asp-teacher-exam h3,
.asp-teacher-exam p {
  margin: 0 0 5px;
}

.asp-teacher-exam p,
.asp-teacher-exam small {
  color: var(--muted);
}

.asp-teacher-exam-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.asp-direct-badge {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eaf7ef;
  color: #17683f;
  font-size: 12px;
  font-weight: 800;
}

.asp-loading-screen[hidden] {
  display: none;
}

.asp-loading-screen {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: grid;
  place-content: center;
  background: rgba(255, 252, 253, .96);
  text-align: center;
  backdrop-filter: blur(8px);
}

.asp-loading-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  margin: auto;
  border-radius: 35px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(84, 16, 36, .18);
  animation: aspLogoPulse 1.35s ease-in-out infinite;
}

.asp-loading-logo::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 3px solid transparent;
  border-top-color: #7b1734;
  border-right-color: #d6a8b7;
  border-radius: 42px;
  animation: aspLoaderSpin 1s linear infinite;
}

.asp-loading-logo img {
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.asp-loading-screen p {
  margin: 24px 0 0;
  color: #65132c;
  font-weight: 900;
}

@keyframes aspLoaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes aspLogoPulse {
  50% { transform: scale(.95); }
}

@media (max-width: 650px) {
  .asp-publish-settings,
  .asp-student-choices {
    grid-template-columns: 1fr;
  }

  .asp-teacher-exam {
    align-items: flex-start;
    flex-direction: column;
  }

  .asp-teacher-exam-actions {
    width: 100%;
  }

  .asp-teacher-exam-actions > * {
    flex: 1;
  }

  .asp-share-box > div {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .asp-loading-logo,
  .asp-loading-logo::before {
    animation: none;
  }
}
