.quiz-list,
.quiz-actions-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: visible;
}
.section-title {
  font-size: 1.6rem;
  color: #972141;
  margin-bottom: 1rem;
  font-weight: 700;
}
.preview-btn {
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid #972141;
  background: #fff;
  color: #972141;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  font-weight: 600;
}
.preview-btn:hover {
  background-color: #972141;
  color: #fff;
}

.subtopic-title {
  font-size: 1.2rem;
  color: #972141;
  margin: 1.5rem 0 0.75rem;
  border-bottom: 2px solid #fdebf1;
  padding-bottom: 0.25rem;
  font-weight: 600;
  text-transform: capitalize;
}
.quiz-list {
  min-width: 0;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  position: relative;
}
.quiz-list .section-title {
  position: sticky;
  top: 0;
  background: #ffffff;
  margin-top: 0;
  padding-top: 1rem;
  z-index: 2;
}
.quiz-actions-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  min-width: 180px;
  box-sizing: border-box;
}
.quiz-actions-panel .action-button {
  background: #972141;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.6;
  cursor: not-allowed;
  transition: opacity 0.2s;
}
.quiz-actions-panel .action-button.enabled {
  opacity: 1;
  cursor: pointer;
}
.quiz-actions-panel .action-button.enabled:hover {
  opacity: 0.85;
}
.quiz-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.quiz-group {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
}
.quiz-heading {
  font-weight: 600;
  font-size: 1.25rem;
  color: #972141;
  margin-bottom: 0.5rem;
}
.quiz-sublist {
  list-style: none;
  padding-left: 0;
}
.quiz-subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  background: #fdfdfd;
  gap: 1rem;
}
.quiz-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-grow: 1;
}
.quiz-title {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  margin: 0;
}
/*preview layout starts here*/
.preview-question,
.preview-question * {
.subskill-heading {
  font-weight: 500;
  color: #7da73b;
  margin-top: 0.5rem;
}
/*toggle switch*/