/* ═══════════════════════════════════════════════════════════════════════════
   reading-library.css — Kho đề IELTS Reading /ielts/reading/library (khuôn A, 26/09/2026).
   Dải teal (learn-ui.css .lv-band + learn-hub.css .hb-*) · thẻ lọc chồng mép dải · lưới đề có ảnh · kệ sách Cambridge.
   Nạp SAU learn-ui.css + learn-hub.css. Chỉ token --lv-* / --color-*, không hex — tự lật ở chế độ tối.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ DẢI ═══ */
.rl3 .rl3-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; color: var(--lv-on-2); }
.rl3 .rl3-back:hover { color: var(--lv-on); }
.rl3 .rl3-title { font-size: 40px; line-height: 1.12; text-wrap: balance; }
.rl3-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rl3 .lv-band__actions .lv-btn { max-width: min(100%, 460px); }

/* Thẻ kính: bìa bộ đề (như kệ ở /ielts/reading) + tiến độ của bộ */
.rl3 .rl3-stat { gap: 18px; padding: 16px 22px 16px 16px; max-width: 400px; }
.rl3-stat__cover { flex: none; width: 76px; aspect-ratio: 3 / 4; border-radius: 4px 9px 9px 4px; overflow: hidden; transform: rotate(-2deg);
  box-shadow: 0 1px 1px color-mix(in srgb, black 18%, transparent), 0 12px 24px -10px color-mix(in srgb, black 55%, transparent); }
.rl3-stat__cover svg { display: block; width: 100%; height: 100%; }
.rl3 .rl3-stat .hb-stat__t > b { font-size: 16px; line-height: 1.4; text-wrap: balance; }
.rl3-stat__bar { width: 100%; min-width: 170px; height: 6px; margin-top: 10px; }
.rl3-stat__go { margin-top: 12px; }

/* ═══ THẺ LỌC (chồng mép dải) ═══ */
.rl3-filter { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.rl3-seg { display: flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--lv-sunken); overflow-x: auto; scrollbar-width: none; }
.rl3-seg::-webkit-scrollbar { display: none; }
.rl3-seg.is-r { -webkit-mask-image: linear-gradient(90deg, black calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, black calc(100% - 56px), transparent); }
.rl3-seg.is-l { -webkit-mask-image: linear-gradient(90deg, transparent, black 56px); mask-image: linear-gradient(90deg, transparent, black 56px); }
.rl3-seg.is-l.is-r { -webkit-mask-image: linear-gradient(90deg, transparent, black 56px, black calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, black 56px, black calc(100% - 56px), transparent); }
.rl3-seg__i { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 10px; font-size: 13.5px; font-weight: 650; line-height: 1.4; color: var(--lv-text); white-space: nowrap; }
.rl3-seg__i em { font-style: normal; font-weight: 600; color: var(--lv-faint); font-variant-numeric: tabular-nums; }
.rl3-seg__i:hover { color: var(--lv-ink); }
.rl3-seg__i.is-on { background: var(--lv-surface); color: var(--lv-brand-deep); box-shadow: var(--lv-sh-1); }
.rl3-seg__i.is-on em { color: var(--lv-brand-fg); }

.rl3-find { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 4px 4px 14px; border: 1px solid var(--lv-border); border-radius: 12px; background: var(--lv-surface);
  transition: border-color var(--lv-dur) var(--lv-ease), box-shadow var(--lv-dur) var(--lv-ease); }
.rl3-find:focus-within { border-color: color-mix(in srgb, var(--color-primary) 55%, var(--lv-border)); box-shadow: var(--lv-focus); }
.rl3-find input[type="search"] { flex: 1; min-width: 0; height: 34px; border: 0; outline: 0; background: transparent; font: 400 14px/1.4 var(--lv-font); color: var(--lv-ink); }
.rl3-find input[type="search"]::placeholder { color: var(--lv-faint); }
.rl3-find__sel { flex: none; max-width: 42%; height: 34px; padding: 0 28px 0 10px; border: 0; border-right: 1px solid var(--lv-hair); border-radius: 0; background-color: transparent; font: 600 13.5px/1.4 var(--lv-font); color: var(--lv-ink); cursor: pointer; }
.rl3-find__sel:focus { outline: none; }

.rl3-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.rl3-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rl3-chips + .rl3-chips { padding-left: 18px; border-left: 1px solid var(--lv-hair); }
.rl3-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--lv-border);
  background: var(--lv-surface); font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--lv-text); white-space: nowrap;
  transition: background var(--lv-dur) var(--lv-ease), border-color var(--lv-dur) var(--lv-ease), color var(--lv-dur) var(--lv-ease); }
.rl3-chip em { font-style: normal; font-weight: 600; color: var(--lv-faint); font-variant-numeric: tabular-nums; }
.rl3-chip:hover { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-border)); color: var(--lv-ink); }
.rl3-chip.is-on { background: var(--lv-wash); border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-border)); color: var(--lv-brand-deep); }
.rl3-chip.is-on em { color: var(--lv-brand-fg); }
.rl3-note { font-size: 13.5px; line-height: 1.55; color: var(--lv-muted); font-variant-numeric: tabular-nums; }
.rl3-bar__n { margin-left: auto; }
.rl3-reset { margin-left: 6px; font-weight: 650; color: var(--lv-brand-fg); }
.rl3-reset:hover { color: var(--lv-brand-deep); }
.rl3-quota { padding: 11px 14px; border-radius: 12px; background: var(--lv-sunken); font-size: 13.5px; line-height: 1.55; color: var(--lv-text); }
.rl3-quota a { font-weight: 650; color: var(--lv-brand-fg); text-decoration: underline; text-underline-offset: 3px; }

/* ═══ LƯỚI ĐỀ: ảnh bên trái · tên · một dòng số · trạng thái + lời mời ═══ */
.rl3-tests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.rl3-test { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; padding: 10px 14px 10px 10px; color: inherit; }
.rl3-test.is-done { box-shadow: inset 3px 0 0 var(--color-secondary), var(--lv-sh-2); }
.rl3-test__img { position: relative; align-self: stretch; min-height: 92px; border-radius: 12px; overflow: hidden; background: var(--lv-sunken); }
.rl3-test__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--lv-dur) var(--lv-ease); }
.rl3-test:hover .rl3-test__img img { transform: scale(1.04); }
.rl3-test__img--txt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--lv-on);
  background: radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--color-primary) 40%, transparent), transparent 70%), var(--lv-card-grad); }
.rl3-test__img--txt small { font-size: 10.5px; font-weight: 600; line-height: 1.4; color: var(--lv-on-3); }
.rl3-test__img--txt b { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rl3-test__img--txt .rl3-test__word { font-size: 17px; letter-spacing: -.01em; }
.rl3-test__b { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 4px 0 2px; }
.rl3-test__t { font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--lv-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl3-test:hover .rl3-test__t { color: var(--lv-brand-deep); }
.rl3-test__m { font-size: 12.5px; line-height: 1.5; color: var(--lv-muted); }
.rl3-test__f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.rl3-test__st { min-width: 0; font-size: 12.5px; line-height: 1.45; font-weight: 650; color: var(--lv-brand-fg); font-variant-numeric: tabular-nums; }
.rl3-test__go { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--lv-border);
  font-size: 12.5px; font-weight: 650; line-height: 1.4; color: var(--lv-ink); transition: background var(--lv-dur) var(--lv-ease), border-color var(--lv-dur) var(--lv-ease); }
.rl3-test:hover .rl3-test__go { background: var(--lv-tint); border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-border)); }
.rl3-test.is-open .rl3-test__go { background: var(--lv-brand-strong); border-color: transparent; color: var(--lv-on); }
/* Đề khoá (free đã hết suất tháng): vẫn bấm vào xem trang đề được — chỉ làm nhạt, nút xám */
.rl3-test.is-locked .rl3-test__img { opacity: .6; }
.rl3-test.is-locked .rl3-test__go { background: var(--lv-sunken); border-color: transparent; color: var(--lv-muted); }

.rl3-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 22px 24px; }
.rl3-empty b { font-size: 16px; color: var(--lv-ink); }

.rl3-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.rl3-pg { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--lv-border);
  background: var(--lv-surface); font-size: 13.5px; font-weight: 650; color: var(--lv-text); font-variant-numeric: tabular-nums; }
.rl3-pg:hover { border-color: color-mix(in srgb, var(--color-primary) 45%, var(--lv-border)); color: var(--lv-ink); }
.rl3-pg.is-on { background: var(--lv-brand-strong); border-color: transparent; color: var(--lv-on); }
.rl3-pg--gap { border-color: transparent; background: transparent; min-width: 20px; color: var(--lv-faint); }
.rl3-pager .lv-btn { height: 40px; }

/* ═══ KỆ SÁCH CAMBRIDGE (?series=cambridge) ═══ */
.rl3-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; margin-top: 14px; }
.rl3-book { display: flex; flex-direction: column; gap: 12px; padding: 12px; color: inherit; }
.rl3-book__cover { display: block; aspect-ratio: 3 / 4; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--lv-shade) 90%, transparent);
  transition: transform var(--lv-dur) var(--lv-ease); }
.rl3-book__cover svg { display: block; width: 100%; height: 100%; }
.rl3-book:hover .rl3-book__cover { transform: translateY(-2px); }
.rl3-book__b { display: flex; flex-direction: column; gap: 3px; padding: 0 2px 2px; }
.rl3-book__b b { font-size: 14.5px; line-height: 1.4; font-weight: 700; color: var(--lv-ink); }
.rl3-book:hover .rl3-book__b b { color: var(--lv-brand-deep); }
.rl3-book__b > span:not(.rl3-book__bar) { font-size: 12.5px; color: var(--lv-muted); font-variant-numeric: tabular-nums; }
.rl3-book__bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.rl3-book__bar .lv-bar { flex: 1; height: 6px; }
.rl3-book__bar em { font-style: normal; font-size: 12px; font-weight: 650; color: var(--lv-muted); font-variant-numeric: tabular-nums; }

/* ═══ KHỔ HẸP ═══ */
@media (max-width: 1280px) { .rl3-tests { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .rl3 .rl3-title { font-size: 32px; }
  .rl3 .rl3-stat { max-width: none; padding: 14px 16px 14px 14px; }
  .rl3 .lv-band__actions .lv-btn { max-width: 100%; }
  .rl3-filter { padding: 14px; }
  .rl3-bar__n { margin-left: 0; width: 100%; }
  .rl3-chips + .rl3-chips { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .rl3 .lv-band__actions { flex-direction: column; align-items: stretch; }
  .rl3 .lv-band__actions .lv-btn { width: 100%; }
  .rl3-stat__cover { width: 60px; }
  .rl3-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; width: calc(100% + 28px); }
  .rl3-chips::-webkit-scrollbar { display: none; }
  .rl3-chips + .rl3-chips { padding-left: 14px; }
  .rl3-chip { flex: none; }
  .rl3-tests { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rl3-test { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .rl3-test__img { min-height: 84px; }
  .rl3-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 380px) { .rl3 .rl3-title { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .rl3-test__img img, .rl3-book__cover { transition: none; } }

/* ═══════════════════════════════════════════════════════════════════════════
   CHI TIẾT ĐỀ /ielts/reading/test (khuôn A, 26/09/2026) — main.rl3.rt3: dùng lại .rl3-back/.rl3-facts/.rl3-stat ở trên.
   Dải: tên đề + chip số liệu + thẻ kính (ảnh đề + tình trạng của bạn) · thẻ "Chọn cách làm" chồng mép dải ·
   hai cột: đề này có gì + xem trước | lịch sử làm đề (điện thoại: lịch sử lên trước).
   ═══════════════════════════════════════════════════════════════════════════ */
.rt3 .rt3-title { font-size: 38px; line-height: 1.15; text-wrap: balance; }
.rt3-below { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--lv-on-3); }
.rt3 .rt3-stat { align-items: stretch; }
.rt3-stat__img { flex: none; position: relative; width: 116px; min-height: 88px; border-radius: 12px; overflow: hidden; background: var(--lv-glass); }
.rt3-stat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rt3-stat__img .rl3-test__img--txt { position: absolute; inset: 0; }
.rt3 .rt3-stat .hb-stat__t { justify-content: center; }

.rt3-card, .rt3-modes { padding: 20px 22px; }
.rt3-card__h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 14px; }
.rt3-card__h h2 { font-size: 18px; line-height: 1.35; font-weight: 750; letter-spacing: -.01em; color: var(--lv-ink); }
.rt3-card__h > span { font-size: 13px; line-height: 1.45; color: var(--lv-muted); font-variant-numeric: tabular-nums; }
.rt3-card__h > a { font-size: 13.5px; font-weight: 650; color: var(--lv-brand-fg); }
.rt3-card__h > a:hover { color: var(--lv-brand-deep); }
.rt3-note { font-size: 13.5px; line-height: 1.55; color: var(--lv-muted); }
.rt3-note a { font-weight: 650; color: var(--lv-brand-fg); }
.rt3-note a:hover { color: var(--lv-brand-deep); }

/* Chọn cách làm: hai ô, hình giao diện + tên + mô tả + nút */
.rt3-modes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
/* Ô hẹp (điện thoại, máy tính bảng): hình nhỏ bên trái · ô rộng ≥460px: hình lớn bên trái — không bao giờ xếp dọc (quá cao) */
.rt3-mode { container-type: inline-size; padding: 14px; border: 1px solid var(--lv-hair); border-radius: 16px; background: var(--lv-surface); }
.rt3-mode__in { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 12px; }
@container (min-width: 460px) { .rt3-mode__in { grid-template-columns: minmax(0, min(44%, 320px)) minmax(0, 1fr); align-items: center; gap: 18px; } }
.rt3-mode__fig { border-radius: 12px; overflow: hidden; border: 1px solid var(--lv-hair); background: var(--lv-sunken); }
.rt3-mode__fig svg { display: block; width: 100%; height: auto; }
.rt3-mode__b { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rt3-mode__b h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 16px; line-height: 1.4; font-weight: 750; color: var(--lv-ink); }
.rt3-mode__b p { font-size: 13.5px; line-height: 1.55; color: var(--lv-muted); }
.rt3-mode__b form { margin: 0; }
.rt3-mode__b > form, .rt3-mode__b > .lv-btn { margin-top: auto; }
.rt3-mode__b p { margin-bottom: 8px; }
.rt3-mode__b .lv-btn { width: 100%; height: 44px; }
.rt3-modes > .rt3-note { margin-top: 14px; }
.rt3-up__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rt3-task { font-size: 14.5px; line-height: 1.7; color: var(--lv-text); }

/* Hai cột */
.rt3-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "main side"; gap: 14px; align-items: start; margin-top: 14px; }
.rt3-cols--one { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; }
.rt3-cols__main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rt3-cols__side { grid-area: side; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* Đề này có gì: dạng câu hỏi + thanh tỉ lệ */
.rt3-mix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.rt3-mix__r { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 26px; gap: 12px; align-items: center; font-size: 13.5px; line-height: 1.45; color: var(--lv-text); }
.rt3-mix__r > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt3-mix__r b { text-align: right; color: var(--lv-ink); font-variant-numeric: tabular-nums; }
.rt3-mix__r .lv-bar { height: 7px; }
.rt3-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lv-hair); font-size: 13px; color: var(--lv-muted); }
.rt3-tags > span:first-child { margin-right: 4px; }

/* Xem trước passage */
.rt3-pp__body { position: relative; max-height: 190px; overflow: hidden; }
.rt3-pp__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--lv-surface)); }
.rt3-pp__body p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.8; color: var(--lv-text); }
.rt3-pp__lbl { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 999px; background: var(--lv-wash); font-size: 12px; font-weight: 700; line-height: 1.7; color: var(--lv-brand-deep); }
.rt3-pp > .rt3-note { margin-top: 6px; }

/* Lịch sử làm đề */
.rt3-hist { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--lv-hair); color: inherit; }
.rt3-card__h + .rt3-hist { border-top: 0; padding-top: 0; }
.rt3-hist:last-child { padding-bottom: 0; }
.rt3-hist__b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rt3-hist__b b { font-size: 13.5px; line-height: 1.45; font-weight: 700; color: var(--lv-ink); }
.rt3-hist__b small { font-size: 12.5px; line-height: 1.45; color: var(--lv-muted); font-variant-numeric: tabular-nums; }
.rt3-hist__v { flex: none; min-width: 48px; padding: 4px 10px; border-radius: 10px; background: var(--lv-wash); text-align: center; font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--lv-brand-deep); font-variant-numeric: tabular-nums; }
a.rt3-hist:hover .rt3-hist__b b { color: var(--lv-brand-deep); }

/* Hộp xác nhận Thi thử: luật chỉ chữ */
.rt3-rules { margin: 0; padding: 12px 16px 12px 34px; border-radius: 12px; background: var(--lv-sunken); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--lv-text); }

@media (max-width: 1023px) {
  .rt3 .rt3-title { font-size: 30px; }
  .rt3-card, .rt3-modes { padding: 16px; }
  .rt3-cols { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
  .rt3-cols--one, .rt3-cols--main-first { grid-template-areas: "main" "side"; }
}
@media (max-width: 720px) {
  .rt3-stat__img { width: 88px; min-height: 72px; }
  .rt3-mix { grid-template-columns: minmax(0, 1fr); }
}

/* ═══ TRANG CHUẨN BỊ WRITING /ielts/writing/practice (main.wp3) ═══ */
.wp3 .rl3-title { font-size: 38px; }
.wp3-prompt__body { font-size: 16px; line-height: 1.75; color: var(--lv-ink); }
.wp3-prompt__body p { margin: 0 0 10px; }
.wp3-prompt__body p:last-child { margin-bottom: 0; }
.wp3-prompt__body strong { font-weight: 700; }
.wp3-img { position: relative; margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--lv-hair); background: var(--lv-surface); }
.wp3-img img { display: block; max-width: 100%; max-height: 480px; width: auto; margin: 0 auto; }
.wp3-img.is-blurred img { filter: blur(14px); user-select: none; pointer-events: none; }
.wp3-img__lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px;
  text-align: center; background: color-mix(in srgb, var(--lv-surface) 70%, transparent); }
.wp3-img__lock b { font-size: 15px; color: var(--lv-ink); }
.wp3-note { margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: var(--lv-sunken); font-size: 13.5px; line-height: 1.6; color: var(--lv-text); }
.wp3-note b { color: var(--lv-ink); }
.rt3-card + .rt3-modes, .rt3-modes + .rt3-cols { margin-top: 14px; }
.wp3-modes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.wp3-mode { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--lv-hair); border-radius: 16px; background: var(--lv-surface); }
.wp3-mode h3 { font-size: 16px; line-height: 1.4; font-weight: 750; color: var(--lv-ink); }
.wp3-mode p { flex: 1; margin-bottom: 8px; font-size: 13.5px; line-height: 1.55; color: var(--lv-muted); }
.wp3-mode .lv-btn { width: 100%; height: 44px; }
.wp3-modes > .rt3-note { margin-top: 14px; }
.wp3-tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; color: var(--lv-text); }
.wp3-tips strong { color: var(--lv-ink); }
.wp3-outline { margin: 0; padding: 0; list-style: none; counter-reset: wp3; display: flex; flex-direction: column; gap: 10px; }
.wp3-outline li { position: relative; padding-left: 38px; counter-increment: wp3; display: flex; flex-direction: column; gap: 2px; }
.wp3-outline li::before { content: counter(wp3); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800; line-height: 1; color: var(--lv-brand-deep); background: var(--lv-wash); }
.wp3-outline b { font-size: 14px; line-height: 1.45; color: var(--lv-ink); }
.wp3-outline span { font-size: 13px; line-height: 1.5; color: var(--lv-muted); }
.wp3-reveal { margin-top: 10px; }
.wp3-stabs { display: inline-flex; gap: 4px; padding: 4px; margin: 12px 0; border-radius: 12px; background: var(--lv-sunken); }
.wp3-stabs button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font: 650 13px/1.4 var(--lv-font); color: var(--lv-muted); cursor: pointer; }
.wp3-stabs button.is-on { background: var(--lv-surface); color: var(--lv-brand-deep); box-shadow: var(--lv-sh-1); }
.wp3-sample { max-height: 440px; overflow-y: auto; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--lv-hair); background: var(--lv-bg);
  font-size: 15px; line-height: 1.8; color: var(--lv-text); }
.wp3-sample p { margin: 0 0 10px; }
.wp3-sample pre { margin: 0; white-space: pre-wrap; font: inherit; }
.wp3 .kb-mark-wrap { margin: 0; }
@media (max-width: 1023px) { .wp3 .rl3-title { font-size: 30px; } }

/* ═══ TRANG CHUẨN BỊ SPEAKING /ielts/speaking/{id} (main.sp3) — dùng lại .wp3-mode/.wp3-tips/.wp3-outline ═══ */
.sp3 .rl3-title { font-size: 34px; line-height: 1.2; }
.sp3-cue__lead { font-size: 14px; font-weight: 650; color: var(--lv-muted); margin-bottom: 8px; }
.sp3-cue__list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.6; color: var(--lv-ink); }
.sp3-steps li span { font-size: 14px; line-height: 1.55; color: var(--lv-text); }
.sp3-vocab { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sp3-word { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--lv-hair); background: var(--lv-bg); }
.sp3-word b { font-size: 14.5px; line-height: 1.4; color: var(--lv-ink); }
.sp3-word span { font-size: 12.5px; line-height: 1.5; color: var(--lv-muted); }
.sp3-word .sp3-word__ipa { color: var(--lv-brand-fg); }
.sp3-crit { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.sp3-crit li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--lv-hair); }
.sp3-crit li:first-child { border-top: 0; padding-top: 0; }
.sp3-crit b { font-size: 14px; line-height: 1.45; color: var(--lv-ink); }
.sp3-crit span { font-size: 12.5px; line-height: 1.5; color: var(--lv-muted); }
.sp3 .wp3-modes > .rt3-note { margin-top: 14px; }
@media (max-width: 1023px) { .sp3 .rl3-title { font-size: 26px; } }
