:root {
  --paper: #f5efe4;
  --paper-light: #fffdf8;
  --ink: #101817;
  --muted: #696b66;
  --navy: #071f2d;
  --navy-light: #12394a;
  --accent: #0f6244;
  --gold: #f0c66b;
  --green: #1f6e55;
  --line: rgba(16, 24, 23, 0.16);
  --serif: "Times New Roman", "Songti SC", SimSun, serif;
  --sans: Arial, "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.94), transparent 33rem),
    linear-gradient(145deg, var(--paper), #ede4d7);
  font-family: var(--serif);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

button,
input,
textarea,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

.flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.flow-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.flow-brand img { width: 46px; height: 46px; border-radius: 13px; }
.flow-brand span { display: grid; }
.flow-brand strong { font: 700 22px/1 var(--sans); letter-spacing: -0.04em; }
.flow-brand small { margin-top: 5px; color: var(--muted); font-size: 12px; letter-spacing: 0.18em; }

.flow-header-actions { display: flex; align-items: center; gap: 22px; }
.flow-header-actions > a { color: var(--ink); font: 700 14px var(--sans); text-decoration: none; }

.language-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.language-toggle button {
  min-width: 48px;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: 700 13px var(--sans);
  cursor: pointer;
}

.language-toggle button.active { color: #fff; background: var(--ink); }

.flow-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(50px, 7vw, 92px) 0 90px;
}

.flow-stage { animation: stage-in 400ms ease both; }

@keyframes stage-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.flow-intro,
.result-intro { max-width: 880px; margin-bottom: 42px; }

.flow-kicker {
  margin: 0;
  color: var(--accent);
  font: 700 13px/1.3 var(--sans);
  letter-spacing: 0.18em;
}

.flow-intro h1,
.result-intro h1 {
  margin: 14px 0 20px;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.flow-intro h1 span,
.flow-intro h1 em { display: block; }
.flow-intro h1 em { color: var(--accent); font-weight: 700; }

.flow-intro > p:last-child,
.result-intro > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font: 20px/1.55 var(--sans);
}

.spark-form {
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid rgba(16, 24, 23, 0.12);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 28px 80px rgba(45, 37, 28, 0.13);
}

.spark-heading,
.words-heading,
.coach-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.spark-heading > div { display: grid; gap: 7px; }
.spark-heading span,
.words-heading span,
.coach-progress > span,
.coach-context > span {
  color: var(--accent);
  font: 700 12px var(--sans);
  letter-spacing: 0.17em;
}

.spark-heading strong { font-size: clamp(27px, 3.1vw, 42px); line-height: 1; }
.spark-heading > b { padding: 10px 15px; border-radius: 999px; color: var(--green); background: #e9f4ed; font: 700 12px var(--sans); letter-spacing: 0.13em; }

.spark-upload {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  margin-top: 28px;
  overflow: hidden;
  border: 2px dashed rgba(7, 31, 45, 0.32);
  border-radius: 22px;
  text-align: center;
  background:
    linear-gradient(rgba(248, 244, 235, 0.8), rgba(248, 244, 235, 0.88)),
    url("assets/hero-en-art-to-story-triptych-v1.jpg") center / cover;
  cursor: pointer;
}

.spark-upload input { position: absolute; opacity: 0; }
.spark-upload strong,
.spark-upload small,
.spark-upload-icon { position: relative; z-index: 2; }
.spark-upload strong { display: block; margin-top: -42px; font-size: clamp(32px, 4vw, 52px); line-height: 1; }
.spark-upload small { display: block; margin-top: -104px; color: var(--muted); font: 16px var(--sans); }

.spark-upload-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-top: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font: 38px/1 var(--sans);
}

.spark-upload img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spark-upload.has-image::after { position: absolute; inset: 0; z-index: 1; content: ""; background: linear-gradient(transparent 30%, rgba(3, 18, 26, 0.83)); }
.spark-upload.has-image strong,
.spark-upload.has-image small,
.spark-upload.has-image .spark-upload-icon { color: #fff; }
.spark-upload.has-image strong { align-self: end; margin-bottom: 52px; text-shadow: 0 2px 18px #000; }
.spark-upload.has-image small { align-self: end; margin-bottom: 28px; }
.spark-upload.has-image .spark-upload-icon { align-self: start; background: rgba(15, 98, 68, 0.92); }

.privacy-note,
.speech-note,
.trust-line {
  margin: 12px 0 0;
  color: var(--muted);
  font: 14px/1.45 var(--sans);
}
.beta-photo-note { margin: 10px 0 0; padding: 11px 14px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; color: #23523f; background: #edf6ef; font: 700 12px/1.45 var(--sans); }

.words-heading { margin: 34px 0 12px; }
.words-heading strong { font-size: 20px; }
.words-heading span { color: var(--muted); }
.existing-writing-entry { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; width: 100%; margin-top: 18px; padding: 15px 17px; color: #513d67; border: 1px solid rgba(81,61,103,.22); border-radius: 17px; background: linear-gradient(145deg, #fbf8fc, #f0e8f5); text-align: left; cursor: pointer; transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease; }
.existing-writing-entry:hover { border-color: #75538b; box-shadow: 0 12px 26px rgba(81,61,103,.1); transform: translateY(-2px); }
.existing-writing-entry:focus-visible, .existing-writing-file-control:focus-within { outline: 3px solid rgba(117,83,139,.35); outline-offset: 3px; }
.existing-writing-entry-icon { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; border-radius: 50%; background: #75538b; font-size: 19px; }
.existing-writing-entry span:nth-child(2) { display: grid; gap: 3px; }
.existing-writing-entry strong { font-size: 17px; }
.existing-writing-entry small { color: #6a6270; font: 13px/1.35 var(--sans); }
.existing-writing-entry > b { font-size: 21px; }
.existing-writing-panel { display: grid; gap: 10px; margin-top: 13px; padding: 19px; border: 1px solid rgba(81,61,103,.23); border-radius: 18px; background: linear-gradient(145deg, #fbf8fc, #f1e9f5); }
.existing-writing-panel > div { display: grid; gap: 3px; }
.existing-writing-panel > div span { color: #75538b; font: 700 11px var(--sans); letter-spacing: .13em; }
.existing-writing-panel > div strong { font-size: 22px; }
.existing-writing-file-control { display: inline-flex; align-items: center; gap: 9px; justify-self: start; padding: 10px 13px; color: #513d67; border: 1px solid rgba(81,61,103,.23); border-radius: 12px; background: rgba(255,255,255,.8); font: 700 13px var(--sans); cursor: pointer; }
.existing-writing-file-control span { font-size: 20px; }
.existing-writing-file-control:hover { border-color: #75538b; }
.existing-writing-panel > p { min-height: 16px; margin: -3px 0 0; color: #75538b; font: 12px/1.4 var(--sans); }
.existing-writing-panel > label:not(.existing-writing-file-control) { display: grid; gap: 7px; color: #4c4850; font: 700 12px var(--sans); letter-spacing: .03em; }
.existing-writing-panel textarea { width: 100%; min-height: 190px; resize: vertical; padding: 15px; border: 1px solid rgba(81,61,103,.24); border-radius: 13px; background: #fff; color: var(--ink); font: 17px/1.55 var(--serif); }
.existing-writing-panel textarea:focus { outline: 3px solid rgba(117,83,139,.22); border-color: #75538b; }
.existing-writing-panel > small { color: var(--muted); font: 12px/1.45 var(--sans); }

.voice-field { position: relative; }
.voice-field textarea,
.creator-fields input,
.creator-fields select,
.coach-question-card textarea,
.story-page input,
.story-page textarea {
  width: 100%;
  border: 1px solid rgba(16, 24, 23, 0.2);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.voice-field textarea { min-height: 132px; padding: 20px 120px 20px 20px; resize: vertical; font-size: 21px; line-height: 1.5; }
.voice-field button {
  position: absolute;
  right: 12px;
  top: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(15, 98, 68, 0.25);
  border-radius: 999px;
  color: var(--accent);
  background: #eaf4ee;
  font: 700 15px var(--sans);
  cursor: pointer;
}

.voice-field button.listening { color: #fff; background: var(--accent); }

.personal-photo-consent { margin-top: 16px; padding: 18px; display: grid; gap: 10px; border: 1px solid #b8d5c5; border-radius: 20px; background: #f0f8f3; color: var(--ink); }
.personal-photo-consent > p { margin: 0; color: var(--accent); font: 800 12px/1.2 var(--sans); letter-spacing: .13em; }
.personal-photo-consent h3 { margin: 0; font: 700 22px/1.2 var(--serif); }
.personal-photo-consent > span, .personal-photo-consent small { color: var(--muted); font: 14px/1.5 var(--sans); }
.photo-consent-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0 2px; font: 14px/1.45 var(--sans); }
.photo-consent-check input { margin-top: 3px; accent-color: var(--accent); }
.photo-consent-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-consent-fields label { display: grid; gap: 6px; color: var(--muted); font: 700 12px var(--sans); }
.photo-consent-fields input { width: 100%; min-width: 0; box-sizing: border-box; padding: 12px 14px; border: 1px solid #b8d5c5; border-radius: 12px; background: #fff; color: var(--ink); font: 16px var(--sans); }

.creator-fields { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 28px; }
.creator-fields label { display: grid; gap: 8px; }
.creator-fields label > span { color: var(--muted); font: 700 13px var(--sans); }
.creator-fields input,
.creator-fields select { min-height: 56px; padding: 0 15px; font: 16px var(--sans); }

.studio-route-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 16px 18px;
  color: var(--accent);
  border: 1px solid rgba(15, 98, 68, .23);
  border-radius: 15px;
  background: #eef6f0;
  font-family: var(--sans);
  text-decoration: none;
}
.studio-route-switch span { display: grid; gap: 4px; }
.studio-route-switch strong { font-size: 16px; }
.studio-route-switch small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.studio-route-switch > b { flex: 0 0 auto; font-size: 14px; }

.learning-profile {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(31, 110, 85, 0.25);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(241, 248, 243, 0.92), rgba(255, 253, 248, 0.98));
}

.learning-profile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}

.learning-profile summary::-webkit-details-marker { display: none; }
.learning-profile summary::after { content: "+"; color: var(--green); font: 28px/1 var(--sans); }
.learning-profile[open] summary::after { content: "−"; }
.learning-profile summary > span { display: grid; flex: 1; gap: 5px; }
.learning-profile summary strong { font: 700 19px/1.2 var(--sans); }
.learning-profile summary small { color: var(--muted); font: 14px/1.4 var(--sans); }
.learning-profile summary > b { padding: 8px 11px; border-radius: 999px; color: var(--green); background: #e1f1e7; font: 700 11px var(--sans); letter-spacing: 0.12em; }

.learning-profile-body { padding: 0 20px 22px; border-top: 1px solid rgba(31, 110, 85, 0.17); }
.learning-profile-intro { margin: 20px 0; }
.learning-profile-intro > div { display: flex; align-items: flex-start; gap: 12px; }
.learning-profile-intro > div > span { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--green); font: italic 700 17px var(--serif); }
.learning-profile-intro p { margin: 0; }
.learning-profile-intro strong,
.learning-profile-intro small { display: block; }
.learning-profile-intro strong { font: 700 16px/1.3 var(--sans); }
.learning-profile-intro small { margin-top: 4px; color: var(--muted); font: 13px/1.5 var(--sans); }
.learning-profile-intro > p { margin-top: 13px; padding: 11px 13px; border-radius: 11px; color: #635845; background: #f5eadc; font: 13px/1.45 var(--sans); }

.map-basics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.map-basics label,
.map-goals label { display: grid; gap: 7px; }
.map-basics label > span,
.map-goals label > span { color: var(--muted); font: 700 12px/1.35 var(--sans); }
.map-basics input,
.map-basics select,
.map-goals select,
.map-goals textarea,
.map-domain input {
  width: 100%;
  border: 1px solid rgba(16, 24, 23, 0.2);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font: 15px var(--sans);
}
.map-basics input,
.map-basics select,
.map-goals select { min-height: 48px; padding: 0 12px; }
.map-basics input[readonly] { color: var(--muted); background: rgba(255, 255, 255, 0.55); }

.map-domains { margin: 20px 0 0; padding: 0; border: 0; }
.map-domains legend { width: 100%; margin-bottom: 10px; }
.map-domains legend span,
.map-domains legend small { display: block; }
.map-domains legend span { font: 700 15px var(--sans); }
.map-domains legend small { margin-top: 4px; color: var(--muted); font: 12px/1.4 var(--sans); }
.map-domain-head,
.map-domain { display: grid; grid-template-columns: minmax(190px, 1fr) 94px 94px; gap: 9px; align-items: center; }
.map-domain-head { padding: 0 0 7px; color: var(--muted); font: 700 10px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.map-domain-head span:not(:first-child) { text-align: center; }
.map-domain { padding: 9px 0; border-top: 1px solid rgba(16, 24, 23, 0.09); }
.map-domain > span { font: 14px/1.3 var(--sans); }
.map-domain input { min-height: 42px; padding: 0 9px; text-align: center; }
.map-goals { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 12px; margin-top: 20px; }
.map-goals textarea { min-height: 90px; padding: 12px; resize: vertical; line-height: 1.45; }
.learning-profile-status { min-height: 18px; margin: 12px 0 0; color: #a2261b; font: 700 13px var(--sans); }

.guardian-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 15px; border-radius: 14px; background: #f5eadc; font: 15px/1.45 var(--sans); }
.guardian-check input { width: 20px; height: 20px; margin: 0; }
.form-message { min-height: 22px; margin: 14px 0 0; color: #a2261b; font: 700 14px var(--sans); }

.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-height: 68px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  text-decoration: none;
  font: 700 19px var(--sans);
  cursor: pointer;
}

.primary-action { color: #fff; background: var(--accent); box-shadow: 0 15px 30px rgba(15, 98, 68, 0.22); }
.primary-action b,
.secondary-action b { font-size: 28px; }
.secondary-action { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.trust-line { text-align: center; }

.coach-progress { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.coach-progress strong { font: 700 17px var(--sans); }
.coach-progress strong b { color: var(--accent); font-size: 25px; }
.coach-layout { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); gap: 24px; }

.coach-context,
.coach-question-card {
  border-radius: 27px;
  box-shadow: 0 26px 70px rgba(35, 29, 22, 0.13);
}

.coach-context {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 590px;
  overflow: hidden;
  padding: 34px;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
}

.coach-context::after { position: absolute; inset: 0; content: ""; background: linear-gradient(transparent 35%, rgba(3, 18, 26, 0.9)); }
.coach-context img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coach-context > span,
.coach-context > p { position: relative; z-index: 1; }
.coach-context > span { color: var(--gold); }
.coach-context > p { margin: 14px 0 0; font-size: 29px; line-height: 1.12; }

.coach-question-card { min-height: 590px; padding: clamp(32px, 5vw, 68px); background: var(--paper-light); }
.coach-mentor-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.yu-mark {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(15, 98, 68, .18);
  border-radius: 30px;
  color: #fff;
  background: radial-gradient(circle at 50% 68%, rgba(242, 203, 112, .42), transparent 39%), linear-gradient(145deg, #fffdf8, #e5f2e8);
  box-shadow: 0 17px 38px rgba(17, 75, 56, .15), inset 0 1px 0 rgba(255, 255, 255, .9);
  font: italic 700 25px var(--serif);
  transform: rotate(-1.5deg);
}
.coach-question-card .yu-mark img { width: 104px; height: 104px; object-fit: contain; transform: translateY(4px); filter: drop-shadow(0 10px 12px rgba(16, 54, 43, .14)); }
.bard-yu-mark { overflow: visible; }
.bard-yu-mark::after { position: absolute; right: -8px; bottom: 17px; z-index: 2; width: 43px; height: 8px; content: ""; border-radius: 999px; background: linear-gradient(90deg, #f4cb70, #a9751e); box-shadow: 0 0 14px rgba(244, 203, 112, .72); transform: rotate(-38deg); transform-origin: right center; }
.bard-yu-mark > span { position: absolute; right: -9px; bottom: -10px; z-index: 3; padding: 5px 8px; border-radius: 999px; color: #fff; background: #0f6244; box-shadow: 0 6px 14px rgba(15, 98, 68, .2); font: 800 8px/1 var(--sans); letter-spacing: .1em; white-space: nowrap; transform: rotate(1.5deg); }
.question-audio-tools { display: grid; gap: 10px; justify-items: end; }
.read-question-button,
.answer-speech-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(15, 98, 68, .24);
  border-radius: 999px;
  color: #0d6547;
  background: #edf7ef;
  box-shadow: 0 8px 22px rgba(19, 86, 63, .08);
  font: 750 13px/1.1 var(--sans);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.read-question-button:hover,
.answer-speech-button:hover { background: #e2f2e6; box-shadow: 0 11px 28px rgba(19, 86, 63, .13); transform: translateY(-1px); }
.read-question-button:focus-visible,
.answer-speech-button:focus-visible,
.auto-read-toggle input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.read-question-button svg,
.answer-speech-button svg { width: 21px; height: 21px; flex: 0 0 auto; }
.read-question-button svg path:first-child { fill: currentColor; stroke: none; }
.read-question-button svg path:not(:first-child),
.answer-speech-button svg path,
.answer-speech-button svg rect { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.read-question-button.is-reading { color: #fff; background: var(--accent); box-shadow: 0 0 0 7px rgba(15, 98, 68, .1); }
.auto-read-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 700 11px/1.25 var(--sans); cursor: pointer; }
.auto-read-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.auto-read-toggle > span { position: relative; width: 39px; height: 23px; flex: 0 0 auto; border: 1px solid rgba(16, 24, 23, .18); border-radius: 999px; background: #e3e5e2; transition: background 180ms ease; }
.auto-read-toggle > span i { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(16, 24, 23, .2); transition: transform 180ms ease; }
.auto-read-toggle input:checked + span { background: var(--accent); }
.auto-read-toggle input:checked + span i { transform: translateX(16px); }
.coach-question-card h1 { margin: 14px 0 18px; font-size: clamp(44px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.045em; }
.coach-question-card > p:not(.flow-kicker):not(.form-message) { color: var(--muted); font: 18px/1.5 var(--sans); }
.coach-answer-field { position: relative; margin-top: 12px; }
.coach-question-card textarea { min-height: 170px; margin: 0; padding: 22px 178px 22px 22px; resize: vertical; font-size: 21px; line-height: 1.5; }
.answer-speech-button { position: absolute; top: 14px; right: 14px; z-index: 1; color: #153e62; border-color: rgba(31, 89, 132, .2); background: #edf4fa; }
.answer-speech-button:hover { background: #e3eff8; }
.answer-speech-button { touch-action: none; user-select: none; -webkit-user-select: none; }
.answer-speech-button.is-listening { min-width: 176px; color: #fff; background: #16845b; box-shadow: 0 0 0 8px rgba(22, 132, 91, .12); animation: answer-listening-pulse 1.5s ease-in-out infinite; }
.answer-speech-time { min-width: 42px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .38); color: inherit; font: 800 12px/1 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.answer-speech-note { display: block; margin: 9px 2px 0; color: var(--muted); font: 12px/1.4 var(--sans); }
@keyframes answer-listening-pulse { 50% { box-shadow: 0 0 0 13px rgba(22, 132, 91, .05); } }

.mentor-revision-stage { overflow: hidden; background: linear-gradient(145deg, #f5f0e5 0%, #eef7ef 52%, #edf4fa 100%); }
.creation-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 24px clamp(22px, 5vw, 56px); border-bottom: 1px solid rgba(16, 74, 54, .12); list-style: none; background: rgba(255,255,255,.48); }
.creation-journey li { position: relative; display: flex; gap: 10px; align-items: center; color: #7a837e; font: 800 11px/1.2 var(--sans); letter-spacing: .11em; }
.creation-journey li:not(:last-child)::after { position: absolute; right: 10px; width: calc(100% - 54px); height: 1px; content: ""; background: rgba(16, 74, 54, .16); transform: translateX(100%); }
.creation-journey b { position: relative; z-index: 1; display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(16, 74, 54, .2); border-radius: 50%; background: #f7f5ed; }
.creation-journey .is-complete { color: var(--accent); }.creation-journey .is-complete b { color: #fff; border-color: var(--accent); background: var(--accent); }
.creation-journey .is-active { color: var(--ink); }.creation-journey .is-active b { color: var(--ink); border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 6px rgba(244, 203, 112, .18); }
.mentor-arrival { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(18px, 4vw, 44px); border-bottom: 1px solid rgba(16, 74, 54, .14); }
.mentor-arrival h1 { max-width: 880px; margin: 12px 0 16px; font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: -.04em; }
.mentor-arrival > div:last-child > p:last-child { max-width: 740px; margin: 0; color: var(--muted); font: 19px/1.5 var(--sans); }
.mentor-turn { position: relative; display: grid; width: 190px; height: 190px; place-items: center; perspective: 900px; }
.mentor-turn::before { position: absolute; inset: 12%; content: ""; border-radius: 50%; background: radial-gradient(circle, rgba(244, 203, 112, .56), rgba(44, 145, 98, .15) 48%, transparent 72%); filter: blur(8px); }
.mentor-turn span { position: absolute; inset: 12px; border: 1px solid rgba(17, 102, 70, .19); border-radius: 48% 52% 45% 55%; animation: mentor-orbit 14s linear infinite; }
.mentor-turn img { position: relative; z-index: 1; width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(19, 74, 56, .22)); transform-origin: center; backface-visibility: hidden; }
.mentor-arrival.is-arriving .mentor-turn img { animation: mentor-turn-arrival 1.05s cubic-bezier(.18,.88,.22,1.18) both; }
.mentor-arrival.is-arriving .mentor-turn::before { animation: mentor-glow-arrival 1.15s ease-out both; }
.mentor-arrival.is-speaking .mentor-turn img { filter: drop-shadow(0 18px 22px rgba(19, 74, 56, .22)) drop-shadow(0 0 12px rgba(244, 203, 112, .52)); }
.mentor-turn-sage img { width: 180px; height: 180px; border-radius: 46%; object-fit: cover; object-position: top center; }
.mentor-workbench { max-width: 940px; margin: 0 auto; padding: clamp(30px, 5vw, 66px); }
.mentor-review-progress { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; color: var(--accent); font: 800 13px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.mentor-review-progress strong { color: var(--ink); font-size: 17px; letter-spacing: 0; }
.mentor-review-progress b { color: var(--accent); font-size: 26px; }
.mentor-original-card { padding: 24px 26px; border: 1px solid rgba(12, 53, 76, .15); border-radius: 22px; background: rgba(255,255,255,.76); box-shadow: 0 18px 54px rgba(32, 56, 45, .08); }
.mentor-original-card small,.mentor-feedback small,.mentor-suggestion > span,.mentor-rehearsal small { display: block; margin-bottom: 8px; color: var(--accent); font: 850 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.mentor-original-card p { margin: 0; color: var(--ink); font: 700 clamp(24px, 3.2vw, 36px)/1.3 var(--serif); }
.mentor-thinking { display: flex; min-height: 92px; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font: 700 15px/1.4 var(--sans); }
.mentor-thinking i { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 20px 0 0 rgba(18, 125, 83, .55), 40px 0 0 rgba(18, 125, 83, .22); animation: mentor-thinking 1.1s ease-in-out infinite; }
.mentor-thinking span { margin-left: 40px; }
.mentor-feedback { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.mentor-feedback > div { min-height: 150px; padding: 19px; border: 1px solid rgba(17, 102, 70, .14); border-radius: 18px; background: rgba(255,255,255,.68); }
.mentor-feedback p { margin: 0; color: #31413c; font: 15px/1.55 var(--sans); }
.grammar-lab-stage { max-width: 980px; }
.grammar-lab-intro { max-width: 760px; }
.grammar-lab-intro h1 { margin: 10px 0 16px; font-size: clamp(38px, 6vw, 72px); line-height: .98; }
.grammar-lab-intro > p:last-child { color: var(--muted); font: 18px/1.55 var(--sans); }
.grammar-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 18px; }
.grammar-goal-card { padding: 22px; border: 1px solid rgba(17, 102, 70, .18); border-radius: 22px; background: rgba(255,255,255,.76); }
.grammar-goal-card.is-primary { border-color: var(--accent); background: rgba(226, 242, 231, .9); box-shadow: 0 14px 34px rgba(17, 102, 70, .1); }
.grammar-goal-card small,.grammar-example-card small { color: var(--accent); font: 850 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.grammar-goal-card h2 { margin: 14px 0 10px; font-size: clamp(24px, 3vw, 34px); }
.grammar-goal-card p,.grammar-practice { margin: 0; color: #42524d; font: 16px/1.55 var(--sans); }
.grammar-example-card { margin: 18px 0; padding: 24px; border: 1px solid rgba(17, 102, 70, .16); border-radius: 22px; background: #fffdf8; }
.grammar-example-card p { margin: 12px 0 0; font: 700 clamp(21px, 3vw, 30px)/1.45 var(--serif); }
.grammar-practice { max-width: 720px; margin: 18px 0 24px; }
.grammar-confirm { width: min(100%, 420px); }
.mentor-suggestion { display: block; margin-top: 22px; }
.mentor-suggestion textarea { width: 100%; min-height: 126px; padding: 19px; border: 2px solid rgba(18, 125, 83, .24); border-radius: 18px; color: var(--ink); background: #fff; font: 600 20px/1.5 var(--serif); resize: vertical; box-shadow: 0 15px 42px rgba(20, 66, 50, .08); }
.mentor-suggestion textarea:focus { outline: 3px solid rgba(244, 203, 112, .65); border-color: var(--accent); }
.mentor-meaning-question { margin: 16px 0 12px; color: var(--ink); font: 700 21px/1.35 var(--serif); }
.mentor-confirm-actions { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; }
.mentor-confirm-actions .secondary-action { justify-content: center; margin: 0; color: #153e62; border-color: rgba(31, 89, 132, .2); background: #edf4fa; }
.mentor-rehearsal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 22px; padding: 22px; border: 1px solid rgba(180, 133, 35, .25); border-radius: 22px; background: linear-gradient(135deg, #fff8df, #f2f8ed); box-shadow: 0 16px 46px rgba(86, 65, 24, .08); }
.mentor-rehearsal > div { grid-column: 1 / -1; }
.mentor-rehearsal p { margin: 0; color: var(--ink); font: 700 24px/1.4 var(--serif); }
.mentor-rehearsal .read-question-button { margin: 0; }
.mentor-rehearsal .primary-action { min-width: 210px; }
.mentor-authorship-note { margin: 18px 0 0; color: var(--muted); text-align: center; font: 12px/1.5 var(--sans); }
.setting-build-card { display: grid; grid-template-columns: minmax(190px,.35fr) minmax(0,1fr); gap: 26px; align-items: start; margin: 0 clamp(24px, 5vw, 64px) clamp(34px, 6vw, 76px); padding: 25px 28px; border: 1px solid rgba(16, 74, 54, .16); border-radius: 22px; background: #0f4b39; box-shadow: 0 24px 54px rgba(15, 75, 57, .14); }
.setting-build-card small { display: block; margin-bottom: 7px; color: #bce7cd; font: 800 11px/1.3 var(--sans); letter-spacing: .14em; }.setting-build-card strong { display: block; color: #fff; font: 700 20px/1.25 var(--serif); }.setting-build-card p { margin: 0; color: rgba(255,255,255,.88); font: 19px/1.6 var(--serif); }
.story-path-stage { overflow: hidden; background: radial-gradient(circle at 82% 22%, rgba(244,203,112,.25), transparent 27%), linear-gradient(150deg, #f7f2e8, #eef6f0 60%, #edf4fa); }
.story-path-intro { max-width: 960px; padding: clamp(42px, 7vw, 82px) clamp(24px, 7vw, 86px) 30px; }.story-path-intro h1 { max-width: 930px; margin: 12px 0 20px; font-size: clamp(47px, 6.6vw, 82px); line-height: .98; letter-spacing: -.045em; }.story-path-intro > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font: 18px/1.55 var(--sans); }
.finished-setting { margin: 0 clamp(24px, 7vw, 86px) 34px; padding: 24px 28px; border-left: 4px solid var(--gold); border-radius: 0 18px 18px 0; background: rgba(255,255,255,.7); box-shadow: 0 16px 44px rgba(34,56,45,.07); }.finished-setting small { display: block; margin-bottom: 8px; color: var(--accent); font: 800 11px/1.2 var(--sans); letter-spacing: .14em; }.finished-setting p { margin: 0; color: #27332f; font: 600 20px/1.6 var(--serif); }
.story-output-picker { margin: 0 clamp(24px, 7vw, 86px); padding: 0; border: 0; }.story-output-picker legend { margin-bottom: 15px; color: var(--ink); font: 800 14px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }.story-output-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.story-output-card { position: relative; display: grid; grid-template-columns: 118px minmax(0,1fr); gap: 22px; align-items: center; min-height: 230px; padding: 28px; overflow: hidden; border: 2px solid transparent; border-radius: 26px; cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }.story-output-card:hover { transform: translateY(-3px); }.story-output-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 22px 52px rgba(19, 91, 65, .16); }.story-output-card input { position: absolute; top: 20px; right: 20px; width: 25px; height: 25px; accent-color: var(--accent); }.story-output-card > span:last-child { display: grid; gap: 8px; }.story-output-card small { color: var(--accent); font: 850 10px/1.2 var(--sans); letter-spacing: .15em; }.story-output-card strong { color: var(--ink); font: 700 clamp(31px, 3.2vw, 46px)/1 var(--serif); }.story-output-card em { max-width: 330px; color: var(--muted); font: normal 15px/1.5 var(--sans); }
.output-book { background: linear-gradient(135deg, #fffdf6, #edf6eb); }.output-film { background: linear-gradient(135deg, #f8fbfd, #e5eff8); }.output-card-icon { position: relative; display: block; width: 104px; height: 124px; }
.output-book .output-card-icon i { position: absolute; top: 14px; width: 55px; height: 88px; border: 2px solid #176a4b; background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 7px rgba(23,106,75,.06); }.output-book .output-card-icon i:first-child { right: 50%; border-radius: 12px 2px 2px 12px; transform: rotate(-7deg); transform-origin: right bottom; }.output-book .output-card-icon i:last-child { left: 50%; border-radius: 2px 12px 12px 2px; transform: rotate(7deg); transform-origin: left bottom; }
.output-film .output-card-icon { width: 108px; height: 86px; margin-top: 18px; border: 3px solid #245d85; border-radius: 12px; background: rgba(255,255,255,.55); }.output-film .output-card-icon::before,.output-film .output-card-icon::after { position: absolute; left: 8px; right: 8px; height: 8px; content: ""; background: repeating-linear-gradient(90deg, #245d85 0 9px, transparent 9px 17px); }.output-film .output-card-icon::before { top: 7px; }.output-film .output-card-icon::after { bottom: 7px; }.output-film .output-card-icon i { position: absolute; top: 29px; width: 12px; height: 24px; border-radius: 2px; background: #f1c862; }.output-film .output-card-icon i:nth-child(1) { left: 20px; }.output-film .output-card-icon i:nth-child(2) { left: 46px; }.output-film .output-card-icon i:nth-child(3) { left: 72px; }
.story-path-continue { width: calc(100% - clamp(48px, 14vw, 172px)); margin: 26px clamp(24px, 7vw, 86px) 0; }.story-path-continue:disabled { cursor: not-allowed; opacity: .42; }.story-path-promise { margin: 14px clamp(24px, 7vw, 86px) clamp(38px, 6vw, 70px); color: var(--muted); text-align: center; font: 12px/1.5 var(--sans); }
.chinese-book-style { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px clamp(24px, 7vw, 86px) 0; padding: 20px; border: 1px solid rgba(16,74,54,.16); border-radius: 20px; background: rgba(255,255,255,.64); }.chinese-book-style[hidden] { display: none; }.chinese-book-style legend { grid-column: 1/-1; padding: 0 6px; color: var(--ink); font: 700 16px/1.3 var(--sans); }.chinese-book-style label { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #fff; cursor: pointer; }.chinese-book-style input { accent-color: var(--accent); }.chinese-book-style span { display: grid; gap: 3px; }.chinese-book-style b { font: 700 15px var(--sans); }.chinese-book-style small { color: var(--muted); font: 12px var(--sans); }
@keyframes mentor-turn-arrival { 0% { opacity: 0; transform: translateX(-58px) rotateY(175deg) scale(.64); } 58% { opacity: 1; transform: translateX(5px) rotateY(-12deg) scale(1.05); } 100% { opacity: 1; transform: translateX(0) rotateY(0) scale(1); } }
@keyframes mentor-glow-arrival { 0% { opacity: 0; transform: scale(.3); } 62% { opacity: 1; transform: scale(1.16); } 100% { opacity: .82; transform: scale(1); } }
@keyframes mentor-orbit { to { transform: rotate(360deg); } }
@keyframes mentor-thinking { 50% { opacity: .38; transform: translateY(-3px); } }

.result-intro h1 { font-size: clamp(48px, 6vw, 78px); }
.result-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.6fr); gap: 24px; align-items: start; }

.story-page {
  overflow: hidden;
  border: 1px solid rgba(16, 24, 23, 0.14);
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: 0 34px 90px rgba(45, 37, 28, 0.16);
}

.story-page-art { position: relative; min-height: 430px; overflow: hidden; background: linear-gradient(145deg, #0b2d3d, #061521); }
.story-page-art::before { position: absolute; inset: 12% 18%; content: ""; border: 1px solid rgba(240, 198, 107, 0.45); border-radius: 50%; }
.story-page-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-page-art span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); font-size: 80px; }
.story-page:not(.no-artwork) .story-page-art span { display: none; }

.story-page-words { padding: clamp(26px, 5vw, 54px); }
.story-page input { padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: clamp(38px, 5vw, 62px); font-weight: 700; line-height: 1; }
.story-page textarea { min-height: 300px; margin-top: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; resize: vertical; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.65; }
.story-page-words > p { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font: 16px var(--sans); }
.story-page-words > p strong { color: var(--ink); }

.result-actions { position: sticky; top: 22px; display: grid; gap: 14px; }
.authorship-card { display: flex; gap: 14px; padding: 20px; border-radius: 18px; color: #fff; background: var(--navy); }
.authorship-card > span { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--navy); background: var(--gold); font: 700 16px var(--sans); }
.authorship-card strong { font: 700 17px var(--sans); }
.authorship-card p { margin: 7px 0 0; color: rgba(255, 255, 255, 0.7); font: 14px/1.5 var(--sans); }
.save-status { min-height: 20px; margin: 0; color: var(--green); font: 700 13px var(--sans); }
.text-action { justify-self: center; padding: 8px; border: 0; color: var(--muted); background: transparent; font: 700 14px var(--sans); text-decoration: underline; cursor: pointer; }

.app-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 18px;
  border-radius: 14px;
  color: #fff;
  background: var(--green);
  font: 14px/1.45 var(--sans);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 180ms ease;
}

.app-toast.show { opacity: 1; transform: none; }
.app-toast.error { background: #9b2f27; }

textarea:focus,
input:focus,
select:focus,
button:focus-visible,
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 820px) {
  .flow-header,
  .flow-main { width: min(100% - 30px, 1180px); }
  .flow-header { min-height: 78px; }
  .flow-brand strong { font-size: 18px; }
  .flow-brand small { display: none; }
  .flow-header-actions { gap: 10px; }
  .flow-header-actions > a { display: none; }
  .language-toggle button { min-width: 43px; min-height: 35px; padding: 0 10px; }
  .flow-main { padding: 38px 0 58px; }
  .flow-intro,
  .result-intro { margin-bottom: 28px; }
  .flow-intro h1,
  .result-intro h1 { margin-top: 11px; font-size: clamp(43px, 13vw, 58px); line-height: 0.97; }
  .flow-intro > p:last-child,
  .result-intro > p:last-child { font-size: 17px; }
  .spark-form { padding: 20px; border-radius: 22px; }
  .spark-heading { align-items: flex-start; }
  .spark-heading strong { font-size: 27px; }
  .spark-upload { min-height: 320px; margin-top: 22px; }
  .spark-upload strong { max-width: 260px; font-size: 33px; }
  .spark-upload small { max-width: 260px; font-size: 14px; }
  .words-heading { align-items: flex-end; }
  .words-heading strong { max-width: 190px; }
  .existing-writing-entry { align-items: start; }
  .voice-field textarea { padding-right: 92px; font-size: 18px; }
  .voice-field button { right: 8px; top: 8px; min-height: 44px; padding: 0 13px; }
  .creator-fields { grid-template-columns: 1fr; }
  .learning-profile summary { align-items: flex-start; padding: 16px; }
  .learning-profile summary > b { display: none; }
  .learning-profile-body { padding: 0 16px 18px; }
  .map-basics,
  .map-goals { grid-template-columns: 1fr; }
  .map-domain-head,
  .map-domain { grid-template-columns: minmax(0, 1fr) 70px 70px; }
  .map-domain > span { font-size: 12px; }
  .coach-layout,
  .result-layout { grid-template-columns: 1fr; }
  .coach-context { min-height: 300px; padding: 24px; }
  .coach-context > p { font-size: 24px; }
  .coach-question-card { min-height: 0; padding: 28px 22px; }
  .coach-mentor-head { display: grid; gap: 15px; margin-bottom: 24px; }
  .yu-mark { width: 88px; height: 88px; border-radius: 24px; }
  .coach-question-card .yu-mark img { width: 82px; height: 82px; }
  .question-audio-tools { width: 100%; justify-items: stretch; }
  .read-question-button { width: 100%; }
  .auto-read-toggle { justify-content: center; }
  .coach-question-card h1 { font-size: clamp(40px, 11vw, 52px); }
  .coach-question-card textarea { min-height: 160px; padding: 18px; }
  .answer-speech-button { position: static; width: 100%; margin-top: 10px; }
  .mentor-arrival { grid-template-columns: 1fr; justify-items: center; padding: 20px 4px 30px; text-align: center; }
  .creation-journey { grid-template-columns: repeat(4, minmax(0,1fr)); padding: 17px 4px; }.creation-journey li { display: grid; justify-items: center; gap: 7px; text-align: center; letter-spacing: .03em; font-size: 9px; }.creation-journey li:not(:last-child)::after { top: 15px; right: -50%; width: 100%; transform: none; }.creation-journey b { width: 28px; height: 28px; }
  .mentor-turn { width: 150px; height: 150px; }
  .mentor-turn img { width: 132px; height: 132px; }
  .mentor-turn-sage img { width: 144px; height: 144px; }
  .mentor-arrival h1 { font-size: clamp(40px, 11vw, 56px); }
  .mentor-workbench { padding: 28px 0 4px; }
  .mentor-feedback { grid-template-columns: 1fr; }
  .mentor-feedback > div { min-height: 0; }
  .grammar-goals { grid-template-columns: 1fr; }
  .mentor-confirm-actions,.mentor-rehearsal { grid-template-columns: 1fr; }
  .mentor-rehearsal > div { grid-column: auto; }
  .mentor-rehearsal .read-question-button,.mentor-rehearsal .primary-action { width: 100%; min-width: 0; }
  .setting-build-card { grid-template-columns: 1fr; gap: 14px; margin: 28px 0 4px; padding: 20px; }.story-path-intro { padding: 34px 0 24px; }.story-path-intro h1 { font-size: clamp(41px, 11vw, 55px); }.finished-setting,.story-output-picker,.story-path-continue,.story-path-promise,.chinese-book-style { width: 100%; margin-left: 0; margin-right: 0; }.story-output-grid,.chinese-book-style { grid-template-columns: 1fr; }.story-output-card { grid-template-columns: 84px minmax(0,1fr); min-height: 180px; padding: 22px 18px; gap: 16px; }.output-card-icon { transform: scale(.76); transform-origin: left center; }.story-output-card strong { font-size: 32px; }
  .story-page-art { min-height: 340px; }
  .story-page input { font-size: 38px; }
  .story-page textarea { min-height: 270px; font-size: 20px; }
  .result-actions { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .read-question-button,
  .answer-speech-button,
  .mentor-turn img,
  .mentor-turn::before,
  .mentor-turn span,
  .mentor-thinking i,
  .auto-read-toggle > span,
  .auto-read-toggle > span i { transition: none; }
  .answer-speech-button.is-listening { animation: none; }
  .mentor-turn img,.mentor-turn::before,.mentor-turn span,.mentor-thinking i { animation: none; }
}

.flow-teacher-publisher-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 20px auto 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 253, 248, .9);
  box-shadow: 0 18px 44px rgba(44, 37, 27, .08);
  text-decoration: none;
}

.flow-teacher-publisher-card > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; color: #fff; background: #21372f; font-size: 23px; }
.flow-teacher-publisher-card small,
.flow-teacher-publisher-card strong,
.flow-teacher-publisher-card p { display: block; }
.flow-teacher-publisher-card small { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.flow-teacher-publisher-card strong { margin-top: 5px; font: 700 23px/1.08 Georgia, "Songti SC", serif; }
.flow-teacher-publisher-card p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.flow-teacher-publisher-card > b { font-size: 24px; }

@media (max-width: 640px) {
  .flow-teacher-publisher-card { grid-template-columns: 46px 1fr auto; gap: 12px; padding: 17px; border-radius: 18px; }
  .flow-teacher-publisher-card > span { width: 46px; height: 46px; }
  .flow-teacher-publisher-card strong { font-size: 19px; }
  .flow-teacher-publisher-card p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
