:root {
  --paper: #f4efe6;
  --paper-deep: #e9e1d4;
  --surface: #fffdf8;
  --surface-soft: #faf5ed;
  --ink: #222821;
  --ink-soft: #3b423a;
  --muted: #747a72;
  --line: rgba(34, 40, 33, 0.11);
  --line-strong: rgba(34, 40, 33, 0.2);
  --green: #3f5d48;
  --green-deep: #26352a;
  --green-soft: #dce7d7;
  --green-pale: #edf2e9;
  --coral: #dd6b54;
  --coral-deep: #b94f3b;
  --coral-soft: #f8ddd5;
  --gold: #edbd56;
  --gold-soft: #f8edcf;
  --blue-soft: #dfe8ea;
  --danger: #b84f3e;
  --shadow-sm: 0 8px 24px rgba(53, 48, 38, 0.07);
  --shadow-md: 0 20px 60px rgba(53, 48, 38, 0.12);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: #dcd6ca; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.82), transparent 36%),
    linear-gradient(135deg, #d9d3c7, #eae5dc 52%, #d7d1c5);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(221, 107, 84, .26);
  outline-offset: 2px;
}
button { border: 0; cursor: pointer; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
[hidden] { display: none !important; }

.app-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}
@media (min-width: 560px) {
  body { padding: 20px 0; }
  .app-shell { min-height: calc(100dvh - 40px); height: calc(100dvh - 40px); border: 1px solid rgba(34,40,33,.1); border-radius: 38px; box-shadow: 0 36px 100px rgba(40,36,28,.22); }
}
.pages { min-height: inherit; }
.page {
  display: none;
  padding: calc(var(--safe-top) + 18px) 18px calc(104px + var(--safe-bottom));
  animation: pageIn .28s ease both;
}
.page.is-active { display: block; }
@keyframes pageIn { from { opacity: .2; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.app-header, .page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 2px 2px 16px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-lockup strong { display: block; font-size: 19px; letter-spacing: .06em; }
.brand-lockup small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .01em; white-space: nowrap; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 39px; height: 39px; flex: 0 0 auto; border-radius: 13px;
  color: #f9f4e8; background: var(--green-deep);
  font-family: "Songti SC", "STSong", serif; font-weight: 800; font-size: 21px;
  transform: rotate(-4deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-mark.small { width: 30px; height: 30px; border-radius: 10px; font-size: 16px; }
.streak-pill {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.62);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.streak-pill .icon { width: 15px; height: 15px; color: var(--coral); stroke-width: 2.2; }
.page-header h1 { margin: 3px 0 0; font-size: 31px; line-height: 1.1; letter-spacing: -.04em; }
.section-kicker { display: block; color: var(--coral-deep); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .55; }
.round-button {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  flex: 0 0 auto; border-radius: 50%; background: var(--green-deep); color: #fffdf8;
  box-shadow: 0 8px 24px rgba(38,53,42,.18); transition: transform .18s ease, background .18s ease;
}
.round-button:active { transform: scale(.94); }
.round-button.quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }

.hero-card {
  position: relative; min-height: 282px; padding: 24px 20px 19px; overflow: hidden;
  border-radius: var(--radius-lg); background: #e8ebe2; border: 1px solid rgba(63,93,72,.1);
  box-shadow: var(--shadow-sm); isolation: isolate;
}
.hero-card::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  right: -58px; top: -72px; background: rgba(255,253,248,.46); z-index: -1;
}
.hero-card::after {
  content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  left: -68px; bottom: -90px; border: 1px solid rgba(63,93,72,.18); z-index: -1;
}
.hero-copy { position: relative; z-index: 2; width: 54%; }
.hero-copy h1 { margin: 11px 0 9px; font-size: 38px; line-height: 1.03; letter-spacing: -.055em; }
.hero-copy h1 em { position: relative; color: var(--green); font-style: normal; }
.hero-copy h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; border-radius: 99px; background: var(--gold); opacity: .52; z-index: -1; transform: rotate(-2deg); }
.hero-copy p { margin: 0; max-width: 210px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.soft-tag { padding: 5px 8px; border-radius: 999px; background: rgba(255,253,248,.7); color: var(--green); font-size: 10px; font-weight: 700; }
.teacher-hero { position: absolute; right: 4px; bottom: -7px; width: 184px; height: 258px; z-index: 1; }
.teacher-portrait {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  border-radius: 75px 0 0 0; mix-blend-mode: multiply;
  filter: saturate(.92) contrast(1.02);
}
.speech-bubble {
  position: absolute; right: 18px; top: 4px; z-index: 3; width: 126px; padding: 9px 11px;
  border: 1px solid rgba(34,40,33,.12); border-radius: 14px 14px 4px 14px;
  background: var(--surface); color: var(--ink-soft); font-size: 10px; line-height: 1.45;
  box-shadow: 0 7px 18px rgba(40,36,28,.08);
}
.speech-bubble::after { content: ""; position: absolute; right: 17px; bottom: -6px; width: 10px; height: 10px; border-right: 1px solid rgba(34,40,33,.12); border-bottom: 1px solid rgba(34,40,33,.12); background: var(--surface); transform: rotate(45deg); }
.teacher-portrait.is-celebrating { animation: teacherBounce .5s cubic-bezier(.2,.8,.2,1); }
@keyframes teacherBounce { 0%,100% { transform: translateY(0) rotate(0); } 32% { transform: translateY(-7px) rotate(1.5deg); } 66% { transform: translateY(1px) rotate(-1deg); } }

.plan-card {
  margin-top: 13px; padding: 20px; border-radius: var(--radius-lg);
  color: #f9f6ed; background: var(--green-deep); box-shadow: 0 18px 42px rgba(35,49,38,.18);
  position: relative; overflow: hidden;
}
.plan-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -88px; bottom: -98px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.plan-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-topline .section-kicker { color: #eab6a8; }
.plan-topline h2 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.01em; }
.method-badge { padding: 5px 8px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: #d9e4d4; font-size: 9px; white-space: nowrap; }
.plan-main { display: flex; align-items: center; gap: 18px; margin: 19px 0 20px; }
.progress-ring {
  --progress: 0; position: relative; width: 102px; height: 102px; flex: 0 0 auto; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--progress) * 1%), rgba(255,255,255,.13) 0);
  display: grid; place-items: center;
}
.progress-ring::before { content: ""; position: absolute; inset: 8px; border-radius: inherit; background: var(--green-deep); }
.progress-ring-inner { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 4px; }
.progress-ring-inner strong { font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.progress-ring-inner span { color: #c7d2c1; font-size: 10px; }
.plan-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.plan-stats div { min-width: 0; }
.plan-stats strong { display: block; font-size: 22px; letter-spacing: -.03em; }
.plan-stats span { display: block; margin-top: 3px; color: #c0cbb9; font-size: 9px; line-height: 1.25; }
.button-stack { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr 1fr; gap: 8px; }
.primary-button, .secondary-button {
  min-height: 50px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 13px; transition: transform .16s ease, filter .16s ease;
}
.primary-button { background: var(--coral); color: #fffaf5; box-shadow: 0 8px 20px rgba(221,107,84,.2); }
.primary-button .icon { width: 17px; height: 17px; }
.primary-button:active, .secondary-button:active { transform: scale(.98); filter: brightness(.98); }
.plan-card .primary-button { background: #f9f4e8; color: var(--green-deep); box-shadow: none; }
.plan-card .secondary-button { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #f4f1e8; }
.button-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 9px; }
.primary-button.compact { min-height: 46px; padding: 0 18px; white-space: nowrap; }
.primary-button.slim, .secondary-button.slim { min-height: 42px; font-size: 12px; padding: 0 14px; }
.secondary-button { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.section-block { margin-top: 25px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 3px 11px; }
.section-heading h2 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.03em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.compact-heading { margin-top: 22px; }
.text-button { display: inline-flex; align-items: center; gap: 1px; padding: 5px 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; }
.text-button .icon { width: 14px; height: 14px; }
.danger-text { color: var(--danger); }
.forecast-card {
  min-height: 105px; padding: 16px 15px 13px; border-radius: var(--radius-md);
  background: rgba(255,253,248,.68); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.forecast-bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; height: 73px; }
.forecast-day { display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; min-width: 0; }
.forecast-value { color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.forecast-bar-track { display: flex; align-items: flex-end; width: 100%; height: 42px; border-radius: 8px 8px 4px 4px; background: rgba(63,93,72,.05); overflow: hidden; }
.forecast-bar { width: 100%; min-height: 3px; border-radius: 7px 7px 4px 4px; background: var(--green); transition: height .35s ease; }
.forecast-day.today .forecast-bar { background: var(--coral); }
.forecast-label { color: var(--muted); font-size: 9px; white-space: nowrap; }
.forecast-day.today .forecast-label { color: var(--coral-deep); font-weight: 800; }
.forecast-card.large { padding: 18px 16px 15px; }
.forecast-card.large .forecast-bars { height: 102px; }
.forecast-card.large .forecast-bar-track { height: 70px; }
.micro-insight {
  display: flex; align-items: flex-start; gap: 11px; margin-top: 14px; padding: 14px 15px;
  border-radius: 18px; background: var(--gold-soft); border: 1px solid rgba(185,139,37,.1);
}
.insight-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 10px; background: rgba(255,253,248,.68); color: #9c6f1e; }
.insight-icon .icon { width: 17px; height: 17px; }
.micro-insight strong { font-size: 12px; }
.micro-insight p { margin: 3px 0 0; color: #6e5a37; font-size: 10px; line-height: 1.55; }

.current-dict-card {
  position: relative; padding: 22px; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #dce8d7, #edf1e8); border: 1px solid rgba(63,93,72,.11);
}
.current-dict-card::after { content: "Aa"; position: absolute; right: 13px; bottom: -21px; color: rgba(63,93,72,.08); font: 800 106px/1 Georgia, serif; }
.current-card-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.current-card-top h2 { margin: 5px 0 4px; font-size: 24px; letter-spacing: -.04em; }
.current-card-top p { margin: 0; max-width: 250px; color: #586357; font-size: 11px; line-height: 1.55; }
.current-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 99px; background: var(--green-deep); color: #fff; font-size: 9px; white-space: nowrap; }
.current-badge .icon { width: 12px; height: 12px; }
.current-progress-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.current-progress-copy { flex: 1; }
.current-progress-copy strong { display: block; margin-bottom: 5px; font-size: 11px; }
.current-progress-track { height: 7px; border-radius: 99px; background: rgba(63,93,72,.13); overflow: hidden; }
.current-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .3s ease; }
.current-progress-num { font-size: 12px; font-weight: 800; white-space: nowrap; }
.current-actions { position: relative; z-index: 1; display: flex; gap: 7px; margin-top: 15px; }
.current-actions button { min-height: 38px; border-radius: 12px; padding: 0 12px; font-size: 10px; font-weight: 800; }
.current-actions .solid { background: var(--green-deep); color: #fff; }
.current-actions .ghost { background: rgba(255,253,248,.62); border: 1px solid rgba(63,93,72,.12); color: var(--green-deep); }
.import-help-card { display: flex; gap: 13px; margin-top: 13px; padding: 17px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.help-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; background: var(--coral-soft); color: var(--coral-deep); }
.help-icon .icon { width: 19px; height: 19px; }
.import-help-card h2 { margin: 0 0 4px; font-size: 14px; }
.import-help-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.import-help-card b { color: var(--ink); }
.inline-link { display: inline-flex; align-items: center; gap: 3px; margin-top: 8px; padding: 0; background: transparent; color: var(--coral-deep); font-size: 10px; font-weight: 800; }
.inline-link .icon { width: 13px; height: 13px; }
.dictionary-list { display: grid; gap: 9px; }
.dictionary-item {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 5px 18px rgba(53,48,38,.04);
}
.dict-color { width: 8px; align-self: stretch; min-height: 48px; border-radius: 99px; background: var(--green); }
.dict-color.clay { background: var(--coral); }
.dict-color.gold { background: var(--gold); }
.dict-color.custom { background: #78909c; }
.dict-main { flex: 1; min-width: 0; }
.dict-main strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dict-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.dict-progress { color: var(--green); font-size: 10px; font-weight: 800; white-space: nowrap; }
.dict-more { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--surface-soft); color: var(--muted); }
.dict-more .icon { width: 15px; height: 15px; }
.format-card { margin-top: 18px; padding: 18px; border-radius: var(--radius-md); background: rgba(255,253,248,.62); border: 1px dashed var(--line-strong); }
.format-card h2 { margin: 0 0 10px; font-size: 13px; }
.format-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 9px; }
.format-row code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; color: var(--green-deep); word-break: break-all; }
.format-row span { color: var(--muted); white-space: nowrap; }
.format-card .secondary-button { width: 100%; margin-top: 10px; }

.date-pill { padding: 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.review-hero { padding: 21px; border-radius: var(--radius-lg); background: var(--coral-soft); border: 1px solid rgba(185,79,59,.08); }
.review-hero .section-kicker { color: var(--coral-deep); }
.review-hero h2 { margin: 5px 0 6px; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
.review-hero p { margin: 0; max-width: 310px; color: #775e57; font-size: 10px; line-height: 1.6; }
.review-hero .primary-button { margin-top: 15px; width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat-card { padding: 14px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.stat-card span { display: block; color: var(--muted); font-size: 9px; white-space: nowrap; }
.stat-card strong { display: inline-block; margin-top: 7px; font-size: 26px; letter-spacing: -.05em; }
.stat-card small { margin-left: 3px; color: var(--muted); font-size: 8px; }
.wrong-list { display: grid; gap: 8px; }
.wrong-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: transform .16s ease, border-color .16s ease; }
.wrong-item:active { transform: scale(.995); border-color: var(--line-strong); }
.wrong-rank { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 9px; background: var(--coral-soft); color: var(--coral-deep); font-size: 10px; font-weight: 800; }
.wrong-main { flex: 1; min-width: 0; }
.wrong-main strong { display: block; font-size: 14px; }
.wrong-main span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrong-count { color: var(--coral-deep); font-size: 10px; font-weight: 800; }
.empty-state { padding: 24px 18px; border-radius: 18px; background: rgba(255,253,248,.5); border: 1px dashed var(--line-strong); text-align: center; }
.empty-state .empty-mark { font-size: 28px; }
.empty-state strong { display: block; margin-top: 6px; font-size: 13px; }
.empty-state p { margin: 5px auto 0; max-width: 250px; color: var(--muted); font-size: 10px; line-height: 1.55; }

.settings-group { margin-bottom: 13px; overflow: hidden; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.settings-heading { padding: 17px 17px 10px; }
.settings-heading h2 { margin: 0; font-size: 15px; }
.settings-heading p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; padding: 12px 17px; border-top: 1px solid var(--line); }
.setting-row > div:first-child { min-width: 0; }
.setting-row strong { display: block; font-size: 12px; }
.setting-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.stepper { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; padding: 3px; border-radius: 12px; background: var(--surface-soft); }
.stepper button { width: 33px; height: 33px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper span { min-width: 31px; text-align: center; font-size: 12px; font-weight: 800; }
.select-row { align-items: flex-start; }
.select-row select { max-width: 168px; }
.field-control {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 13px;
  border: 1px solid var(--line-strong); background: var(--surface-soft); color: var(--ink);
  font-size: 13px; appearance: none; -webkit-appearance: none;
}
select.field-control, .select-row select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px;
}
#settingsDict { min-height: 39px; padding: 8px 30px 8px 11px; border-radius: 11px; font-size: 10px; background-color: var(--surface-soft); }
.switch { position: relative; display: inline-flex; width: 48px; height: 28px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { display: block; width: 48px; height: 28px; padding: 3px; border-radius: 99px; background: #d9d8d1; transition: background .2s ease; }
.switch-track span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: transform .2s ease; }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track span { transform: translateX(20px); }
.learning-mode-card { display: flex; gap: 15px; align-items: center; margin-bottom: 13px; padding: 19px; border-radius: var(--radius-md); background: var(--gold-soft); }
.mode-number { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 auto; border-radius: 17px; background: var(--surface); color: var(--green-deep); font: 800 23px/1 Georgia, serif; transform: rotate(-3deg); }
.learning-mode-card h2 { margin: 3px 0 2px; font-size: 18px; }
.learning-mode-card p { margin: 0; color: #6f5c37; font-size: 10px; line-height: 1.55; }
.settings-action { display: flex; align-items: center; width: 100%; gap: 12px; min-height: 60px; padding: 11px 17px; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.settings-action > .icon:first-child { color: var(--green); }
.settings-action span { flex: 1; }
.settings-action strong { display: block; font-size: 12px; }
.settings-action small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.settings-action .chevron { width: 15px; color: var(--muted); }
.settings-action.danger, .settings-action.danger > .icon:first-child { color: var(--danger); }
.primary-button:disabled, .secondary-button:disabled { opacity: .42; box-shadow: none; cursor: default; }
.dictionary-item { width: 100%; cursor: pointer; text-align: left; transition: border-color .16s ease, transform .16s ease; }
.dictionary-item:active { transform: scale(.995); }
.dictionary-item.is-current { border-color: rgba(63,93,72,.32); background: var(--green-pale); }
.install-card { display: flex; gap: 15px; align-items: center; margin-bottom: 13px; padding: 18px; border-radius: var(--radius-md); background: var(--green-soft); border: 1px solid rgba(63,93,72,.08); }
.install-phone { width: 48px; height: 76px; flex: 0 0 auto; padding: 7px 5px; border: 2px solid var(--green-deep); border-radius: 13px; }
.install-phone span { display: block; height: 100%; border-radius: 7px; background: linear-gradient(180deg, var(--gold-soft) 0 40%, var(--surface) 40%); }
.install-card h2 { margin: 4px 0 4px; font-size: 14px; }
.install-card p { margin: 0; color: #566254; font-size: 9px; line-height: 1.6; }
.danger-group .settings-heading { padding-bottom: 2px; }
.app-footer { padding: 18px 8px 5px; color: var(--muted); text-align: center; font-size: 9px; }
.app-footer .brand-mark { margin-bottom: 7px; }
.app-footer p { margin: 3px 0; }
.tab-bar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 480px);
  padding: 9px 12px calc(9px + var(--safe-bottom));
  background: rgba(255,253,248,.88); border-top: 1px solid rgba(34,40,33,.08);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
@media (min-width: 560px) { .tab-bar { bottom: 20px; border-radius: 0 0 38px 38px; } }
.tab-button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 49px; background: transparent; color: #888d85; font-size: 9px; font-weight: 700; }
.tab-button .icon { width: 21px; height: 21px; }
.tab-button.is-active { color: var(--green-deep); }
.tab-button.is-active::before { content: ""; position: absolute; top: 1px; width: 35px; height: 30px; border-radius: 13px; background: var(--green-soft); z-index: -1; }
.tab-dot { position: absolute; top: 7px; right: calc(50% - 17px); width: 6px; height: 6px; border-radius: 50%; background: var(--coral); border: 1px solid var(--surface); }

.study-screen {
  position: fixed; inset: 0; z-index: 100; width: min(100%, 480px); margin: 0 auto;
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
}
@media (min-width: 560px) { .study-screen { top: 20px; bottom: 20px; border-radius: 38px; box-shadow: var(--shadow-md); } }
.study-header { display: flex; align-items: center; gap: 12px; padding: calc(var(--safe-top) + 14px) 16px 11px; position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--paper) 82%, rgba(244,239,230,0)); }
.study-progress-wrap { flex: 1; min-width: 0; }
.study-progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 9px; }
.study-progress-meta span { color: var(--muted); }
.study-progress-meta strong { font-variant-numeric: tabular-nums; }
.progress-track { height: 6px; border-radius: 99px; background: rgba(34,40,33,.1); overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--coral); transition: width .3s ease; }
.study-main { padding: 9px 17px calc(36px + var(--safe-bottom)); }
.teacher-feedback { display: flex; align-items: flex-end; gap: 9px; margin: 5px 3px 14px; }
.teacher-avatar { width: 48px; height: 48px; flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: #ebe5dc; border: 2px solid var(--surface); box-shadow: 0 4px 12px rgba(40,36,28,.12); }
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 17%; mix-blend-mode: multiply; }
.teacher-message { position: relative; max-width: 280px; padding: 9px 11px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line); }
.teacher-message span { display: block; color: var(--coral-deep); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.teacher-message p { margin: 3px 0 0; font-size: 10px; line-height: 1.5; }
.word-card { position: relative; padding: 21px 21px 19px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.word-card::after { content: ""; position: absolute; right: -55px; top: -55px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid var(--line); }
.word-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; }
#wordPos { padding: 3px 6px; border-radius: 6px; background: var(--green-soft); color: var(--green-deep); font-weight: 800; }
.word-line { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.word-line h1 { margin: 0; font-size: clamp(39px, 10vw, 48px); line-height: 1.05; letter-spacing: -.055em; overflow-wrap: anywhere; }
.sound-button { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); }
.sound-button .icon { width: 18px; height: 18px; }
.phonetic { margin: 5px 0 0; color: var(--muted); font-size: 13px; font-family: "SFMono-Regular", "Arial Unicode MS", sans-serif; }
.question-copy { margin: 18px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; }
.choice-list { display: grid; gap: 9px; margin-top: 13px; }
.choice-button {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 55px; padding: 12px 14px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(53,48,38,.035);
  text-align: left; font-size: 13px; line-height: 1.35; transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.choice-button:active { transform: scale(.99); }
.choice-key { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 9px; font-weight: 800; }
.choice-button.is-selected { border-color: var(--green); background: var(--green-pale); }
.choice-button.is-correct { border-color: #5a7b60; background: #e3eee0; }
.choice-button.is-wrong { border-color: #c76b59; background: #fae5df; animation: nudge .3s ease; }
.choice-button.is-correct .choice-key { background: var(--green); color: #fff; }
.choice-button.is-wrong .choice-key { background: var(--coral); color: #fff; }
.choice-button:disabled { cursor: default; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-4px); } 65% { transform: translateX(3px); } }
.reveal-button { display: block; margin: 14px auto 0; padding: 6px; background: transparent; color: var(--muted); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.answer-card { margin-top: 13px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); animation: answerIn .28s ease both; }
@keyframes answerIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.answer-status { display: flex; align-items: center; gap: 6px; color: var(--coral-deep); font-size: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.answer-status.is-right { color: var(--green); }
.answer-status.is-right .status-dot { background: var(--green); }
.answer-meaning { display: flex; align-items: baseline; gap: 9px; margin-top: 9px; flex-wrap: wrap; }
.answer-meaning span { color: var(--muted); font-size: 12px; }
.answer-meaning strong { font-size: 19px; }
.example { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.55; }
.example-zh { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.next-review { display: flex; align-items: center; gap: 5px; margin-top: 13px; color: var(--green); font-size: 9px; font-weight: 700; }
.next-review .icon { width: 13px; height: 13px; }
.study-next { width: 100%; margin-top: 13px; min-height: 54px; }
.teacher-avatar img.is-happy { animation: teacherBounce .5s ease; }
.teacher-avatar img.is-sad { animation: teacherShake .38s ease; }
@keyframes teacherShake { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-2deg) translateX(-1px); } 70% { transform: rotate(2deg) translateX(1px); } }

.result-screen {
  position: fixed; inset: 0; z-index: 120; width: min(100%, 480px); margin: 0 auto; padding: calc(var(--safe-top) + 26px) 24px calc(26px + var(--safe-bottom));
  display: flex; flex-direction: column; align-items: center; text-align: center; overflow-y: auto;
  background: var(--paper); border-radius: 0;
}
@media (min-width: 560px) { .result-screen { top: 20px; bottom: 20px; border-radius: 38px; box-shadow: var(--shadow-md); } }
.result-screen > img { width: 196px; height: 220px; object-fit: cover; object-position: 50% 16%; margin: 6px 0 7px; border-radius: 70px 70px 22px 22px; mix-blend-mode: multiply; }
.result-screen h1 { max-width: 340px; margin: 6px 0 6px; font-size: 30px; line-height: 1.15; letter-spacing: -.045em; }
.result-screen > p { max-width: 310px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: 22px 0 19px; padding: 16px 8px; border-radius: 21px; background: var(--surface); border: 1px solid var(--line); }
.result-stats div + div { border-left: 1px solid var(--line); }
.result-stats strong { display: block; font-size: 27px; letter-spacing: -.04em; }
.result-stats span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.result-screen .primary-button, .result-screen .secondary-button { width: 100%; }
.result-screen .secondary-button { margin-top: 8px; }
.result-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.result-confetti span { position: absolute; top: -12px; width: 7px; height: 14px; border-radius: 3px; animation: confettiFall 1.8s ease-in both; }
@keyframes confettiFall { to { transform: translateY(760px) rotate(540deg); opacity: .2; } }

.modal-layer { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal-scrim { position: absolute; inset: 0; background: rgba(28,30,26,.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-sheet { position: relative; z-index: 1; width: min(100%, 480px); max-height: 91dvh; overflow-y: auto; border-radius: 30px 30px 0 0; background: var(--paper); box-shadow: 0 -20px 70px rgba(30,28,23,.22); animation: sheetUp .3s cubic-bezier(.2,.8,.2,1) both; }
@media (min-width: 560px) { .modal-layer { align-items: center; padding: 20px; } .modal-sheet { border-radius: 30px; } }
@keyframes sheetUp { from { transform: translateY(30px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 18px 10px; }
.modal-header h1 { margin: 3px 0 0; font-size: 25px; letter-spacing: -.04em; }
.modal-body { padding: 4px 18px 15px; }
.field-label { display: block; margin: 12px 0 6px; color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.import-textarea { min-height: 150px; resize: vertical; line-height: 1.55; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.paste-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 9px; }
.paste-meta .text-button { font-size: 9px; }
.modal-hint { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.modal-footer { position: sticky; bottom: 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; padding: 11px 18px calc(15px + var(--safe-bottom)); background: linear-gradient(rgba(244,239,230,.8), var(--paper) 35%); }
.modal-footer button { min-height: 48px; }
.toast {
  position: fixed; left: 50%; bottom: calc(86px + var(--safe-bottom)); z-index: 300; transform: translate(-50%, 12px);
  max-width: min(84vw, 400px); padding: 10px 14px; border-radius: 99px; background: var(--green-deep); color: #fff;
  box-shadow: 0 10px 30px rgba(38,53,42,.25); font-size: 10px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 370px) {
  .page { padding-left: 14px; padding-right: 14px; }
  .hero-copy h1 { font-size: 34px; }
  .teacher-hero { width: 166px; right: -4px; }
  .speech-bubble { right: 77px; width: 105px; }
  .plan-card { padding: 17px; }
  .plan-main { gap: 11px; }
  .progress-ring { width: 88px; height: 88px; }
  .plan-stats strong { font-size: 19px; }
  .button-stack { grid-template-columns: 1fr; }
  .stat-card { padding: 12px 9px; }
  .stat-card strong { font-size: 22px; }
  .word-line h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}



/* v1.1 · transparent teacher, interactive feedback, and gated daily phases */
.hero-copy { width: 56%; }
.teacher-hero {
  right: 5px; bottom: 0; width: 150px; height: 236px;
  padding: 0; border: 0; background: transparent; box-shadow: none;
  text-align: left; cursor: pointer; transition: transform .2s ease;
}
.teacher-hero:active { transform: scale(.98); }
.teacher-portrait {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  border-radius: 0; mix-blend-mode: normal; filter: drop-shadow(0 10px 12px rgba(51,45,36,.16));
}
.teacher-portrait.is-happy, .teacher-portrait.is-celebrating { animation: teacherJump .55s cubic-bezier(.2,.8,.2,1); }
.teacher-portrait.is-sad { animation: teacherShake .42s ease; }
.teacher-portrait.is-angry { animation: teacherNudge .45s ease; }
.speech-bubble {
  right: 4px; top: 0; width: 128px; min-height: 42px; padding: 8px 10px;
  font-size: 9.5px; border-radius: 13px 13px 4px 13px;
  transform-origin: 85% 100%;
}
.speech-bubble.is-talking { animation: bubblePop .36s cubic-bezier(.2,.9,.25,1); }
.speech-bubble::after { right: 18px; bottom: -6px; }
@keyframes teacherJump {
  0%, 100% { transform: translateY(0) scale(1); }
  38% { transform: translateY(-10px) scale(1.025); }
  68% { transform: translateY(1px) scale(.995); }
}
@keyframes teacherNudge {
  0%,100% { transform: translateX(0) rotate(0); }
  30% { transform: translateX(-4px) rotate(-1deg); }
  65% { transform: translateX(4px) rotate(1deg); }
}
@keyframes bubblePop {
  0% { opacity: .25; transform: scale(.92); }
  70% { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

.plan-main { gap: 13px; margin: 16px 0 12px; align-items: center; }
.progress-ring { width: 88px; height: 88px; }
.progress-ring::before { inset: 7px; }
.progress-ring-inner strong { font-size: 25px; }
.daily-phases { display: grid; flex: 1; gap: 5px; min-width: 0; }
.daily-phase {
  display: grid; grid-template-columns: 21px minmax(0,1fr) auto; align-items: center; gap: 7px;
  min-height: 29px; padding: 4px 7px; border-radius: 10px;
  border: 1px solid transparent; background: rgba(255,255,255,.055); color: #eef3eb;
}
.daily-phase strong { display: block; font-size: 10.5px; line-height: 1.15; }
.daily-phase small { display: block; margin-top: 1px; color: #b8c6b2; font-size: 8px; line-height: 1.1; }
.phase-index { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: rgba(255,255,255,.09); color: #cfd9ca; font-size: 8px; font-weight: 800; }
.phase-state { color: #aebba8; font-size: 7.5px; font-style: normal; white-space: nowrap; }
.daily-phase.is-active { border-color: rgba(249,244,232,.32); background: #f9f4e8; color: var(--green-deep); }
.daily-phase.is-active small, .daily-phase.is-active .phase-index, .daily-phase.is-active .phase-state { color: var(--green); }
.daily-phase.is-active .phase-index { background: var(--green-soft); }
.daily-phase.is-locked { opacity: .48; }
.daily-phase.is-done { border-color: rgba(185,208,177,.22); background: rgba(220,231,215,.12); }
.daily-phase.is-done .phase-index { background: var(--green); color: #fff; }
.plan-lock-note { margin: -1px 0 11px; color: #aebca9; font-size: 8.5px; line-height: 1.45; }
.plan-lock-note.is-unlocked { color: #f2cf83; }

.teacher-feedback { align-items: flex-end; gap: 6px; min-height: 108px; margin: 1px 2px 9px; }
.teacher-avatar {
  display: flex; align-items: flex-end; justify-content: center;
  width: 94px; height: 108px; padding: 0; overflow: visible; flex: 0 0 auto;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer;
  transition: transform .16s ease;
}
.teacher-avatar:active { transform: scale(.97); }
.teacher-avatar img {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; mix-blend-mode: normal;
  filter: drop-shadow(0 7px 8px rgba(48,42,33,.16));
  -webkit-mask-image: linear-gradient(to bottom, #000 87%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 87%, transparent 100%);
}
.teacher-message { max-width: 258px; margin-bottom: 13px; padding: 9px 11px; }
.teacher-message span { font-size: 8px; }
.teacher-message p { font-size: 10px; }
.teacher-avatar img.is-happy { animation: teacherJump .55s cubic-bezier(.2,.8,.2,1); }
.teacher-avatar img.is-sad { animation: teacherShake .42s ease; }
.teacher-avatar img.is-angry { animation: teacherNudge .45s ease; }

.study-phase-stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.study-phase-chip {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; padding: 3px 4px; border-radius: 7px; background: rgba(34,40,33,.055);
  color: var(--muted); font-size: 7.5px; white-space: nowrap;
}
.study-phase-chip.is-active { background: var(--coral-soft); color: var(--coral-deep); font-weight: 800; }
.study-phase-chip.is-done { background: var(--green-soft); color: var(--green); }
.study-phase-chip.is-locked { opacity: .45; }
.queue-return-note { margin-top: 11px; padding: 8px 9px; border-radius: 9px; background: var(--coral-soft); color: var(--coral-deep); font-size: 9px; line-height: 1.45; }
.result-screen > img {
  width: 172px; height: 205px; object-fit: contain; object-position: 50% 100%;
  border-radius: 0; mix-blend-mode: normal; filter: drop-shadow(0 14px 16px rgba(48,42,33,.14));
}

@media (max-width: 370px) {
  .hero-copy { width: 55%; }
  .teacher-hero { width: 136px; height: 218px; right: 3px; }
  .speech-bubble { width: 112px; right: 2px; padding: 7px 9px; font-size: 9px; }
  .plan-main { gap: 9px; }
  .progress-ring { width: 80px; height: 80px; }
  .daily-phase { grid-template-columns: 19px minmax(0,1fr); }
  .phase-state { display: none; }
  .phase-index { width: 18px; height: 18px; }
  .teacher-avatar { width: 82px; height: 98px; }
  .teacher-message { max-width: 218px; }
}

/* v1.2 · sound settings, order controls, and readability pass */
.segmented-control { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; padding: 3px; border-radius: 11px; background: var(--surface-soft); }
.segmented-control button { min-width: 40px; min-height: 32px; padding: 0 9px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.segmented-control button[aria-pressed="true"] { background: var(--green-deep); color: #fffdf8; box-shadow: 0 3px 9px rgba(38,53,42,.16); }
.preview-sound { min-height: 36px; padding: 0 14px; border-radius: 10px; background: var(--coral-soft); color: var(--coral-deep); font-size: 12px; font-weight: 800; }

body { font-size: 14px; }
.brand-lockup small { font-size: 12px; line-height: 1.35; }
.streak-pill { font-size: 13px; }
.section-kicker { font-size: 11px; letter-spacing: .12em; }
.eyebrow { font-size: 12px; }
.hero-copy p { font-size: 13px; line-height: 1.65; }
.soft-tag { font-size: 11.5px; padding: 6px 9px; }
.speech-bubble { width: 136px; font-size: 11px; line-height: 1.45; }
.method-badge { font-size: 10.5px; }
.progress-ring-inner span { font-size: 11px; }
.daily-phase strong { font-size: 12px; }
.daily-phase small { font-size: 10px; line-height: 1.25; }
.phase-index { font-size: 9.5px; }
.phase-state { font-size: 9px; }
.plan-lock-note { font-size: 10.5px; }
.primary-button, .secondary-button { font-size: 14px; }
.button-count { font-size: 10px; }
.section-heading p { font-size: 12px; }
.text-button { font-size: 12px; }
.forecast-value, .forecast-label { font-size: 10.5px; }
.micro-insight strong { font-size: 13px; }
.micro-insight p { font-size: 12px; }
.current-badge { font-size: 10.5px; }
.current-card-top p { font-size: 12.5px; }
.current-progress-copy strong, .current-progress-num { font-size: 12px; }
.current-actions button { font-size: 12px; }
.import-help-card h2, .format-card h2 { font-size: 15px; }
.import-help-card p { font-size: 12px; }
.inline-link { font-size: 12px; }
.dict-main strong { font-size: 14px; }
.dict-main span { font-size: 11px; }
.dict-progress { font-size: 11.5px; }
.format-row, .format-row code { font-size: 10.5px; }
.date-pill { font-size: 11px; }
.review-hero h2 { font-size: 24px; }
.review-hero p { font-size: 12px; }
.stat-card span { font-size: 11px; }
.stat-card small { font-size: 10px; }
.wrong-rank, .wrong-count { font-size: 11px; }
.wrong-main strong { font-size: 15px; }
.wrong-main span { font-size: 11px; }
.empty-state p { font-size: 11.5px; }
.settings-heading h2 { font-size: 16px; }
.settings-heading p { font-size: 11px; }
.setting-row strong { font-size: 13px; }
.setting-row span { font-size: 11.5px; }
#settingsDict { font-size: 11px; }
.learning-mode-card h2 { font-size: 19px; }
.learning-mode-card p { font-size: 11.5px; }
.settings-action strong { font-size: 13px; }
.settings-action small { font-size: 11px; }
.install-card h2 { font-size: 15px; }
.install-card p { font-size: 11.5px; }
.app-footer { font-size: 10.5px; }
.tab-button { font-size: 11px; }
.study-progress-meta { font-size: 11px; }
.study-phase-chip { font-size: 9.5px; padding: 4px 5px; }
.teacher-message span { font-size: 10.5px; }
.teacher-message p { font-size: 12px; line-height: 1.55; }
.word-meta { font-size: 11px; }
.phonetic { font-size: 15px; }
.question-copy { font-size: 13px; }
.choice-button { font-size: 15px; min-height: 58px; }
.choice-key { width: 28px; height: 28px; font-size: 11px; }
.reveal-button { font-size: 12px; }
.answer-status { font-size: 11px; }
.answer-meaning span { font-size: 13px; }
.answer-meaning strong { font-size: 21px; }
.example { font-size: 14px; }
.example-zh { font-size: 12px; }
.next-review { font-size: 11px; }
.queue-return-note { font-size: 11px; }
.result-screen > p { font-size: 13px; }
.result-stats span { font-size: 11px; }
.field-label { font-size: 12px; }
.field-control { font-size: 14px; }
.paste-meta, .paste-meta .text-button, .modal-hint { font-size: 11px; }
.toast { font-size: 12px; }

@media (max-width: 370px) {
  .speech-bubble { width: 118px; font-size: 10.5px; }
  .daily-phase strong { font-size: 11.5px; }
  .daily-phase small { font-size: 9.5px; }
  .segmented-control button { min-width: 35px; padding: 0 7px; font-size: 10.5px; }
  .setting-row strong { font-size: 12.5px; }
  .setting-row span { font-size: 11px; }
  .teacher-message p { font-size: 11.5px; }
  .choice-button { font-size: 14px; }
}

/* v1.3 · prevent accidental double-tap zoom */
html, body, .app-shell, .page, .study-screen, .result-screen, .modal-layer,
button, .tab-button, .choice-button, .teacher-hero, .teacher-avatar {
  touch-action: manipulation;
}
button, .tab-button, .choice-button, .teacher-hero, .teacher-avatar {
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, select {
  touch-action: auto;
  -webkit-user-select: text;
  user-select: text;
}
