.question-type-redesign .word-session-meta {
  white-space: nowrap;
}

.question-type-redesign .word-side {
  min-height: 700px;
  padding-bottom: 28px;
}

.question-type-redesign .word-side__scenery {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  margin-top: 8px;
}

.question-type-redesign .vocab-study-topbar {
  position: sticky;
  top: 8px;
  z-index: 30;
}

@media (min-width: 981px) {
  .question-type-redesign .word-side {
    position: sticky;
    top: 104px;
    align-self: start;
    min-height: min(700px, calc(100vh - 120px));
    max-height: calc(100vh - 120px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.question-type-redesign .word-side h2 {
  max-width: 290px;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.3;
}

.question-type-redesign .word-side__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.question-type-redesign #questionTypeNoteButton,
.question-type-redesign .question-type-side-actions .word-action {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d9e7f6;
  border-radius: 14px;
  color: #5277ad;
  background: #f7faff;
  box-shadow: none;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
}

.question-type-redesign #questionTypeNoteButton {
  margin: 12px 0 0;
  color: #3e7be9;
  background: #eaf4ff;
}

.question-type-redesign #questionTypeNoteButton:disabled,
.question-type-redesign .question-type-side-actions .word-action:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.question-type-redesign .question-type-card-shell {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  min-height: 700px;
  padding: 26px;
  border: 1px solid var(--study-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(63, 110, 172, .09);
}

.question-type-redesign .question-type-ai-generator {
  gap: 16px;
  margin: 0;
  padding: 22px;
  border: 1px solid #dce9f7;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4f9ff, #eaf3ff);
}

.question-type-redesign .question-type-ai-generator__eyebrow {
  color: #6688bb;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.question-type-redesign .listening-ai-generator__copy strong {
  color: #102a56;
  font-size: 1.3rem;
  line-height: 1.35;
}

.question-type-redesign .listening-ai-generator__copy p {
  margin: 0;
  color: #627b9f;
  line-height: 1.6;
}

.question-type-redesign .listening-ai-generator__field {
  color: #56749e;
  font-size: .8rem;
}

.question-type-redesign .listening-ai-generator__field select {
  min-width: 112px;
  border-color: #d9e7f6;
  color: #153261;
  background: #fff;
}

.question-type-redesign #questionTypeGenerateButton {
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 14px;
  font-weight: 700;
}

.question-type-redesign .listening-ai-generator__status {
  min-height: 0;
  color: #627b9f;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.question-type-redesign .listening-ai-generator__status:empty {
  display: none;
}

.question-type-redesign .question-type-paper-summary,
.question-type-redesign .question-type-instruction {
  border-color: #dce9f7;
  border-radius: 16px;
  background: #f6faff;
}

.question-type-redesign .question-type-paper-summary__head span {
  color: #3f7bf7;
}

.question-type-redesign .question-type-paper-summary__head strong,
.question-type-redesign .question-type-instruction strong {
  color: #153261;
}

.question-type-redesign .question-type-paper-summary__provider {
  border-color: #d9e7f6;
  color: #3e7be9;
  background: #fff;
}

.question-type-redesign .question-type-paper-summary p {
  color: #627b9f;
}

.question-type-redesign .question-type-card-stack {
  gap: 14px;
}

.question-type-redesign .question-type-empty,
.question-type-redesign .question-type-card {
  gap: 16px;
  padding: 22px;
  border: 1px solid #dce9f7;
  border-radius: 18px;
  background: #fbfdff;
  box-shadow: none;
}

.question-type-redesign .question-type-empty {
  min-height: 180px;
  align-content: center;
  text-align: center;
  background: linear-gradient(145deg, #fbfdff, #f1f7ff);
}

.question-type-redesign .question-type-empty strong {
  color: #153261;
  font-size: 1.1rem;
}

.question-type-redesign .question-type-empty p,
.question-type-redesign .question-type-card__translation {
  color: #627b9f;
}

.question-type-redesign .question-type-card__prompt {
  color: #102a56;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.question-type-redesign .question-type-card__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.question-type-redesign .question-type-speech-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #cfe1f7;
  border-radius: 50%;
  color: #3e7be9;
  background: #edf5ff;
  box-shadow: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.question-type-redesign .question-type-speech-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.question-type-redesign .question-type-speech-button svg path:last-child {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.question-type-redesign .question-type-speech-button:hover {
  transform: translateY(-1px);
  border-color: #9fc2f5;
  background: #e2efff;
}

.question-type-redesign .question-type-speech-button.is-playing {
  border-color: #3f7bf7;
  color: #fff;
  background: #3f7bf7;
}

.question-type-redesign .question-type-speech-button.is-loading {
  opacity: .72;
  animation: question-type-speech-pulse 900ms ease-in-out infinite alternate;
}

@keyframes question-type-speech-pulse {
  from { transform: scale(.94); }
  to { transform: scale(1.04); }
}

.question-type-redesign .mixed-option {
  align-items: center;
  gap: 13px;
  min-height: 60px;
  padding: 12px 16px;
  border-color: #dce9f7;
  border-radius: 14px;
  color: #153261;
  background: #fff;
}

.question-type-redesign .mixed-option > span:first-child {
  color: #3f7bf7;
  background: #eaf3ff;
}

.question-type-redesign .mixed-option strong {
  color: #153261;
}

.question-type-redesign .mixed-option:hover,
.question-type-redesign .mixed-option.selected {
  border-color: #9bc2ff;
  background: #f0f7ff;
}

.question-type-redesign .mixed-option.correct {
  border-color: #85d7bd;
  background: #edfbf5;
}

.question-type-redesign .mixed-option.wrong {
  border-color: #f4bbbe;
  background: #fff1f2;
}

.question-type-redesign .question-type-card__actions .word-action {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #cfe1f5;
  border-radius: 14px;
  color: #3e7be9;
  background: #eaf4ff;
  font-weight: 700;
}

.question-type-redesign .mixed-answer {
  border-color: #dce9f7;
  background: #f6faff;
}

.question-type-redesign .mixed-analysis-item {
  border-color: #e1ebf7;
  background: #fff;
}

.question-type-redesign .mixed-analysis-item.correct {
  border-color: #a9dfc9;
  background: #f1fbf6;
}

.question-type-redesign .mixed-analysis-item strong {
  color: #2865c8;
}

.question-type-redesign .question-type-mobile-actions {
  display: none;
}

.question-type-redesign .mixed-note-dialog,
.question-type-redesign .import-dialog {
  border-color: #dce9f7;
  background: #fff;
}

/* AI 返回的长题干或解析不能把手机页面横向撑宽。 */
body.question-type-redesign {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.question-type-redesign .vocab-study-shell,
.question-type-redesign main,
.question-type-redesign .word-layout,
.question-type-redesign .question-type-card-shell,
.question-type-redesign .question-type-ai-generator,
.question-type-redesign .question-type-paper-summary,
.question-type-redesign .question-type-instruction,
.question-type-redesign .question-type-card-stack,
.question-type-redesign .question-type-card,
.question-type-redesign .mixed-question,
.question-type-redesign .mixed-options,
.question-type-redesign .mixed-answer,
.question-type-redesign .mixed-analysis-list,
.question-type-redesign .mixed-analysis-item,
.question-type-redesign .word-example {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.question-type-redesign .question-type-paper-summary__head > *,
.question-type-redesign .question-type-card__head > *,
.question-type-redesign .mixed-option > strong,
.question-type-redesign .mixed-analysis-item > *,
.question-type-redesign .word-example > * {
  min-width: 0;
  max-width: 100%;
}

.question-type-redesign .question-type-paper-summary__head strong,
.question-type-redesign .question-type-paper-summary p,
.question-type-redesign .question-type-instruction strong,
.question-type-redesign .question-type-card__prompt,
.question-type-redesign .mixed-option strong,
.question-type-redesign .word-example__sentence,
.question-type-redesign .word-example__translation,
.question-type-redesign .word-example__note,
.question-type-redesign .mixed-analysis-item strong,
.question-type-redesign .mixed-analysis-item p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.question-type-redesign .mixed-option {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .question-type-redesign .word-side {
    position: relative;
    top: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .question-type-redesign .question-type-card-shell {
    min-height: 0;
  }
}

@media (max-width: 650px) {
  .question-type-redesign .vocab-study-shell,
  .question-type-redesign main,
  .question-type-redesign .word-layout,
  .question-type-redesign .question-type-card-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .question-type-redesign .word-layout {
    overflow-x: clip;
  }

  .question-type-redesign .question-type-card-shell {
    gap: 14px;
    padding: 15px;
    align-self: stretch;
  }

  .question-type-redesign .question-type-ai-generator {
    gap: 12px;
    padding: 16px;
  }

  .question-type-redesign .listening-ai-generator__copy strong {
    font-size: 1.1rem;
  }

  .question-type-redesign .listening-ai-generator__controls {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .question-type-redesign .listening-ai-generator__field,
  .question-type-redesign .listening-ai-generator__field select,
  .question-type-redesign #questionTypeGenerateButton {
    width: 100%;
  }

  .question-type-redesign .question-type-empty,
  .question-type-redesign .question-type-card {
    width: 100%;
    padding: 15px;
  }

  .question-type-redesign .question-type-card__prompt {
    font-size: 1.15rem;
  }

  .question-type-redesign .question-type-card__head-actions {
    gap: 6px;
  }

  .question-type-redesign .question-type-speech-button {
    width: 34px;
    height: 34px;
  }

  .question-type-redesign .mixed-option {
    min-height: 54px;
    padding: 10px 12px;
  }

  .question-type-redesign .question-type-mobile-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .question-type-redesign .question-type-mobile-actions__button {
    min-width: 0;
    min-height: 44px;
    padding: 8px 5px;
    border: 1px solid #d9e7f6;
    border-radius: 13px;
    color: #3e7be9;
    background: #f1f7ff;
    font-size: .74rem;
    font-weight: 700;
  }
}

@media (max-width: 420px) {
  .question-type-redesign .vocab-study-topbar {
    flex-wrap: wrap;
  }

  .question-type-redesign .vocab-study-brand,
  .question-type-redesign .vocab-study-topbar__actions {
    width: 100%;
  }

  .question-type-redesign .vocab-study-topbar__actions {
    justify-content: space-between;
  }
}
