.pw-wrap {
  color: var(--ink);
  max-width: 1180px;
  margin-inline: auto;
}
.pw-wrap *, .pw-wrap *::before, .pw-wrap *::after { box-sizing: border-box; }
.pw-wrap :is(button, select, textarea) { font: inherit; }
.pw-wrap button, .pw-wrap a { -webkit-tap-highlight-color: transparent; }
.pw-wrap :is(a, button, select, textarea, input):focus-visible,
.pw-option:has(input:focus-visible) { outline: 3px solid #53874e; outline-offset: 3px; }
.pw-wrap button { cursor: pointer; }
.pw-wrap button:disabled, .pw-wrap a[aria-disabled="true"] { opacity: .48; cursor: default; }
.pw-wrap svg { flex: none; }
.pw-back, .pw-link {
  border: 0; background: none; padding: 0; color: var(--green);
  display: inline-flex; align-items: center; gap: 7px; font-size: .875rem;
  line-height: 1.45; font-weight: 650; text-decoration: none;
}
.pw-back:hover, .pw-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.pw-back { color: var(--muted); min-height: 36px; margin-block-end: 18px; }
.pw-heading { margin: 0 0 clamp(22px, 4vw, 36px); }
.pw-wrap .pw-kicker {
  color: var(--green); display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono, monospace);
  font-size: .68rem; font-weight: 750; line-height: 1.45;
  letter-spacing: .13em; text-transform: uppercase; margin: 0;
}
.pw-wrap h1 { font-family: var(--display, Arial, sans-serif); font-weight: 700;
  font-size: clamp(2.2rem, 3.2vw, 3.32rem); letter-spacing: -.05em;
  line-height: 1.07; margin: 10px 0 12px; text-wrap: balance; }
.pw-wrap h2 { font-family: var(--display, Arial, sans-serif); font-weight: 650;
  font-size: clamp(1.4rem, 2.35vw, 1.9rem); line-height: 1.18;
  letter-spacing: -.035em; margin: 0 0 20px; }
.pw-heading > p:not(.pw-kicker), .pw-complete > p:not(.pw-kicker) {
  font-size: 1rem; color: var(--muted); line-height: 1.6; margin: 0;
}
.pw-meta, .pw-meta span, .pw-audio-row, .pw-actions, .pw-controls, .pw-speed {
  display: flex; align-items: center; flex-wrap: wrap;
}
.pw-meta { gap: 20px; margin-top: 16px; color: var(--muted); font-size: .82rem; }
.pw-meta span { gap: 7px; }
.pw-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(225px, 1fr); gap: clamp(16px, 2.5vw, 28px); align-items: start; }
.pw-panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 34px); }
.pw-cardline { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pw-badge { display: inline-block; padding: 4px 9px; border-radius: 999px; color: var(--green);
  background: #eef3e9; font-size: .72rem; font-weight: 650; }
.pw-meter { display: flex; gap: 5px; margin: 16px 0 26px; }
.pw-meter span { height: 4px; flex: 1; border-radius: 20px; background: #e8eae4; }
.pw-meter span.pw-filled { background: var(--green); }
.pw-options { display: grid; gap: 9px; }
.pw-option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  cursor: pointer; font-size: .95rem; line-height: 1.45; }
.pw-option:has(:disabled) { cursor: default; }
.pw-option:has(:checked) { background: #f2f5e9; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.pw-option:not(:has(:disabled)):hover { background: #f6f8f1; }
.pw-option input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.pw-letter { width: 26px; height: 26px; flex: none; border-radius: 7px; background: #f0f1ec;
  display: grid; place-items: center; color: var(--muted); font-size: .78rem; font-weight: 700; }
.pw-option:has(:checked) .pw-letter { color: white; background: var(--green); }
.pw-wrap textarea, .pw-wrap select { border-radius: 9px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); max-width: 100%; }
.pw-wrap textarea { width: 100%; resize: vertical; min-height: 64px; display: block; padding: 12px 15px;
  font-size: 1rem; line-height: 1.6; }
.pw-wrap textarea:read-only { background: #f7f8f3; }
.pw-lesson { max-width: 980px; margin-inline: 0 auto; }
.pw-lesson .pw-heading { margin-bottom: 22px; }
.pw-lesson .pw-panel { border-radius: 16px; }
.pw-concept { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; background: #f2f5e9; }
.pw-concept-prose p { margin: 8px 0 0; font-size: 1.07rem; line-height: 1.55; }
.pw-frame { border-inline-start: 2px solid #a6c78b; padding-inline-start: 20px; }
.pw-frame p { margin: 8px 0 0; color: var(--green); font-weight: 650; font-size: 1.05rem; line-height: 1.55; }
.pw-lesson-examples { margin: 16px 0 0; }
.pw-lesson-examples > h2 { margin-bottom: 19px; font-size: 1.3rem; }
.pw-examples-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 25px; }
.pw-worked-example + .pw-worked-example { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.pw-worked-example blockquote { margin: 8px 0; font: 550 1.44rem/1.35 Georgia, serif; color: var(--ink); }
.pw-worked-example > p:not(.pw-status) { font-size: .92rem; line-height: 1.55; color: var(--muted); margin: 0; }
.pw-worked-example .pw-audio-row { margin-top: 12px; gap: 14px; }
.pw-lesson .pw-original { margin-top: 18px; }
.pw-lesson-actions { gap: 20px; }
.pw-learning-steps { margin-top: 10px !important; font-size: .8rem !important; }
.pw-ready { font-size: .88rem; line-height: 1.6; color: var(--muted); margin: 0 0 20px; }
.pw-ready strong { color: var(--green); margin-right: 5px; }
.pw-vocabulary { margin-bottom: 18px; }
.pw-vocabulary h2 { margin-bottom: 6px; font-size: 1.3rem; }
.pw-vocabulary > p, .pw-recall > p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.pw-word-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.pw-phrase-card { min-width: 0; padding: 16px; background: #f8f9f3; border-radius: 10px; }
.pw-phrase-card p { font-size: .92rem; line-height: 1.55; margin: 5px 0; overflow-wrap: anywhere; }
.pw-phrase-card .pw-target { color: var(--green); font-size: 1.2rem; font-weight: 650; }
.pw-word-picture { width: 58px; height: 58px; float: right; margin-left: 12px; }
.pw-phrase-card .pw-example-note { color: var(--muted); font-size: .85rem; }
.pw-phrase-card .pw-audio-row { margin-top: 10px; gap: 10px; }
.pw-phrase-card .pw-audio-row .pw-link { font-size: .77rem; }
.pw-more, .pw-recall { margin-top: 18px; }
.pw-more > summary, .pw-recall summary, .pw-hidden-model summary { cursor: pointer; color: var(--green); font-weight: 650; line-height: 1.5; }
.pw-extra-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 20px 0; }
.pw-dialogue { display: grid; gap: 10px; }
.pw-dialogue .pw-phrase-card { max-width: 90%; }
.pw-dialogue .pw-phrase-card:nth-child(even) { margin-left: 10%; background: #eef3e9; }
.pw-worked-example > .pw-full-meaning { color: var(--ink) !important; margin-bottom: 7px !important; }
.pw-recall h2 { margin-bottom: 10px; }
.pw-recall > .pw-recall-task { color: var(--ink); font-weight: 600; }
.pw-recall .pw-phrase-card { margin-top: 12px; }
.pw-hidden-model { margin: 12px 0 20px; }
.pw-hidden-model[open] > summary { margin-bottom: 18px; }
.pw-hidden-model > p { font-size: .9rem; line-height: 1.6; }
.pw-oral-hint, .pw-oral-saved { font-size: .85rem; line-height: 1.6; color: var(--muted); margin: 12px 0; }
@media(max-width:520px) { .pw-word-grid, .pw-extra-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 680px) {
  .pw-concept, .pw-examples-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .pw-frame { padding-inline-start: 12px; }
  .pw-worked-example + .pw-worked-example { border-inline-start: none; border-top: 1px solid var(--line); padding-inline-start: 0; padding-top: 16px; }
  .pw-worked-example blockquote { font-size: 1.26rem; }
}
.pw-feedback { border-left: 3px solid #75916c; background: #f3f6ed; padding: 14px 16px;
  border-radius: 1px 8px 8px 1px; margin-top: 16px; }
.pw-feedback.pw-adjust { background: #fbf5e8; border-color: #a58249; }
.pw-feedback > strong, .pw-tip strong { font-size: .89rem; }
.pw-feedback p, .pw-tip p, .pw-ear p, .pw-reference > p:not(.pw-kicker,.pw-status) {
  font-size: .925rem; line-height: 1.62; color: var(--ink); margin: 5px 0 0;
}
.pw-selfcheck { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; line-height: 1.5; font-size: .88rem; }
.pw-selfcheck input { accent-color: var(--green); width: 16px; height: 16px; flex: none; margin: 2px 0; }
.pw-actions { gap: 10px; margin-top: 20px; }
.pw-primary, .pw-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid var(--green); min-height: 43px; padding: 10px 17px; border-radius: 9px;
  font-size: .89rem; font-weight: 650; }
.pw-primary { background: var(--green); color: #fff; }
.pw-primary:hover:not(:disabled) { filter: brightness(1.12); }
.pw-secondary { background: transparent; color: var(--green); border-color: var(--line); }
.pw-secondary:hover:not(:disabled) { background: #f2f5eb; }
.pw-wrap .pw-status { margin: 8px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.pw-status:empty { display: none; }
.pw-reference, .pw-ear { background: #f2f5e9; }
.pw-icon-tile { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px;
  background: var(--lime); color: var(--green); margin-bottom: 16px; }
.pw-reference > p:not(.pw-kicker,.pw-status) { margin-top: 9px; }
.pw-reference blockquote { border: none; padding: 0; font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 2vw, 1.64rem); letter-spacing: -.027em; line-height: 1.32; margin: 15px 0; }
.pw-audio-row { gap: 14px; }
.pw-pronunciation-note { font-size: .87rem; line-height: 1.55; margin-top: 8px; }
.pw-pronunciation-note summary { color: var(--green); cursor: pointer; font-weight: 650; }
.pw-pronunciation-note p { margin: 7px 0 0; }
.pw-meaning { margin: -3px 0 12px; font-size: .9rem; line-height: 1.58; color: var(--muted); }
.pw-meaning strong { color: var(--green); font-size: .78rem; }
.pw-meaning p { margin: 2px 0 0; }
.pw-original { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; }
.pw-original summary { color: var(--green); font-weight: 650; cursor: pointer; }
.pw-original dl { margin: 12px 0 0; line-height: 1.55; }
.pw-original dt { margin: 9px 0 1px; font-weight: 650; }
.pw-original dd { margin: 0; color: var(--muted); }
.pw-audio-row .pw-link, .pw-reference > .pw-link { min-height: 33px; }
.pw-tip { border-top: 1px solid var(--line); margin: 18px 0 15px; padding-top: 16px; }
.pw-complete { background: #f2f5e9; }
.pw-review { margin-top: 20px; }
.pw-review h2, .pw-ear h2 { margin: 6px 0 16px; }
.pw-review-row { display: flex; gap: 15px; border-top: 1px solid var(--line); padding: 17px 0; line-height: 1.5; }
.pw-review-row strong { font-size: .92rem; font-weight: 650; }
.pw-review-row p { margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pw-review-row small { font-size: .8rem; color: var(--muted); }
.pw-no { font-variant-numeric: tabular-nums; font-size: .78rem; color: var(--muted); padding-top: 3px; }
.pw-field-label { display: block; margin: 25px 0 8px; font-size: .83rem; font-weight: 650; }
.pw-wrap select { padding: 9px 28px 9px 10px; min-height: 40px; font-size: .9rem; }
.pw-sound #pw-preset { width: 100%; }
.pw-sound .pw-phrase { font: 500 clamp(1.35rem, 2.3vw, 1.8rem)/1.35 Georgia, serif; letter-spacing: -.028em; background: #fcfcf8; }
.pw-controls { gap: 15px; margin-top: 18px; }
.pw-speed { gap: 6px; font-size: .8rem; color: var(--muted); }
.pw-speed select { padding-right: 13px; }
.pw-alternate { margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.pw-alternate > span { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; line-height: 1.5; }
.pw-ear ol { padding: 14px 0 0 19px; margin: 18px 0 0; border-top: 1px solid var(--line); }
.pw-ear li { padding-left: 3px; margin: 6px 0; font-size: .88rem; line-height: 1.52; }
@media (max-width: 900px) { .pw-layout { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 520px) {
  .pw-wrap h1 { font-size: 2.15rem; }
  .pw-panel { padding: 18px; border-radius: 14px; }
  .pw-layout { gap: 14px; }
  .pw-meta { gap: 10px; }
  .pw-back { margin-bottom: 12px; }
}
