/* src/components/ToolStandard/ToolInstructionGate.css */
.ninja-instruction-host {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  container-type: size;
}
.ninja-instruction-host__activity {
  width: 100%;
  height: 100%;
  outline: none;
}
.ninja-instruction-host--math {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ninja-instruction-host--math > .ninja-instruction-host__activity {
  display: contents;
}
.ninja-instruction-host--math:not(.is-instructing) {
  display: contents;
}
.ninja-instruction-host.is-instructing > .ninja-instruction-host__activity {
  pointer-events: none;
  user-select: none;
}
.ninja-instructions-choice.ninja-instructions {
  position: absolute;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.83);
  backdrop-filter: blur(3px);
  border-radius: inherit;
  pointer-events: auto;
}
.ninja-instructions-choice__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
  border: 1px solid #e5e9e7;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(38, 50, 56, 0.1);
}
.ninja-instructions-choice.ninja-instructions button {
  min-height: 52px;
  min-width: 155px;
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  font: inherit;
  font-size: clamp(18px, 3.8cqh, 24px);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.ninja-instructions-choice button:focus-visible {
  outline: 3px solid #ffa726;
  outline-offset: 4px;
}
.ninja-instructions-choice__watch {
  background: #424242;
}
.ninja-instructions-choice__start {
  background: #43a047;
}
.ninja-instructions {
  position: absolute;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3cqh, 28px);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(4px);
  pointer-events: auto;
  color: #263238;
  overflow: auto;
  border-radius: inherit;
}
.ninja-instructions__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3cqw, 36px);
  width: min(100%, 980px);
  max-height: 100%;
}
.ninja-instructions__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-color, #905d95);
  letter-spacing: 0.07em;
}
.ninja-instructions h2 {
  margin: 6px 0 14px;
  font-size: clamp(22px, 4.7cqh, 32px);
  font-weight: 600;
  line-height: 1.2;
}
.ninja-instructions p {
  font-size: clamp(16px, 3.4cqh, 22px);
  line-height: 1.45;
  min-height: 4.4em;
  margin: 0 0 16px;
}
.ninja-instructions button {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
}
.ninja-instructions button:focus-visible {
  outline: 3px solid #ffa726;
  outline-offset: 4px;
}
.ninja-instructions__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 98px;
}
.ninja-instructions__start {
  border: 0;
  background: #43a047;
  color: #fff;
  min-height: 48px;
  min-width: 150px;
  padding: 10px 28px;
  font-size: 20px !important;
  font-weight: 700 !important;
  animation: ninja-instruction-start-pulse 1.25s ease-in-out infinite;
}
.ninja-instructions__replay {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #45684d;
  border: 1px solid #c2d2c7;
  padding: 6px 12px;
  font-size: 13px !important;
}
.ninja-instructions__replay .material-icons {
  font-size: 20px;
}
.ninja-instructions__speech-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 17px;
  font-size: 11px;
  line-height: 1.3;
  color: #607d6a;
  text-align: center;
}
.ninja-instructions__speech-status .material-icons {
  font-size: 16px;
}
.ninja-instructions__watching {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: #607d6a;
  font-size: 14px;
}
.ninja-instructions__example {
  background: #f6faf7;
  border: 1px solid #d8e3dc;
  border-radius: 26px;
  padding: 14px;
  text-align: center;
}
.ninja-instructions__example-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #607d6a;
}
.ninja-instructions__animation {
  display: block;
  width: 100%;
  max-height: 270px;
  overflow: visible;
}
.ninja-instructions__animation {
  font-size: 20px;
}
.ninja-instructions__animation text {
  font-family: inherit;
}
.ninja-instructions__pointer {
  transition: transform 900ms ease;
}
.ninja-instructions__progress {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
}
.ninja-instructions__progress span {
  width: 8px;
  height: 8px;
  background: #dce6df;
  border-radius: 50%;
}
.ninja-instructions__progress .is-current {
  background: #ffa726;
}
.ninja-instructions__progress .is-complete {
  background: #67bb6a;
}
.ninja-instruction-host.is-instructing.is-paused .ninja-instructions *,
.ninja-instruction-host.is-instructing.is-paused .ninja-instructions *::before {
  animation-play-state: paused !important;
}
@keyframes ninja-instruction-start-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  50% {
    transform: scale(1.055);
    box-shadow: 0 0 0 12px rgba(76, 175, 80, 0);
  }
}
@container (max-width:580px) {
  .ninja-instructions__content {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ninja-instructions p {
    min-height: 0;
    margin-bottom: 10px;
    font-size: 16px;
  }
  .ninja-instructions h2 {
    font-size: 22px;
    margin: 4px 0 8px;
  }
  .ninja-instructions__actions {
    flex-direction: row;
    align-items: center;
    min-height: 48px;
    flex-wrap: wrap;
  }
  .ninja-instructions__animation {
    max-height: 170px;
  }
  .ninja-instructions__example {
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ninja-instructions__start {
    animation: none;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3);
  }
  .ninja-instructions__animation *,
  .ninja-instructions__pointer {
    transition: none !important;
  }
}
.ninja-instructions--tool-stage {
  padding: clamp(10px, 2.5cqh, 20px);
}
.ninja-instructions--tool-stage .ninja-instructions__content {
  width: min(100%, 1180px);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.ninja-instructions--tool-stage .ninja-instructions__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  column-gap: 24px;
  flex: none;
}
.ninja-instructions--tool-stage .ninja-instructions__eyebrow,
.ninja-instructions--tool-stage h2,
.ninja-instructions--tool-stage p {
  grid-column: 1;
}
.ninja-instructions--tool-stage h2 {
  font-size: clamp(20px, 4.5cqh, 28px);
  margin: 3px 0 5px;
}
.ninja-instructions--tool-stage p {
  font-size: clamp(14px, 3cqh, 18px);
  min-height: 2.9em;
  margin: 0;
}
.ninja-instructions--tool-stage .ninja-instructions__actions {
  grid-column: 2;
  grid-row: 1 / 4;
  justify-content: center;
  align-items: center;
  min-height: 0;
  gap: 8px;
}
.ninja-instructions--tool-stage .ninja-instructions__example {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 8px;
  background: #fff;
  overflow: auto;
}
.ninja-instructions--tool-stage .ninja-instructions__example-label {
  display: none;
}
.ninja-instructions--tool-stage .ninja-instructions__progress {
  margin-top: auto;
  padding-top: 8px;
  flex: none;
}
.silent-e-demo {
  width: 100%;
  text-align: left;
  pointer-events: none;
}
.silent-e-demo__prompt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 6px 16px;
  border-radius: 999px;
  color: #fff;
  background: #67bb6a;
  font-size: 15px;
}
.silent-e-demo__prompt .material-icons {
  font-size: 20px;
}
.silent-e-demo .spelling-lab-join {
  font-size: 28px;
  padding: 6px 0;
}
.silent-e-demo .spelling-lab-join__part small {
  font-size: 12px;
}
.silent-e-demo .spelling-lab-step-titles {
  margin: 4px 0 8px;
}
.silent-e-demo .spelling-lab-step-title {
  min-height: 34px;
  padding: 6px;
  font-size: 13px;
  border-radius: 16px;
}
.silent-e-demo .spelling-lab-step-panel {
  position: relative;
}
.silent-e-demo .spelling-lab-decisions .spelling-lab-option {
  min-height: 48px;
  font-size: 17px;
}
.silent-e-demo .spelling-lab-option {
  position: relative;
  padding: 10px 18px;
  font-size: 15px;
  line-height: 1.35;
}
.silent-e-demo .spelling-lab-option.is-selected {
  padding: 9px 17px;
}
.silent-e-demo .spelling-lab-reasons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.silent-e-demo .spelling-lab-answer {
  padding: 5px;
}
.silent-e-demo .spelling-lab-answer > .material-icons {
  color: #90a4ae;
  padding: 8px;
}
.silent-e-demo__input {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 65px;
  border: 1px solid #bbb;
  border-radius: 28px;
  padding: 6px 16px;
}
.silent-e-demo__input.is-focused {
  border: 2px solid var(--primary-color, #905d95);
  padding: 5px 15px;
}
.silent-e-demo__input-label {
  display: block;
  font-size: 13px;
  color: #607d8b;
}
.silent-e-demo__typed {
  font-size: 28px;
  line-height: 1.3;
  color: #263238;
}
.silent-e-demo__caret {
  display: inline-block;
  width: 2px;
  height: 27px;
  background: #905d95;
  vertical-align: middle;
}
.silent-e-demo__placeholder {
  color: #607d8b;
  font-size: 14px;
}
.silent-e-demo .spelling-lab-letter-answer {
  position: relative;
}
.silent-e-demo .word-parts-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2f2e9;
  color: #37474f;
  border: 1px solid #cee0d8;
}
.silent-e-demo .spelling-lab-letter-bank {
  min-height: 42px;
  margin-top: 6px;
}
.silent-e-demo__feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #388e3c;
  padding: 8px 0 0;
}
.silent-e-demo__pointer {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: -10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #fff5de;
  border: 2px solid #ffa726;
  border-radius: 50%;
  color: #f18e00;
  box-shadow: 0 2px 6px #0002;
  animation: silent-e-point 650ms ease-out both;
}
.silent-e-demo__pointer .material-icons {
  font-size: 27px;
}
.silent-e-demo__pointer.is-clicking {
  animation: silent-e-click 650ms ease-out both;
}
@keyframes silent-e-point {
  from {
    transform: translate(15px, 15px);
    opacity: 0;
  }
  to {
    transform: translate(0, 0);
    opacity: 1;
  }
}
@keyframes silent-e-click {
  50% {
    transform: scale(0.85);
    box-shadow: 0 0 0 8px #ffa72655;
  }
}
@container (max-width: 580px) {
  .ninja-instructions--tool-stage .ninja-instructions__copy {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 4px 12px;
  }
  .ninja-instructions--tool-stage .ninja-instructions__actions {
    flex-direction: column;
  }
  .ninja-instructions--tool-stage .ninja-instructions__start {
    min-width: 120px;
  }
  .ninja-instructions--tool-stage .ninja-instructions__replay {
    font-size: 11px !important;
    padding: 6px;
  }
  .silent-e-demo .spelling-lab-reasons {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .silent-e-demo__pointer {
    animation: none;
  }
}
.silent-e-demo .silent-e-demo__prompt {
  font-size: 15px;
  min-height: 32px;
}
.silent-e-demo .spelling-lab-step-title {
  font-weight: 600;
}
.silent-e-demo .word-parts-tile {
  position: relative;
}
.ninja-native-demo {
  position: relative;
  flex: 1;
  min-height: 120px;
  width: 100%;
  overflow: hidden;
}
.ninja-native-demo__slide {
  position: absolute;
  width: 960px;
  height: 540px;
  left: 50%;
  top: 50%;
  margin-left: -480px;
  margin-top: -270px;
  transform-origin: center;
  container-type: size;
}
.ninja-native-demo__slide > :first-child {
  width: 100%;
  height: 100%;
}
.ninja-native-demo__shield {
  position: absolute;
  inset: 0;
  z-index: 50;
}
.ninja-native-demo__pointer {
  position: absolute;
  z-index: 40;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid #ff9800;
  border-radius: 50%;
  background: #fff8e1;
  color: #ef8c00;
  transform: translate(-50%, -10%);
  transition: left 0.4s ease, top 0.4s ease;
  pointer-events: none;
}
.ninja-native-demo__pointer .material-icons {
  font-size: 34px;
}
.ninja-native-demo__pointer.is-clicking {
  box-shadow: 0 0 0 7px #ff980026;
}
.ninja-instructions--tool-stage .ninja-instructions__example {
  display: flex;
  flex-direction: column;
}
.ninja-instruction-host.is-paused .ninja-native-demo * {
  animation-play-state: paused !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .ninja-native-demo__pointer {
    transition: none;
  }
}
.ninja-native-demo__activity {
  width: 100%;
  height: 100%;
  position: relative;
}
.ninja-native-demo__activity > :first-child {
  width: 100%;
  height: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .ninja-native-demo *,
  .ninja-native-demo *::before,
  .ninja-native-demo *::after {
    animation: none !important;
    transition: none !important;
  }
  .ninja-native-demo__pointer {
    display: none;
  }
}
.ninja-native-demo :is(.present-fraction-tile-item, .present-unifix-stack, .present-color-tile-item, .present-pattern-block-item, .present-two-color-counter-item, .present-base10-material-item, .present-rekenrek-bead) {
  transition: left 0.65s ease, top 0.65s ease;
}

/* src/components/EnglishTools/SpellingRuleLab.css */
.spelling-lab-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.spelling-lab-controls > .q-select {
  width: 185px;
}
.spelling-lab-preview {
  height: 650px;
  min-height: 450px;
  border: 1px solid #eee;
  overflow: hidden;
}
.spelling-lab-lessons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.spelling-lab-lessons > strong {
  color: var(--primary-color, #905d95);
}
.spelling-lab-settings-dialog {
  width: min(1140px, 96vw);
  max-width: 96vw !important;
  height: 94vh;
  border: 1px solid white;
  border-radius: 30px !important;
  overflow: hidden;
}
.spelling-rule-lab {
  position: relative;
}
.spelling-lab-stage {
  padding: 4px 2px 4px;
}
.spelling-lab-join {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  font-size: clamp(24px, 3vw, 38px);
  padding: 8px 0;
  color: #3e3145;
}
.spelling-lab-join__part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.spelling-lab-join__part small {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  color: #607d8b;
}
.spelling-lab-join__plus {
  align-self: flex-start;
  line-height: 1.2;
}
.spelling-lab-join strong {
  line-height: 1.2;
  border-bottom: 3px solid #b7dcb8;
  padding: 0 10px;
}
.spelling-lab-step-titles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.spelling-lab-step-titles h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.spelling-lab-step-title {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #e2dce4;
  border-radius: 16px;
  background: #faf8fb;
  color: #67757c;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.spelling-lab-step-title.is-current {
  color: var(--primary-color, #905d95);
  background: #f1e6f4;
  border-color: var(--primary-color, #905d95);
}
.spelling-lab-step-title:disabled {
  cursor: default;
}
.spelling-lab-step-title:focus-visible {
  outline: 3px solid #ffa726;
  outline-offset: 2px;
}
.spelling-lab-step-panel {
  min-width: 0;
  max-width: none;
  margin: 0 auto;
  outline: none;
  animation: spelling-lab-slide-forward 240ms ease-out;
}
.spelling-lab-step-panel.is-backward {
  animation-name: spelling-lab-slide-backward;
}
.spelling-lab-decisions,
.spelling-lab-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.spelling-lab-decisions .spelling-lab-option {
  min-height: 60px;
  font-size: 20px;
  text-align: center;
}
@keyframes spelling-lab-slide-forward {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes spelling-lab-slide-backward {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.spelling-lab-option {
  font: inherit;
  font-size: 18px;
  line-height: 1.4;
  padding: 12px 22px;
  border: 1px solid #d8cfdb;
  border-radius: 999px;
  background: #fff;
  color: #37474f;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.spelling-lab-option.is-selected {
  background: #f1e6f4;
  border: 2px solid var(--primary-color, #905d95);
  padding: 11px 21px;
  color: #603568;
}
.spelling-lab-option:disabled {
  cursor: default;
  opacity: 0.58;
}
.spelling-lab-option.is-selected:disabled {
  opacity: 1;
}
.spelling-lab-option:focus-visible {
  outline: 3px solid #ffa726;
  outline-offset: 2px;
}
.spelling-lab-answer {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid #d8cfdb;
  border-radius: 18px;
}
.spelling-lab-answer > .q-input {
  flex: 1;
  min-width: 0;
}
.spelling-lab-answer .q-field__control {
  min-height: 70px;
  height: auto;
}
.spelling-lab-answer .q-field__native {
  font-size: 28px;
  line-height: 1.35;
  min-height: 38px;
}
.spelling-lab-answer .q-field__label {
  font-size: 18px;
}
.spelling-lab-answer > .q-btn {
  flex: none;
}
.spelling-lab-spell-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.spelling-lab-letter-answer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-height: 65px;
}
.spelling-lab-letter-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  min-height: 60px;
  padding: 7px;
  border: 1px dashed #bba7be;
  border-radius: 12px;
}
.spelling-rule-lab .word-parts-tile {
  min-width: 28px;
  min-height: 34px;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 9px;
  touch-action: none;
}
.spelling-lab-letter-answer.is-drop-target,
.spelling-lab-letter-bank.is-drop-target {
  background: #e6f5e7;
  outline: 2px dashed #67bb6a;
}
.spelling-lab-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex: none;
  padding: 6px 0 0;
}
.spelling-lab-footer .word-parts-tool__navigation {
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}
.spelling-lab-footer .ninja-tool-progress {
  max-width: 460px;
}
.spelling-rule-lab .ninja-tool-dialogue {
  margin-top: 12px;
}
.spelling-lab-option[aria-pressed=true] {
  font-weight: 600;
}
@media (max-width: 720px) {
  .spelling-lab-step-titles {
    gap: 5px;
  }
  .spelling-lab-step-title {
    padding: 8px 5px;
    font-size: 12px;
  }
  .spelling-lab-reasons {
    grid-template-columns: 1fr;
  }
  .spelling-lab-join {
    font-size: 28px;
  }
  .spelling-lab-footer {
    gap: 5px;
  }
  .spelling-lab-preview {
    height: 780px;
  }
  .spelling-rule-lab .word-parts-tool__header h2 {
    font-size: 19px;
  }
  .spelling-rule-lab .word-parts-tool__header-actions {
    gap: 0;
  }
  .spelling-rule-lab .word-parts-muted {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spelling-lab-option {
    transition: none;
  }
  .spelling-lab-step-panel {
    animation: none;
  }
}
.spelling-rule-lab .word-parts-tile.is-drop-before {
  box-shadow: -4px 0 0 #67bb6a;
}
