/* src/components/ToolStandard/ToolStandard.css */
.ninja-tool-setup {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 94vh;
  background: #fff;
  color: #263238;
  font-family:
    Poppins,
    Arial,
    sans-serif;
  overflow: hidden;
}
.ninja-tool-setup-header {
  flex: none !important;
  position: relative;
  z-index: 5;
}
.ninja-tool-setup-header .ninja-dialog-header__title-row {
  gap: 12px 20px;
}
.ninja-tool-years {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.ninja-tool-years .ninja-tool-years__button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  box-shadow: none !important;
}
.ninja-tool-years .ninja-tool-years__button.is-selected {
  color: var(--primary-color, #905d95);
  background: #fff;
}
.ninja-tool-setup__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px;
  overscroll-behavior: contain;
}
.ninja-tool-dropdown-grid {
  position: relative;
  display: grid;
  grid-auto-rows: 48px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  margin-bottom: 16px;
}
.ninja-tool-dropdown {
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bdbdbd;
  border-radius: 30px;
  background: #fff;
}
.ninja-tool-dropdown.is-selected,
.ninja-tool-dropdown.q-expansion-item--expanded {
  border-color: var(--primary-color, #905d95);
  background: color-mix(in srgb, var(--primary-color, #905d95) 14%, #fff);
}
.ninja-tool-dropdown.q-expansion-item--expanded {
  z-index: 20;
  box-shadow: 0 14px 28px rgba(38, 50, 56, 0.18);
}
.ninja-tool-dropdown.q-expansion-item--expanded > .q-expansion-item__container > .ninja-tool-dropdown__header,
.ninja-tool-dropdown.q-expansion-item--expanded > .q-expansion-item__container > .ninja-tool-dropdown__header > .q-focus-helper {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.ninja-tool-dropdown__header {
  min-height: 44px;
  padding: 0 14px;
  color: #37474f;
  font-weight: 800;
  border-radius: 30px;
}
.ninja-tool-dropdown__header .q-item__section--avatar {
  min-width: 28px;
  padding-right: 6px;
}
.ninja-tool-dropdown__body {
  display: grid;
  border-top: 1px solid color-mix(in srgb, var(--primary-color, #905d95) 45%, #fff);
  background: #fff;
  gap: 10px;
  padding: 12px;
  color: #455a64;
  font-size: 13px;
  max-height: 330px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ninja-tool-dropdown--nested .ninja-tool-dropdown__body,
.ninja-tool-dropdown:has(.ninja-tool-lessons-year) .ninja-tool-dropdown__body {
  background: transparent;
  padding: 8px;
  gap: 7px;
}
.ninja-tool-dropdown__body p {
  margin: 0;
  line-height: 1.6;
}
.ninja-tool-lessons-year {
  border: 1px solid #d8e1ea;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}
.ninja-tool-lessons-year > .q-expansion-item__container > .q-item {
  min-height: 42px;
  padding: 0 12px;
  font-weight: 800;
  color: #37474f;
}
.ninja-tool-lessons-year .q-item__section--avatar {
  min-width: 28px;
  padding-right: 6px;
}
.ninja-tool-lessons-year.q-expansion-item--expanded {
  border-color: var(--primary-color, #905d95);
}
.ninja-tool-lessons-year.q-expansion-item--expanded > .q-expansion-item__container > .q-item {
  background: color-mix(in srgb, var(--primary-color, #905d95) 10%, #fff);
}
.ninja-tool-lesson-list {
  display: grid;
  border-top: 1px solid color-mix(in srgb, var(--primary-color, #905d95) 45%, #fff);
  background: #fff;
  gap: 7px;
  padding: 8px;
}
.ninja-tool-lesson {
  font: inherit;
  font-weight: 700;
  text-align: left;
  color: #263238;
  border: 1px solid #d8e1ea;
  border-radius: 26px;
  padding: 10px 14px;
  background: #fff;
  cursor: pointer;
  line-height: 1.5;
}
.ninja-tool-lesson.is-selected {
  border-color: var(--primary-color, #905d95);
  background: color-mix(in srgb, var(--primary-color, #905d95) 12%, #fff);
}
.ninja-tool-modes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.ninja-tool-modes .ninja-tool-mode {
  min-height: 42px;
  border: 1px solid #cfd8dc;
  border-radius: 22px;
  padding: 0 16px;
  color: #37474f;
  font-weight: 700;
  white-space: nowrap;
  background: #fff;
  box-shadow: none;
}
.ninja-tool-modes .ninja-tool-mode.is-selected {
  border-color: #ef6c00;
  box-shadow: 0 0 0 2px rgba(239, 108, 0, 0.12);
  background: #fff7ed;
}
.ninja-tool-modes .ninja-tool-mode--assessment.is-selected {
  border-color: #1e88e5;
  background: #f3f8fe;
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.12);
}
.ninja-tool-action {
  color: var(--primary-color, #905d95) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 600;
  min-height: 34px;
  padding: 0 12px;
}
.ninja-tool-setup-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  justify-content: space-between;
  padding: 12px 24px;
  border-top: 1px solid #e0e0e0;
  background: #fff;
  z-index: 6;
}
.ninja-tool-setup-footer__secondary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.ninja-tool-insert {
  margin-left: auto;
}
.ninja-tool-print-dialog {
  width: 480px;
  max-width: 96vw !important;
  border: 1px solid #fff;
  border-radius: 30px !important;
  overflow: hidden;
}
.ninja-tool-print-dialog__body {
  display: grid;
  gap: 16px;
  padding: 24px;
}
.ninja-tool-dialogue {
  display: flex;
  gap: 10px;
  text-align: left;
  border: 1px solid #ffcc80;
  background: #fff7e8;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.ninja-tool-dialogue__label {
  color: #b45b00;
  flex: none;
  font-weight: 800;
}
.ninja-tool-progress {
  display: flex;
  gap: 7px;
  max-width: 60%;
  overflow-x: auto;
  padding: 5px;
}
.ninja-tool-progress button {
  width: 11px;
  min-width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #e57373;
  padding: 0;
  cursor: pointer;
}
.ninja-tool-progress button.is-answered {
  background: #66bb6a;
}
.ninja-tool-progress button.is-current {
  outline: 2px solid #37474f;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .ninja-tool-dropdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ninja-tool-setup__body {
    padding: 14px;
  }
  .ninja-tool-setup-footer {
    padding: 10px 14px;
    gap: 4px;
  }
  .ninja-tool-setup-footer .q-btn {
    font-size: 12px;
  }
  .ninja-tool-setup-footer__secondary {
    flex: none;
  }
  .ninja-tool-setup-header .ninja-dialog-header__actions {
    display: none;
  }
}
@media (max-width: 440px) {
  .ninja-tool-dropdown-grid {
    grid-template-columns: 1fr;
  }
  .ninja-tool-years {
    gap: 4px;
  }
  .ninja-tool-years .ninja-tool-years__button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    font-size: 14px;
  }
  .ninja-tool-modes {
    gap: 6px;
  }
  .ninja-tool-modes .ninja-tool-mode {
    padding: 0 10px;
    font-size: 12px;
  }
}
.ninja-tool-question-count {
  width: 185px;
  flex: none;
}
.ninja-tool-modes .ninja-tool-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  min-height: 42px;
}
.ninja-tool-mode > .q-toggle {
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}
.ninja-tool-mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px 12px 4px 5px;
  border: 1px solid #cfd8dc;
  border-radius: 30px;
  background: #fff;
  color: #263238;
  font-size: 13px;
  white-space: nowrap;
}
.ninja-tool-mode-chip__check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffa726;
  color: #fff;
}
.ninja-tool-progress {
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 460px);
  max-width: 70%;
  min-height: 36px;
  margin: auto;
  padding: 12px;
  scrollbar-width: thin;
}
.ninja-tool-progress button {
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: #f44336;
}
.ninja-tool-progress button.is-answered {
  background: #6dbd45;
}
.ninja-tool-progress button.is-current {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 8px var(--primary-color, #905d95);
}
.ninja-tool-remove {
  color: #e53935 !important;
  background: transparent !important;
}
.ninja-tool-prompt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  border-radius: 999px;
  padding: 12px 54px;
  background:
    linear-gradient(
      135deg,
      #67bb6a,
      #63b965);
  color: #fff;
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}
.ninja-tool-prompt > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ninja-tool-prompt > .q-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: white !important;
  padding: 0;
  width: 34px;
  min-width: 34px;
}
.ninja-tool-mode-chip__playback {
  padding: 0;
  border: 0;
  cursor: pointer;
  flex: none;
}
.ninja-tool-mode-chip__playback:focus-visible {
  outline: 2px solid var(--primary-color, #905d95);
  outline-offset: 3px;
}
.ninja-tool-narration-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 12px;
  margin-top: 0;
}
.ninja-tool-narration-indicator > span {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #ffa726;
  animation: ninja-tool-narration-dot 1s ease-in-out infinite;
}
.ninja-tool-narration-indicator > span:nth-child(2) {
  animation-delay: 0.15s;
}
.ninja-tool-narration-indicator > span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes ninja-tool-narration-dot {
  0%, 60%, 100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ninja-tool-narration-indicator > span {
    animation: none;
    opacity: 1;
  }
}
.ninja-tool-modes .ninja-tool-mode--teach {
  padding-right: 0;
  gap: 0;
  overflow: hidden;
}
.ninja-tool-modes .ninja-tool-mode--teach.is-auto {
  border-color: #ef6c00;
  box-shadow: 0 0 0 3px rgba(239, 108, 0, 0.12);
}
.ninja-tool-teach-auto {
  min-height: 34px;
  margin: 3px 5px 3px 0;
  padding: 0 12px;
  border: 1.5px solid #ff9800;
  background: #fff !important;
  color: #424242 !important;
  font-weight: 800;
}
.ninja-tool-teach-auto.is-active {
  border-color: #ef6c00;
  background: #ef6c00 !important;
  color: #fff !important;
}
.ninja-tool-mode-chip__auto {
  color: #ef6c00;
  font-size: 11px;
  font-weight: 800;
  margin-left: 3px;
}
.ninja-tool-print-dialog__hint {
  font-size: 13px;
  color: #607d8b;
  margin: 8px 0;
}
.ninja-tool-mode--teach .q-toggle__label {
  margin-right: 6px;
}
.ninja-tool-mode-status {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}
.ninja-tool-mode-status__activity {
  width: 100%;
  height: 12px;
  margin-top: 2px;
}

/* src/components/ToolStandard/ToolDropdownScroll.css */
.ninja-tool-dropdown__body {
  grid-auto-rows: max-content;
  align-content: start;
  overflow-x: hidden;
}
.ninja-tool-dropdown__body,
.word-parts-options__body {
  max-height: min(330px, 45dvh);
  overflow-y: scroll;
  overscroll-behavior: contain;
}
.ninja-tool-dropdown__body,
.ninja-tool-select-options,
.word-parts-options__body {
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #905d95 #f1edf3;
  touch-action: pan-y;
}
.ninja-tool-dropdown__body::-webkit-scrollbar,
.ninja-tool-select-options::-webkit-scrollbar,
.word-parts-options__body::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 10px;
}
.ninja-tool-dropdown__body::-webkit-scrollbar-track,
.ninja-tool-select-options::-webkit-scrollbar-track,
.word-parts-options__body::-webkit-scrollbar-track {
  background: #f1edf3;
  border-radius: 10px;
}
.ninja-tool-dropdown__body::-webkit-scrollbar-thumb,
.ninja-tool-select-options::-webkit-scrollbar-thumb,
.word-parts-options__body::-webkit-scrollbar-thumb {
  background: #905d95;
  border: 2px solid #f1edf3;
  border-radius: 10px;
}
.ninja-tool-select-options {
  max-height: min(300px, 45dvh) !important;
  overflow-y: scroll;
  overscroll-behavior: contain;
}
@supports selector(::-webkit-scrollbar) {
  .ninja-tool-dropdown__body,
  .ninja-tool-select-options,
  .word-parts-options__body {
    scrollbar-color: auto;
  }
}

/* src/components/EnglishTools/ListenAndSpell.css */
.listen-spell-tool {
  height: 100%;
  min-height: 460px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: white;
  color: #37474f;
  font-family: inherit;
  padding: 14px 22px 8px;
  overflow: hidden;
  outline: none;
}
.listen-spell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
}
.listen-spell-eyebrow {
  text-transform: uppercase;
  color: var(--primary-color, #905d95);
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
}
.listen-spell-header h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 4px 0;
}
.listen-spell-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.listen-spell-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 4px 8px;
}
.listen-spell-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      #67bb6a,
      #63b965);
  color: white;
  padding: 8px 16px;
  font-size: clamp(16px, 1.7vw, 24px);
}
.listen-spell-prompt p {
  margin: 0;
}
.listen-spell-prompt .q-btn {
  color: white;
}
.listen-spell-audio {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 12px 0;
}
.listen-spell-audio .q-btn {
  border: 1px solid #d9c5df;
  background: #f6f0f8;
  padding: 8px 20px;
  font-size: 17px;
}
.listen-spell-answer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px auto;
  max-width: 100%;
  width: 850px;
}
.listen-spell-answer > .q-field,
.listen-spell-answer > div:not(.q-btn) {
  flex: 1;
  min-width: 0;
}
.listen-spell-answer input,
.listen-spell-answer textarea {
  font-size: 28px;
  line-height: 1.4;
}
.listen-spell-answer textarea {
  resize: none;
}
.listen-spell-writing {
  display: block;
  width: 100%;
  height: 150px;
  border: 2px solid #dbc7e0;
  border-radius: 18px;
  background: #fff;
  cursor: crosshair;
}
.listen-spell-feedback {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 850px;
  margin: 12px auto;
  border: 1px solid #d9e5d9;
  background: #f6faf6;
  border-radius: 18px;
  padding: 12px 20px;
  font-size: 20px;
  line-height: 1.45;
}
.listen-spell-correction-model {
  min-width: 0;
  overflow-wrap: anywhere;
}
.listen-spell-correction-model:only-child {
  grid-column: 1 / -1;
}
.listen-spell-correction-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid #d8e4d8;
  text-align: center;
}
.listen-spell-practice-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.listen-spell-correction-actions .listen-spell-hint {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.listen-spell-correction-actions .q-btn {
  font-size: 18px;
  line-height: 1.4;
  padding: 9px 18px;
}
.listen-spell-directions {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}
.listen-spell-directions .listen-spell-hint {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.listen-spell-directions > .q-btn {
  flex: none;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}
.listen-spell-practice-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0;
  padding: 8px 24px;
  border-radius: 999px;
  color: white;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}
.listen-spell-practice-feedback.is-incorrect {
  background: #d32f2f;
}
.listen-spell-practice-feedback.is-correct {
  background: #43a047;
}
.listen-spell-practice-action,
.listen-spell-retry-action {
  border: 1px solid #ccb2d2;
  border-radius: 999px;
  background: white;
  max-width: 100%;
}
.listen-spell-retry-action {
  margin-top: 4px;
}
.listen-spell-reveal-label {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.listen-spell-spelling {
  font-size: 40px;
  white-space: pre-wrap;
  line-height: 1.3;
}
.listen-spell-spelling .is-missed {
  background: #ffe0a0;
  color: #6c4300;
  border-bottom: 3px solid #ffa726;
}
.listen-spell-correct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #43a047;
  border-radius: 999px;
  padding: 10px 34px;
  color: white;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(67, 160, 71, 0.25);
}
.listen-spell-practice {
  border-top: 1px solid #d8e4d8;
  margin-top: 8px;
  padding-top: 8px;
}
.listen-spell-practice p {
  margin: 4px 0;
}
.listen-spell-practice-target {
  font-size: 32px;
  line-height: 1.25;
  white-space: pre-wrap;
}
.listen-spell-practice-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}
.listen-spell-practice-attempt {
  font-size: 20px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.listen-spell-practice-result .listen-spell-practice-feedback {
  font-size: 22px;
  padding: 7px 20px;
}
.listen-spell-practice-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.listen-spell-practice-entry > .q-field {
  flex: 1 1 100%;
  min-width: 0;
}
.listen-spell-practice-entry input {
  font-size: 26px;
}
.listen-spell-part {
  font: inherit;
  border: 1px solid #cdb8d3;
  border-radius: 12px;
  background: white;
  color: #37474f;
  margin: 4px;
  padding: 6px 12px;
  cursor: pointer;
}
.listen-spell-part.is-selected {
  background: #ffe0a0;
  border-color: #ffa726;
}
.listen-spell-hint {
  font-size: 12px;
  color: #64727a;
  margin: 7px 0;
}
.listen-spell-footer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding-top: 4px;
}
.listen-spell-footer nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.listen-spell-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.listen-spell-next {
  justify-self: end;
}
.listen-spell-footer .ninja-tool-question-dots {
  max-width: min(470px, 40vw);
  justify-self: center;
}
.listen-spell-options {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.listen-spell-options > .q-select {
  width: 185px;
}
.listen-spell-preview {
  border: 1px solid #e0d6e4;
  background: #faf8fb;
  border-radius: 20px;
  padding: 10px;
  margin-top: 16px;
}
.listen-spell-preview > .listen-spell-tool {
  height: auto;
  min-height: 0;
}
.listen-spell-preview .listen-spell-body {
  flex: 0 0 auto;
}
.listen-spell-preview .listen-spell-pane {
  height: auto;
  overflow: visible;
  overscroll-behavior: auto;
}
.listen-spell-settings {
  width: min(1100px, 96vw);
  max-width: 96vw !important;
  height: 94vh;
  border-radius: 30px !important;
  border: 1px solid white;
  overflow: hidden;
}
.listen-spell-setup {
  height: 100%;
  min-height: 0;
}
.english-tools-dialog:has(> .listen-spell-setup) {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.listen-spell-setup .ninja-tool-dropdown__body section {
  padding: 8px;
}
.listen-spell-setup .ninja-tool-lesson {
  display: block;
  width: 100%;
  text-align: left;
}
.listen-spell-tool .ninja-tool-dialogue {
  margin: 8px auto;
  max-width: 850px;
  font-size: 18px;
  line-height: 1.45;
}
.listen-spell-tool .ninja-tool-dialogue p {
  margin: 4px 0 0;
}
@media (max-width: 600px) {
  .listen-spell-tool {
    padding: 10px;
    min-height: 430px;
  }
  .listen-spell-header h2 {
    font-size: 20px;
  }
  .listen-spell-audio {
    gap: 8px;
  }
  .listen-spell-audio .q-btn {
    font-size: 14px;
    padding: 5px 10px;
  }
  .listen-spell-footer {
    gap: 5px;
  }
  .listen-spell-footer nav {
    gap: 4px;
  }
  .listen-spell-footer .ninja-tool-question-dots {
    max-width: 150px;
  }
  .listen-spell-options {
    gap: 10px;
  }
  .listen-spell-answer input,
  .listen-spell-answer textarea {
    font-size: 23px;
  }
  .listen-spell-practice-entry {
    flex-wrap: wrap;
  }
  .listen-spell-spelling {
    font-size: 32px;
  }
  .listen-spell-feedback {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
  }
  .listen-spell-correction-actions {
    border-left: 0;
    border-top: 1px solid #d8e4d8;
    padding: 16px 0 0;
  }
  .listen-spell-nav-left {
    gap: 2px;
  }
}
.listen-spell-footer .ninja-tool-question-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
}
.listen-spell-footer .ninja-tool-question-dot {
  width: 16px;
  min-width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: #f44336;
  padding: 0;
  cursor: pointer;
}
.listen-spell-footer .ninja-tool-question-dot.is-answered {
  background: #6dbd45;
}
.listen-spell-footer .ninja-tool-question-dot.is-current {
  box-shadow: 0 0 0 2px white, 0 0 0 8px var(--primary-color, #905d95);
}
.listen-spell-tool button:focus-visible {
  outline: 3px solid #724777;
  outline-offset: 3px;
}
.listen-spell-tool .ninja-tool-dialogue {
  display: block;
}
.listen-spell-body {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-top: 12px;
}
.listen-spell-pane {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 4px 8px;
}
.listen-spell-pane.is-outgoing {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: listen-spell-out 0.28s ease-in both;
}
.listen-spell-pane.is-entering {
  animation: listen-spell-in 0.28s ease-out both;
}
.listen-spell-pane .listen-spell-feedback {
  margin-top: 0;
}
.listen-spell-original {
  margin: 0 0 8px;
  font-size: 20px;
  color: #64727a;
  white-space: pre-wrap;
}
.listen-spell-result {
  position: relative;
  text-align: center;
  margin: 18px 0;
  font-size: 16px;
}
.listen-spell-confetti {
  position: absolute;
  inset: -90px 0 -100px;
  pointer-events: none;
  overflow: hidden;
}
.listen-spell-confetti i {
  position: absolute;
  left: var(--confetti-x);
  top: 0;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--confetti-color);
  opacity: 0;
  animation: listen-spell-confetti-fall 1400ms var(--confetti-delay) ease-out both;
}
@keyframes listen-spell-confetti-fall {
  10%, 85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--confetti-drift), 220px) rotate(450deg);
  }
}
@keyframes listen-spell-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(105%);
    opacity: 0;
  }
}
@keyframes listen-spell-in {
  from {
    transform: translateX(-105%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .listen-spell-confetti {
    display: none;
  }
  .listen-spell-pane.is-outgoing {
    display: none;
    animation: none;
  }
  .listen-spell-pane.is-entering {
    animation: none;
  }
}
.listen-spell-writing-review {
  display: block;
  width: 100%;
  height: 90px;
  margin: 10px 0;
  border-bottom: 1px solid #ded4e2;
}
