/* 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__message {
  flex-basis: 100%;
  margin: 0;
  color: #a94d00;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}
.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/SpellingDetective.css */
.detective-tool {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  height: 100%;
  padding: 12px 22px 6px;
  background: white;
  color: #37474f;
  outline: none;
  overflow: hidden;
}
.detective-header,
.detective-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
}
.detective-eyebrow {
  color: var(--primary-color, #905d95);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.detective-header h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 3px 0;
}
.detective-header-actions {
  font-size: 14px;
}
.detective-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 2px;
}
.detective-tool .detective-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;
  padding: 8px 16px;
  background:
    linear-gradient(
      135deg,
      #67bb6a,
      #63b965);
  color: white;
  font-size: clamp(16px, 1.7vw, 24px);
}
.detective-prompt p {
  margin: 0;
}
.detective-prompt .q-btn {
  color: white !important;
  flex: none;
}
.detective-counters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 16px;
}
.detective-counters strong {
  padding: 5px 14px;
  border-radius: 999px;
  background: #f2eaf6;
  color: #68406f;
  font-size: 20px;
}
.detective-counters .detective-introduced {
  background: #fff0df;
  color: #994b17;
  font-size: 16px;
}
.detective-passage-card {
  position: relative;
  padding: 18px 54px 18px 20px;
  background: #fff;
  border: 1px solid #d7c8de;
  border-radius: 24px;
  min-height: 96px;
}
.detective-passage {
  font-size: 18px;
  line-height: 1.9;
  white-space: pre-wrap;
  text-align: left;
}
.detective-tool .detective-word {
  display: inline;
  padding: 2px 4px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  border-radius: 8px;
  cursor: pointer;
}
.detective-word.is-selected {
  background: #efe4f4;
  border-color: #905d95;
}
.detective-word.is-fixed {
  color: #287536;
  background: #e6f5e4;
}
.detective-word.is-new-error,
.detective-word.is-attempt-error {
  color: #8b3e10;
  background: #ffe0b2;
  border-bottom-color: #ef8a4c;
}
.detective-word:focus-visible {
  outline: 3px solid #905d95;
  outline-offset: 2px;
}
.detective-word:disabled {
  opacity: 1;
  cursor: default;
}
.detective-read-passage {
  position: absolute !important;
  right: 8px;
  top: 12px;
}
.detective-hint {
  font-size: 14px;
  color: #607080;
  line-height: 1.45;
  margin: 8px 0;
}
.detective-editor {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 20px;
  background: #f7f2f9;
}
.detective-editor > strong {
  flex-basis: 100%;
  font-size: 15px;
}
.detective-replacement {
  width: min(320px, 100%);
}
.detective-replacement .q-field__control {
  border-radius: 22px !important;
}
.detective-replacement input {
  font-size: 23px;
}
.detective-notice {
  padding: 10px 16px;
  border-radius: 16px;
  background: #edf7ec;
  font-size: 17px;
  line-height: 1.4;
}
.detective-notice.is-error {
  background: #fff1df;
  color: #8b3e10;
}
.detective-dialogue {
  font-size: 17px;
  line-height: 1.5;
  padding: 12px 18px;
  margin: 10px 0;
  border-radius: 18px;
  background: #fff8ec;
  border: 1px solid #ffcc80;
}
.detective-dialogue p {
  margin: 4px 0;
  white-space: pre-wrap;
}
.detective-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.detective-feedback {
  padding: 6px 18px;
  border-radius: 999px;
  background: #fff0df;
  color: #8b3e10;
  font-size: 18px;
  font-weight: 700;
}
.detective-feedback.is-correct {
  color: white;
  background: #6dbd45;
}
.detective-feedback.is-neutral {
  color: #37474f;
  background: #edf0f4;
}
.detective-confetti {
  color: #ffa726;
  animation: detective-celebrate 0.8s ease-out both;
  font-size: 25px;
}
@keyframes detective-celebrate {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(-8px);
    opacity: 1;
  }
}
.detective-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-top: auto;
}
.detective-footer nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 10px;
  flex: 1;
}
.detective-footer nav > .q-btn {
  flex: none;
}
.detective-footer .ninja-tool-question-dots {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: auto;
  gap: 10px;
  padding: 10px;
}
.detective-footer .ninja-tool-question-dot {
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  border: 2px solid #ffffff80;
  border-radius: 50%;
  background: #f44336;
  cursor: pointer;
}
.detective-footer .ninja-tool-question-dot.is-answered {
  background: #6dbd45;
}
.detective-footer .ninja-tool-question-dot.is-current {
  border-color: white;
  box-shadow: 0 0 0 8px var(--primary-color, #905d95);
}
.detective-footer button:focus-visible {
  outline: 3px solid #905d95;
  outline-offset: 3px;
}
.detective-options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.detective-options > .ninja-tool-question-count {
  width: 185px;
}
.detective-selected-lessons,
.detective-generation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 12px 0;
}
.detective-punctuation-select {
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
}
.detective-punctuation-select.q-field--outlined .q-field__control {
  border-radius: 20px;
}
.detective-punctuation-select .q-field__control-container,
.detective-punctuation-select .q-field__native {
  min-width: 0;
}
.detective-punctuation-chip {
  min-width: 0;
  max-width: 100%;
  height: 24px;
  margin: 2px;
  padding: 0 4px 0 7px;
  font-size: 14px;
}
.detective-punctuation-chip__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detective-punctuation-chip .q-btn {
  flex: none;
}
.detective-punctuation-options .q-item {
  min-height: 58px;
  font-size: 20px;
}
.detective-punctuation-status {
  font-size: 13px;
  opacity: 0.85;
}
.detective-selected-lessons .q-btn {
  background: #f2eaf6;
  border: 1px solid #d7c8de;
  border-radius: 20px;
  max-width: 100%;
}
.detective-selected-lessons .q-btn__content {
  white-space: normal;
}
.detective-lesson-check {
  display: inline-block;
  width: 24px;
  flex: none;
  font-weight: 700;
}
.detective-generation > .detective-hint {
  flex: 1 1 260px;
}
.detective-generation > .q-field {
  width: 185px;
}
.detective-preview {
  border: 1px solid #e3d9e7;
  border-radius: 22px;
  padding: 12px;
  margin-top: 16px;
}
.detective-preview > .detective-tool {
  height: auto;
  min-height: 440px;
  overflow: visible;
}
.detective-preview .detective-body {
  flex: none;
  overflow: visible;
}
.detective-settings.q-card {
  width: min(1100px, 96vw);
  max-width: 96vw;
  border-radius: 30px;
  border: 1px solid white;
  overflow: hidden;
}
.ninja-native-demo .detective-tool {
  min-height: 0;
  padding: 8px 16px 4px;
}
.ninja-native-demo .detective-tool .detective-body p {
  min-height: 0;
  margin: 4px 0;
  font-size: inherit;
}
.ninja-native-demo .detective-tool .detective-header h2 {
  font-size: 28px;
  margin: 2px 0;
}
.ninja-native-demo .detective-passage {
  font-size: 34px;
}
.ninja-native-demo .detective-passage-card {
  padding: 12px 44px 12px 16px;
}
.ninja-native-demo .detective-counters {
  margin: 6px 0;
}
.ninja-native-demo .detective-editor {
  padding: 8px;
  margin: 6px 0;
}
.ninja-native-demo .detective-editor > strong {
  display: none;
}
.ninja-native-demo .detective-tool .detective-word {
  font-size: 34px;
}
.ninja-native-demo .detective-tool .detective-prompt {
  font-size: 22px;
  padding: 4px 12px;
}
.ninja-native-demo .detective-tool .detective-correction-dialog__footer .q-btn {
  font-size: 18px;
}
@media (max-width: 650px) {
  .detective-tool {
    padding: 10px 12px 6px;
  }
  .detective-header h2 {
    font-size: 21px;
  }
  .detective-counters {
    gap: 6px;
    font-size: 14px;
  }
  .detective-counters strong {
    font-size: 17px;
  }
  .detective-footer {
    flex-wrap: wrap;
    gap: 2px;
  }
  .detective-footer nav {
    flex-basis: 100%;
  }
  .detective-passage-card {
    padding: 12px 40px 12px 12px;
  }
  .detective-passage {
    font-size: 18px;
  }
  .detective-editor {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .detective-confetti {
    animation: none;
  }
}
.detective-guide-correction {
  padding: 14px 20px;
  margin: 12px 0;
  border: 1px solid #e8b98d;
  border-radius: 20px;
  background: #fffaf5;
}
.detective-guide-correction > strong {
  font-size: 18px;
}
.detective-correction-label {
  display: block;
  color: #6c4a2d;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}
.detective-correction {
  font-size: 26px;
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 6px 0;
}
.detective-correction .is-missed {
  color: inherit;
  background: #ffe0cc;
  border-bottom: 2px solid #ef8a4c;
}
.detective-correction-dialog.q-card {
  display: flex;
  flex-direction: column;
  width: min(640px, 94vw);
  max-width: 94vw;
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid white;
  border-radius: 30px;
}
.detective-correction-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.detective-correction-dialog__footer {
  display: flex;
  flex: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e5dfe8;
  background: white;
}
.detective-correction-dialog__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.detective-correction-dialog__footer .detective-apply {
  color: var(--primary-color, #8f5d95);
}
.detective-correction-dialog .detective-editor {
  margin: 16px;
  padding: 16px;
}
.detective-correction-dialog .detective-notice,
.detective-correction-dialog .detective-guide-correction {
  margin: 16px;
}
.detective-correction-dialog .detective-replacement {
  width: 100%;
  flex-basis: 100%;
}
.detective-result {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 100%;
  gap: 10px;
}
.detective-dialog-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #26323866;
}
.ninja-native-demo .detective-tool {
  position: relative;
}
.ninja-native-demo .detective-correction-dialog {
  max-height: 95%;
}
.ninja-native-demo .detective-correction-dialog .detective-editor > strong {
  display: block;
}
.detective-dialog-keyboard.word-parts-tool {
  display: contents;
  color: inherit;
  font-family: inherit;
}
