.child-flow-home .quest-node-label strong,
.child-flow-home .quest-node-label small,
.child-flow-home .quest-node-label span {
  display: block;
}

.child-flow-home .quest-node-label strong {
  color: #14241b;
  font-size: 18px;
  line-height: 1.08;
}

.child-flow-home .quest-node-label small {
  margin-top: 3px;
  color: #5f7168;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.child-flow-home .quest-node-label span {
  margin-top: 3px;
}

.child-flow-home .free-card.free-vocab,
.child-flow-home .free-card.vocab { background: linear-gradient(180deg, #8bd15b, #55b83f); }

.child-flow-home .free-card.free-reading,
.child-flow-home .free-card.reading { background: linear-gradient(180deg, #ffbb45, #f3981e); }

.child-flow-home .free-card.free-listening,
.child-flow-home .free-card.listening { background: linear-gradient(180deg, #51b8ff, #2c8fe2); }

.child-flow-home .free-card.free-writing,
.child-flow-home .free-card.writing { background: linear-gradient(180deg, #9867f0, #734fd6); }

.child-flow-home .free-card.free-speaking,
.child-flow-home .free-card.speaking { background: linear-gradient(180deg, #ff6a6f, #e34b51); }

.child-flow-home .free-card.free-mock,
.child-flow-home .free-card.mock { background: linear-gradient(180deg, #58d4d2, #24aeb2); }

.quest-mistake-quest {
  width: min(100%, 640px);
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 18px 0 4px;
  padding: 14px 18px;
  border: 2px solid #ff9600;
  border-radius: 22px;
  color: #14241b;
  background: #fff7df;
  box-shadow: 0 8px 0 rgba(255, 150, 0, 0.22);
  text-align: left;
  cursor: pointer;
}

.quest-mistake-quest b {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 16px;
  color: #ffffff;
  background: #ff9600;
  font-size: 18px;
  font-weight: 1000;
}

.quest-mistake-quest span {
  color: #5f7168;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.child-flow-home .quest-task div strong {
  font-size: 20px;
}

.child-flow-home .quest-task div span {
  overflow-wrap: anywhere;
}

.child-flow-home .quest-node.listening .quest-orb,
.child-flow-home .quest-task.listening .quest-task-num {
  background: linear-gradient(180deg, #50c8ff, #1cb0f6);
}

.child-flow-home .quest-node.sentence .quest-orb,
.child-flow-home .quest-task.sentence .quest-task-num {
  background: linear-gradient(180deg, #9b74ff, #7c4ee6);
}

.child-flow-home .quest-node.reading .quest-orb,
.child-flow-home .quest-task.reading .quest-task-num {
  background: linear-gradient(180deg, #ffbd42, #ff9600);
}

.boss-flow-reading-mode .boss-flow-grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.62fr) minmax(230px, 0.5fr);
  align-items: start;
}

.boss-flow-reading-mode .boss-flow-question {
  min-height: auto;
}

.boss-flow-reading-mode .boss-flow-question-head h1 {
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.08;
}

.boss-flow-passage-scroll {
  max-height: 260px;
  overflow: auto;
  margin-top: 18px;
  padding: 18px;
  border: 2px solid #cfe9ff;
  border-radius: 18px;
  background: #f1faff;
}

.boss-flow-reading-mode .boss-flow-reading-panel {
  max-height: clamp(280px, 42vh, 520px);
  overflow: auto;
}

.boss-flow-passage-scroll p {
  margin: 0;
  color: #40584b;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.55;
}

.boss-flow-reading-mode .boss-flow-options {
  grid-template-columns: 1fr;
  margin-top: 18px;
  padding-top: 0;
}

.boss-flow-reading-mode .boss-flow-option {
  min-height: 70px;
  font-size: 20px;
  line-height: 1.35;
}

.boss-flow-reading-mode .boss-flow-boss,
.boss-flow-reading-mode .boss-flow-tools {
  min-height: auto;
}

.boss-flow-reading-mode .boss-flow-avatar {
  height: 132px;
}

.boss-flow-reading-mode .boss-flow-avatar-ring {
  width: 112px;
  height: 112px;
}

.boss-flow-reading-mode .boss-flow-avatar-ring span {
  font-size: 46px;
}

.badge-flow-mobile-next {
  display: none;
}

.badge-flow-v1 .badge-flow-hero h1 {
  max-width: 720px;
}

.placement-result-child .placement-result-child-hero {
  grid-template-columns: minmax(0, 1fr) 160px;
}

.placement-result-next-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f4fbef;
}

.placement-result-next-line strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  background: #58cc02;
  font-size: 14px;
  font-weight: 1000;
}

.placement-result-next-line span {
  color: #40584b;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.placement-result-start-now {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 14px;
  align-items: center;
  border-color: rgba(88, 204, 2, 0.36);
  background: linear-gradient(135deg, #ffffff, #f1ffe8);
}

.placement-result-start-now strong,
.placement-result-start-now span {
  display: block;
}

.placement-result-start-now strong {
  font-size: 24px;
  font-weight: 1000;
}

.placement-result-start-now span {
  margin-top: 4px;
  color: #5f7168;
  font-size: 15px;
  font-weight: 900;
}

.placement-result-start-now button {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: #58cc02;
  box-shadow: 0 6px 0 #46a302;
  font-size: 18px;
  font-weight: 1000;
  cursor: pointer;
}

.ket-sentence-route .quest-shell {
  max-width: 1180px;
}

.ket-sentence-route .quest-topbar {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.ket-sentence-route .ket-route-back {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 16px;
}

.ket-route-mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
  align-items: stretch;
}

.ket-sentence-main {
  min-height: 440px;
  display: grid;
  align-content: center;
  gap: 18px;
  border-color: rgba(124, 78, 230, 0.24);
  background: linear-gradient(135deg, #ffffff 0%, #f7f2ff 64%, #effcf5 100%);
}

.ket-route-kicker {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: #7c4ee6;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0;
}

.ket-sentence-main h1 {
  max-width: 780px;
  margin: 0;
  color: #14241b;
  font-size: 44px;
  line-height: 1.18;
  font-weight: 1000;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.ket-sentence-cn {
  margin: 0;
  color: #40584b;
  font-size: 24px;
  line-height: 1.42;
  font-weight: 950;
}

.ket-sentence-audio {
  width: fit-content;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  background: #1cb0f6;
  box-shadow: 0 7px 0 #1689c0;
  font-size: 18px;
  font-weight: 1000;
  cursor: pointer;
}

.ket-sentence-audio span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1cb0f6;
  background: #ffffff;
  font-size: 16px;
}

.ket-route-progress {
  max-width: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.ket-route-progress div {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9efd0;
}

.ket-route-progress div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #58cc02, #1cb0f6);
}

.ket-route-progress small {
  color: #5f7168;
  font-size: 14px;
  font-weight: 1000;
}

.ket-sentence-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.ket-sentence-side h2 {
  margin: 0;
  color: #14241b;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 1000;
}

.ket-grammar-chip {
  padding: 14px 16px;
  border: 2px solid rgba(124, 78, 230, 0.18);
  border-radius: 18px;
  color: #4d329b;
  background: #f4efff;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.ket-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ket-keyword-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #40584b;
  background: #f1faff;
  font-size: 14px;
  font-weight: 900;
}

.ket-mini-goals {
  display: grid;
  gap: 10px;
}

.ket-mini-goals div {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f6fbf3;
}

.ket-mini-goals b {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: #58cc02;
  font-size: 15px;
  font-weight: 1000;
}

.ket-mini-goals span {
  color: #40584b;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
}

.ket-route-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.ket-route-actions .btn {
  min-height: 58px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 1000;
}

@media (max-width: 820px) {
  .ket-sentence-route .quest-shell {
    width: 100%;
    padding: 14px;
  }

  .ket-sentence-route .quest-topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .ket-sentence-route .quest-brand {
    min-width: 0;
  }

  .ket-sentence-route .quest-brand strong {
    font-size: 22px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .ket-sentence-route .quest-brand span {
    font-size: 14px;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .ket-sentence-route .quest-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .ket-sentence-route .quest-pill {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .ket-sentence-route .ket-route-back {
    width: 100%;
  }

  .ket-route-mission-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ket-sentence-main {
    min-height: auto;
    padding: 20px;
  }

  .ket-route-kicker {
    font-size: 13px;
  }

  .ket-sentence-main h1 {
    font-size: 30px;
    line-height: 1.18;
  }

  .ket-sentence-cn {
    font-size: 20px;
    line-height: 1.35;
  }

  .ket-sentence-audio {
    width: 100%;
    justify-content: center;
  }

  .ket-sentence-side {
    padding: 20px;
  }

  .ket-sentence-side h2 {
    font-size: 22px;
  }

  .ket-grammar-chip {
    font-size: 17px;
  }

  .ket-route-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .ket-sentence-route .quest-shell {
    padding: 10px;
  }

  .ket-sentence-route .quest-topbar,
  .ket-sentence-main,
  .ket-sentence-side {
    border-radius: 22px;
    padding: 16px;
  }

  .ket-sentence-route .quest-logo {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .ket-sentence-route .quest-brand {
    gap: 10px;
  }

  .ket-sentence-route .quest-brand strong {
    font-size: 20px;
  }

  .ket-sentence-route .quest-stats {
    grid-template-columns: 1fr;
  }

  .ket-sentence-main h1 {
    font-size: 26px;
  }

  .ket-sentence-cn {
    font-size: 18px;
  }

  .ket-route-progress {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ket-route-progress small {
    justify-self: end;
  }

  .ket-mini-goals div {
    min-height: 50px;
  }

  .ket-route-actions .btn {
    min-height: 54px;
    font-size: 17px;
  }
}

.placement-result-details summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 1000;
}

.placement-result-details .placement-result-grid {
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .boss-flow-reading-mode .boss-flow-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .boss-flow-reading-mode .boss-flow-tools {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .child-flow-home .quest-path {
    gap: 8px;
  }

  .child-flow-home .quest-node {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .child-flow-home .quest-node-label strong {
    font-size: 18px;
  }

  .quest-mistake-quest {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quest-mistake-quest b {
    justify-content: center;
  }

  .boss-flow-reading-mode .boss-flow-grid,
  .boss-flow-reading-mode .boss-flow-bottom,
  .boss-flow-reading-mode .boss-flow-tools {
    grid-template-columns: 1fr;
  }

  .boss-flow-passage-scroll {
    max-height: none;
  }

  .boss-flow-reading-mode .boss-flow-reading-panel {
    max-height: none;
  }

  .boss-flow-passage-scroll p {
    font-size: 18px;
  }

  .boss-flow-reading-mode .boss-flow-question-head h1 {
    font-size: clamp(30px, 9.8vw, 44px);
  }

  .badge-flow-mobile-next {
    display: block;
  }

  .badge-flow-desktop-next {
    display: none;
  }

  .placement-result-child .placement-result-child-hero,
  .placement-result-start-now,
  .placement-result-next-line {
    grid-template-columns: 1fr;
  }

  .placement-result-start-now button {
    width: 100%;
  }
}
