/* Exam UI styles */
.qmia-exam {
  border: 1px solid var(--qmia-border);
  border-radius: 12px;
  padding: 1rem;
  background: var(--qmia-panel);
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.qmia-exam-form {
  display: grid;
  gap: 1rem;
  max-width: 100%;
}
.qmia-question-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.qmia-choices {
  display: grid;
  gap: 0.5rem;
  max-width: 100%;
}
.qmia-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  flex-wrap: wrap;
}
.qmia-choice-key {
  font-weight: 700;
}
.qmia-exam-note {
  color: var(--qmia-muted);
}
.qmia-choice .qmia-choice-text {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  flex: 1 1 auto;
  min-width: 0;
}

/* Mobile hardening */
@media (max-width: 480px) {
  .qmia-exam {
    padding: 0.75rem;
  }
  .qmia-question-title {
    font-size: 1rem;
  }
  .qmia-choice {
    word-break: break-all;
    align-items: flex-start;
  }
  .qmia-choice input[type="radio"] {
    margin-top: 2px;
    flex: 0 0 auto;
  .qmia-choice .qmia-choice-text {
    display: inline-block;
    max-width: 100%;
  }
}
