/* Drill-specific details layered on the vocabulary study design. */
.vocab-test-redesign {
  --ink: #102a56;
  --muted: #627b9f;
  --accent: #3f7bf7;
  --accent-deep: #2865c8;
}
.vocab-test-redesign .test-back-mobile { display: none; }
.vocab-test-redesign .vocab-study-back { white-space: nowrap; }
.vocab-test-redesign .word-session-meta,
.vocab-test-redesign .word-jump { flex: 0 0 auto; white-space: nowrap; }
.vocab-test-redesign .word-jump { display: flex; align-items: center; }
.vocab-test-redesign .word-jump input {
  width: 4ch;
  min-width: 4ch;
  font-variant-numeric: tabular-nums;
}
.vocab-test-redesign .word-session-meta strong { white-space: nowrap; }
.vocab-test-redesign .word-side { align-self: stretch; }
.vocab-test-redesign .word-side .eyebrow { text-transform: uppercase; }
.vocab-test-redesign .word-side > p:not(.eyebrow) { margin-top: 4px; }
.vocab-test-redesign .word-progress__heading { margin-top: 12px; }
.vocab-test-redesign .word-progress__heading > span:last-child { font-size: .65rem; }
.vocab-test-redesign .word-card { align-content: start; gap: 20px; min-width: 0; }
.vocab-test-redesign .mixed-question { gap: 8px; padding: 4px 0; }
.vocab-test-redesign .mixed-question__number { color: #6e89b2; font-size: .78rem; }
.vocab-test-redesign .mixed-question h1 {
  margin: 0;
  color: #102a56;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.vocab-test-redesign .word-card__tag--soft { color: #a56b18; background: #fff3df; }
.vocab-test-redesign .mixed-options { gap: 10px; }
.vocab-test-redesign .mixed-option {
  align-items: center;
  min-height: 62px;
  padding: 12px 16px;
  border: 1px solid #e0eafa;
  border-radius: 15px;
  background: #fbfdff;
  box-shadow: none;
}
.vocab-test-redesign .mixed-option > span { color: #497bd2; background: #eaf2ff; }
.vocab-test-redesign .mixed-option strong { color: #203d68; font-weight: 600; }
.vocab-test-redesign .mixed-option:hover,
.vocab-test-redesign .mixed-option.selected { border-color: #86b1f8; background: #edf5ff; }
.vocab-test-redesign .mixed-option.correct { border-color: #62c5a7; background: #edf9f4; }
.vocab-test-redesign .mixed-option.wrong { border-color: #f2a4ae; background: #fff3f4; }
.vocab-test-redesign .mixed-option.correct > span { color: #168160; background: #d7f3e6; }
.vocab-test-redesign .mixed-option.wrong > span { color: #bd4961; background: #ffe1e6; }
.vocab-test-redesign .word-card__actions {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.vocab-test-redesign .word-card__actions > .word-action { grid-column: span 2; min-width: 0; }
.vocab-test-redesign .word-card__actions > .mixed-note-trigger,
.vocab-test-redesign .word-card__actions > .mixed-ai-toggle { grid-column: span 3; }
.vocab-test-redesign .primary-btn {
  border: 1px solid transparent;
  color: #fff;
  background: linear-gradient(135deg, #5a91f7, #3e78eb);
  box-shadow: 0 6px 16px #3e78eb18;
}
.vocab-test-redesign .word-card__actions > .mixed-note-trigger { color: #5277ad; background: #f7faff; }
.vocab-test-redesign .word-card__actions > .mixed-ai-toggle { color: #3e7be9; background: #eaf4ff; }
.vocab-test-redesign .mixed-answer,
.vocab-test-redesign .mixed-analysis-item,
.vocab-test-redesign .mixed-ai-response { border-color: #dce9f7; background: #f6faff; }
.vocab-test-redesign .mixed-note-dialog { color: #102a56; border: 1px solid #dce9f7; border-radius: 22px; background: #fbfdff; }
.vocab-test-redesign .mixed-note-field textarea,
.vocab-test-redesign .mixed-note-field select { border-color: #dce9f7; background: #fff; }
.vocab-test-redesign :is(button, a, input, select, textarea):focus-visible { outline: 3px solid #93b8ff; outline-offset: 3px; }
@media (max-width: 650px) {
  .vocab-test-redesign .vocab-study-topbar { align-items: center; gap: 8px; padding: 10px; }
  .vocab-test-redesign .vocab-study-brand { min-width: 0; gap: 7px; }
  .vocab-test-redesign .vocab-study-brand__icon { flex: 0 0 30px; width: 30px; height: 30px; }
  .vocab-test-redesign .vocab-study-topbar__actions { gap: 6px; }
  .vocab-test-redesign .test-back-desktop { display: none; }
  .vocab-test-redesign .test-back-mobile { display: inline; }
  .vocab-test-redesign .vocab-study-back { flex: 0 0 auto; padding: 9px 10px; font-size: .72rem; }
  .vocab-test-redesign .vocab-study-back::after { content: none; }
  body.vocab-test-redesign .word-session-meta { flex: 0 0 auto; width: auto; min-width: 0; padding: 0 8px; gap: 6px; }
  body.vocab-test-redesign .word-jump input { flex: 0 0 4ch; width: 4ch; min-width: 4ch; font-size: .75rem; }
  .vocab-test-redesign .word-session-meta strong { font-size: .75rem; }
  .vocab-test-redesign .word-card { min-height: 0; padding: 18px 15px; gap: 18px; }
  .vocab-test-redesign .mixed-question h1 { font-size: 1.3rem; line-height: 1.65; }
  .vocab-test-redesign .mixed-option { min-height: 58px; padding: 10px 12px; gap: 10px; }
  .vocab-test-redesign .mixed-option strong { font-size: .94rem; }
  .vocab-test-redesign .word-card__actions { gap: 8px; }
  .vocab-test-redesign .word-card__actions .word-action { font-size: .8rem; min-height: 46px; padding: 9px 4px; }
}
