/* Point-read practice: an editorial study sheet. Green is the only chrome colour;
   the orange/blue teaching colours stay on phoneme pieces because they carry meaning. */
.pr-overlay {
  padding: 24px;
  background: rgba(18, 24, 20, .46);
  backdrop-filter: none;
}
.pr-overlay .pr-modal {
  width: min(1120px, 100%);
  height: min(880px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe6e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px -24px rgba(16, 32, 24, .38);
}
.pr-modal .modal-head {
  flex: none;
  padding: 18px 24px 16px;
  border: 0;
  border-bottom: 1px solid #e5ebe7;
  background: #fff;
}
.pr-modal .modal-head .h2 {
  margin: 0;
  color: #1a211e;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.pr-modal .modal-head .sub {
  margin-top: 4px;
  color: #65716a;
  font-size: 13px;
  line-height: 1.5;
}
.pr-modal .modal-head .icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  background: #fff;
  color: #526058;
}
.pr-modal .modal-body {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #f6f8f5;
}
.pr-modal .modal-body.is-report {
  display: block;
  overflow: auto;
  padding: 16px 24px 24px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.pr-modal .modal-foot { display: none; }
.pr-workspace {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #f6f8f5;
}
.pr-workspace.pr-single { grid-template-columns: minmax(0, 1fr); }

/* Unit contents, not a decorative tab bar: the child can see where they are. */
.pr-nav {
  min-height: 0;
  overflow: auto;
  padding: 18px 12px;
  border-right: 1px solid #e3e9e5;
  background: #fafbf9;
  scrollbar-width: thin;
}
.pr-nav-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 8px 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid #e8eeea;
}
.pr-nav-head span { color: #65716a; font-size: 12px; }
.pr-nav-head b { color: #174f3d; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-nav-list { display: flex; flex-direction: column; gap: 2px; }
.pr-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #536058;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.pr-nav-item:hover { background: #eef3ef; }
.pr-nav-item.active { background: #e7f0ea; color: #174f3d; font-weight: 600; }
.pr-nav-word { min-width: 0; overflow-wrap: anywhere; }
.pr-nav-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #c7d2cb;
}
.pr-nav-item.done .pr-nav-dot { background: #0d7264; }
.pr-nav-item.is-pass-out {
  pointer-events: none;
  animation: pr-nav-pass-out 240ms ease-in forwards;
}
@keyframes pr-nav-pass-out {
  to { opacity: 0; transform: translateX(-8px) scale(.97); }
}

.pr-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #f6f8f5;
}
.pr-sheet {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 10px 24px 0;
  overflow: hidden;
  border: 1px solid #e3e9e5;
  border-radius: 14px;
  background: #fff;
}
.pr-steps {
  display: flex;
  flex: none;
  gap: 4px;
  padding: 8px 14px;
  border-bottom: 1px solid #e8eeea;
  background: #fbfcfa;
}
.pr-steps button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #65716a;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.pr-steps button:hover { background: #f0f4f1; }
.pr-steps button.active { background: #e7f0ea; color: #174f3d; font-weight: 600; }
.pr-steps button.done { color: #174f3d; }
.pr-step-mark { min-width: 12px; color: #0d7264; font-size: 12px; }
.pr-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 28px 36px 24px;
  overflow: auto;
  text-align: center;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
}
.pr-word {
  max-width: 100%;
  margin: 0;
  color: #18201c;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.pr-ipa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  color: #5d6962;
  font-size: 20px;
  flex-wrap: wrap;
}
.pr-meaning { max-width: 56ch; margin: 0; color: #202823; font-size: 19px; line-height: 1.55; }
.pr-meaning-row { display: flex; align-items: center; gap: 8px; max-width: 56ch; }
.pr-meaning-row .pr-meaning { min-width: 0; max-width: none; }
.pr-meaning-sound {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #dce6df;
  border-radius: 50%;
  background: #fff;
  color: #315b49;
  cursor: pointer;
}
.pr-meaning-sound:hover { border-color: #a9c4b5; background: #eef6f1; }
.pr-sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  padding: 9px 11px;
  border: 1px solid #dbe6df;
  border-radius: 8px;
  background: #f4f8f5;
  color: #0d7264;
  cursor: pointer;
}
.pr-sound:hover { border-color: #a9c4b5; background: #edf5ef; }
.pr-sound span { color: #174f3d; font-size: 12px; }
.pr-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  margin: 0;
  border: 1px solid #e5ebe7;
  border-radius: 12px;
  background: #f5f7f4;
  font-size: 92px;
  line-height: 1;
}
.pr-letter-art { color: #0d7264; font-size: 64px; font-weight: 600; }
.pr-phonemes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin: 0;
}
.pr-phonemes button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 8px 6px;
  border: 1px solid #e0e7e2;
  border-radius: 8px;
  background: #fff;
  color: #202823;
  cursor: pointer;
}
.pr-phonemes button:hover { border-color: #a9c4b5; background: #f7faf8; }
.pr-phonemes b { color: var(--piece); font-size: 22px; font-weight: 650; line-height: 1.1; }
.pr-phonemes span { margin-top: 2px; color: #65716a; font-size: 15px; }
.pr-phonemes svg { margin-top: 4px; color: #7d8b83; }
.pr-source {
  width: 100%;
  margin-top: auto;
  padding: 16px 18px;
  border: 1px solid #e4eae6;
  border-radius: 10px;
  background: #f8faf8;
  color: #3d4a43;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}
.pr-source > b { display: block; margin-bottom: 6px; color: #0d6b56; font-size: 12px; font-weight: 600; }
.pr-source p { margin: 0 0 8px; white-space: pre-line; }
.pr-source a,
.pr-source > span {
  display: inline;
  color: #65716a;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.pr-source a:hover { color: #0d6b56; text-decoration: underline; }
.pr-source a svg { display: inline; vertical-align: middle; }
.pr-note { margin: 0; color: #536158; font-size: 16px; line-height: 1.75; }
.pr-feedback { min-height: 24px; color: #0d6b56; font-size: 15px; line-height: 1.6; }

.pr-footer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px 14px;
  border-top: 1px solid #e8eeea;
  background: #fff;
}
.pr-position { color: #65716a; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-actions { display: flex; align-items: center; gap: 8px; }
.pr-stepbtn,
.pr-next-stage {
  min-height: 42px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.pr-stepbtn { padding: 0 14px; border: 1px solid #dde5df; background: #fff; color: #526058; }
.pr-stepbtn:hover { border-color: #b9cdc0; background: #f4f8f5; }
.pr-stepbtn:disabled { border-color: #edf0ee; background: #f7f8f7; color: #a3ada7; cursor: default; }
.pr-next-stage { padding: 0 20px; border: 1px solid #0d7264; background: #0d7264; color: #fff; font-weight: 600; }
.pr-next-stage:hover { background: #0b6255; border-color: #0b6255; }

.pr-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 640px;
  margin: 6px 0 12px;
}
.pr-options button {
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid #dfe6e1;
  border-radius: 8px;
  background: #fff;
  color: #202823;
  font: inherit;
  font-size: 17px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.pr-options button:hover { border-color: #a9c4b5; background: #f7faf8; }
.pr-options button.is-correct { border-color: #7fb295; background: #eaf5ed; color: #174f3d; }
.pr-options button.is-wrong { border-color: #d9a28f; background: #fdf2ee; color: #7e3326; }
.pr-options button:disabled { cursor: default; }
.pr-stage-1 { justify-content: center; padding-top: 24px; }
.pr-stage-2 { justify-content: center; gap: 22px; }
.pr-assembly { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 64px; }
.pr-faded { opacity: .2; }
.pr-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 620px;
  margin: 0;
}
.pr-tiles button {
  min-width: 64px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid var(--piece-border, #dfe6e1);
  border-radius: 8px;
  background: var(--piece-soft, #fff);
  color: var(--piece, #249ed1);
  font: 650 24px/1 inherit;
  cursor: pointer;
}
.pr-tiles button:hover { border-color: var(--piece, #249ed1); background: var(--piece-hover, #f7faf8); }
.pr-tiles button:disabled { opacity: .22; cursor: default; }
.pr-stage-4 { justify-content: center; gap: 18px; }
.pr-spell {
  position: relative;
  display: block;
  width: 100%;
  max-width: 720px;
  padding: 22px 14px 24px;
  border: 1px solid #e3e9e5;
  border-radius: 10px;
  background: #fafbfa;
  cursor: text;
}
.pr-spell:focus-within { border-color: #9dbbaa; outline: 2px solid #dcece3; outline-offset: 2px; }
.pr-letter-boxes { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: 12px; min-height: 64px; }
.pr-letter { width: 38px; height: 60px; flex: none; border-bottom: 3px solid #aebdb5; color: #18201c; font-size: 36px; line-height: 52px; }
.pr-letter.is-cursor { border-color: #0d7264; background: #eef6f1; }
.pr-separator { min-width: 10px; color: #65716a; font-size: 26px; line-height: 54px; }
.pr-spell input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  opacity: .01;
}
.pr-hint { padding: 12px 16px; border: 1px solid #dbe6df; border-radius: 8px; background: #f4f8f5; color: #174f3d; font-size: 17px; line-height: 1.6; }
.pr-hint p { margin: 4px 0 0; color: #65716a; font-size: 12px; }

.pr-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  padding: 24px 18px;
  border: 1px solid #e3e9e5;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.pr-summary-icon { color: #0d7264; font-size: 30px; line-height: 1; }
.pr-summary h2,
.pr-summary p { margin: 0; }
.pr-summary h2 { color: #18201c; font-size: 22px; font-weight: 600; }
.pr-result-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e3e9e5;
  border-radius: 8px;
  background: #fff;
  color: #18201c;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.pr-result-row:hover { border-color: #b9cdc0; background: #f7faf8; }
.pr-result-row span { color: #65716a; font-size: 12px; }
.pr-primary { min-height: 42px; padding: 0 20px; border: 1px solid #0d7264; border-radius: 8px; background: #0d7264; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pr-primary:disabled { opacity: .55; cursor: default; }
.pr-back { padding: 10px 12px; border: 0; background: transparent; color: #65716a; font: inherit; font-size: 14px; cursor: pointer; }
.pr-loading { padding: 80px 20px; color: #65716a; text-align: center; }

.pr-report {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid #e3e9e5;
  border-radius: 12px;
  background: #fff;
  color: #18201c;
  overflow-wrap: anywhere;
  text-align: left;
}
.pr-report-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.pr-report-heading h2 { margin: 0; color: #18201c; font-size: 22px; font-weight: 600; }
.pr-report-heading > b { color: #174f3d; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pr-report .rp { min-width: 0; }
.pr-report .rp-head > .grow { min-width: 0; }
.pr-report .card { box-shadow: none; }
.pr-report-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pr-report-actions .btn-primary {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid #0d7264;
  border-radius: 8px;
  background: #0d7264;
  color: #fff;
  box-shadow: none;
}
.pr-report-actions .btn-primary:hover { background: #0b6255; border-color: #0b6255; }
.pr-modal button:focus-visible,
.pr-modal a:focus-visible { outline: 2px solid #0d7264; outline-offset: 2px; }

/* Desktop "learn" step: word and media form one readable sheet, not a loose pile. */
@media (min-width: 921px) {
  .pr-stage-0 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    grid-template-rows: auto auto auto auto 1fr auto;
    gap: 12px 32px;
    align-items: start;
    text-align: left;
  }
  .pr-stage-0 > .pr-word { grid-column: 1 / -1; text-align: center; }
  .pr-stage-0 > .pr-ipa { grid-column: 1 / -1; justify-content: center; }
  .pr-stage-0 > .pr-meaning { grid-column: 1; align-self: center; }
  .pr-stage-0 > .pr-illustration { grid-column: 2; grid-row: 3 / 5; justify-self: center; }
  .pr-stage-0 > .pr-phonemes { grid-column: 1; align-self: start; }
  .pr-stage-0 > .pr-source,
  .pr-stage-0 > .pr-feedback { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .pr-overlay { padding: 12px; }
  .pr-overlay .pr-modal { height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }
  .pr-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .pr-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid #e3e9e5;
    background: #fafbf9;
  }
  .pr-nav-head { display: block; flex: none; margin: 0; padding: 0; border: 0; }
  .pr-nav-head span { display: none; }
  .pr-nav-head b { white-space: nowrap; }
  .pr-nav-list { flex-direction: row; gap: 4px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
  .pr-nav-list::-webkit-scrollbar { display: none; }
  .pr-nav-item { min-width: max-content; min-height: 40px; padding: 0 10px; }
  .pr-nav-dot { display: none; }
  .pr-sheet { margin: 8px 16px 0; }
  .pr-content { padding: 22px 20px 18px; }
  .pr-footer { padding: 10px 16px 12px; }
  .pr-stage-0 { display: flex; flex-direction: column; text-align: center; }
  .pr-stage-0 > .pr-meaning { text-align: center; }
  .pr-stage-0 > .pr-illustration { width: 148px; height: 148px; font-size: 78px; }
}

@media (max-width: 640px) {
  .pr-overlay { padding: 0; }
  .pr-overlay .pr-modal {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  /* 手机上整块内容只用一个滚动容器（弹窗主体），不再套内层滚动——之前内层不滚，页面就卡住 */
  .pr-modal .modal-body {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .pr-workspace { height: auto; min-height: 100%; grid-template-rows: auto minmax(0, 1fr); }
  .pr-main { min-height: 0; }
  .pr-sheet { flex: none; overflow: visible; }
  .pr-content { flex: none; overflow: visible; }
  .pr-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: auto;
    border-top: 1px solid #e8eeea;
    background: #fff;
  }
  .pr-modal .modal-head { padding: 12px 16px 12px; }
  .pr-modal .modal-head .h2 { font-size: 18px; }
  .pr-modal .modal-head .sub { font-size: 12px; }
  .pr-modal .modal-head .icon-btn { width: 40px; height: 40px; }
  .pr-modal .modal-body.is-report { padding: 12px 12px 18px; }
  .pr-sheet { margin: 8px 10px 0; border-radius: 10px; }
  .pr-steps { padding: 6px 8px; gap: 2px; }
  .pr-steps button { min-height: 44px; font-size: 14px; }
  .pr-content { padding: 20px 14px 16px; gap: 14px; }
  .pr-word { font-size: clamp(38px, 13vw, 52px); }
  .pr-ipa { font-size: 18px; }
  .pr-meaning { font-size: 17px; }
  .pr-illustration { width: 132px; height: 132px; font-size: 70px; }
  .pr-phonemes { grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: 6px; }
  .pr-phonemes button { min-height: 70px; }
  .pr-phonemes b { font-size: 20px; }
  .pr-phonemes span { font-size: 13px; }
  .pr-source { padding: 13px 13px 12px; font-size: 13px; }
  .pr-options { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pr-options button { min-height: 54px; font-size: 16px; }
  .pr-tiles button { min-width: 56px; min-height: 50px; padding: 9px 13px; font-size: 22px; }
  .pr-spell { padding: 16px 4px 18px; }
  .pr-letter { width: 30px; height: 52px; font-size: 30px; line-height: 44px; }
  .pr-letter-boxes { gap: 4px; min-height: 56px; }
  .pr-note { font-size: 15px; line-height: 1.7; }
  .pr-feedback { font-size: 15px; }
  .pr-footer { align-items: center; gap: 8px; padding: 9px 10px max(9px, env(safe-area-inset-bottom)); }
  .pr-position { font-size: 11px; }
  .pr-actions { flex: 1; justify-content: flex-end; gap: 6px; }
  .pr-stepbtn { min-height: 44px; padding: 0 9px; font-size: 12px; }
  .pr-next-stage { min-height: 44px; padding: 0 12px; font-size: 13px; }
  .pr-report { padding: 16px 12px; }
  .pr-report-heading h2 { font-size: 20px; }
  .pr-report-heading > b { font-size: 20px; }
  .pr-summary { padding: 18px 12px; }
}

@media (max-width: 390px) {
  .pr-position { display: none; }
  .pr-actions { justify-content: space-between; }
  .pr-stepbtn { padding: 0 8px; }
}

/* v283 · Focused learning canvas. The word is content; the frame stays quiet. */
.pr-overlay { font-family:var(--font-sans); }
.pr-overlay .pr-modal { width:min(1160px,100%); height:min(860px,calc(100dvh - 48px)); border-radius:20px; }
.pr-modal .modal-head { padding:20px 28px; }
.pr-modal .modal-head .h2 { font-family:var(--font-sans); font-size:22px; letter-spacing:0; }
.pr-modal .modal-body,.pr-workspace,.pr-main { background:#fff; }
.pr-workspace { grid-template-columns:220px minmax(0,1fr); }
.pr-nav { background:#f3f6f4; padding:20px 12px; }
.pr-nav-item { min-height:46px; padding:10px 12px; border-radius:8px; font-size:15px; }
.pr-nav-item.active { background:#e1e9e4; color:#20382f; }
.pr-sheet { margin:0 28px; border:0; border-radius:0; }
.pr-steps { background:#fff; padding:0; gap:20px; border-bottom:1px solid #e3e9e5; }
.pr-steps button { position:relative; min-height:54px; border-radius:0; font-size:15px; }
.pr-steps button.active { background:transparent; color:#0d6b56; }
.pr-steps button.active::after { content:""; position:absolute; bottom:-1px; left:16%; right:16%; height:3px; background:#0d6b56; border-radius:3px; }
.pr-content { padding:28px 20px 24px; gap:20px; }
.pr-word { font-family:var(--font-sans); font-size:clamp(38px,4vw,56px); font-weight:600; letter-spacing:-.02em; line-height:1.2; }
.pr-ipa { font-family:var(--font-sans); font-size:20px; }
.pr-meaning { font-size:20px; color:#344c40; }
.pr-illustration { background:transparent; border:0; width:136px; height:136px; font-size:88px; }
.pr-phonemes { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; max-width:600px; }
.pr-phonemes button { flex:1 0 64px; max-width:110px; min-height:82px; background:#f7f9f7; border:0; border-bottom:2px solid #dbe4dd; border-radius:10px; }
.pr-phonemes b { font-size:25px; }
.pr-phonemes span { font-size:16px; }
.pr-source { margin-top:8px; background:#f3f6f4; border:0; border-radius:12px; padding:18px 20px; font-size:15px; }
.pr-source > b { font-size:13px; }
.pr-source a,.pr-source > span { font-size:13px; }
.pr-footer { padding:16px 28px; background:#fff; }
.pr-position { font-size:13px; }
.pr-stepbtn,.pr-next-stage { min-height:46px; border-radius:10px; }
.pr-options { gap:12px; }
.pr-options button { padding:18px 20px; min-height:64px; border-radius:12px; font-size:18px; }
.pr-tiles button { font-family:var(--font-sans); font-size:26px; font-weight:600; }
.pr-spell { border:0; background:#f3f6f4; padding:26px 12px; }
.pr-primary { min-height:44px; }
.pr-stage-4 > .pr-primary { background:white; border-color:#cad8cf; color:#245641; }
.pr-report { border:0; padding:24px; }
.pr-report h2,.pr-report .h3,.pr-summary h2 { font-family:var(--font-sans); }
@media(min-width:921px) {
 .pr-stage-0 { display:grid; grid-template-columns:minmax(0,1fr) 150px; grid-template-rows:auto auto auto auto auto; gap:12px 20px; align-content:start; text-align:left; }
 .pr-stage-0 > .pr-word { grid-column:1; text-align:left; align-self:end; }
 .pr-stage-0 > .pr-ipa { grid-column:1; justify-content:flex-start; }
 .pr-stage-0 > .pr-meaning { grid-column:1; }
 .pr-stage-0 > .pr-illustration { grid-column:2; grid-row:1/4; align-self:center; }
 .pr-stage-0 > .pr-phonemes { grid-column:1/-1; justify-content:flex-start; margin:16px 0 4px; }
 .pr-stage-0 > .pr-source { grid-column:1/-1; }
}
@media(max-width:920px) {
 .pr-workspace { grid-template-columns:minmax(0,1fr); }
 .pr-workspace.pr-single { grid-template-rows:minmax(0,1fr); }
 .pr-nav { padding:8px 16px; }
 .pr-nav-item { min-height:40px; padding:8px 12px; font-size:14px; }
 .pr-sheet { margin:0 20px; }
 .pr-stage-0 { gap:12px; }
 .pr-stage-0 > .pr-illustration { width:90px; height:90px; font-size:68px; }
}
@media(max-width:640px) {
 .pr-overlay .pr-modal { width:100%; height:100dvh; max-height:100dvh; border-radius:0; }
 .pr-modal .modal-head { padding:12px 16px; }
 .pr-modal .modal-head .h2 { font-size:19px; }
 .pr-modal .modal-head .sub { max-width:calc(100vw - 76px); }
 .pr-sheet { margin:0 16px; }
 .pr-steps { gap:4px; }
 .pr-steps button { min-height:48px; font-size:14px; }
 .pr-content { padding:24px 0 20px; }
 .pr-stage-0 { display:grid; grid-template-columns:minmax(0,1fr) 68px; grid-template-rows:auto auto auto auto auto; gap:10px; align-content:start; text-align:left; }
 .pr-stage-0 > .pr-word { grid-column:1/-1; text-align:left; font-size:40px; }
 .pr-stage-0 > .pr-ipa { grid-column:1; justify-content:flex-start; font-size:18px; }
 .pr-stage-0 > .pr-meaning { grid-column:1; text-align:left; font-size:18px; }
 .pr-stage-0 > .pr-illustration { grid-column:2; grid-row:2/4; width:64px; height:64px; font-size:50px; }
 .pr-stage-0 > .pr-phonemes,.pr-stage-0 > .pr-source,.pr-stage-0 > .pr-feedback { grid-column:1/-1; }
 .pr-phonemes { gap:6px; margin-top:12px; }
 .pr-phonemes button { flex-basis:52px; min-height:78px; }
 .pr-phonemes b { font-size:22px; }
 .pr-phonemes span { font-size:14px; }
 .pr-source { padding:16px; font-size:14px; }
 .pr-footer { flex-direction:column; gap:8px; padding:10px 16px max(12px,env(safe-area-inset-bottom)); }
 .pr-position { display:block; font-size:12px; }
 .pr-actions { width:100%; display:grid; grid-template-columns:1fr 1.5fr 1fr; gap:8px; }
 .pr-stepbtn,.pr-next-stage { min-height:46px; padding:0 6px; font-size:13px; }
 .pr-spell { padding:22px 2px; }
 .pr-letter { width:30px; height:54px; }
 .pr-options button { min-height:58px; font-size:17px; }
 .pr-report { padding:16px 4px; }
}

/* 学发音：左侧词条与右侧图示同组，拼读块紧接其下。 */
.pr-content.pr-stage-0 { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; padding:24px 12px; }
.pr-learn { display:flex; flex-direction:column; gap:24px; width:100%; max-width:760px; margin:0; text-align:left; }
/* Available width = flexible word column + 24px gap + 144px picture. */
.pr-learn-head { display:grid; grid-template-columns:minmax(0,1fr) 144px; align-items:center; gap:24px; }
.pr-learn-word { min-width:0; }
.pr-learn .pr-word { margin:0; font-size:clamp(36px,3.5vw,48px); font-weight:600; letter-spacing:-.02em; line-height:1.18; text-align:left; overflow-wrap:anywhere; }
.pr-learn .pr-ipa { display:flex; flex-wrap:wrap; justify-content:flex-start; align-items:center; gap:8px; margin-top:8px; font-size:20px; }
.pr-learn .pr-ipa > span { min-width:0; overflow-wrap:anywhere; }
.pr-learn .pr-ipa .pr-sound { flex:none; width:44px; height:44px; border:1px solid #dfe7e2; border-radius:50%; background:#fff; color:#3f574c; }
.pr-learn .pr-ipa .pr-sound:hover { background:#f2f8f4; border-color:#b9cdc0; }
.pr-learn .pr-meaning { margin:10px 0 0; color:#344c40; font-size:18px; line-height:1.5; text-align:left; }
.pr-learn .pr-meaning-row { margin-top:10px; }
.pr-learn .pr-meaning-row .pr-meaning { margin:0; }
.pr-learn .pr-illustration { width:144px; height:144px; align-self:center; justify-self:center; font-size:104px; background:transparent; border:0; }
.pr-learn .pr-sounds { padding-top:20px; border-top:1px solid #e8eeea; }
.pr-learn .pr-sounds-cap { margin-bottom:12px; color:#526058; font-size:14px; }
.pr-learn .pr-phonemes { display:flex; flex-wrap:wrap; justify-content:flex-start; max-width:none; gap:8px; }
.pr-learn .pr-phonemes button { flex:1 0 84px; min-width:84px; max-width:none; min-height:84px; padding:10px 16px; border-radius:8px; }
.pr-learn .pr-phonemes b { font-size:25px; }
.pr-learn .pr-phonemes span { font-size:15px; }
.pr-learn .pr-source { margin:0; padding:16px 18px; border:0; border-radius:10px; background:#f4f7f4; font-size:16px; }
.pr-learn .pr-source > b { font-size:12px; font-weight:500; color:#526058; }
.pr-learn .pr-source > p { margin:8px 0; line-height:1.55; }
.pr-learn .pr-source a,.pr-learn .pr-source > span { font-size:12px; line-height:1.5; }
.pr-stage-0 > .pr-feedback:empty { display:none; }
@media (max-width:640px) {
  .pr-content.pr-stage-0 { padding:20px 0 16px; }
  .pr-learn { gap:20px; }
  .pr-learn-head { grid-template-columns:minmax(0,1fr) 104px; gap:12px; }
  .pr-learn .pr-word { font-size:34px; }
  .pr-learn .pr-ipa { font-size:17px; gap:6px; margin-top:6px; }
  .pr-learn .pr-meaning { font-size:16px; margin-top:8px; }
  .pr-learn .pr-meaning-row { margin-top:8px; }
  .pr-learn .pr-meaning-sound { width:36px; height:36px; }
  .pr-learn .pr-illustration { width:104px; height:104px; font-size:80px; }
  .pr-learn .pr-sounds { padding-top:16px; }
  .pr-learn .pr-phonemes button { flex:1 0 calc((100% - 16px) / 3); min-width:0; min-height:80px; padding:8px 12px; }
  .pr-learn .pr-phonemes b { font-size:23px; }
  .pr-learn .pr-source { padding:14px 16px; }
}
@media (max-width:360px) {
  .pr-learn-head { grid-template-columns:minmax(0,1fr) 88px; gap:8px; }
  .pr-learn .pr-word { font-size:30px; }
  .pr-learn .pr-illustration { width:88px; height:88px; font-size:68px; }
}

/* Visual syllable separators only; never part of spelling or answers. */
.pr-assembly .pr-syllable-dot { color: #9ba4ab; font-size: .55em; align-self: center; user-select: none; }

.pr-assembly .pr-assembly-blank { display: inline-block; width: 1.5em; height: 1em; border-bottom: 2px solid #b8c3c7; align-self: center; }

.pr-learn .pr-read-pending { opacity: .2; }
.pr-learn .pr-read-current { opacity: 1; text-shadow: 0 0 1px currentColor; }

/* Keep writing visible above mobile keyboards, including Safari viewport panning. */
@media (max-width: 640px) {
  .pr-overlay {
    top: var(--pr-visible-top, 0px);
    bottom: auto;
    height: var(--pr-visible-height, 100dvh);
  }
  .pr-overlay .pr-modal {
    height: 100%;
    max-height: 100%;
  }
  .pr-editing .pr-footer { position: static; }
  .pr-editing .pr-position { display: none; }
  .pr-editing .pr-stage-4 { padding-top: 12px; gap: 12px; }
  .pr-editing .pr-spell { padding-top: 12px; padding-bottom: 12px; }
  .pr-editing .modal-body { scroll-padding-block: 16px; }
}
