/* ===== Góc học tập — tệp gộp 2/2, SINH BỞI tools/gop-css-goc.js — đừng sửa tay, sửa tệp nguồn rồi chạy lại =====
   Nguồn theo thứ tự: toeic-exam · goc-dong-bo · goc-rung · thptqg · lop-hoc · lop-bai-lam · lop-tu-vung · goc-ghibli · tro-choi.
   Nạp sau lessons.css; sau tệp này là tra-tu.css, chon-che-do.css, thanh-tren.css (dùng chung với trang khác).
   Bảng màu (token) theo lớp giao diện: .dash --t-… (dashboard-tid, goc-1) → --g-… (goc-dong-bo) → html.moi --r-… (goc-rung) → html.gb --gb-… (goc-ghibli);
   từng mục: .ex --ex-…, --k-… · --tq-… · .lh --lh-… · --bl-c · .gm --gm-…  Nền tối: html.gb-toi (cuối phần lop-hoc, tro-choi; thanh-tren.css). */

/* ######## [toeic-exam.css] ######## */
/* ===== Phòng thi TOEIC (toeic-exam.js) — giao diện kiểu TID + nhiều chuyển động, mascot có logo TOEX ===== */
.ex { --ex-r: 28px; font-family: "Quicksand", "Plus Jakarta Sans", system-ui, sans-serif; color: var(--t-ink); }
.ex h1, .ex h2, .ex h3, .ex-run h2, .ex-run h3 { font-family: inherit; font-weight: 700; color: inherit; }

/* ---------- chuyển động dùng chung ---------- */
@keyframes exUp { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes exFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes exBounce { 0% { transform: scale(.4) translateY(40px); opacity: 0; } 60% { transform: scale(1.08) translateY(-8px); opacity: 1; } 80% { transform: scale(.96); } 100% { transform: none; } }
@keyframes exWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes exPop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes exShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes exBurst { 0% { box-shadow: 0 0 0 0 rgba(32, 180, 134, .55); } 100% { box-shadow: 0 0 0 18px rgba(32, 180, 134, 0); } }
@keyframes exInR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes exInL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes exPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes exWave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes exShine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes exOrb { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, -16px) scale(1.12); } }
@keyframes exFall { 0% { transform: translateY(-20px) rotate(0) scale(var(--s)); opacity: 1; } 100% { transform: translateY(110vh) rotate(var(--r)) scale(var(--s)); opacity: .9; } }
@keyframes exBar { from { width: 0; } to { width: var(--w); } }
@keyframes exBlink { 0%, 100% { background: #FFE58F; } 50% { background: #FFC02E; } }
.ex-float { animation: exFloat 3.6s ease-in-out infinite; }
.ex-bounce { animation: exBounce .9s cubic-bezier(.2, .9, .3, 1.3) both; }

/* ---------- nút ---------- */
.ex-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--t-soft); color: var(--t-ink); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s, box-shadow .15s; }
.ex-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); }
.ex-btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.ex-btn:disabled { opacity: .45; cursor: default; }
.ex-btn.ink { background: #1B1D22; color: #fff; } .ex-btn.coral { background: var(--t-coral); color: #fff; box-shadow: 0 8px 18px rgba(255, 93, 71, .3); }
.ex-btn.white { background: #fff; color: #1B1D22; } .ex-btn.ghost { background: rgba(255, 255, 255, .55); color: inherit; }
.ex-btn.big { min-height: 52px; padding: 0 26px; font-size: 16px; } .ex-btn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.ex-btn:focus-visible, .ex-opt:focus-visible, .ex-nums button:focus-visible { outline: 3px solid var(--t-blue); outline-offset: 2px; }

/* ---------- hero phòng thi ---------- */
.ex-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 20px; min-height: 300px; margin-bottom: 18px; padding: 34px 38px; border-radius: 32px; background: linear-gradient(135deg, #4F7CF7, #7B5CF0); color: #fff; overflow: hidden; animation: exUp .6s both; }
.ex-hero.detail { background: linear-gradient(135deg, #FF7A59, #FF5D47 55%, #F2994A); }
.ex-hero.coral { background: linear-gradient(135deg, #FF7A59, #FF5D47); } .ex-hero.purple { background: linear-gradient(135deg, #9B5DE5, #7B5CF0); } .ex-hero.green { background: linear-gradient(135deg, #20B486, #179A72); }
.ex-hero.slim { min-height: 240px; }
.ex-hero-txt { position: relative; z-index: 1; }
.ex-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ex-hero h1 { margin: 12px 0 10px; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; color: #fff !important; }
.ex-hero p { max-width: 600px; margin: 0; font-size: 16px; line-height: 1.6; opacity: .92; }
.ex-hero-nums { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ex-hero-nums span { display: flex; flex-direction: column; min-width: 78px; padding: 8px 14px; border-radius: 18px; background: rgba(255, 255, 255, .18); font-size: 12.5px; font-weight: 700; }
.ex-hero-nums b { font-size: 26px; line-height: 1.1; }
.ex-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ex-hero-cat { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.ex-hero-cat img { width: 220px; max-width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .18)); }
.ex-bubble { position: relative; order: -1; margin-bottom: 10px; padding: 10px 16px; border-radius: 18px; background: #fff; color: #1B1D22; font-size: 14px; font-weight: 700; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); animation: exPop .6s .4s both; }
.ex-bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.ex-bubble.small { font-size: 12.5px; padding: 8px 12px; } .ex-bubble.pop { animation: exPop .45s both; }
.ex-orb { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .14); pointer-events: none; animation: exOrb 7s ease-in-out infinite; }
.ex-orb.a { width: 280px; height: 280px; right: -80px; top: -90px; } .ex-orb.b { width: 160px; height: 160px; left: 40%; bottom: -70px; animation-delay: -3s; }

/* ---------- số liệu + bộ lọc ---------- */
.ex-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ex-stat { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 24px; background: var(--t-card); box-shadow: var(--t-shadow); animation: exUp .5s calc(var(--i) * 80ms + 150ms) both; }
.ex-stat b { font-size: 34px; line-height: 1.1; color: var(--t-coral); } .ex-stat:nth-child(2) b { color: var(--t-blue); } .ex-stat:nth-child(3) b { color: var(--t-green); } .ex-stat:nth-child(4) b { color: var(--t-purple); }
.ex-stat small { font-size: 13px; font-weight: 700; color: var(--t-muted); }
.ex-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ex-chips button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--t-card); color: var(--t-ink); box-shadow: var(--t-shadow); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .15s, background .2s; }
.ex-chips button:hover { transform: translateY(-2px); } .ex-chips button.on { background: var(--t-coral); color: #fff; }
.ex-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; font-size: 24px; }
.ex-h::after { content: ""; flex: 1; border-bottom: 1.5px dashed var(--t-line); }
.ex-badge { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--t-coral); color: #fff; font-size: 14px; }
.ex-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 8px 16px; border-radius: 999px; background: var(--t-card); color: var(--t-ink); box-shadow: var(--t-shadow); font-weight: 700; text-decoration: none; transition: transform .15s; }
.ex-back:hover { transform: translateX(-3px); }

/* ---------- thẻ đề ---------- */
.ex-tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ex-test { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 230px; padding: 22px; border-radius: var(--ex-r); color: #fff; overflow: hidden; animation: exUp .55s calc(var(--i) * 70ms + 200ms) both; transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), box-shadow .25s; }
.ex-test:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 34px rgba(16, 24, 40, .18); }
.ex-test::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: transform .4s; }
.ex-test:hover::before { transform: scale(1.3); }
.ex-test.coral { background: linear-gradient(150deg, #FF7A59, #FF5D47); } .ex-test.blue { background: linear-gradient(150deg, #5E8BFF, #4F7CF7); } .ex-test.yellow { background: linear-gradient(150deg, #FFD15C, #FFB800); color: #1B1D22; }
.ex-test.purple { background: linear-gradient(150deg, #B07CF0, #9B5DE5); } .ex-test.green { background: linear-gradient(150deg, #34C99A, #20B486); }
.ex-test-tag { position: relative; font-size: 11px; font-weight: 700; letter-spacing: .14em; opacity: .85; }
.ex-test h3 { position: relative; margin: 2px 0 0; max-width: 72%; font-size: 26px; line-height: 1.1; }
.ex-test-meta { position: relative; margin: 0; font-size: 13.5px; font-weight: 600; opacity: .9; }
.ex-test-best { position: absolute; right: 16px; top: 16px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #1B1D22; font-size: 13px; font-weight: 700; animation: exPop .5s .6s both; }
.ex-test-img { position: absolute; right: -4px; bottom: 52px; width: 110px; height: auto; transition: transform .35s cubic-bezier(.2, .9, .3, 1.4); pointer-events: none; }
.ex-test:hover .ex-test-img { transform: translateY(-8px) rotate(6deg) scale(1.06); }
.ex-test-btns { position: relative; display: flex; gap: 8px; margin-top: auto; }
.ex-test-btns .ex-btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
.ex-test.soon { background: var(--t-card); color: var(--t-muted); box-shadow: var(--t-shadow); }
.ex-test.soon::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: exShine 2.6s ease-in-out infinite; }
.ex-test.soon h3 { color: var(--t-ink); opacity: .55; }
.ex-lock { position: absolute; right: 18px; bottom: 16px; font-size: 34px; opacity: .5; animation: exWiggle 2.4s ease-in-out infinite; }

/* ---------- Part ---------- */
.ex-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.ex-part { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 220px; padding: 22px; border-radius: var(--ex-r); background: var(--t-card); box-shadow: var(--t-shadow); overflow: hidden; animation: exUp .5s calc(var(--i) * 70ms + 150ms) both; transition: transform .25s; }
.ex-part:hover { transform: translateY(-5px); }
.ex-part::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--pc); }
.ex-part.coral { --pc: var(--t-coral); } .ex-part.orange { --pc: var(--t-orange); } .ex-part.yellow { --pc: var(--t-yellow); } .ex-part.blue { --pc: var(--t-blue); } .ex-part.purple { --pc: var(--t-purple); } .ex-part.green { --pc: var(--t-green); } .ex-part.teal { --pc: var(--t-teal); }
.ex-part-no { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--pc); color: #fff; font-size: 12px; font-weight: 700; }
.ex-part h3 { margin: 4px 0 0; font-size: 22px; } .ex-part p { margin: 0; max-width: 72%; font-size: 13.5px; line-height: 1.5; color: var(--t-muted); }
.ex-part-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; font-weight: 700; } .ex-part-meta span { padding: 3px 9px; border-radius: 999px; background: var(--t-soft); } .ex-part-meta .ok { background: #DDF4EC; color: #127A5B; }
.ex-part-img { position: absolute; right: 8px; bottom: 54px; width: 92px; height: auto; transition: transform .35s cubic-bezier(.2, .9, .3, 1.4); pointer-events: none; }
.ex-part:hover .ex-part-img { transform: translateY(-6px) scale(1.08) rotate(-4deg); }
.ex-part-btns { display: flex; gap: 8px; margin-top: auto; } .ex-part-btns .ex-btn.white { background: var(--pc); color: #fff; } .ex-part-btns .ex-btn.ghost { background: var(--t-soft); }

/* ---------- lịch sử ---------- */
.ex-hist { display: grid; gap: 10px; }
.ex-hist-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 22px; background: var(--t-card); box-shadow: var(--t-shadow); animation: exUp .45s both; }
.ex-hist-score { display: grid; place-items: center; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #FFC02E, #FF9442); color: #1B1D22; font-size: 22px; font-weight: 700; }
.ex-hist-score.pct { background: linear-gradient(135deg, #8DB3FF, #4F7CF7); color: #fff; }
.ex-hist-txt { display: flex; flex-direction: column; min-width: 0; } .ex-hist-txt small { color: var(--t-muted); font-size: 13px; }
.ex-hist-row .ex-btn.ghost { background: var(--t-soft); }

/* ---------- trống ---------- */
.ex-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; border-radius: var(--ex-r); background: var(--t-card); box-shadow: var(--t-shadow); text-align: center; animation: exUp .5s both; }
.ex-empty img { width: 150px; height: auto; } .ex-empty b { font-size: 20px; } .ex-empty p { margin: 0 0 6px; color: var(--t-muted); }

/* ---------- câu sai / đã lưu ---------- */
.ex-qlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ex-qcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 18px 24px; border-radius: 24px; background: var(--t-card); box-shadow: var(--t-shadow); overflow: hidden; animation: exUp .45s calc(var(--i) * 50ms) both; }
.ex-qcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--pc, var(--t-coral)); }
.ex-qcard.coral { --pc: var(--t-coral); } .ex-qcard.orange { --pc: var(--t-orange); } .ex-qcard.yellow { --pc: var(--t-yellow); } .ex-qcard.blue { --pc: var(--t-blue); } .ex-qcard.purple { --pc: var(--t-purple); } .ex-qcard.green { --pc: var(--t-green); } .ex-qcard.teal { --pc: var(--t-teal); }
.ex-qcard-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.ex-qcard p { margin: 0; font-weight: 700; } .ex-qcard .ex-qcard-a { font-weight: 600; } .ex-qcard small { color: var(--t-muted); line-height: 1.5; }
.ex-qcard-x { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--t-soft); color: var(--t-muted); cursor: pointer; }

/* ---------- bản đồ kỹ năng + thanh % ---------- */
.ex-map { display: grid; gap: 10px; }
.ex-map-row, .ex-res-part { display: grid; grid-template-columns: 52px minmax(140px, 240px) minmax(0, 1fr) 56px; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 20px; background: var(--t-card); box-shadow: var(--t-shadow); animation: exUp .45s calc(var(--i) * 60ms + 100ms) both; }
.ex-map-p { display: grid; place-items: center; height: 40px; border-radius: 14px; background: var(--pc); color: #fff; font-weight: 700; }
.ex-map-row.yellow .ex-map-p { color: #3B2F0B; } /* 04/11: chữ trắng trên vàng khó đọc */
.ex-map-row.coral, .ex-res-part.coral { --pc: var(--t-coral); } .ex-map-row.orange, .ex-res-part.orange { --pc: var(--t-orange); } .ex-map-row.yellow, .ex-res-part.yellow { --pc: var(--t-yellow); } .ex-map-row.blue, .ex-res-part.blue { --pc: var(--t-blue); } .ex-map-row.purple, .ex-res-part.purple { --pc: var(--t-purple); } .ex-map-row.green, .ex-res-part.green { --pc: var(--t-green); } .ex-map-row.teal, .ex-res-part.teal { --pc: var(--t-teal); }
.ex-map-name { display: flex; flex-direction: column; } .ex-map-name small { color: var(--t-muted); font-size: 12.5px; }
.ex-res-bar { display: block; height: 14px; border-radius: 999px; background: var(--t-soft); overflow: hidden; }
.ex-res-bar i { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--pc, var(--t-blue)); }
.ex-res-bar i.go { animation: exBar 1.2s cubic-bezier(.2, .9, .3, 1) .3s forwards; }
.ex-map-row em, .ex-res-part em { font-style: normal; font-weight: 700; text-align: right; }

/* ================= MÀN LÀM BÀI (toàn màn hình) ================= */
body.ex-on { overflow: hidden; }
.ex-run { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: var(--t-bg, #EEF1F6); color: var(--t-ink); font-family: "Quicksand", "Plus Jakarta Sans", system-ui, sans-serif; animation: exUp .35s both; }
.ex-top { display: flex; align-items: center; gap: 14px; padding: 12px 20px; background: var(--t-card); box-shadow: var(--t-shadow); }
.ex-exit { border: 0; background: var(--t-soft); color: var(--t-ink); min-height: 40px; padding: 0 16px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s; }
.ex-exit:hover { transform: translateX(-3px); }
.ex-exit.light { background: rgba(255, 255, 255, .9); color: #1B1D22; }
.ex-code { display: flex; flex-direction: column; line-height: 1.2; } .ex-code b { font-size: 14px; } .ex-code small { font-size: 12.5px; color: var(--t-muted); font-weight: 600; }
.ex-prog { flex: 1; height: 10px; border-radius: 999px; background: var(--t-soft); overflow: hidden; }
.ex-prog i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FFC02E, #FF5D47); transition: width .5s cubic-bezier(.2, .9, .3, 1); }
.ex-timer { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--t-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.ex-timer.hurry { background: #FFE3DE; color: #C2311F; animation: exPulse 1s ease-in-out infinite; }
.ex-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; min-height: 0; padding: 18px 20px; }
.ex-main { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding: 4px; }
.ex-inst { margin: 0; font-size: 14.5px; color: var(--t-muted); } .ex-inst b { color: var(--t-ink); }
.ex-note { margin: 6px 0 0; font-size: 13px; color: var(--t-muted); }

/* trình phát */
.ex-audio { padding: 14px 18px 12px; border-radius: 24px; background: var(--t-card); box-shadow: var(--t-shadow); }
.ex-player { display: flex; align-items: center; gap: 14px; }
.ex-play { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #1B1D22; color: #fff; font-size: 16px; cursor: pointer; transition: transform .15s; }
.ex-play:hover:not(:disabled) { transform: scale(1.08); } .ex-play:disabled { opacity: .4; cursor: default; }
.ex-player.playing .ex-play { background: var(--t-coral); box-shadow: 0 0 0 0 rgba(255, 93, 71, .5); animation: exBurst 1.4s infinite; }
.ex-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 36px; min-width: 0; overflow: hidden; }
.ex-wave i { flex: 1; min-width: 2px; max-width: 6px; height: var(--h); border-radius: 3px; background: var(--t-line); transform: scaleY(.5); transform-origin: center; }
.ex-player.playing .ex-wave i { background: linear-gradient(var(--t-coral), var(--t-orange)); animation: exWave .9s ease-in-out infinite; animation-delay: calc(var(--k) * -73ms); }
.ex-ptime { font-size: 13px; font-weight: 700; color: var(--t-muted); font-variant-numeric: tabular-nums; }
.ex-rates { display: flex; gap: 4px; } .ex-rates button { min-height: 30px; padding: 0 9px; border: 0; border-radius: 999px; background: var(--t-soft); color: var(--t-ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; } .ex-rates button.on { background: #1B1D22; color: #fff; }
.ex-replay { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--t-soft); color: var(--t-ink); font-size: 17px; cursor: pointer; transition: transform .3s; } .ex-replay:hover:not(:disabled) { transform: rotate(-180deg); } .ex-replay:disabled { opacity: .35; cursor: default; }
.ex-pbar { display: block; height: 5px; margin-top: 10px; border-radius: 999px; background: var(--t-soft); overflow: hidden; } .ex-pbar i { display: block; width: 0; height: 100%; background: var(--t-coral); transition: width .4s; }
.ex-player.off .ex-wave { opacity: .4; }

/* câu hỏi */
.ex-stage { display: grid; gap: 16px; }
.ex-stage.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.ex-right { display: flex; flex-direction: column; gap: 12px; position: relative; }
.ex-photo { margin: 0; padding: 12px; border-radius: 24px; background: var(--t-card); box-shadow: var(--t-shadow); animation: exPop .45s both; }
.ex-photo img { display: block; width: 100%; max-height: 300px; object-fit: contain; border-radius: 16px; background: #FFF8EC; }
.ex-ear { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 24px; background: var(--t-card); box-shadow: var(--t-shadow); }
.ex-ear img { width: 92px; height: auto; } .ex-ear p { margin: 0; font-weight: 700; font-size: 16px; }
.ex-ear.big { flex-direction: column; text-align: center; padding: 30px 20px; } .ex-ear.big img { width: 150px; }
.ex-q { margin: 0; padding: 18px 20px; border-radius: 22px; background: var(--t-card); box-shadow: var(--t-shadow); font-size: 18px; font-weight: 700; line-height: 1.5; }
.ex-gap { display: inline-block; min-width: 90px; border-bottom: 3px solid var(--t-coral); color: transparent; animation: exBlink 1.6s ease-in-out infinite; border-radius: 4px 4px 0 0; }
.ex-passage { padding: 20px 22px; border-radius: 24px; background: var(--t-card); box-shadow: var(--t-shadow); font-size: 15.5px; line-height: 1.75; max-height: calc(100vh - 290px); overflow-y: auto; }
.ex-passage h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.ex-blank { display: inline-block; padding: 0 8px; border-radius: 8px; background: var(--t-soft); font-weight: 700; } .ex-blank.on { background: #FFC02E; color: #1B1D22; animation: exPulse 1.4s ease-in-out infinite; }
.ex-opts { display: grid; gap: 10px; } .ex-opts.row { grid-template-columns: 1fr 1fr; }
.ex-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border: 2px solid transparent; border-radius: 18px; background: var(--t-card); color: var(--t-ink); box-shadow: var(--t-shadow); font: inherit; font-size: 15.5px; font-weight: 600; text-align: left; cursor: pointer; animation: exUp .4s calc(var(--i) * 60ms + 80ms) both; transition: transform .15s, border-color .15s, background .2s; }
.ex-opt:hover:not(:disabled) { transform: translateX(4px); border-color: var(--t-blue); }
.ex-opt b { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--t-soft); font-size: 15px; transition: background .2s, color .2s, transform .2s; }
.ex-opt.on { border-color: var(--t-blue); background: #EEF3FF; } .ex-opt.on b { background: var(--t-blue); color: #fff; }
.ex-opt.pick b { animation: exPop .35s both; }
.ex-opt.right { border-color: var(--t-green); background: #E3F7F0; } .ex-opt.right b { background: var(--t-green); color: #fff; }
.ex-opt.wrong { border-color: var(--t-coral); background: #FFE9E5; } .ex-opt.wrong b { background: var(--t-coral); color: #fff; }
.ex-opt em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 18px; animation: exPop .4s both; } .ex-opt.right em { color: var(--t-green); } .ex-opt.wrong em { color: var(--t-coral); }
.ex-opt:disabled { cursor: default; } .ex-opt.shake { animation: exShake .45s both; } .ex-opt.burst { animation: exBurst .8s ease-out; }
.ex-mark { align-self: flex-start; border: 0; background: none; color: var(--t-muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px 2px; transition: color .15s, transform .15s; }
.ex-mark:hover { color: var(--t-orange); transform: scale(1.05); } .ex-mark.on { color: var(--t-orange); }
.ex-fb { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 22px; background: var(--t-card); box-shadow: var(--t-shadow); border-left: 6px solid var(--t-green); animation: exUp .45s both; }
.ex-fb.bad { border-left-color: var(--t-coral); } .ex-fb.skip { border-left-color: var(--t-yellow); }
.ex-fb-img { flex: none; width: 76px; height: auto; animation: exBounce .7s cubic-bezier(.2, .9, .3, 1.3) both; }
.ex-fb b { font-size: 16px; } .ex-fb p { margin: 4px 0 0; line-height: 1.6; font-size: 14.5px; }
.ex-script { margin-top: 8px; } .ex-script summary { cursor: pointer; font-weight: 700; color: var(--t-blue); } .ex-script p { margin: 4px 0; color: var(--t-muted); font-style: italic; }

/* bảng câu hỏi + mèo coi thi */
.ex-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ex-board { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; border-radius: 24px; background: var(--t-card); box-shadow: var(--t-shadow); }
.ex-board-h { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.ex-board-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 700; text-align: center; }
.ex-board-sum span { padding: 8px; border-radius: 14px; background: var(--t-soft); } .ex-board-sum .a { background: #FFE3DE; color: #C2311F; }
.ex-board-part small { display: block; margin: 8px 0 6px; font-size: 12px; font-weight: 700; color: var(--t-muted); }
.ex-nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ex-nums button { height: 38px; border: 2px solid transparent; border-radius: 12px; background: var(--t-soft); color: var(--t-ink); font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s, background .2s; }
.ex-nums button:hover { transform: translateY(-2px); }
.ex-nums .done { background: #FFE3DE; color: #C2311F; } .ex-nums .mk { box-shadow: inset 0 -4px 0 var(--t-orange); }
.ex-nums .ok { background: #DDF4EC; color: #127A5B; } .ex-nums .bad { background: #FFE3DE; color: #C2311F; }
.ex-nums .cur { border-color: #1B1D22; background: #1B1D22; color: #fff; transform: scale(1.06); }
.ex-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--t-muted); }
.ex-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 4px; border-radius: 4px; vertical-align: -1px; background: var(--t-soft); }
.ex-legend i.cur { background: #1B1D22; } .ex-legend i.done { background: #FFC9C0; } .ex-legend i.mk { box-shadow: inset 0 -4px 0 var(--t-orange); }
.ex-proctor { display: flex; flex-direction: column; align-items: center; }
.ex-proctor img { width: 130px; height: auto; cursor: pointer; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .12)); transition: transform .2s; }
.ex-proctor img:hover { animation: exWiggle .5s; }
.ex-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--t-card); box-shadow: 0 -1px 0 var(--t-line); }
.ex-foot span { font-weight: 600; color: var(--t-muted); } .ex-foot .ex-btn.ghost { background: var(--t-soft); }

/* màn chào 3-2-1 */
.ex-intro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(79, 124, 247, .14), transparent 60%); }
.ex-intro-cat { width: 190px; height: auto; animation: exBounce .9s cubic-bezier(.2, .9, .3, 1.3) both; }
.ex-intro .ex-eyebrow { background: var(--t-soft); color: var(--t-ink); } .ex-intro h2 { margin: 4px 0 0; font-size: 34px; } .ex-intro p { margin: 0; max-width: 520px; color: var(--t-muted); font-weight: 600; }
.ex-count { display: grid; place-items: center; width: 120px; height: 120px; margin-top: 10px; border-radius: 50%; background: linear-gradient(135deg, #FFC02E, #FF5D47); color: #fff; font-size: 64px; font-weight: 700; box-shadow: 0 16px 34px rgba(255, 93, 71, .35); }
.ex-count.pop { animation: exPop .55s cubic-bezier(.2, .9, .3, 1.4) both; }

/* hộp thoại */
.ex-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; background: rgba(17, 20, 28, .45); opacity: 0; transition: opacity .2s; }
.ex-modal.on { opacity: 1; }
.ex-modal-card { width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 24px 20px; border-radius: 28px; background: var(--t-card, #fff); color: var(--t-ink, #1B1D22); text-align: center; font-family: "Quicksand", sans-serif; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); transform: scale(.9); transition: transform .25s cubic-bezier(.2, .9, .3, 1.4); }
.ex-modal.on .ex-modal-card { transform: none; }
.ex-modal-img { width: 110px; height: auto; animation: exWiggle 1.2s ease-in-out infinite; } .ex-modal-card h3 { margin: 4px 0 0; font-size: 22px; } .ex-modal-card p { margin: 0; color: var(--t-muted); }
.ex-modal-btns { display: flex; gap: 10px; margin-top: 12px; } .ex-modal-btns .ex-btn.ghost { background: var(--t-soft, #F4F6FA); }

/* kết quả */
.ex-result { flex: 1; overflow-y: auto; padding: 18px clamp(16px, 4vw, 48px) 40px; }
.ex-result .ex-h { max-width: 1000px; margin-left: auto; margin-right: auto; }
.ex-res-hero { position: relative; display: grid; grid-template-columns: 170px 240px minmax(0, 1fr); align-items: center; gap: 24px; max-width: 1000px; margin: 14px auto 0; padding: 30px; border-radius: 32px; background: linear-gradient(135deg, #4F7CF7, #7B5CF0); color: #fff; overflow: hidden; animation: exUp .5s both; }
.ex-res-hero.great { background: linear-gradient(135deg, #FFB800, #FF7A59 60%, #FF5D47); }
.ex-res-img { width: 170px; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .2)); }
.ex-res-ring { position: relative; width: 220px; height: 220px; }
.ex-res-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ex-res-ring circle { fill: none; stroke-width: 16; } .ex-res-ring .bg { stroke: rgba(255, 255, 255, .22); } .ex-res-ring .fg { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .9, .3, 1); }
.ex-res-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .ex-res-ring b { font-size: 58px; line-height: 1; } .ex-res-ring small { font-size: 12.5px; font-weight: 700; opacity: .85; }
.ex-res-txt h2 { margin: 10px 0 6px; font-size: clamp(24px, 3vw, 34px); color: #fff; } .ex-res-txt p { margin: 0; font-weight: 600; opacity: .9; }
.ex-res-lr { display: flex; gap: 10px; margin-top: 14px; } .ex-res-lr span { display: flex; flex-direction: column; min-width: 110px; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .2); animation: exPop .5s .5s both; } .ex-res-lr span.r { animation-delay: .7s; }
.ex-res-lr small { font-size: 12px; font-weight: 700; opacity: .85; } .ex-res-lr b { font-size: 30px; line-height: 1.1; }
.ex-res-parts { display: grid; gap: 10px; max-width: 1000px; margin: 0 auto; }
.ex-res-part { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 56px; } .ex-res-part > span:first-child { font-size: 14.5px; } .ex-res-part b { color: var(--pc); }
.ex-res-note { max-width: 1000px; margin: 12px auto 0; font-size: 13px; color: var(--t-muted); }
.ex-res-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1000px; margin: 22px auto 0; } .ex-res-btns .ex-btn.white { box-shadow: var(--t-shadow); }
.ex-result > .ex-exit { position: relative; z-index: 2; }

/* pháo giấy */
.ex-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.ex-run > .ex-confetti, .ex-result .ex-confetti { position: fixed; }
.ex-confetti i { position: absolute; top: -20px; left: var(--x); width: 10px; height: 16px; border-radius: 3px; animation: exFall var(--d) cubic-bezier(.3, .6, .5, 1) var(--w) forwards; }
.ex-confetti i:nth-child(3n) { width: 12px; height: 12px; border-radius: 50%; } .ex-confetti i:nth-child(4n) { width: 6px; height: 18px; }

/* ---------- màn hình nhỏ ---------- */
@media (max-width: 1100px) { .ex-body { grid-template-columns: minmax(0, 1fr) 260px; } .ex-stage.split { grid-template-columns: 1fr; } .ex-passage { max-height: none; } .ex-res-hero { grid-template-columns: 200px minmax(0, 1fr); } .ex-res-img { display: none; } }
@media (max-width: 860px) {
  .ex-hero { grid-template-columns: 1fr; padding: 26px 24px; } .ex-hero-cat { order: -1; flex-direction: row; gap: 10px; } .ex-hero-cat img { width: 120px; } .ex-bubble { order: 2; margin: 0; } .ex-bubble::after { display: none; }
  .ex-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-body { grid-template-columns: 1fr; overflow-y: auto; padding: 12px; } .ex-main { overflow: visible; } .ex-proctor { display: none; } .ex-board { overflow: visible; }
  .ex-prog { display: none; } .ex-code small { display: none; } .ex-top { gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
  .ex-rates { display: none; } .ex-opts.row { grid-template-columns: 1fr; }
  .ex-res-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ex-res-lr { justify-content: center; }
  .ex-map-row { grid-template-columns: 44px minmax(0, 1fr) 50px; } .ex-map-row .ex-res-bar { grid-column: 1 / -1; grid-row: 2; }
  .ex-res-part { grid-template-columns: minmax(0, 1fr) 50px; } .ex-res-part .ex-res-bar { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .ex-hist-row { grid-template-columns: 60px minmax(0, 1fr); } .ex-hist-row .ex-btn { grid-column: 1 / -1; } .ex-foot span { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ex *, .ex-run, .ex-run *, .ex-modal * { animation: none !important; transition: none !important; }
  .ex-res-bar i.go { width: var(--w); }
}

/* đè màu chữ tiêu đề chung của web (body.v3 h1/h2) trên nền màu */
:root body.v3 .ex-hero h1, :root body.v3 .ex-res-txt h2, :root body.v3 .ex-test h3 { color: inherit !important; }
:root body.v3 .ex-hero { color: #fff; }
.ex-test .ex-btn.ghost { background: rgba(0, 0, 0, .16); color: inherit; }
.ex-test.yellow .ex-btn.ghost { background: rgba(0, 0, 0, .1); }
@media (max-height: 820px) { .ex-photo img { max-height: 220px; } .ex-proctor img { width: 100px; } }
@media (max-width: 860px) { .ex-body { display: block; } .ex-side { margin-top: 14px; } .ex-main { min-height: auto; } }

/* ===== chỉnh theo góp ý art director (ChatGPT, 25/10/2026) ===== */
.ex { --ex-r: 24px; }
.ex-btn { border-radius: 12px; } .ex-btn.big { min-height: 48px; }
.ex-btn.outline { background: transparent; color: var(--t-ink); box-shadow: inset 0 0 0 1.5px #D5DAE3; }
.ex-link { padding: 6px 4px; border: 0; background: none; color: var(--t-ink); font: inherit; font-weight: 700; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* hero phòng thi thấp hơn */
.ex-hero { min-height: 0; padding: 26px 32px; border-radius: 24px; grid-template-columns: minmax(0, 1fr) 240px; }
.ex-hero h1 { font-size: clamp(34px, 3.6vw, 48px); margin: 10px 0 8px; }
.ex-hero p { font-size: 15px; } .ex-hero-cat img { width: 160px; }
.ex-hero.slim { min-height: 0; }
/* thanh số liệu gọn */
.ex-bar { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; min-height: 64px; margin-bottom: 14px; padding: 12px 22px; border-radius: 16px; background: var(--t-card); box-shadow: var(--t-shadow); font-size: 14px; font-weight: 600; color: var(--t-muted); animation: exUp .5s .1s both; }
.ex-bar b { margin-right: 4px; font-size: 22px; color: var(--t-ink); }
.ex-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.ex-tools label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--t-muted); }
.ex-tools select { min-height: 44px; padding: 0 36px 0 14px; border: 1.5px solid #E3E7EE; border-radius: 12px; background: var(--t-card); color: var(--t-ink); font: inherit; font-weight: 700; cursor: pointer; }
/* thẻ đề: nền trắng, dải màu trên cùng, mascot nhỏ */
.ex-test, .ex-test.coral, .ex-test.blue, .ex-test.yellow, .ex-test.purple, .ex-test.green { min-height: 200px; padding: 24px 20px 18px; border: 1px solid #E3E7EE; border-radius: 16px; background: var(--t-card); color: var(--t-ink); }
.ex-test::before { left: 0; right: 0; top: 0; width: auto; height: 6px; border-radius: 0; background: var(--ac); transform: none !important; }
.ex-test.coral { --ac: var(--t-coral); } .ex-test.blue { --ac: var(--t-blue); } .ex-test.yellow { --ac: var(--t-yellow); } .ex-test.purple { --ac: var(--t-purple); } .ex-test.green { --ac: var(--t-green); }
.ex-test-tag { color: var(--t-muted); opacity: 1; letter-spacing: .1em; text-transform: uppercase; }
.ex-test h3 { font-size: 22px; } .ex-test h3 a { color: inherit; text-decoration: none; } .ex-test h3 a:hover { text-decoration: underline; }
.ex-test-meta { color: var(--t-muted); opacity: 1; }
.ex-test-img { width: 78px; bottom: 58px; right: 8px; }
.ex-test-btns { align-items: center; gap: 12px; }
.ex-test-best { background: #FFF4D6; }
.ex-test.soon { border-style: dashed; } .ex-test.soon::before { background: #E3E7EE; }
/* ===== màn làm bài: ít trang trí, chữ đề trung tính ===== */
.ex-body { grid-template-columns: minmax(0, 1fr) 272px; gap: 16px; padding: 16px 20px; }
.ex-passage, .ex-q, .ex-opt span, .ex-fb p, .ex-script p { font-family: "Quicksand", system-ui, sans-serif; }
.ex-passage { font-size: 16px; line-height: 1.7; color: #252934; border-radius: 16px; padding: 20px 22px; }
.ex-q { font-size: 17px; font-weight: 600; color: #252934; border-radius: 16px; }
.ex-audio, .ex-photo, .ex-ear, .ex-board, .ex-fb { border-radius: 16px; }
.ex-opt { min-height: 54px; border: 1px solid #E2E6ED; border-radius: 12px; box-shadow: none; font-size: 15.5px; font-weight: 500; }
.ex-opt:hover:not(:disabled) { transform: none; border-color: var(--t-blue); background: #F7F9FF; }
.ex-opt b { width: 30px; height: 30px; font-size: 14px; }
.ex-opt.on { border: 1.5px solid var(--t-blue); background: #F2F5FF; }
.ex-opt.right { border: 1.5px solid #17B889; background: #F0FBF7; } .ex-opt.wrong { border: 1.5px solid #FF6254; background: #FFF3F1; }
.ex-opt em { font-size: 18px; }
.ex-fb { border-left-width: 4px; padding: 14px 16px; }
.ex-fb-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #17B889; color: #fff; font-weight: 700; font-size: 15px; animation: exPop .4s both; }
.ex-fb.bad .ex-fb-ic { background: #FF6254; font-style: italic; } .ex-fb.skip .ex-fb-ic { background: #F2A900; }
.ex-fb b { font-size: 15.5px; }
.ex-timer { font-size: 16px; } .ex-timer.warn { background: #FFF4D6; color: #8A5A00; }
.ex-nums button { border-radius: 10px; height: 36px; }
.ex-proctor img { width: 96px; }
/* ===== kết quả: gọn hơn, nhiều số liệu hơn ===== */
.ex-res-hero { grid-template-columns: 120px 180px minmax(0, 1fr); gap: 22px; padding: 22px 28px; border-radius: 24px; }
.ex-res-img { width: 120px; } .ex-res-ring { width: 180px; height: 180px; } .ex-res-ring b { font-size: 46px; }
.ex-res-txt h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 8px 0 4px; }
.ex-res-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 1000px; margin: 14px auto 0; }
.ex-res-nums span { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--t-card); box-shadow: var(--t-shadow); font-size: 13px; font-weight: 600; color: var(--t-muted); animation: exUp .45s .2s both; }
.ex-res-nums b { font-size: 24px; color: var(--t-ink); font-variant-numeric: tabular-nums; } .ex-res-nums .ok b { color: #17A57A; } .ex-res-nums .bad b { color: #E5483A; }
.ex-res-btns { justify-content: flex-start; align-items: center; margin-top: 16px; }
.ex-res-miss { display: grid; gap: 8px; max-width: 1000px; margin: 0 auto; }
.ex-miss { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #E3E7EE; border-radius: 12px; background: var(--t-card); color: var(--t-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
.ex-miss:hover { border-color: var(--t-blue); }
.ex-miss-no { display: grid; place-items: center; height: 32px; border-radius: 10px; background: #FFF3F1; color: #E5483A; font-weight: 700; }
.ex-miss-txt { display: flex; flex-direction: column; min-width: 0; } .ex-miss-txt small { font-size: 12px; color: var(--t-muted); font-weight: 600; }
.ex-miss-txt b { font-family: "Quicksand", system-ui, sans-serif; font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-miss em { font-style: normal; font-weight: 700; font-size: 13px; color: #17A57A; }
.ex-res-parts .ex-res-part, .ex-map-row { border-radius: 14px; }
@media (max-width: 1100px) { .ex-res-hero { grid-template-columns: 180px minmax(0, 1fr); } }
@media (max-width: 860px) { .ex-res-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ex-res-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-hero { grid-template-columns: 1fr; } .ex-res-btns { justify-content: center; } }

/* ===== vòng 3 theo góp ý art director ===== */
.ex-hero { padding: 20px 30px; } .ex-hero h1 { font-size: clamp(32px, 3.2vw, 45px); } .ex-hero-cat img { width: 136px; } .ex-hero p { font-size: 14.5px; }
.ex-hero .ex-bubble { font-size: 13px; padding: 8px 12px; }
.ex-test::before { height: 4px; }
.ex-test-meta, .ex-bar, .ex-part p, .ex-hist-txt small, .ex-tools label { font-family: "Quicksand", system-ui, sans-serif; }
.ex-test-meta { font-size: 14px; font-weight: 500; color: #667085; }
.ex-test-best { top: 18px; right: 14px; padding: 3px 9px; background: #EEF3FF; color: #2F4FB8; font-size: 12.5px; animation: none; }
.ex-test-prog { position: relative; display: block; height: 3px; margin-top: 4px; border-radius: 3px; background: var(--t-soft); overflow: hidden; }
.ex-test-prog i { display: block; height: 100%; background: var(--ac); }
.ex-body { grid-template-columns: minmax(0, 1fr) 248px; }
.ex-board { padding: 16px; } .ex-nums { grid-template-columns: repeat(auto-fill, 40px); gap: 6px; } .ex-nums button { width: 40px; height: 40px; }
.ex-opt.right { border: 1px solid #20B889; background: #F2FBF7; } .ex-opt.wrong { border: 1px solid #FF6657; background: #FFF5F3; }
.ex-fb { border-left-width: 3px; }
.ex-res-nums { display: flex; gap: 0; min-height: 76px; padding: 0; border-radius: 16px; background: var(--t-card); box-shadow: var(--t-shadow); overflow: hidden; }
.ex-res-nums span { flex: 1; justify-content: center; padding: 12px 18px; border-radius: 0; box-shadow: none; background: none; border-left: 1px solid #E5E7EB; animation: none; font-family: "Quicksand", system-ui, sans-serif; }
.ex-res-nums span:first-child { border-left: 0; }
@media (max-width: 860px) { .ex-res-nums { flex-wrap: wrap; } .ex-res-nums span { flex: 1 1 45%; border-left: 0; border-top: 1px solid #E5E7EB; } .ex-body { display: block; } }
/* vòng 3b: vùng đề cao hơn, kết quả nhấn câu nhận xét */
@media (min-width: 861px) { .ex-passage { min-height: 440px; } .ex-ear.big { min-height: 300px; justify-content: center; } }
.ex-res-img { width: 108px; } .ex-res-txt h2 { font-size: clamp(25px, 2.6vw, 31px); font-weight: 700; }
/* ===== kệ "Đề theo sách" (de-sach/catalog.json; không có catalog thì ẩn) ===== */
.ex-shelf { margin-top: 8px; animation: exUp .5s both; }
.ex-shelf-lead { margin: -4px 0 14px; max-width: 720px; font-size: 15px; line-height: 1.6; color: var(--t-muted); }
.ex-shelf-lead b { color: var(--t-ink); }
.ex-shelf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ex-shelf-chips button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--t-card); color: var(--t-ink); box-shadow: inset 0 0 0 1.5px #D5DAE3; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.ex-shelf-chips button.on { background: #1B1D22; color: #fff; box-shadow: none; }
.ex-shelf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ex-shelf-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; }
.ex-shelf-tools .ex-shelf-chips { margin: 0; }
.ex-shelf-find { display: flex; gap: 8px; }
.ex-shelf-find input, .ex-shelf-find select { height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--t-card); color: var(--t-ink); box-shadow: inset 0 0 0 1.5px var(--t-line); font: 600 14px "Quicksand", sans-serif; }
.ex-shelf-find input { width: 190px; }
.ex-shelf-find input:focus-visible, .ex-shelf-find select:focus-visible { outline: 3px solid var(--t-blue); outline-offset: 1px; }
.ex-series + .ex-series { margin-top: 30px; }
.ex-series-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--t-ink); }
.ex-series-h span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: none; color: var(--t-muted); }
.ex-series-h .ex-link { font-size: 12px; letter-spacing: 0; text-transform: none; }
.ex-shelf-empty { padding: 28px; text-align: center; font-weight: 700; color: var(--t-muted); border: 1.5px dashed var(--t-line); border-radius: 18px; }

/* lưới bìa */
.ex-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 172px)); gap: 28px 24px; }
.ex-cover { display: flex; flex-direction: column; gap: 4px; color: var(--t-ink); text-decoration: none; }
.ex-cover-art { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px 7px 7px 3px; box-shadow: 0 1px 0 rgba(20, 32, 43, .1), 0 12px 24px -14px rgba(20, 32, 43, .55); transition: transform .2s, box-shadow .2s; }
.ex-cover-art svg { display: block; width: 100%; height: 100%; }
.ex-cover:hover .ex-cover-art, .ex-cover:focus-visible .ex-cover-art { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(20, 32, 43, .1), 0 20px 30px -16px rgba(20, 32, 43, .6); }
.ex-cover:focus-visible { outline: none; } .ex-cover:focus-visible .ex-cover-art { outline: 3px solid var(--t-blue); outline-offset: 3px; }
.ex-cover b { margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.ex-cover small { font-size: 13px; font-weight: 600; color: #626773; }
.ex-cover.doing small { color: #B45309; }
.ex-cover-prog { display: block; height: 6px; margin-top: 6px; border-radius: 999px; background: #E2E5EA; overflow: hidden; }
.ex-cover-prog i { display: block; height: 100%; background: #2F4A62; border-radius: 999px; }

/* trang 1 cuốn */
.ex-bk-head { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center; margin: 14px 0 26px; padding: 26px; border-radius: var(--ex-r); background: var(--t-card); box-shadow: inset 0 0 0 1px var(--t-line); }
.ex-bk-cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px 8px 8px 3px; box-shadow: 0 16px 30px -16px rgba(20, 32, 43, .6); }
.ex-bk-cover svg { display: block; width: 100%; height: 100%; }
.ex-bk-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 640px; }
.ex-bk-txt h2 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ex-bk-txt p { margin: 0; font-size: 15px; line-height: 1.6; color: #626773; }
.ex-bk-prog { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; }
.ex-bk-prog .ex-cover-prog { flex: 1; height: 6px; margin: 0; }
.ex-bk-prog small { font-size: 13px; font-weight: 700; color: var(--t-muted); white-space: nowrap; }
.ex-bk-go { min-height: 46px; padding: 0 22px; font-size: 15px; text-decoration: none; }
.ex-bk-list { display: grid; border-radius: 20px; background: var(--t-card); box-shadow: inset 0 0 0 1px var(--t-line); overflow: hidden; }
.ex-bk-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px; min-height: 72px; padding: 12px 20px; }
.ex-bk-row + .ex-bk-row { border-top: 1px solid var(--t-line); }
.ex-bk-row b { font-size: 16px; font-weight: 700; }
.ex-bk-st { font-size: 14px; font-weight: 600; color: #626773; }
.ex-bk-st b { color: var(--t-ink); }
.ex-bk-row.doing .ex-bk-st { color: #B45309; } .ex-bk-row.done .ex-bk-st { color: var(--t-green); }
.ex-bk-btns { display: flex; gap: 6px; }
.ex-bk-btns .lc-btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; text-decoration: none; }
@media (max-width: 760px) {
  .ex-shelf-find { width: 100%; } .ex-shelf-find input { flex: 1; width: auto; min-width: 0; }
  .ex-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .ex-bk-head { grid-template-columns: 112px 1fr; gap: 18px; padding: 18px; }
  .ex-bk-row { grid-template-columns: 1fr auto; padding: 12px 14px; }
  .ex-bk-btns { grid-column: 1 / -1; flex-wrap: wrap; }
}
@media (max-width: 460px) { .ex-bk-head { grid-template-columns: 1fr; } .ex-bk-cover { width: 132px; } }
/* câu từ đề sách trong Luyện Part yếu / sổ lỗi sai: ảnh gốc bài đọc, hình đi kèm Part 3–4 */
.ex-scans { display: grid; gap: 10px; }
.ex-scans img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.ex-scan-alt { margin-top: 14px; border-top: 1px solid var(--t-line); padding-top: 10px; }
.ex-scan-alt summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--t-muted); }
.ex-scan-alt[open] summary { margin-bottom: 10px; }
.ex-graphic { margin-bottom: 12px; } .ex-graphic img { max-height: 340px; background: #fff; }
body.ex-loading, body.ex-loading * { cursor: progress !important; }

/* ===== Phòng thi đồng bộ trang chủ (27/10/2026): nền Glacier chấm trắng, chữ lớn Fraunces viền mực, thẻ kem viền 2px + bóng cứng, nút cam =====
   áp cho: đầu trang (.ex-top), đề TOEX + kệ đề theo sách (.ex-covers), trang 1 cuốn / 1 đề (.ex-bk-*), luyện từng Part (.ex-pt) */
.ex { --k-ink: #121212; --k-cream: #F7F0DF; --k-card: #FFFDF8; --k-glacier: #86A3BB; --k-navy: #2F4A62; --k-orange: #F07A3C; --k-yellow: #EBC24F; --k-muted: #5A5F6B; }
.ex-kbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 20px; border: 2px solid var(--k-ink); border-radius: 14px; background: var(--k-card); color: var(--t-ink); box-shadow: 3px 3px 0 var(--k-ink); font: 700 15px "Quicksand", sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ex-kbtn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--k-ink); }
.ex-kbtn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--k-ink); }
.ex-kbtn:focus-visible { outline: 3px solid var(--k-navy); outline-offset: 2px; }
.ex-kbtn.primary { background: var(--k-orange); color: #121212; }
.ex-kbtn.sm { min-height: 38px; padding: 0 13px; border-radius: 11px; font-size: 13.5px; box-shadow: 2px 2px 0 var(--k-ink); }

/* đầu trang */
.ex-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 28px; align-items: center; padding: 34px 36px; border: 2px solid var(--k-ink); border-radius: 26px; box-shadow: 5px 5px 0 var(--k-ink);
  background: var(--k-glacier) radial-gradient(circle, rgba(255, 255, 255, .33) 1.6px, transparent 2.2px) 0 0 / 32px 32px; }
.ex-top-label { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #121212; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
:root body .ex.ex .ex-top h1 { margin: 14px 0 16px; font-family: "Fraunces", serif !important; font-weight: 900 !important; font-variation-settings: "SOFT" 100; font-size: clamp(40px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.01em; color: #121212 !important; -webkit-text-stroke: 0; text-shadow: none; }
.ex-top-hl { display: inline-block; margin-left: 6px; padding: 0 14px; border: 3px solid #121212; border-radius: 12px; background: var(--k-yellow); box-shadow: 4px 4px 0 #121212; transform: rotate(-2deg); text-shadow: 3px 4px 0 #121212; }
.ex-top-desc { max-width: 560px; margin: 0 0 20px; padding: 14px 18px; border: 2px solid #121212; border-radius: 16px; background: var(--k-cream); color: var(--t-ink); font-size: 15.5px; line-height: 1.65; box-shadow: 3px 3px 0 #121212; }
.ex-top-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ex-top-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ex-top-stats span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 2px solid #121212; border-radius: 16px; background: var(--k-card); box-shadow: 3px 3px 0 #121212; font-size: 13px; font-weight: 700; color: var(--k-muted); }
.ex-top-stats b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--t-ink); }
.ex-toex { margin-top: 36px; }
.ex-toex .ex-shelf-head, .ex-shelf .ex-shelf-head { align-items: flex-end; margin-bottom: 18px; }
.ex-shelf { margin-top: 40px; }

/* bìa: viền mực + bóng cứng như thẻ trang chủ */
.ex-cover-art { border: 2px solid var(--k-ink); border-radius: 4px 9px 9px 4px; box-shadow: 4px 4px 0 var(--k-ink); }
.ex-cover:hover .ex-cover-art, a.ex-cover-art:hover, .ex-cover:focus-visible .ex-cover-art { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--k-ink); }
.ex-cover b { margin-top: 12px; }
.ex-cover small { color: var(--k-muted); }
.ex-cover small strong { color: var(--t-ink); }
.ex-cover-prog { height: 7px; border: 1.5px solid var(--k-ink); background: var(--k-card); }
.ex-cover-prog i { background: var(--k-navy); border-radius: 0; }
.ex-cover-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ex-cover-btns .ex-kbtn.sm { padding: 0 4px; font-size: 13px; white-space: nowrap; }
/* cam chỉ cho nút chính ở đầu khối; nút chính trong danh sách dùng vàng của trang chủ để kệ không bị rực */
.ex-cover-btns .ex-kbtn.primary, .ex-bk-row .ex-kbtn.primary, .ex-pt .ex-kbtn.primary { background: var(--k-yellow); color: #121212; }
.ex-toex .ex-badge, .ex-shelf .ex-badge { background: #121212; color: #fff; }
.ex-cover.soon { opacity: .72; }
.ex-cover.soon .ex-cover-art { filter: grayscale(.35); }

/* bộ lọc kệ: chip + ô tìm viền mực */
.ex-shelf-chips button { border: 2px solid var(--k-ink); box-shadow: none; background: var(--k-card); color: var(--t-ink); font-weight: 700; }
.ex-shelf-chips button.on { background: #121212; color: #fff; border-color: #121212; }
.ex-shelf-find input, .ex-shelf-find select { border: 2px solid var(--k-ink); box-shadow: none; background: var(--k-card); }
.ex-series-h { padding-bottom: 8px; border-bottom: 2px solid var(--k-ink); }

/* trang 1 cuốn / 1 đề TOEX */
.ex-bk-head { border: 2px solid var(--k-ink); border-radius: 24px; background: var(--k-glacier) radial-gradient(circle, rgba(255, 255, 255, .33) 1.6px, transparent 2.2px) 0 0 / 32px 32px; box-shadow: 5px 5px 0 var(--k-ink); }
.ex-bk-cover { border: 2px solid #121212; border-radius: 4px 9px 9px 4px; box-shadow: 5px 5px 0 #121212; }
:root body .ex.ex .ex-bk-txt h2 { font-family: "Fraunces", serif !important; font-weight: 900 !important; font-variation-settings: "SOFT" 100; font-size: clamp(30px, 3.4vw, 46px); color: #121212 !important; -webkit-text-stroke: 0; text-shadow: none; }
.ex-bk-txt .ex-eyebrow { padding: 5px 12px; border-radius: 999px; background: #121212; color: #fff; }
.ex-bk-txt p { padding: 12px 16px; border: 2px solid #121212; border-radius: 14px; background: var(--k-cream); color: var(--t-ink); box-shadow: 3px 3px 0 #121212; }
.ex-bk-prog { padding: 8px 12px; border: 2px solid #121212; border-radius: 12px; background: var(--k-card); }
.ex-bk-prog small { color: var(--t-ink); }
.ex-bk-txt .ex-hero-nums { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ex-bk-txt .ex-hero-nums span { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: 2px solid #121212; border-radius: 12px; background: var(--k-card); color: var(--k-muted); font-size: 13px; font-weight: 700; }
.ex-bk-txt .ex-hero-nums b { font-size: 18px; font-weight: 800; color: var(--t-ink); }
.ex-bk-list { border: 2px solid var(--k-ink); border-radius: 20px; background: var(--k-card); box-shadow: 4px 4px 0 var(--k-ink); }
.ex-bk-row + .ex-bk-row { border-top: 1.5px solid rgba(18, 18, 18, .14); }
.ex-pts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ex-pt { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px solid var(--k-ink); border-radius: 18px; background: var(--k-card); box-shadow: 4px 4px 0 var(--k-ink); }
.ex-pt-no { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--k-navy); }
.ex-pt h3 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; font-weight: 800; }
.ex-pt p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--k-muted); }
.ex-pt-meta { display: flex; gap: 10px; font-size: 13px; font-weight: 700; color: var(--k-muted); }
.ex-pt-meta .ok { color: var(--t-green); }
.ex-pt-btns { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
@media (max-width: 900px) { .ex-top { grid-template-columns: 1fr; padding: 26px 22px; } }
@media (max-width: 520px) { :root body .ex.ex .ex-top h1 { font-size: 38px; } .ex-top-stats b { font-size: 22px; } .ex-bk-txt h2 { font-size: 30px; } }
.ex .ex-back { border: 2px solid var(--k-ink); background: var(--k-card); box-shadow: 3px 3px 0 var(--k-ink); color: var(--t-ink); }

/* hàng trăm bìa SVG: chỉ vẽ khi cuộn tới */
.ex-cover { content-visibility: auto; contain-intrinsic-size: auto 300px; }

/* ===== 28/10: đầu màn làm bài (.ex-run .ex-top) bị kiểu đầu trang Phòng thi (.ex-top dạng lưới, 27/10) đè → Thoát / đồng hồ / Nộp bài giãn lệch.
   Trả về thanh ngang gọn như thiết kế gốc, áp riêng trong màn làm bài ===== */
.ex-run .ex-top { display: flex !important; grid-template-columns: none; align-items: center; gap: 14px; min-height: 0; padding: 12px 20px !important; border: 0 !important; border-bottom: 1px solid var(--t-line, rgba(0, 0, 0, .08)) !important; border-radius: 0 !important; background: var(--t-card) !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .06) !important; }
.ex-run .ex-top > * { flex: none; }
.ex-run .ex-top .ex-prog { flex: 1; }
.ex-run .ex-top .ex-exit, .ex-run .ex-top .ex-timer { width: auto; min-height: 40px; }
.ex-run .ex-top :is(.ex-btn, button[data-submit]) { width: auto; min-height: 40px; padding: 0 18px; }

/* ===== 28/10: màn làm bài vừa một màn hình laptop (chủ trung tâm: "ô này không để trong 1 trang được à, thiếu chỗ thì nhỏ hàng câu tiếp") =====
   tranh co theo chiều cao khung nhìn, thanh dưới mỏng, đáp án thấp hơn — Part 1 (tranh + 4 đáp án) không phải cuộn */
.ex-run .ex-body { padding-top: 12px; padding-bottom: 10px; }
.ex-run .ex-main { gap: 10px; }
.ex-run .ex-stage { gap: 10px; }
.ex-run .ex-photo { padding: 8px; }
.ex-run .ex-photo img { max-height: clamp(140px, calc(100vh - 480px), 300px); }
.ex-run .ex-opts { gap: 8px; }
.ex-run .ex-opt { min-height: 46px; padding: 7px 14px; }
.ex-run .ex-q { padding: 12px 18px; }
.ex-run .ex-foot { padding: 7px 20px; }
.ex-run .ex-foot .ex-btn { min-height: 38px; padding: 0 16px; font-size: 14.5px; }

/* ===== 28/10: màn làm bài trộn đề / ôn câu sai / câu đã lưu (toeic-exam.js run, .ex-run.xr) — giống phòng thi + luyện tập đã duyệt ===== */
.ex-run.xr { --xr-forest: #3A4A32; --xr-olive: #5F6D45; --xr-cream: #F6F1E4; --xr-paper: #FBF7EC; --xr-card: #FFFDF7; --xr-line: #E2D8C0; --xr-ink: #2E3528; --xr-mute: #6E6A5C; --xr-orange: #D9824A;
  display: grid; grid-template-rows: 64px minmax(0, 1fr) 60px; background: var(--xr-cream); color: var(--xr-ink); font-family: "Be Vietnam Pro", "Quicksand", system-ui, sans-serif; }
.xr button { font: inherit; cursor: pointer; }
.xr-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 0 18px; background: var(--xr-forest); color: #FBF6EA; }
.xr-exit { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 6px; background: rgba(251, 246, 234, .16); color: #FBF6EA; }
.xr-exit svg { width: 20px; height: 20px; } .xr-exit:hover { background: rgba(251, 246, 234, .26); }
.xr-title { margin: 0; min-width: 0; text-align: center; font: 700 18px/1.2 "Lora", Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xr-title .xr-sk { margin-right: 6px; color: #FBF6EA; padding: 3px 8px; border-radius: 6px; background: rgba(251, 246, 234, .16); font: 700 11.5px/1 "Be Vietnam Pro", sans-serif; letter-spacing: .06em; text-transform: uppercase; vertical-align: 3px; }
.xr-title small { display: block; margin-top: 3px; font: 500 12px/1.2 "Be Vietnam Pro", sans-serif; color: rgba(251, 246, 234, .72); overflow: hidden; text-overflow: ellipsis; }
.xr-tools { display: flex; align-items: center; gap: 10px; }
.xr-count { min-width: 60px; padding: 9px 12px; border-radius: 6px; background: #FBF6EA; color: var(--xr-forest); font-weight: 700; font-size: 15px; text-align: center; }
.xr-clock { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 6px; background: rgba(251, 246, 234, .14); font: 700 15px/1 ui-monospace, Consolas, monospace; }
.xr-clock svg { width: 17px; height: 17px; }
.xr-clock.warn { background: #B88A2A; } .xr-clock.hurry { background: #B5523B; }
.xr-submit { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--xr-orange); color: #fff; font-weight: 700 !important; font-size: 15px !important; box-shadow: 0 2px 0 #C46F3A; white-space: nowrap; }
.xr-submit:hover { background: #C46F3A; }
.xr-body { display: grid; grid-template-columns: minmax(0, var(--xr-l, 50%)) 12px minmax(0, 1fr); min-height: 0; }
.xr-body.dragging { cursor: col-resize; user-select: none; }
.xr-left, .xr-right { min-height: 0; min-width: 0; overflow-y: auto; padding: 22px 30px 30px; }
.xr-left { background: var(--xr-paper); }
.xr-split { display: grid; place-items: center; background: var(--xr-line); cursor: col-resize; touch-action: none; }
.xr-split i { width: 4px; height: 44px; border-radius: 4px; background: #B9B29E; box-shadow: 0 0 0 3px var(--xr-line); }
.xr-split:hover, .xr-split:focus-visible, .xr-body.dragging .xr-split { background: #D3C9AE; outline: none; }
.xr-split:hover i, .xr-split:focus-visible i, .xr-body.dragging .xr-split i { background: var(--xr-forest); }
.xr-dir { margin: 0 0 16px; font-weight: 700; font-size: 15.5px; line-height: 1.5; }
html .ex-run.xr.xr .ex-audio { margin: 0 0 16px; }
.xr-fig { margin: 0; display: flex; justify-content: center; }
.xr-fig img { max-width: 100%; max-height: calc(100vh - 260px); border-radius: 6px; box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .45); }
.xr-fig + .xr-listen { margin-top: 20px; }
html .ex-run.xr.xr .ex-passage { padding: 18px 22px; border: 1px solid var(--xr-line) !important; border-radius: 6px !important; background: var(--xr-card) !important; box-shadow: none !important; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
html .ex-run.xr.xr .ex-passage h4 { margin: 0 0 10px; font-size: 15px; color: var(--xr-forest); }
html .ex-run.xr.xr .ex-scans img { max-width: 100%; }
.xr-listen { display: grid; place-items: center; gap: 12px; margin-top: 10vh; color: var(--xr-mute); text-align: center; }
.xr-wave { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.xr-wave i { width: 7px; border-radius: 4px; background: var(--xr-olive); animation: xrw 1.1s ease-in-out infinite; }
.xr-wave i:nth-child(1) { height: 30%; } .xr-wave i:nth-child(2) { height: 70%; animation-delay: .15s; } .xr-wave i:nth-child(3) { height: 100%; animation-delay: .3s; } .xr-wave i:nth-child(4) { height: 60%; animation-delay: .45s; } .xr-wave i:nth-child(5) { height: 35%; animation-delay: .6s; }
@keyframes xrw { 50% { transform: scaleY(.4); } }
@media (prefers-reduced-motion: reduce) { .xr-wave i { animation: none; } }
.xr-qh { margin: 0 0 14px; font: 700 18px/1.2 "Lora", Georgia, serif; color: var(--xr-forest); }
.xr-stem { margin: 0 0 12px; font-weight: 600; font-size: 16px; line-height: 1.55; }
html .ex-run.xr.xr .ex-opts { display: grid; gap: 10px; margin: 0; }
html .ex-run.xr.xr .ex-opt { min-height: 0; padding: 13px 16px; border: 1px solid var(--xr-line) !important; border-radius: 6px !important; background: var(--xr-card) !important; box-shadow: none !important; font-size: 16px; text-align: left; transform: none !important; }
html .ex-run.xr.xr .ex-opt:hover:not(:disabled) { border-color: var(--xr-olive) !important; }
html .ex-run.xr.xr .ex-opt b { width: 28px; height: 28px; background: #F1ECDC !important; color: var(--xr-forest) !important; font-size: 13.5px; }
html .ex-run.xr.xr .ex-opt.on { border-color: var(--xr-forest) !important; background: #EAF0DE !important; box-shadow: inset 3px 0 0 var(--xr-forest) !important; }
html .ex-run.xr.xr .ex-opt.on b { background: var(--xr-forest) !important; color: #fff !important; }
html .ex-run.xr.xr .ex-opt.right { border-color: #4F7A3A !important; background: #E3EDD2 !important; } html .ex-run.xr.xr .ex-opt.right b { background: #4F7A3A !important; color: #fff !important; }
html .ex-run.xr.xr .ex-opt.wrong { border-color: #B5523B !important; background: #F6DED4 !important; } html .ex-run.xr.xr .ex-opt.wrong b { background: #B5523B !important; color: #fff !important; }
html .ex-run.xr.xr .ex-fb { margin-top: 14px; border-radius: 6px !important; box-shadow: none !important; }
.xr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-top: 1px solid var(--xr-line); background: var(--xr-card); }
.xr-mark { padding: 9px 12px; border: 1px solid var(--xr-line); border-radius: 6px; background: transparent; color: var(--xr-mute); font-weight: 600 !important; font-size: 14px !important; }
.xr-mark.on { border-color: var(--xr-orange); background: #FBE9DC; color: #C46F3A; }
.xr-nav { display: flex; gap: 8px; }
.xr-gridbtn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--xr-olive); color: #fff; font-weight: 700 !important; font-size: 15px !important; }
.xr-gridbtn svg { width: 17px; height: 17px; }
.xr-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 6px; background: var(--xr-forest); color: #fff; }
.xr-arrow svg { width: 20px; height: 20px; }
.xr-arrow:disabled { opacity: .35; cursor: default; }
.xr-gridpop { position: absolute; right: 18px; bottom: 70px; width: min(520px, calc(100vw - 36px)); max-height: calc(100vh - 160px); overflow-y: auto; padding: 14px 16px; border: 1px solid var(--xr-line); border-radius: 6px; background: var(--xr-card); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); z-index: 4; }
.xr-gridpop[hidden] { display: none; }
.xr-grid-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--xr-mute); }
.xr-grid-h b { font: 700 16px/1 "Lora", serif; color: var(--xr-forest); }
.xr-grid-h i { display: inline-block; width: 11px; height: 11px; margin: 0 4px 0 10px; border-radius: 3px; vertical-align: -1px; }
.xr-grid-h i.d { background: var(--xr-forest); } .xr-grid-h i.m { background: var(--xr-orange); } .xr-grid-h i.c { border: 2px solid var(--xr-olive); }
.xr-gp h4 { margin: 10px 0 6px; font-size: 13px; font-weight: 700; }
.xr-gp > div { display: flex; flex-wrap: wrap; gap: 5px; }
.xr-n { width: 40px; height: 32px; border: 1px solid var(--xr-line); border-radius: 6px; background: #fff; color: var(--xr-ink); font-size: 13px !important; font-weight: 600 !important; }
.xr-n.d { background: var(--xr-forest); border-color: var(--xr-forest); color: #fff; }
.xr-n.ok { background: #4F7A3A; border-color: #4F7A3A; color: #fff; } .xr-n.bad { background: #B5523B; border-color: #B5523B; color: #fff; }
.xr-n.m { box-shadow: inset 0 -3px 0 var(--xr-orange); }
.xr-n.c { outline: 2px solid var(--xr-olive); outline-offset: 1px; }
@media (max-width: 860px) {
  .ex-run.xr { grid-template-rows: auto minmax(0, 1fr) auto; }
  .xr-top { grid-template-columns: auto minmax(0, 1fr); padding: 8px 12px; gap: 8px; }
  .xr-title { text-align: left; font-size: 15px; }
  .xr-tools { grid-column: 1 / -1; justify-content: space-between; }
  .xr-body { grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-content: start; overflow-y: auto; }
  .xr-split { display: none; }
  .xr-left, .xr-right { overflow: visible; padding: 16px; }
  .xr-foot { padding: 8px 12px; }
}
html .ex-run.xr.xr .ex-opt em { font-size: 20px; font-weight: 800; }
.xr-submit { background: #B25D2A; box-shadow: 0 2px 0 #8E4A20; } .xr-submit:hover { background: #9E5326; }
.xr-gridbtn { background: #5F6D45; }
.xr-mark.on { color: #8A4A22; border-color: #8A4A22; }
.xr-clock.warn { background: #8A6418; }
.xr button:focus-visible { outline: 2px solid #D9C98F; outline-offset: 2px; }
.xr .xr-body button:focus-visible, .xr-gridpop button:focus-visible, .xr-foot button:focus-visible { outline-color: #3A4A32; }
@media (max-width: 860px) { .xr-fig img { max-height: 38vh; } .xr-left { border-bottom: 1px solid #E2D8C0; } }
/* 31/10: ô tìm tên đề + lọc trạng thái ở THPTQG / ĐGNL (cùng kiểu Phòng thi TOEIC) */
.tq .tq-find { flex-wrap: wrap; margin: 12px 0 6px; }
.tq .tq-find input { flex: 1 1 220px; max-width: 380px; }
@media (max-width: 520px) { .tq .tq-find input, .tq .tq-find select { flex: 1 1 100%; max-width: none; } }
/* 31/10: THPTQG / ĐGNL – một hàng tab; bấm tab hiện ô chọn nguồn nhỏ ngay dưới (không bắt buộc) */
.tq .tq-filters { position: relative; }
.tq .tq-pop { position: absolute; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: min(520px, 100%); padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .96); border: 1px solid rgba(38, 52, 39, .15); box-shadow: 0 10px 28px rgba(20, 35, 22, .22); }
.tq .tq-pop small { flex-basis: 100%; color: #4A4A3E; font: 600 12px "Be Vietnam Pro", sans-serif; }
.tq .tq-pop button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid rgba(38, 52, 39, .25); border-radius: 999px; background: #fff; color: #263427; font: 700 14px "Be Vietnam Pro", sans-serif; cursor: pointer; }
.tq .tq-pop button em { font-style: normal; font-size: 12px; color: #625E51; }
.tq .tq-pop button.on { background: #3A4A32; border-color: #3A4A32; color: #FFFDF6; }
.tq .tq-pop button.on em { color: #E8E4D6; }
/* 31/10: ô tìm ở Luyện đề TOEIC rộng bằng THPTQG / ĐGNL */
.ex-shelf-find { flex-wrap: wrap; }
.ex-shelf-find input { flex: 0 1 380px; width: 380px; max-width: 100%; }
@media (max-width: 520px) { .ex-shelf-find input, .ex-shelf-find select { flex: 1 1 100%; max-width: none; } }

/* 04/11/2026: bộ đề chỉ học viên xem được (xin-quyen.js, cờ SACH_MO trong functions/de-sach) – bìa mờ + tem khoá, dải báo có nút "Yêu cầu cấp quyền" */
.ex-tab-khoa > span svg { vertical-align: -2px; margin-right: 4px; }
.ex-cover-khoa .ex-cover-art { position: relative; }
.ex-cover-khoa .ex-cover-art > :not(.ex-khoa-tem) { opacity: .5; filter: grayscale(.6); }
.ex-khoa-tem { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 6px; background: #3A4A32; color: #fff; font: 600 12.5px/1 'Be Vietnam Pro', system-ui, sans-serif; white-space: nowrap; }
.ex-cover-khoa small strong { color: #8A4520; }
.ex-khoa-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #E2D8C0; border-left: 4px solid #B25D2A; border-radius: 6px; background: #FBF6EA; color: #4A4A3E; font-size: 14.5px; line-height: 1.55; }
.ex-khoa-note > svg { flex: none; color: #8A4520; }
.ex-khoa-note > span { flex: 1 1 260px; }
.ex-khoa-note b { color: #3A4A32; }

/* ######## [goc-dong-bo.css] ######## */
/* ===== Góc học tập đồng bộ trang chủ (27/10/2026) — nạp SAU cùng (sau dashboard-tid.css, lessons.css, toeic-exam.css) =====
   Hướng thiết kế: GPT chấm 12 ảnh chụp + Gemini, chủ trung tâm yêu cầu "màu chủ của trang nổi lên, đồng bộ trang chủ".
   - nền kem #F7F0DF, Glacier #86A3BB là màu nhận diện (mọi khối đầu mục: nền Glacier chấm trắng 32px như hero trang chủ)
   - thẻ #FFFDF8 viền mực 2px + bóng cứng; nút chính cam #F07A3C, nút đang chọn xanh đậm #2F4A62, vàng #EBC24F chỉ nhấn
   - bỏ con vật khỏi khối đầu mục (giữ 1 con nhỏ ở lời chào Tổng quan và màn trống), bỏ gradient tím / xanh điện, bỏ pastel tràn lan */
.dash {
  --t-bg: #F7F0DF; --t-card: #FFFDF8; --t-ink: #121212; --t-muted: #5A5F6B; --t-line: rgba(18, 18, 18, .14); --t-soft: #F1E8D3;
  --t-yellow: #EBC24F; --t-blue: #2F4A62; --t-purple: #2F4A62; --t-green: #4F7D5C; --t-coral: #F07A3C; --t-orange: #F07A3C; --t-teal: #2F4A62; --t-pink: #F07A3C; --t-lav: #DCE6EE;
  --t-shadow: 3px 3px 0 #121212;
  --g-glacier: #86A3BB; --g-navy: #2F4A62; --g-edge: #121212; --g-hard: #121212;
  --g-dots: radial-gradient(circle, rgba(255, 255, 255, .33) 1.6px, transparent 2.2px) 0 0 / 32px 32px;
}
body.dash { background: var(--t-bg) !important; }

/* ---- thanh bên ---- */
.dash-wrap .dash-side { border: 2px solid var(--g-edge); border-radius: 22px; background: var(--t-card); box-shadow: 4px 4px 0 var(--g-hard); }
.dash-wrap .dash-nav a:hover { background: var(--t-soft); }
.dash-wrap .dash-nav a[aria-current="page"] { border: 2px solid var(--g-edge); background: #2F4A62; color: #fff; box-shadow: 2px 2px 0 var(--g-hard); }
.dash-wrap .dash-search { border: 2px solid var(--g-edge); background: var(--t-card); }

/* ---- khối đầu mục: nền Glacier chấm trắng, viền mực, bóng cứng ---- */
.dash-wrap :is(.dash-hero, .lc-hero, .dc-hero, .lb-hero, .tid-goal) {
  border: 2px solid var(--g-edge) !important; border-radius: 24px; background: var(--g-glacier) var(--g-dots) !important; color: #121212 !important; box-shadow: 5px 5px 0 var(--g-hard) !important;
}
.dash-wrap .dash-hero::after, .dash-wrap .tid-card::before { display: none; }
:root body .dash-wrap.dash-wrap :is(.dash-hero, .dc-hero, .lb-hero) :is(h1, h2) {
  font-family: "Fraunces", serif !important; font-weight: 900 !important; font-variation-settings: "SOFT" 100; letter-spacing: -.01em;
  color: inherit !important; -webkit-text-stroke: 0; text-shadow: none; /* 28/10: chủ trung tâm "tô màu phía trong theo màu viền" */
}
.dash-wrap .dash-hero > small, .dash-wrap .dc-hero :is(.dc-tag, small:first-child), .dash-wrap .lc-eyebrow {
  display: inline-block; align-self: flex-start; width: auto; padding: 5px 12px; border-radius: 999px; background: #121212; color: #fff !important; letter-spacing: .1em; opacity: 1;
}
.dash-wrap :is(.dash-hero, .dc-hero, .lb-hero) p, .dash-wrap .dash-hero .dash-sub { color: inherit !important; opacity: 1; }
.dash-wrap .dash-hero p:not(:empty) { max-width: 640px; }
/* bỏ con vật trong khối đầu mục (giữ con cáo nhỏ ở lời chào Tổng quan) */
.dash-wrap :is(.dash-hero-img, .dc-hero img, .lb-hero img) { display: none !important; }
.dash-wrap .dash-hero h1, .dash-wrap .dash-hero p { max-width: 720px; }
.dash-wrap .dash-hero :is(.dash-chips span, .dash-pill, .dash-tag), .dash-wrap .dc-hero :is(.dc-hero-n, .dc-hero-n > *) { border: 2px solid #121212; border-radius: 12px; background: #FFFDF8; color: #121212; }

/* Tổng quan: thẻ mục tiêu thành khối đầu trang, các thẻ còn lại kem viền mực */
:root body .dash-wrap.dash-wrap .tid-card.tid-goal :is(h1, h2) { font-family: "Fraunces", serif !important; font-weight: 900 !important; font-variation-settings: "SOFT" 100; color: inherit !important; -webkit-text-stroke: 0; text-shadow: none; /* 28/10: chủ trung tâm "tô màu phía trong theo màu viền" */ }
:root body .dash-wrap.dash-wrap .tid-goal .tid-goal-n b { font-family: "Fraunces", serif; font-weight: 900; color: inherit !important; -webkit-text-stroke: 0; text-shadow: none; /* 28/10: chủ trung tâm "tô màu phía trong theo màu viền" */ }
.dash-wrap .tid-hello { border: 2px solid #121212; background: #FFFDF8; }
.dash-wrap .tid-wheel-lens { border: 2px solid #121212; box-shadow: 3px 3px 0 #121212; }

/* ---- thẻ: kem viền mực 2px + bóng cứng; thẻ màu bão hoà → kem (xanh đậm cho thẻ "ink") ---- */
.dash-wrap :is(.dash-card, .tid-card, .dash-chapter, .dash-part, .dash-course, .dash-article, .dash-shelf, .vh-set, .lc-card, .lc-topic, .dash-vcard, .dash-test, .dash-set) {
  border: 2px solid var(--g-edge) !important; border-radius: 18px; box-shadow: 4px 4px 0 var(--g-hard) !important;
}
.dash-wrap :is(.dash-card, .dash-set):is(.glacier, .lilac, .plum, .green, .green2, .red, .orange, .teal, .yellow),
.dash-wrap .tid-card:is(.tid-purple, .tid-green, .tid-coral, .tid-coral-soft, .tid-white, .tid-yellow:not(.tid-goal)) { background: var(--t-card) !important; color: var(--t-ink) !important; }
.dash-wrap .tid-card.tid-blue { background: var(--g-glacier) var(--g-dots) !important; color: #121212 !important; }
.dash-wrap :is(.dash-card, .dash-set).ink { background: #2F4A62 !important; color: #F7F0DF !important; }
.dash-wrap :is(.dash-card, .tid-card):not(.ink) :is(.dash-sub, p, small, em, a:not(.gm-btn):not(.tid-btn)) { color: inherit; }
.dash-wrap .tid-card :is(h2, h3) { color: var(--t-ink) !important; }
.dash-wrap .tid-card.tid-blue :is(h2, h3) { color: #121212 !important; }
.dash-wrap :is(.tid-bucket, .tid-skill, .tid-quote, .tid-words, .tid-week, .tid-exam-top, .dash-bucket, .dash-recent li) { border: 1.5px solid var(--t-line); background: var(--t-card) !important; color: var(--t-ink) !important; box-shadow: none; }
.dash-wrap .tid-words span { border: 1.5px solid var(--g-edge); background: var(--t-soft); color: var(--t-ink); }
.dash-wrap .tid-week .on i, .dash-wrap .tid-days span.on { background: var(--t-yellow); color: #121212; }
.dash-wrap .tid-week .today, .dash-wrap .tid-days span.today { background: #2F4A62; color: #fff; }
.dash-wrap .tid-ring > div { border: 2px solid #121212; box-shadow: 3px 3px 0 #121212; background: #FFFDF8; }
.dash-wrap .tid-count { background: var(--t-coral); border: 2px solid #121212; box-shadow: none; }
.dash-wrap .tid-quote-ic, .dash-wrap .tid-skill i, .dash-wrap .dash-course-ic, .dash-wrap .dash-shelf-item .dash-shelf-ic { background: var(--t-lav) !important; }
.dash-wrap .nb-bucket { background: var(--t-card) !important; border: 2px solid var(--g-edge) !important; box-shadow: 3px 3px 0 var(--g-hard) !important; }
.dash-wrap .nb-due { background: var(--g-glacier) var(--g-dots) !important; color: #121212 !important; border: 2px solid var(--g-edge) !important; box-shadow: 3px 3px 0 var(--g-hard) !important; }
.dash-wrap .dash-article-img.doc { background: var(--t-soft) !important; }

/* ---- nút ---- */
.dash-wrap :is(.gm-btn, .tid-btn), .dash-lookup .gm-btn {
  border: 2px solid var(--g-edge) !important; border-radius: 14px; background: #F07A3C; color: #121212 !important; box-shadow: 3px 3px 0 var(--g-hard) !important; font-weight: 700;
}
.dash-wrap :is(.gm-btn, .tid-btn):hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--g-hard) !important; filter: none; }
.dash-wrap :is(.gm-btn, .tid-btn):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--g-hard) !important; }
.dash-wrap .gm-btn.ink { background: #121212; color: #fff !important; }
.dash-wrap :is(.gm-btn.ghost, .tid-btn.white, .tid-btn.ghost), .dash-wrap .dash-hero.ink .gm-btn.ghost, .dash-wrap .tid-coral-soft .tid-btn.ghost, .dash-wrap .tid-purple .tid-btn.white { background: var(--t-card) !important; color: var(--t-ink) !important; }
.dash-wrap .lc-btn { border: 2px solid var(--g-edge); border-radius: 13px; background: var(--t-card); color: var(--t-ink); box-shadow: 3px 3px 0 var(--g-hard); }
.dash-wrap .lc-btn.primary { background: #F07A3C; color: #121212; }

/* ---- chip, thanh chọn mục con, ô nhập ---- */
.dash-wrap :is(.dash-subnav a, .dash-skilltabs button, .dash-chiprow button, .dash-seg button, .dash-time-opts button) {
  border: 2px solid var(--g-edge) !important; background: var(--t-card); color: var(--t-ink); box-shadow: none;
}
.dash-wrap :is(.dash-subnav a[aria-current="page"], .dash-skilltabs button.on, .dash-chiprow button.on, .dash-seg button.on, .dash-time-opts button.on) { background: #2F4A62 !important; color: #fff !important; }
.dash-wrap :is(input:not([type=range]):not([type=checkbox]):not([type=radio]), textarea, select) { border: 2px solid var(--g-edge) !important; background: var(--t-card); }
.dash-wrap .dash-search input { border: 0 !important; }

/* ---- thanh tiến độ, vòng tròn ---- */
.dash-wrap :is(.dash-bar, .tid-bar) { border: 1.5px solid var(--g-edge); background: var(--t-card); border-radius: 999px; }
.dash-wrap :is(.dash-bar, .tid-bar) i { background: #2F4A62; }
.dash-wrap .dash-ring { background: conic-gradient(#2F4A62 calc(var(--p, 0) * 1%), var(--t-soft) 0); border: 2px solid var(--g-edge); }

/* ---- bìa cũ (ngữ pháp, Part) đổi về tông web ----
.lc-cover:not(.art) { border: 2px solid var(--g-edge); box-shadow: 3px 3px 0 var(--g-hard); }
.lc-cover:not(.art):is(.coral, .orange, .yellow, .green, .purple, .pink) { background: #2F4A62; }
.lc-cover:not(.art).blue { background: var(--g-glacier) var(--g-dots); }
.lc-cover:not(.art) > img { display: none; }
.dash-wrap .dash-cover { background: #2F4A62 !important; border: 2px solid var(--g-edge); }
.dash-wrap .dash-cover > img { display: none; }

/* ---- 27/10 (2): các khối nền "kem đậm" (--t-soft) gần trùng nền trang → khó nhìn: đổi thành thẻ trắng kem viền mực ---- */
.dash-wrap :is(.dash-unit, .dash-lex, .dash-topic, .dash-box, .dash-rows li, .dash-words li, .dash-opts button, .dc-card, .dc-test, .gm-card) {
  background: var(--t-card) !important; color: var(--t-ink); border: 2px solid var(--g-edge) !important; border-radius: 16px; box-shadow: 3px 3px 0 var(--g-hard) !important;
}
.dash-wrap .dash-units.cur .dash-unit { border-left: 2px solid var(--g-edge) !important; }
.dash-wrap .dash-unit small { display: grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 8px; background: #2F4A62; color: #fff; opacity: 1; font-size: 12px; }
.dash-wrap .dash-unit b { color: var(--t-ink); } .dash-wrap .dash-unit span { color: var(--t-muted); opacity: 1; }
.dash-wrap .dash-unit:not(.has-lesson) em, .dash-wrap .dash-lex.soon em { filter: grayscale(1); opacity: .55; }
.dash-wrap .dash-unit.has-lesson em { color: #2F4A62; font-weight: 800; }
.dash-wrap :is(.dash-units, .dash-chapter) { --ac: #2F4A62 !important; }
.dash-wrap .dash-count-badge { background: #2F4A62 !important; color: #fff !important; border: 2px solid var(--g-edge); }
.dash-wrap .dash-sec-sub { color: var(--t-muted); }
.dash-wrap .dash-lex :is(h3, .dash-cefr) { color: var(--t-ink) !important; }
.dash-wrap .dash-lex > small { color: #2F4A62; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dash-wrap .dash-lex footer em { border: 1.5px solid var(--t-line); background: var(--t-soft); }

/* ---- trò chơi: bìa cảnh đang chơi (bia-hoc.js) ---- */
.dash-wrap .gm-card.has-cover { padding: 0 0 18px; overflow: hidden; }
.gm-card.has-cover > :not(.gm-cover) { margin-left: 18px; margin-right: 18px; }
.gm-cover { display: block; aspect-ratio: 16 / 9; border-bottom: 2px solid var(--g-edge, #121212); }
.gm-cover svg { display: block; width: 100%; height: 100%; }
.gm-cover.art { aspect-ratio: 4 / 3; }

/* ---- thẻ Part: bìa Part + con vật nằm trọn trong bìa (không bị cắt) ---- */
.dash-wrap .dash-part:has(.bh-part) { grid-template-columns: 112px 1fr; }
.dash-wrap .dash-cover.bh-part { position: relative; display: block; min-height: 0; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; background: none !important; border: 2px solid var(--g-edge); border-radius: 4px 9px 9px 4px; box-shadow: 3px 3px 0 var(--g-hard); }
.dash-wrap .dash-cover.bh-part svg { display: block; width: 100%; height: 100%; }
.dash-wrap .dash-cover.bh-part > img { display: block !important; position: absolute; right: 4px; bottom: 4px; width: 50%; height: auto; animation: none; filter: drop-shadow(2px 2px 0 rgba(18, 18, 18, .55)); }

/* ---- Dictation: bìa Part bên trái thẻ ---- */
.dash-wrap .dc-card.has-cover { display: grid; grid-template-columns: 84px 1fr; column-gap: 16px; align-items: start; }
.dc-card.has-cover > :not(.dc-cover) { grid-column: 2; }
.dc-card.has-cover > .dc-btns { grid-column: 1 / -1; }
.dc-cover { grid-column: 1; grid-row: 1 / span 4; display: block; aspect-ratio: 3 / 4; overflow: hidden; border: 2px solid var(--g-edge, #121212); border-radius: 3px 7px 7px 3px; box-shadow: 3px 3px 0 var(--g-hard, #121212); }
.dc-cover svg { display: block; width: 100%; height: 100%; }
.dash-wrap .dc-part { background: #2F4A62 !important; color: #fff !important; }

/* ---- khối đầu mục cũ trong Đề thi (Sổ lỗi sai, Câu đã lưu, Bản đồ kỹ năng): cùng kiểu Glacier như các mục khác ---- */
.dash-wrap .ex-hero { border: 2px solid var(--g-edge) !important; border-radius: 24px; background: var(--g-glacier) var(--g-dots) !important; color: #121212 !important; box-shadow: 5px 5px 0 var(--g-hard) !important; }
.dash-wrap .ex-hero .ex-orb, .dash-wrap .ex-hero .ex-hero-cat { display: none !important; }
:root body .dash-wrap.dash-wrap .ex-hero h1 { font-family: "Fraunces", serif !important; font-weight: 900 !important; font-variation-settings: "SOFT" 100; color: inherit !important; -webkit-text-stroke: 0; text-shadow: none; /* 28/10: chủ trung tâm "tô màu phía trong theo màu viền" */ }
.dash-wrap .ex-hero .ex-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #121212 !important; color: #fff !important; }
.dash-wrap .ex-hero p { color: inherit !important; opacity: 1; }
.dash-wrap .ex-hero .ex-btn { border: 2px solid #121212; box-shadow: 3px 3px 0 #121212; }
.dash-wrap .ex-hero .ex-btn.ink { background: #F07A3C; color: #121212; }

/* ---- thẻ bộ từ: thẻ kem viền mực bao bìa + chữ, "Vào học" luôn nằm đáy thẻ (27/10) ---- */
.dash-wrap .vh-set, .dash-wrap .lc-topic { display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 14px !important; border: 2px solid var(--g-edge) !important; border-radius: 16px; background: var(--t-card) !important; box-shadow: 4px 4px 0 var(--g-hard) !important; }
.dash-wrap .vh-set:hover, .dash-wrap a.lc-topic:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--g-hard) !important; }
.dash-wrap .vh-set .lc-cover.art, .dash-wrap .lc-topic .lc-cover.art { box-shadow: none; transform: none !important; }
.dash-wrap .vh-set-t, .dash-wrap .lc-topic-t { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.dash-wrap .vh-set-t .vh-go, .dash-wrap .lc-topic-t > span:last-child { margin-top: auto; padding-top: 8px; color: #2F4A62; font-weight: 800; }

/* ---- Tổng quan: lưới luôn kín ở mọi cỡ màn hình — thẻ nhỏ tự lấp chỗ trống cạnh thẻ rộng (dense) ---- */
.dash-wrap .tid-grid { grid-auto-flow: row dense; align-items: stretch; }
@media (min-width: 641px) and (max-width: 1100px) {
  /* 2 cột: thẻ đơn cuối cùng nằm lẻ thì giãn hết hàng */
  .dash-wrap .tid-grid > .tid-card:not(.tid-goal):not(.tid-exam):not(.tid-wide):last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---- thanh bên kiểu theieltsdictionary.com (27/10): thu gọn = dải biểu tượng; rê chuột / tab vào thì mở rộng NỔI trên nội dung
   (không đẩy trang); bấm nút ghim thì giữ mở và đẩy nội dung như cũ ---- */
@media (min-width: 861px) {
  .dash-wrap .dash-side { overflow-x: hidden; transition: width .22s cubic-bezier(.2, .8, .2, 1), padding .22s, box-shadow .22s; }
  body:not(.dash-pinned) .dash-wrap .dash-side:is(:hover, :focus-within) { width: 256px; padding: 18px 16px 14px; box-shadow: 6px 0 0 var(--g-hard), 0 20px 50px rgba(18, 18, 18, .25) !important; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-nav a span, body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-lang span { display: inline !important; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) :is(.dash-caret, .dash-lang b) { display: inline-block !important; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-me b { display: block !important; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-nav a.sub.show { display: flex !important; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-nav-label { visibility: visible; height: auto; margin: 4px 8px; border-top: 0; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-nav a { justify-content: flex-start; padding: 0 12px; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) :is(.dash-me, .dash-lang) { justify-content: flex-start; padding: 0 12px; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-brand { flex-direction: row; gap: 10px; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-logo { flex: 1; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-logo span { display: flex; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-search-ic { display: none; }
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-side-top .dash-search { display: flex; }
  /* chữ hiện dần khi mở để không nhảy chữ */
  body:not(.dash-pinned) .dash-side:is(:hover, :focus-within) .dash-nav a span { animation: gdbFade .25s ease both; }
  @keyframes gdbFade { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .dash-wrap .dash-side { transition: none; } body:not(.dash-pinned) .dash-side .dash-nav a span { animation: none !important; } }

/* ===== Tổng quan kiểu "bento TOEX" (27/10, chủ trung tâm: trang tổng quan trống, nhạt so với theieltsdictionary) =====
   mỗi thẻ một màu thương hiệu (vàng · xanh đậm · kem · Glacier · cam · xanh lá dịu), viền mực + bóng cứng, vòng tròn trang trí,
   nội dung giãn kín thẻ (không còn khoảng trống giữa thẻ) */
.dash-wrap .tid-grid { gap: 18px; }
.dash-wrap .tid-grid > .tid-card { position: relative; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.dash-wrap .tid-grid > .tid-card::before { content: ""; display: block !important; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .16); pointer-events: none; z-index: -1; }
.dash-wrap .tid-grid > .tid-card h2 { font-family: "Fraunces", serif; font-weight: 900; font-variation-settings: "SOFT" 100; letter-spacing: -.01em; }

/* mục tiêu điểm — vàng */
.dash-wrap .tid-grid > .tid-card.tid-goal { background: #EBC24F radial-gradient(circle, rgba(255, 255, 255, .22) 1.6px, transparent 2.2px) 0 0 / 32px 32px !important; color: #121212 !important; }
:root body .dash-wrap.dash-wrap .tid-grid > .tid-card.tid-goal :is(h1, h2) { color: #fff !important; }
.dash-wrap .tid-goal .tid-goal-sub, .dash-wrap .tid-goal .tid-goal-n span { color: #121212 !important; }

/* chuỗi ngày học — xanh đậm */
.dash-wrap .tid-grid > .tid-card.tid-streak { background: #2F4A62 radial-gradient(circle, rgba(255, 255, 255, .09) 1.6px, transparent 2.2px) 0 0 / 28px 28px !important; color: #F7F0DF !important; }
.dash-wrap .tid-grid > .tid-card.tid-streak h2 { color: #F7F0DF !important; }
.dash-wrap .tid-streak .tid-chip { background: rgba(255, 255, 255, .16); color: #F7F0DF; }
.dash-wrap .tid-streak .tid-ring { margin: auto; }
.dash-wrap .tid-streak .tid-week { background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .25) !important; color: #F7F0DF !important; }
.dash-wrap .tid-streak .tid-week .today { background: #EBC24F; color: #121212; }
.dash-wrap .tid-streak .tid-rank { color: #121212; background: #FFFDF8 !important; border: 2px solid #121212; box-shadow: 3px 3px 0 #121212; font-weight: 700; }

/* lịch — kem, ngày giãn đều hết chiều cao */
.dash-wrap .tid-grid > .tid-card.tid-cal { background: #FFFDF8 !important; }
.dash-wrap .tid-cal .tid-days { flex: 1; grid-auto-rows: 1fr; align-items: center; }

/* từ vựng — Glacier, 4 ô 2×2 lấp kín */
.dash-wrap .tid-grid > .tid-card.tid-vocab { background: #86A3BB radial-gradient(circle, rgba(255, 255, 255, .2) 1.6px, transparent 2.2px) 0 0 / 28px 28px !important; color: #121212 !important; }
.dash-wrap .tid-vocab .tid-buckets { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; margin: 12px 0; }
.dash-wrap .tid-vocab .tid-bucket { justify-content: center; min-height: 72px; padding: 12px 14px; border: 2px solid #121212 !important; border-radius: 14px; background: #FFFDF8 !important; box-shadow: 3px 3px 0 #121212 !important; }
.dash-wrap .tid-vocab .tid-bucket b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 26px; font-weight: 800; line-height: 1; }
.dash-wrap .tid-vocab .tid-bucket.lv3 i { background: #4F7D5C !important; } .dash-wrap .tid-vocab .tid-bucket.lv2 i { background: #EBC24F !important; }
.dash-wrap .tid-vocab .tid-bucket.lv1 i { background: #2F4A62 !important; } .dash-wrap .tid-vocab .tid-bucket.lv0 i { background: #F07A3C !important; }
.dash-wrap .tid-vocab .tid-btn { align-self: flex-start; margin-top: auto; }

/* ngày thi — dải cam phía trên, thân kem */
.dash-wrap .tid-grid > .tid-card.tid-exam { background: #FFFDF8 !important; color: #121212 !important; }
.dash-wrap .tid-exam .tid-exam-top { background: #F07A3C radial-gradient(circle, rgba(255, 255, 255, .18) 1.6px, transparent 2.2px) 0 0 / 28px 28px !important; border: 0 !important; border-bottom: 2px solid #121212 !important; }
.dash-wrap .tid-exam .tid-ticket { border: 2px solid #121212; box-shadow: 3px 3px 0 #121212; }
.dash-wrap .tid-exam .tid-count { background: #2F4A62 !important; color: #fff; border: 2px solid #121212; box-shadow: 3px 3px 0 #121212; }
.dash-wrap .tid-exam .tid-dots i { background: #FFFDF8 !important; opacity: 1; }
.dash-wrap .tid-exam .tid-exam-body { flex: 1; display: flex; flex-direction: column; }
.dash-wrap .tid-exam .tid-quote { margin-top: auto; border: 2px solid #121212 !important; box-shadow: 3px 3px 0 #121212; background: #F7F0DF !important; }

/* kỹ năng — xanh lá dịu, các hàng giãn đều */
.dash-wrap .tid-grid > .tid-card.tid-skills { background: #A9C49B radial-gradient(circle, rgba(255, 255, 255, .2) 1.6px, transparent 2.2px) 0 0 / 28px 28px !important; color: #121212 !important; }
.dash-wrap .tid-skills .tid-skill { flex: 1; border: 2px solid #121212 !important; border-radius: 14px; background: #FFFDF8 !important; box-shadow: 3px 3px 0 #121212; margin-top: 8px; }
.dash-wrap .tid-skills .tid-skills-head a { color: #121212; font-weight: 800; }

/* gợi ý thời gian (thẻ rộng) — kem, mỗi bước là thẻ trắng viền mực */
.dash-wrap .dash-time .dash-plan li { border: 2px solid #121212; border-radius: 14px; background: #FFFDF8; box-shadow: 3px 3px 0 #121212; }

/* giao diện tối: giữ màu thẻ, chữ trên nền sáng vẫn là mực */

/* góp ý GPT: điểm nhấn lớn hơn, chữ phụ dễ đọc, tiêu đề thẻ to hơn */
:root body .dash-wrap.dash-wrap .tid-grid > .tid-card.tid-goal .tid-goal-n b { font-size: clamp(64px, 6vw, 96px) !important; }
.dash-wrap .tid-grid > .tid-card h2 { font-size: clamp(21px, 1.8vw, 26px); }
.dash-wrap .tid-grid > .tid-card :is(.tid-sub, .tid-goal-sub, .tid-chip) { font-size: 14px; line-height: 1.5; }
.dash-wrap .tid-grid > .tid-card.tid-goal { padding: 30px 34px; }
:root body .dash-wrap.dash-wrap .tid-grid > .tid-card.tid-goal h2 { font-size: clamp(36px, 3.6vw, 54px); line-height: 1.02; }

/* ######## [goc-rung.css] ######## */
/* ===== Góc học tập "rừng ấm cúng" (27/10/2026, xem trước bằng ?moi=1 → html.moi) =====
   Mẫu chủ trung tâm gửi: dashboard kiểu Animal Crossing + linh vật vẽ tay kiểu sách truyện. Phân tích: tools/bia-minh-hoa/RUNG-PHAN-TICH.md
   Màu: thẻ kem #F6EDDB · ô con #EAE2CE · rừng #3A4A32 · olive #5F6D45 · chữ #4A4A3E · gỗ #9B6B3E. Chữ có chân Lora, nội dung Be Vietnam Pro. */
html.moi {
  --r-paper: #FBF6EA; --r-card: #F6EDDB; --r-tile: #EAE2CE; --r-line: #E2D8C0;
  --r-forest: #3A4A32; --r-olive: #5F6D45; --r-ink: #4A4A3E; --r-mute: #625E51; --r-wood: #9B6B3E; --r-orange: #B25D2A;
  --r-shadow: 0 6px 18px rgba(58, 74, 50, .12);
}

/* ---------- thanh chế độ bài học (28/10: "làm nổi bật lên, nãy tôi nhìn không thấy") — cùng kiểu thanh tab bộ đề ---------- */
html.moi .dash-wrap .lc-modes { display: flex; gap: 4px; width: auto; max-width: 100%; margin: 18px 0 16px; padding: 7px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--r-line) !important; border-radius: 22px; background: #FBF6EA !important; backdrop-filter: none; box-shadow: 0 10px 24px rgba(58, 74, 50, .16) !important; }
html.moi .dash-wrap .lc-modes::-webkit-scrollbar { display: none; }
html.moi .dash-wrap .lc-modes a { display: inline-flex; flex: 1 0 auto; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border: 0 !important; border-radius: 15px; background: none !important; color: var(--r-ink) !important; font: 700 16px "Be Vietnam Pro", system-ui, sans-serif; white-space: nowrap; box-shadow: none !important; transition: background .15s; }
html.moi .dash-wrap .lc-modes a svg { width: 20px; height: 20px; flex: none; color: var(--r-olive); }
html.moi .dash-wrap .lc-modes a:hover { background: #EFE6D1 !important; }
html.moi .dash-wrap .lc-modes a[aria-current="page"] { background: var(--r-forest) !important; color: #F3ECDC !important; box-shadow: 0 4px 10px rgba(58, 74, 50, .3) !important; }
html.moi .dash-wrap .lc-modes a[aria-current="page"] svg { color: #E8C66A; }
@media (max-width: 640px) { html.moi .dash-wrap .lc-modes a { flex: none; min-height: 44px; padding: 0 12px; font-size: 14.5px; } }

/* ---------- flashcard kiểu tờ lịch giấy ---------- */
/* vừa một màn hình: cao theo khung nhìn (chừa thanh chế độ, dòng tiến độ, nút chấm mức nhớ) */
html.moi .lc-fcard.cal { max-width: 440px; height: clamp(380px, calc(100vh - 300px), 600px); margin: 0 auto; }
html.moi .lc-fcard.cal .cal-pic { height: auto; flex: 1 1 46%; min-height: 110px; }
html.moi .lc-fcard.cal .cal-low { flex: 1 1 auto; padding-top: 12px; }
html.moi .lc-flash .lc-flash-btns, html.moi .lc-flash .lc-rate { margin-top: 12px; }
html.moi .lc-flash .lc-flash-top { margin-bottom: 10px; }
html.moi .lc-fcard.cal .lc-face { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 18px 18px 14px; border-radius: 18px; text-align: left;
  background: var(--r-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--r-ink); border: 1px solid var(--r-line); box-shadow: 0 2px 0 #E9DFC6, 0 16px 34px rgba(58, 74, 50, .16); }
html.moi .lc-fcard.cal .lc-face.back { background-color: var(--r-paper); }
html.moi .cal-pic { display: block; flex: none; height: 300px; border-radius: 14px; overflow: hidden; background: var(--r-tile); }
html.moi .cal-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
html.moi .cal-mean { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 26px; background: linear-gradient(160deg, #EEF0E2, #E4E8D2); }
html.moi .cal-mean { position: relative; }
html.moi .cal-mean img { position: absolute; right: 14px; bottom: 0; width: 120px; height: auto; object-fit: contain; }
html.moi .lc-fcard.cal .cal-mean b { padding-right: 40px; }
html.moi .cal-mean small { font: italic 600 13px/1 "Lora", Georgia, serif; color: var(--r-olive); letter-spacing: 0; text-transform: none; }
html.moi .lc-fcard.cal .cal-mean b { font: 700 clamp(26px, 4vw, 34px)/1.25 "Lora", Georgia, serif; color: var(--r-forest); }
html.moi .cal-low { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; padding: 16px 4px 4px; }
html.moi .cal-l { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
html.moi .lc-fcard.cal .cal-l small { margin-bottom: auto; font: italic 600 13px/1.3 "Lora", Georgia, serif; color: var(--r-mute); letter-spacing: 0; text-transform: none; }
html.moi .cal-l i { font: 500 15px/1 "Lora", Georgia, serif; font-style: normal; color: var(--r-ink); }
html.moi .lc-fcard.cal .cal-l b { margin-top: 4px; font: 600 var(--fs, 36px)/1.08 "Lora", Georgia, serif; color: var(--r-forest); overflow-wrap: break-word; hyphens: manual; }
html.moi .cal-r { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
html.moi .lc-fcard.cal .cal-r em { font: 600 15px/1.3 "Be Vietnam Pro", system-ui, sans-serif; color: var(--r-olive); }
html.moi .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 2px; }
html.moi .cal-days i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font: 600 12.5px/1 "Be Vietnam Pro", system-ui, sans-serif; font-style: normal; color: var(--r-ink); }
html.moi .cal-days i.ok { color: var(--r-olive); background: #E4E8D2; }
html.moi .cal-days i.on { color: #fff; background: var(--r-orange); }
html.moi .lc-fcard.cal .cal-ex span { font: 500 15.5px/1.55 "Lora", Georgia, serif; color: var(--r-ink); max-width: none; }
html.moi .lc-fcard.cal .cal-ex small { font: 500 13.5px/1.5 "Be Vietnam Pro", system-ui, sans-serif; color: var(--r-mute); letter-spacing: 0; text-transform: none; }
html.moi .cal-sig { display: block; margin-top: 8px; text-align: center; font: 600 11.5px/1 "Be Vietnam Pro", system-ui, sans-serif; color: var(--r-mute); }
@media (max-width: 520px) {
  html.moi .lc-fcard.cal { height: clamp(380px, calc(100vh - 260px), 560px); }
  html.moi .cal-low { gap: 10px; }
}

/* ---------- token: thay hệ "kem viền mực bóng cứng" bằng kem mềm, viền nhạt, bóng mờ ---------- */
html.moi .dash {
  --t-bg: #E9E6D2; --t-card: #F8F1E1; --t-ink: #3F4236; --t-muted: #625E51; --t-line: #E2D8C0; --t-soft: #EFE6D1;
  --t-yellow: #E8C66A; --t-blue: #5E6F4A; --t-purple: #5E6F4A; --t-green: #6F8550; --t-coral: #B25D2A; --t-orange: #B25D2A; --t-teal: #5E7A6E; --t-lav: #E4E8D2;
  --t-shadow: 0 6px 18px rgba(58, 74, 50, .10);
  --g-glacier: #DCE0C8; --g-navy: #3A4A32; --g-edge: #E2D8C0; --g-hard: rgba(0, 0, 0, 0);
  --g-dots: linear-gradient(transparent, transparent);
}
html.moi body.dash { background: #E9E6D2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .42 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") !important; }
html.moi .dash-wrap { font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--r-ink); }
html.moi .dash-wrap :is(h1, h2, h3, .dash-sec-h) { font-family: "Lora", Georgia, serif !important; letter-spacing: 0; }
/* thẻ: bỏ bóng cứng, thêm bóng mềm */
html.moi .dash-wrap :is(.dash-card, .tid-card, .dash-chapter, .dash-part, .dash-course, .dash-article, .dash-shelf, .vh-set, .lc-card, .lc-topic, .dash-vcard, .dash-test, .dash-set, .dash-unit, .dash-lex, .dash-topic, .dash-box, .dash-rows li, .dash-words li, .dash-opts button, .dc-card, .dc-test, .gm-card, .nb-bucket, .lc-word) {
  border: 1px solid var(--r-line) !important; border-radius: 18px; box-shadow: var(--r-shadow) !important; background-color: var(--t-card);
}
html.moi .dash-wrap :is(.gm-btn, .tid-btn, .lc-btn) { border: 0 !important; border-radius: 12px; background: var(--r-olive) !important; color: #FBF6EA !important; box-shadow: 0 2px 0 #5E6B45 !important; font-family: "Be Vietnam Pro", system-ui, sans-serif; }
html.moi .dash-wrap :is(.gm-btn.ghost, .tid-btn.white, .tid-btn.ghost, .lc-btn:not(.primary)) { background: #EFE6D1 !important; color: var(--r-ink) !important; box-shadow: 0 2px 0 #DCCFB0 !important; }
html.moi .dash-wrap :is(.gm-btn, .tid-btn, .lc-btn):hover { transform: translateY(-1px); filter: brightness(1.04); }
html.moi .dash-wrap :is(.dash-subnav a, .dash-skilltabs button, .dash-chiprow button, .dash-seg button, .dash-time-opts button) { border: 1px solid var(--r-line) !important; border-radius: 999px; background: var(--t-card); }
html.moi .dash-wrap :is(.dash-subnav a[aria-current="page"], .dash-skilltabs button.on, .dash-chiprow button.on, .dash-seg button.on, .dash-time-opts button.on) { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .dash-wrap :is(input:not([type=range]):not([type=checkbox]):not([type=radio]), textarea, select) { border: 1px solid var(--r-line) !important; border-radius: 12px; background: #FBF6EA; }
html.moi .dash-wrap :is(.dash-bar, .tid-bar) { border: 0; background: #E4DCC6; }
html.moi .dash-wrap :is(.dash-bar, .tid-bar) i { background: var(--r-olive); }

/* ---------- khối đầu mục: tranh hồ rừng thông, chữ có chân tối ---------- */
html.moi .dash-wrap :is(.dash-hero, .dc-hero, .lb-hero, .ex-hero) {
  border: 0 !important; border-radius: 22px; color: var(--r-forest) !important; box-shadow: var(--r-shadow) !important;
  background: linear-gradient(90deg, rgba(248, 241, 225, .95) 0%, rgba(248, 241, 225, .85) 40%, rgba(248, 241, 225, 0) 72%), url("assets/toex-study-club/rung/dau-trang-1200.webp?v=gb2") right 30% / cover no-repeat !important;
}
@media (min-width: 900px) { html.moi .dash-wrap :is(.dash-hero, .dc-hero, .lb-hero, .ex-hero) > :is(h1, h2, p, small, .dash-sub) { max-width: 48% !important; } }
html.moi .dash-wrap .lc-hero { border: 1px solid var(--r-line) !important; box-shadow: var(--r-shadow) !important; background: var(--t-card) !important; color: var(--r-ink) !important; }
:root.moi body .dash-wrap.dash-wrap :is(.dash-hero, .dc-hero, .lb-hero, .ex-hero, .lc-hero) :is(h1, h2) {
  font-family: "Lora", Georgia, serif !important; font-weight: 700 !important; color: var(--r-forest) !important; -webkit-text-stroke: 0; text-shadow: none; letter-spacing: 0;
}
html.moi .dash-wrap .dash-hero > small, html.moi .dash-wrap .dc-hero :is(.dc-tag, small:first-child), html.moi .dash-wrap .lc-eyebrow, html.moi .dash-wrap .ex-hero .ex-eyebrow {
  background: var(--r-forest) !important; color: #F3ECDC !important; border: 0 !important; letter-spacing: .06em; font-family: "Be Vietnam Pro", system-ui, sans-serif;
}
html.moi .dash-wrap .dash-hero :is(.dash-chips span, .dash-pill, .dash-tag), html.moi .dash-wrap .dc-hero :is(.dc-hero-n, .dc-hero-n > *) { border: 1px solid var(--r-line); background: rgba(251, 246, 234, .9); color: var(--r-ink); }

/* ---------- thanh bên xanh rừng, biển gỗ, mục đang chọn là viên kem ---------- */
html.moi .dash-wrap .dash-side { border: 0 !important; border-radius: 22px; color: #EDE6D2; box-shadow: 0 10px 28px rgba(34, 44, 28, .28) !important;
  background: #3A4A32 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .14 0 0 0 0 .08 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E") !important; }
html.moi .dash-wrap .dash-side :is(.dash-nav a, .dash-nav-label, .dash-side-head, .dash-lang, .dash-search-ic, .dash-pin, .dash-me) { color: #EDE6D2 !important; }
html.moi .dash-wrap .dash-nav a { font-family: "Lora", Georgia, serif; font-weight: 600; border: 0 !important; box-shadow: none !important; }
html.moi .dash-wrap .dash-nav a svg { color: #D8C9A0; }
html.moi .dash-wrap .dash-nav a:hover { background: rgba(243, 236, 220, .12) !important; }
html.moi .dash-wrap .dash-nav a[aria-current="page"] { background: #F3ECDC !important; color: #3A4A32 !important; border: 0 !important; box-shadow: 0 2px 0 rgba(0, 0, 0, .18) !important; }
html.moi .dash-wrap .dash-nav a[aria-current="page"] svg { color: #5F6D45; }
html.moi .dash-wrap .dash-nav-label { opacity: .7; font-family: "Be Vietnam Pro", system-ui, sans-serif; }
html.moi .dash-wrap .dash-search { border: 0 !important; background: rgba(243, 236, 220, .14) !important; color: #EDE6D2; }
html.moi .dash-wrap .dash-search input { color: #F3ECDC; border: 0 !important; background: transparent !important; } html.moi .dash-wrap .dash-search input::placeholder { color: rgba(243, 236, 220, .6); }
html.moi .dash-wrap .dash-search kbd { background: rgba(0, 0, 0, .2); color: #EDE6D2; border: 0; }
html.moi .dash-wrap .dash-logo span :is(b, small) { color: #F3ECDC !important; font-family: "Lora", Georgia, serif; }
html.moi .dash-wrap .dash-logo img { background: #F3ECDC; border-radius: 10px; padding: 3px; }
/* biển gỗ (chèn bằng JS khi html.moi) */
html.moi .rung-sign { display: block; margin: 4px 6px 10px; padding: 10px 12px 12px; border-radius: 10px; text-align: center; color: #FBF1DC; font-family: "Lora", Georgia, serif; line-height: 1.15;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 11px), linear-gradient(180deg, #A9743F, #8C5E33);
  box-shadow: inset 0 0 0 2px rgba(255, 236, 200, .18), 0 3px 0 #5E3E22, 0 6px 14px rgba(0, 0, 0, .25); }
html.moi a.rung-sign { text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
html.moi a.rung-sign:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: inset 0 0 0 2px rgba(255, 236, 200, .28), 0 5px 0 #5E3E22, 0 10px 18px rgba(0, 0, 0, .3); }
html.moi a.rung-sign:active { transform: translateY(1px); box-shadow: inset 0 0 0 2px rgba(255, 236, 200, .18), 0 1px 0 #5E3E22; }
html.moi a.rung-sign:focus-visible { outline: 3px solid #F3ECDC; outline-offset: 3px; }
html.moi .rung-sign small { display: block; font-size: 11px; font-style: italic; opacity: .9; } html.moi .rung-sign b { display: block; font-size: 22px; letter-spacing: .04em; } html.moi .rung-sign em { display: block; font-size: 12.5px; font-style: normal; }
/* mẹo hôm nay + cáo ở cuối thanh bên */
html.moi .rung-tip { position: relative; margin: 64px 6px 8px; padding: 12px; border-radius: 14px; background: #6E7D52; color: #F6EFDD; font-size: 12.5px; line-height: 1.45; }
html.moi .rung-tip img { position: absolute; right: 4px; top: -70px; width: 72px; height: auto; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
html.moi .rung-tip b { display: block; margin-bottom: 4px; font: 700 14px/1.2 "Lora", Georgia, serif; color: #FBF1DC; }
html.moi body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within) :is(.rung-sign, .rung-tip) { display: none; }
@media (max-width: 900px) { html.moi :is(.rung-sign, .rung-tip) { display: none; } }

/* ---------- linh vật vẽ tay: bóng mềm ---------- */
html.moi .dash-wrap img[src*="toex-study-club/rung/"] { filter: drop-shadow(0 4px 6px rgba(58, 74, 50, .15)); }

/* ---------- Tổng quan kiểu rừng (renderOverviewRung) ---------- */
html.moi .rg-leaf { width: 18px; height: 18px; flex: none; margin-right: 8px; vertical-align: -3px; }
html.moi .rg-banner { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 230px; padding: 28px 30px; margin-bottom: 18px; border-radius: 22px; overflow: hidden; box-shadow: var(--r-shadow);
  background: linear-gradient(90deg, rgba(248, 243, 226, .55), rgba(248, 243, 226, 0) 45%), url("assets/toex-study-club/rung/dau-trang.webp?v=gb2") 70% 40% / cover no-repeat; }
html.moi .rg-hi h1 { display: flex; align-items: center; margin: 0 0 6px; font: 700 clamp(26px, 3vw, 36px)/1.15 "Lora", Georgia, serif !important; color: var(--r-forest) !important; -webkit-text-stroke: 0 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .5) !important; }
html.moi .rg-hi h1 .rg-leaf { width: 26px; height: 26px; }
html.moi .rg-hi p { margin: 0; max-width: 380px; font-size: 15px; font-weight: 500; color: #4A5040; }
html.moi .rg-now { display: flex; align-items: center; gap: 10px; }
html.moi .rg-now > div { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 14px; background: rgba(248, 241, 225, .92); box-shadow: var(--r-shadow); }
html.moi .rg-now b { font: 700 15px/1.2 "Lora", Georgia, serif; color: var(--r-forest); } html.moi .rg-now small { font-size: 12.5px; color: var(--r-mute); }
html.moi .rg-ava { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #F3ECDC; border: 3px solid #F8F1E1; box-shadow: var(--r-shadow); font: 700 20px "Lora", serif; color: var(--r-forest); }
html.moi .rg-ava img { width: 100%; height: 100%; object-fit: cover; }

html.moi .rg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
html.moi .rg-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px 20px; border: 1px solid var(--r-line); border-radius: 18px; background: var(--r-card); box-shadow: var(--r-shadow); color: var(--r-ink); }
html.moi .rg-over { grid-column: span 5; } html.moi .rg-tasks { grid-column: span 4; } html.moi .rg-pic { grid-column: span 3; }
html.moi .rg-coll { grid-column: span 5; } html.moi .rg-map { grid-column: span 3; } html.moi .rg-friends { grid-column: span 4; } html.moi .rg-notes { grid-column: 1 / -1; }
html.moi .rg-h a { white-space: nowrap; }
/* GPT chấm 27/10: banner thấp hơn, thẻ dày hơn, tiêu đề không xuống dòng */
html.moi .rg-banner { min-height: 180px; padding: 24px 28px; margin-bottom: 14px; }
html.moi .rg-grid { gap: 14px; }
html.moi .rg-card { padding: 16px 18px; gap: 10px; }
html.moi .rg-h h2 { font-size: 18px !important; white-space: nowrap; }
html.moi .rg-list li { padding: 6px 10px; }
html.moi .rg-map .rg-map-img { flex: none; min-height: 0; aspect-ratio: 3 / 2; }
html.moi .rg-map .rg-map-img img { height: 100%; aspect-ratio: auto; object-fit: cover; }
/* nhãn mốc khoá học đặt đúng lên 3 tấm biển tròn trong tranh bản đồ */
html.moi .rg-pin { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%; background: #F3E6C6; color: #5A3E22; font: 700 10.5px/1 "Lora", Georgia, serif; font-style: normal; box-shadow: 0 0 0 1.5px #8C5E33; }
html.moi .rg-pin.on { background: var(--r-forest); color: #F3ECDC; box-shadow: 0 0 0 2px #F3ECDC, 0 0 0 4px var(--r-forest); }
html.moi .rg-over .rg-bubble { margin-top: auto; }
html.moi .rg-over .rg-days { row-gap: 7px; flex: 1; grid-auto-rows: auto; align-content: space-evenly; }
html.moi .rg-over .rg-over-in { align-items: stretch; }
html.moi .rg-over .rg-cal { display: flex; flex-direction: column; }
html.gb .rg-over.oq-bo .rg-cal { padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 2px 8px rgba(0, 0, 0, .04); } /* 04/11: nền sáng – khung Tổng quan bị bỏ nền (kinh-oq .oq-bo), lịch tháng nằm trơ trên tranh */
html.moi .rg-over .rg-facts > .rg-fact { flex: 1; justify-content: center; }
html.moi .rg-over .rg-facts { gap: 10px; } html.moi .rg-over .rg-fact { padding: 12px 14px; }
html.moi .rg-over-in { flex: 1; align-items: start; }
html.moi .rg-recent { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
html.moi .rg-recent small { font-size: 12px; font-weight: 600; color: var(--r-mute); }
html.moi .rg-recent p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
html.moi .rg-recent span { padding: 4px 10px; border-radius: 999px; background: #EEF0E2; font: 500 13.5px "Lora", Georgia, serif; color: var(--r-forest); }
html.moi .rg-recent .rg-empty { display: block; font-size: 13.5px; } html.moi .rg-recent a { color: var(--r-olive); font-weight: 700; }
html.moi .rg-map .rg-map-img { flex: 1; min-height: 140px; } html.moi .rg-map .rg-map-img img { height: 100%; aspect-ratio: auto; }
html.moi .dash-wrap .rg-paper textarea { border: 0 !important; border-radius: 0; background: transparent !important; font: 500 14px/1.6 "Lora", Georgia, serif; }
html.moi .rg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html.moi .rg-h h2 { display: flex; align-items: center; margin: 0; font: 700 19px/1.2 "Lora", Georgia, serif !important; color: var(--r-forest) !important; }
html.moi .rg-h a, html.moi .rg-h small { font-size: 13px; font-weight: 600; color: var(--r-olive); text-decoration: none; }
html.moi .rg-h a:hover { text-decoration: underline; }
html.moi .rg-bar { display: block; height: 7px; border-radius: 999px; background: #E4DCC6; overflow: hidden; }
html.moi .rg-bar em { display: block; height: 100%; border-radius: inherit; background: var(--r-olive); }

/* tổng quan */
html.moi .rg-over-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; }
html.moi .rg-facts { display: flex; flex-direction: column; gap: 8px; }
html.moi .rg-fact { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--r-tile); }
html.moi .rg-fact small { font-size: 12px; color: var(--r-mute); font-weight: 600; }
html.moi .rg-fact b { font: 700 17px/1.25 "Lora", Georgia, serif; color: var(--r-forest); }
html.moi .rg-stars { margin-left: 8px; font-size: 13px; letter-spacing: 1px; color: #D9A441; font-family: system-ui; }
html.moi .rg-fact select, html.moi .rg-fact input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
html.moi .rg-fact:has(select, input):hover { box-shadow: inset 0 0 0 1.5px #CFC3A3; }
html.moi .rg-cal p { margin: 0 0 6px; font: 600 14px "Lora", Georgia, serif; color: var(--r-forest); text-align: center; }
html.moi .rg-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
html.moi .rg-days b { font-size: 10.5px; font-weight: 700; color: var(--r-mute); }
html.moi .rg-days span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 12px; font-weight: 600; color: var(--r-ink); }
html.moi .rg-days span.on { background: #E4E8D2; color: #4E5C38; }
html.moi .rg-days span.today { background: var(--r-forest); color: #F3ECDC; }
html.moi .rg-bubble { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #EEF0E2; }
html.moi .rg-bubble img { width: 46px; height: auto; flex: none; }
html.moi .rg-bubble p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--r-ink); }

/* nhiệm vụ */
html.moi .rg-time { display: flex; flex-wrap: wrap; gap: 6px; }
html.moi .rg-time button { padding: 5px 11px; border: 1px solid var(--r-line); border-radius: 999px; background: #FBF6EA; color: var(--r-ink); font: 600 12.5px "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
html.moi .rg-time button.on { background: var(--r-forest); border-color: var(--r-forest); color: #F3ECDC; }
html.moi .rg-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
html.moi .rg-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--r-tile); }
html.moi .rg-list img { width: 40px; height: 40px; object-fit: contain; }
html.moi .rg-list li > :is(a, span) { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none; }
html.moi .rg-list b { font-size: 14px; font-weight: 700; color: var(--r-forest); }
html.moi .rg-list a span { font-size: 12.5px; color: var(--r-mute); }
html.moi .rg-list a:hover b { text-decoration: underline; }
html.moi .rg-list small { font-size: 12.5px; font-weight: 700; color: var(--r-olive); white-space: nowrap; }

/* góc tranh */
html.moi .rg-pic-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
html.moi .rg-pic p { margin: 0; font: 500 14px/1.5 "Lora", Georgia, serif; color: var(--r-ink); }
html.moi .rg-pic .rg-vi { font: 500 13px/1.5 "Be Vietnam Pro", system-ui, sans-serif; color: var(--r-mute); }
html.moi .rg-pic small { font-size: 12px; color: var(--r-mute); } html.moi .rg-pic small button { border: 0; background: none; padding: 0; color: var(--r-olive); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* bộ sưu tập */
html.moi .rg-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
html.moi .rg-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 12px; background: var(--r-tile); color: var(--r-ink); text-decoration: none; text-align: center; transition: transform .15s; }
html.moi .rg-tile:hover { transform: translateY(-2px); }
html.moi .rg-tile img { width: 52px; height: 52px; object-fit: contain; }
html.moi .rg-tile small { font-size: 11.5px; font-weight: 600; color: var(--r-mute); line-height: 1.25; }
html.moi .rg-tile b { font: 700 18px/1.1 "Lora", Georgia, serif; color: var(--r-forest); }
html.moi .rg-goalrow { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--r-tile); font-size: 13.5px; font-weight: 600; }
html.moi .rg-goalrow span { display: flex; align-items: center; } html.moi .rg-goalrow b { color: var(--r-olive); }
html.moi .rg-card .tid-btn { align-self: flex-start; padding: 9px 16px; text-decoration: none; font-size: 14px; }

/* bản đồ */
html.moi .rg-map-img { position: relative; border-radius: 12px; overflow: hidden; }
html.moi .rg-map-img img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 60% 50%; }
html.moi .rg-pins { position: absolute; inset: auto 0 10px 0; height: 0; }
html.moi .rg-pins i { position: absolute; left: var(--x); bottom: 0; padding: 4px 9px; border-radius: 999px; background: rgba(248, 241, 225, .92); color: var(--r-ink); font: 700 11.5px "Be Vietnam Pro", system-ui, sans-serif; font-style: normal; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
html.moi .rg-pins i.on { background: var(--r-forest); color: #F3ECDC; }
html.moi .rg-map p { margin: 0; font-size: 14px; line-height: 1.5; }

/* bạn học */
html.moi .rg-faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
html.moi .rg-faces a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--r-ink); text-decoration: none; text-align: center; }
html.moi .rg-faces span { display: grid; place-items: start center; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: #E4E8D2; border: 2px solid #F8F1E1; box-shadow: 0 2px 6px rgba(58, 74, 50, .15); transition: transform .15s; }
html.moi .rg-faces a:hover span { transform: translateY(-2px) rotate(-3deg); }
html.moi .rg-faces img { width: 130%; max-width: none; height: auto; margin-top: 4px; filter: none !important; }
html.moi .rg-faces b { font: 700 12.5px/1.2 "Lora", Georgia, serif; color: var(--r-forest); } html.moi .rg-faces small { font-size: 11px; color: var(--r-mute); }

/* ghi chú */
html.moi .rg-papers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
html.moi .rg-paper { position: relative; display: block; padding: 14px 16px; border-radius: 12px; background: #FBF1C9; box-shadow: 0 3px 0 #EADDB0, 0 8px 18px rgba(58, 74, 50, .1); transform: rotate(-.4deg); }
html.moi .rg-paper:nth-child(2) { transform: rotate(.5deg); background: #F4EFD8; } html.moi .rg-paper:nth-child(3) { transform: rotate(-.2deg); background: #EEF0E2; }
html.moi .rg-paper img { position: absolute; right: 8px; bottom: 6px; width: 54px; height: auto; pointer-events: none; }
html.moi .rg-paper textarea { display: block; width: 100%; min-height: 118px; padding: 0 56px 0 0; border: 0 !important; background: transparent !important; resize: vertical; font: 500 14px/1.6 "Lora", Georgia, serif; color: var(--r-ink); box-shadow: none; outline: none; }

@media (max-width: 1180px) {
  html.moi .rg-over, html.moi .rg-coll { grid-column: span 7; } html.moi .rg-tasks, html.moi .rg-map { grid-column: span 5; } html.moi .rg-pic, html.moi .rg-friends { grid-column: span 6; }
}
@media (max-width: 760px) {
  html.moi .rg-grid > * { grid-column: 1 / -1 !important; }
  html.moi .rg-banner { flex-direction: column; min-height: 260px; background-position: 75% 50%; }
  html.moi .rg-over-in, html.moi .rg-papers { grid-template-columns: 1fr; }
  html.moi .rg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ========== rà đồng bộ 27/10 (chủ trung tâm: "còn nhiều thứ chưa đồng bộ") ========== */
/* đầu mục: chữ không đè tranh — giới hạn cả phần tử lồng bên trong, lớp kem đậm hơn */
@media (min-width: 900px) {
  html.moi .dash-wrap :is(.dash-hero, .dc-hero, .lb-hero) :is(h1, h2, p, .dash-sub, .dc-hero-n, .dash-chips) { max-width: min(46%, 520px) !important; }
  html.moi .dash-wrap :is(.dash-hero, .dc-hero, .lb-hero, .ex-hero) {
    background: linear-gradient(90deg, rgba(248, 241, 225, .97) 0%, rgba(248, 241, 225, .9) 44%, rgba(248, 241, 225, 0) 66%), url("assets/toex-study-club/rung/dau-trang-1200.webp?v=gb2") right 30% / auto 115% no-repeat, #EDE6D2 !important;
  }
}
/* màu nhấn cũ (xanh đậm, Glacier, vàng, cam, xanh điện) → rừng / olive / gỗ */
html.moi .dash-wrap :is(.dash-count-badge, .dash-unit small, .dash-unit.cur small, .dash-chapter b) { background: var(--r-forest) !important; color: #F3ECDC !important; border: 0 !important; }
html.moi .dash-wrap :is(.dash-unit.has-lesson em, .vh-go, .dash-chapter-n, .dash-lex > small, .dash-unit em) { color: var(--r-olive) !important; }
html.moi .dash-wrap .dash-chapter-n { color: rgba(124, 138, 95, .25) !important; }
html.moi .dash-wrap .dash-unit.cur, html.moi .dash-wrap .dash-units .dash-unit.on, html.moi .dash-wrap .dash-unit[aria-current] { border-color: var(--r-olive) !important; }
html.moi .dash-wrap .dash-ic, html.moi .dash-wrap .dash-ic:is(.yellow, .glacier, .green, .red, .orange, .blue) { background: #E4E8D2 !important; color: var(--r-forest) !important; }
html.moi .dash-wrap :is(i.dot.y, i.dot.b, i.sq.glacier, i.sq.yellow) { background: var(--r-olive) !important; }
html.moi .dash-wrap i.dot.b, html.moi .dash-wrap i.sq.glacier { background: #8FA6A0 !important; }
html.moi .dash-wrap .dc-part, html.moi .dash-wrap .dc-part:is(.coral, .orange, .yellow, .blue, .green, .purple) { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .dash-wrap .dash-course:is(.orange, .green, .blue, .red, .yellow, .purple) { background: var(--t-card) !important; }
html.moi .dash-wrap .lc-obj { background: #EEF0E2 !important; }
html.moi .dash-wrap :is(.dt-big, .dt-sign) { color: var(--r-forest) !important; }
html.moi .dash-wrap .lc-chips span { background: #EFE6D1; }
/* bảng IPA: bỏ hồng / vàng / xanh — 3 tông rừng nhạt */
html.moi .dash-wrap .dash-ipa { border: 1px solid var(--r-line) !important; box-shadow: none !important; color: var(--r-ink); }
html.moi .dash-wrap .dash-ipa.v { background: #EEF0E2 !important; }
html.moi .dash-wrap .dash-ipa.d { background: #F4EAD0 !important; }
html.moi .dash-wrap .dash-ipa:is(.c0, .c1, .c) { background: #F8F1E1 !important; }
html.moi .dash-wrap .dash-ipa.c1 { background: #EFE6D1 !important; }
html.moi .dash-wrap .dash-ipa.on { background: var(--r-forest) !important; color: #F3ECDC !important; }
/* số bước, điểm nhấn cam ở Giới thiệu bạn bè → olive */
html.moi .dash-wrap :is(.rf-step b, .ref-step b, .dash-steps b, .dash-step-n) { background: var(--r-olive) !important; color: #FBF6EA !important; }

/* thẻ Part ở trang TOEIC: bìa sổ tay to bên trái, chữ bên phải không bị cắt */
html.moi .dash-wrap .dash-part { grid-template-columns: 132px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 4px 14px; min-height: 0; padding: 14px; align-items: start; }
html.moi .dash-wrap .dash-part > :not(.dash-cover) { grid-column: 2; }
html.moi .dash-wrap .dash-part > .dash-cover.bh-part { grid-column: 1; grid-row: 1 / -1; width: 132px; height: auto; aspect-ratio: 3 / 4; margin: 0; border: 1px solid var(--r-line) !important; border-radius: 8px; overflow: hidden; background: none !important; box-shadow: 0 8px 16px -10px rgba(58, 74, 50, .4) !important; }
html.moi .dash-wrap .dash-part > .dash-cover.bh-part svg { display: block; width: 100%; height: 100%; }
html.moi .dash-wrap .dash-part p { max-width: none !important; padding-right: 0 !important; margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; }
html.moi .dash-wrap .dash-part h3 { margin: 2px 0 0; font-size: 18px !important; line-height: 1.2; overflow-wrap: anywhere; }
html.moi .dash-wrap .dash-part .dash-ring { position: relative; inset: auto; justify-self: start; align-self: end; margin-top: 6px; } /* giữ relative: ::before của vòng định vị theo nó */
html.moi .dash-wrap .dc-card.has-cover .dc-cover { border: 1px solid var(--r-line); border-radius: 8px; overflow: hidden; }

/* GPT soi đồng bộ 27/10: nút chọn đang bật cùng một màu rừng; tranh trò chơi có đệm như bìa sổ; chữ dưới bìa đậm hơn */
html.moi .dash-wrap .ex-chips button { border: 1px solid var(--r-line) !important; background: var(--t-card) !important; color: var(--r-ink) !important; box-shadow: none !important; }
html.moi .dash-wrap .ex-chips button.on { background: var(--r-forest) !important; border-color: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .dash-wrap .gm-card.has-cover .gm-cover { margin: 10px 10px 0 !important; border: 1px solid var(--r-line) !important; border-radius: 12px; overflow: hidden; }
html.moi .dash-wrap .gm-card.has-cover { padding-top: 0; }
html.moi .ex .ex-cover b { font: 700 15px/1.3 "Lora", Georgia, serif; color: var(--r-forest); }
html.moi .ex .ex-cover small { font-size: 13px; font-weight: 600; color: #6E6A5C; }
html.moi .dash-wrap .rg-time button, html.moi .dash-wrap .dash-time-opts button { min-height: 32px; border-radius: 10px; }
/* lần dò tự động cuối: các điểm màu cũ còn sót */
html.moi .dash-wrap .ex-btn.coral { background: var(--r-olive) !important; color: #FBF6EA !important; border: 0 !important; box-shadow: 0 2px 0 #5E6B45 !important; }
html.moi .dash-wrap .dash-ipa-big { background: #EEF0E2 !important; color: var(--r-forest) !important; }
html.moi .dash-wrap .dash-bars .bars i.a { background: var(--r-olive) !important; }
html.moi .dash-wrap .dash-bars .today small { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .dash-wrap .dt-paper .dt-bar b { background: var(--r-olive) !important; }

/* ---------- Phòng thi: thư mục sổ (toeic-exam.js folders) — bấm sổ, sổ mở ra bên dưới ---------- */
html.moi .ex .ex-folders { position: sticky; top: 8px; z-index: 6; margin-top: 26px; }
/* thanh tab bộ đề (mẫu chủ trung tâm 28/10): viên kem bo tròn, tab chọn xanh rừng, số đếm trong ô nhỏ */
html.moi .ex .ex-tabs { display: flex; align-items: center; gap: 4px; padding: 8px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--r-line); border-radius: 22px; background: #FBF6EA; box-shadow: 0 8px 22px rgba(58, 74, 50, .12); }
html.moi .ex .ex-tabs::-webkit-scrollbar { display: none; }
html.moi .ex .ex-tab { display: inline-flex; flex: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 18px; border: 0; border-radius: 15px; background: none; color: var(--r-ink); font: 600 16.5px "Be Vietnam Pro", system-ui, sans-serif; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
html.moi .ex .ex-tab:hover { background: #EFE6D1; }
html.moi .ex .ex-tab em { padding: 3px 9px; border-radius: 10px; background: #EFE6D1; color: var(--r-ink); font: 600 13px/1.3 "Be Vietnam Pro", system-ui, sans-serif; font-style: normal; }
html.moi .ex .ex-tab.on { background: var(--r-forest); color: #F3ECDC; box-shadow: 0 4px 10px rgba(58, 74, 50, .3); }
html.moi .ex .ex-tab.on em { background: rgba(243, 236, 220, .18); color: #F3ECDC; }
html.moi .ex .ex-tab:focus-visible { outline: 3px solid var(--r-olive); outline-offset: 2px; }
html.moi .ex .ex-tab-wait { padding: 0 12px; font-size: 13px; color: var(--r-mute); }
/* trang Từ vựng dùng chung thanh tab (dashboard.js renderVocab, 28/10) */
html.moi .vh-tabwrap { margin: 6px 0 24px; font-family: "Be Vietnam Pro", system-ui, sans-serif; }
html.moi .vh-tabwrap .vh-subtabs { margin-top: 10px; padding: 5px; border-radius: 18px; box-shadow: none; background: #F3ECDC; }
html.moi .vh-tabwrap .vh-subtabs .ex-tab { min-height: 38px; font-size: 14px; }
html.moi .vh-tabwrap .vh-hint { margin: 14px 2px 12px; font-size: 13.5px; color: var(--r-mute); } html.moi .vh-tabwrap .vh-hint a { color: var(--r-olive); font-weight: 700; }
html.moi .vh-tabwrap > .vh-sets { margin-top: 18px; }
html.moi .vh-tabwrap .vh-book-open .vh-sets { margin: 14px 0 0; }
@media (max-width: 1440px) { html.moi .ex .ex-tabs { gap: 0; padding: 6px; } html.moi .ex .ex-tab { gap: 6px; min-height: 44px; padding: 0 10px; font-size: 14.5px; } html.moi .ex .ex-tab em { padding: 2px 7px; font-size: 12px; } }
@media (max-width: 640px) { html.moi .ex .ex-tab { min-height: 42px; } }
html.moi .ex .ex-folder-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
html.moi .ex .ex-folder { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
html.moi .ex .ex-folder .ex-cover-art { position: relative; transition: transform .2s, box-shadow .2s; }
html.moi .ex .ex-folder:hover .ex-cover-art { transform: translateY(-4px) rotate(-1deg); }
html.moi .ex .ex-folder.on .ex-cover-art { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--r-forest), 0 18px 26px -14px rgba(58, 74, 50, .5) !important; }
html.moi .ex .ex-folder b { margin-top: 10px; font: 700 15px/1.3 "Lora", Georgia, serif; color: var(--r-forest); }
html.moi .ex .ex-folder small { font-size: 12.5px; font-weight: 600; color: #6E6A5C; }
html.moi .ex .ex-folder.on b::after { content: " · đang mở"; font: italic 500 12px "Be Vietnam Pro", system-ui, sans-serif; color: var(--r-olive); }
html.moi .ex .ex-folder:focus-visible { outline: none; } html.moi .ex .ex-folder:focus-visible .ex-cover-art { outline: 3px solid var(--r-olive); outline-offset: 3px; }
/* sổ đang mở: trang giấy kem có gáy, nằm ngay dưới hàng thư mục */
html.moi .ex .ex-book-open { position: relative; margin-top: 22px; padding: 22px 24px 24px 34px; border: 1px solid var(--r-line); border-radius: 6px 18px 18px 6px; background: #FBF6EA; box-shadow: var(--r-shadow); animation: exUp .35s both; }
html.moi .ex .ex-book-open::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; border-radius: 6px 0 0 6px; background: repeating-linear-gradient(180deg, #CDBF9D 0 3px, #E2D8C0 3px 14px); }
html.moi .ex .ex-book-open .ex-shelf-chips { display: none; }

/* màn làm bài (.ex-run): nút mực đen / cam → xanh rừng / olive cho cùng tông */
html.moi .ex-run .ex-btn.ink { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .ex-run .ex-btn.coral { background: var(--r-olive) !important; color: #FBF6EA !important; }
html.moi .ex-run .ex-prog i { background: var(--r-olive) !important; }
html.moi .ex-run .ex-top .ex-code b { font-family: "Lora", Georgia, serif; color: var(--r-forest); }
/* rà màn làm bài 28/10 ("tất cả phần làm bài và thi thử đều lỗi"): các màu cũ còn sót */
html.moi .ex-run .ex-opt.on { border-color: var(--r-olive) !important; background: #EEF0E2 !important; box-shadow: 0 0 0 2px rgba(124, 138, 95, .25); }
html.moi .ex-run .ex-opt.on > :first-child { background: var(--r-olive); color: #FBF6EA; }
html.moi .ex-run .ex-nums .cur, html.moi .ex-run .ex-legend i.cur { border-color: var(--r-forest) !important; background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .ex-run .ex-play { background: var(--r-forest); color: #F3ECDC; }
html.moi .ex-run .ex-player.playing .ex-play { background: var(--r-olive); }
html.moi .ex-run .ex-player.playing .ex-wave i { background: var(--r-olive); }
html.moi .ex-run .ex-blank.on { background: #E8C66A !important; color: var(--r-forest); }
html.moi .ex-run .ex-count { background: linear-gradient(135deg, #5E6F4A, #3A4A32); box-shadow: 0 12px 24px rgba(58, 74, 50, .35); }
html.moi .ex-run .ex-res-hero { background: linear-gradient(120deg, rgba(58, 74, 50, .94), rgba(94, 111, 74, .88)), url("assets/toex-study-club/rung/dau-trang-1200.webp?v=gb2") center / cover no-repeat; }
html.moi .ex-run .ex-res-hero.great { background: linear-gradient(120deg, rgba(124, 138, 95, .92), rgba(201, 163, 90, .88)), url("assets/toex-study-club/rung/dau-trang-1200.webp?v=gb2") center / cover no-repeat; }
:root.moi body.v3 .ex-run .ex-res-txt h2 { font-family: "Lora", Georgia, serif; color: #FBF6EA !important; }
html.moi .ex-modal .ex-btn.coral, html.moi .ex-modal .ex-btn.primary { background: var(--r-olive) !important; color: #FBF6EA !important; box-shadow: 0 2px 0 #5E6B45 !important; }
html.moi .ex-modal .ex-btn.ink { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .ex-modal-card { background: #FBF6EA !important; border: 1px solid var(--r-line); }
html.moi .ex .ex-btn.ink { background: var(--r-forest) !important; color: #F3ECDC !important; }
/* nghe chép / nói theo (dictation.js): nút phát, tốc độ đang chọn, viền ô gõ */
html.moi .dash-wrap .dc-play { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .dash-wrap :is(.dc-rates, .dc-speed, .dc-ctrl) button.on, html.moi .dash-wrap .dc-play ~ * button.on { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .dash-wrap :is(textarea, input[type=text]):focus { outline: none; border-color: var(--r-olive) !important; box-shadow: 0 0 0 3px rgba(124, 138, 95, .25) !important; }
/* trang 1 đề / 1 cuốn sách (.ex-bk-*, .ex-pt): bỏ viền đậm + bóng cứng, đầu trang tranh hồ như Phòng thi */
html.moi .ex :is(.ex-back, .ex-bk-cover, .ex-pt, .ex-bk-txt p, .ex-bk-txt .ex-hero-nums span, .ex-bk-row) { border: 1px solid var(--r-line) !important; box-shadow: var(--r-shadow) !important; }
html.moi .ex .ex-back { background: #FBF6EA; color: var(--r-forest); border-radius: 999px; }
html.moi .ex .ex-bk-head { border: 0 !important; box-shadow: var(--r-shadow) !important; border-radius: 22px;
  background: linear-gradient(90deg, rgba(248, 241, 225, .97) 0%, rgba(248, 241, 225, .9) 55%, rgba(248, 241, 225, .45) 80%), url("assets/toex-study-club/rung/dau-trang-1200.webp?v=gb2") right 30% / cover no-repeat, #EDE6D2 !important; }
html.moi .ex .ex-bk-txt p { background: rgba(251, 246, 234, .92) !important; }
html.moi .ex .ex-bk-cover { border-radius: 8px; overflow: hidden; }
html.moi .ex .ex-btn.coral { background: var(--r-olive) !important; color: #FBF6EA !important; }

/* ---------- Phòng thi (toeic-exam.css): đầu trang tranh hồ, thẻ kem viền nhạt, nút olive ---------- */
html.moi .ex { --k-ink: #3A4A32; --k-card: #F8F1E1; --k-cream: #F3ECDC; --k-glacier: #DCE0C8; --k-navy: #3A4A32; --k-orange: #5F6D45; --k-yellow: #8E9C70; --k-muted: #625E51; }
html.moi .ex .ex-top { border: 0 !important; box-shadow: var(--r-shadow) !important; border-radius: 22px;
  background: linear-gradient(90deg, rgba(248, 241, 225, .97) 0%, rgba(248, 241, 225, .88) 48%, rgba(248, 241, 225, .35) 75%), url("assets/toex-study-club/rung/dau-trang-1200.webp?v=gb2") right 30% / cover no-repeat, #EDE6D2 !important; }
:root.moi body .ex.ex .ex-top h1 { font-family: "Lora", Georgia, serif !important; font-weight: 700 !important; color: var(--r-forest) !important; -webkit-text-stroke: 0 !important; text-shadow: none !important; }
html.moi .ex .ex-top-hl { border: 0 !important; box-shadow: none !important; text-shadow: none !important; transform: none; background: none !important; padding: 0 !important; margin-left: 0; color: var(--r-olive); font-style: italic; }
html.moi .ex .ex-top-label { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .ex :is(.ex-top-desc, .ex-top-stats span) { border: 1px solid var(--r-line) !important; box-shadow: none !important; background: rgba(251, 246, 234, .92) !important; }
html.moi .ex .ex-top-stats b { font-family: "Lora", Georgia, serif; color: var(--r-forest); }
html.moi .ex .ex-kbtn { border: 0 !important; background: #EFE6D1 !important; color: var(--r-ink) !important; box-shadow: 0 2px 0 #DCCFB0 !important; font-family: "Be Vietnam Pro", system-ui, sans-serif; }
html.moi .ex .ex-kbtn.primary { background: var(--r-olive) !important; color: #FBF6EA !important; box-shadow: 0 2px 0 #5E6B45 !important; }
html.moi .ex .ex-kbtn:hover { transform: translateY(-1px); }
html.moi .ex .ex-cover-art { border: 1px solid var(--r-line) !important; border-radius: 8px !important; box-shadow: 0 2px 0 #E2D8C0, 0 12px 22px -12px rgba(58, 74, 50, .35) !important; }
html.moi .ex .ex-cover:hover .ex-cover-art, html.moi .ex a.ex-cover-art:hover { transform: translateY(-4px); box-shadow: 0 2px 0 #E2D8C0, 0 18px 28px -14px rgba(58, 74, 50, .4) !important; }
html.moi .ex .ex-cover-prog { border: 0 !important; background: #E4DCC6 !important; border-radius: 999px; overflow: hidden; } html.moi .ex .ex-cover-prog i { background: var(--r-olive) !important; }
html.moi .ex :is(.ex-badge, .ex-toex .ex-badge, .ex-shelf .ex-badge) { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .ex .ex-shelf-chips button { border: 1px solid var(--r-line) !important; box-shadow: none !important; background: var(--t-card); }
html.moi .ex .ex-shelf-chips button.on { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .ex :is(.ex-bk-cover, .ex-bk-prog, .ex-bk-txt .ex-hero-nums span, .ex-pt, .ex-bk-row, .ex-card, .ex-q, .ex-opt) { border-color: var(--r-line) !important; box-shadow: var(--r-shadow) !important; }
:root.moi body .ex.ex .ex-bk-txt h2 { font-family: "Lora", Georgia, serif !important; color: var(--r-forest) !important; -webkit-text-stroke: 0 !important; text-shadow: none !important; }
html.moi .ex .ex-bk-txt .ex-eyebrow { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .ex select { border: 1px solid var(--r-line) !important; border-radius: 12px; background: #FBF6EA; box-shadow: none !important; }

/* ===== Kiểm duyệt đợt 2 (28/10/2026): đồng bộ màu, chữ, góc bo trên mọi tab Góc học tập =====
   Chữ: font-hoc-tap.css trỏ Quicksand / Plus Jakarta / Fraunces còn sót về Be Vietnam Pro / Lora. Màu chữ phụ, olive đã sẫm hơn ở token (đạt 4.5:1). */
/* tiêu đề trang bài học / từ vựng: lessons.css ép Quicksand bằng :root body.v3 … h1 !important */
:root.moi body.v3 .dash-wrap :is(.vh-head, .lc-hero, .dc-hero, .lb-hero) h1 { font-family: "Lora", Georgia, serif !important; color: var(--r-forest) !important; }
html.moi .dash-wrap .dash-empty-i { font-family: "Lora", Georgia, serif; }
/* chữ nhỏ dưới 12px khó đọc trên laptop */
html.moi .rg-days b, html.moi .rg-tile small, html.moi .rg-faces small, html.moi .dash-wrap .lc-eyebrow, html.moi .dash-chapter header small { font-size: 12px !important; }
/* olive trên ô con (#EAE2CE) chưa đủ tương phản cho chữ nhỏ → xanh rừng */
html.moi .rg-list li small, html.moi .rg-goalrow b { color: var(--r-forest); }
html.moi .rg-stars { color: #B5602C; }
html.moi .ex .ex-cover small { color: var(--r-mute); }
/* góc bo 6px: khối đầu trang (theme.js bỏ sót khi tab mở thẳng bằng đường dẫn), thanh tab con, chip lọc */
html.moi .dash-wrap :is(.dash-hero, .dc-hero, .lb-hero, .ex-hero), html.moi .rg-banner { border-radius: 6px !important; }
html.moi .dash-wrap :is(.dash-subnav a, .dash-skilltabs button, .dash-chiprow button, .dash-seg button, .dash-time-opts button, .ex-chips button, .dash-ipa-words button) { border-radius: 6px !important; }
/* bảng màu: bỏ xanh dương / hồng / bạc hà của giao diện cũ */
html.moi .dash-wrap .dash-ring { background: conic-gradient(var(--r-forest) calc(var(--p, 0) * 1%), #EFE6D1 0) !important; }
html.moi .dash-wrap i.sq.glacier { background: var(--r-forest) !important; }
html.moi .dash-wrap i.sq.green { background: var(--r-olive) !important; }
html.moi .dash-wrap i.sq.red { background: #B5602C !important; }
html.moi .dash-wrap i.sq.yellow { background: var(--r-wood) !important; }
html.moi .dash-wrap .dash-bars .bars i.b, html.moi .dash-wrap .dash-legend .b::before { background: var(--r-wood) !important; }
html.moi .dash-wrap .dash-legend .a::before { background: var(--r-olive) !important; }
html.moi .dash-wrap .dash-legend span::before { border-color: rgba(58, 74, 50, .35); }
html.moi .dash-wrap .dash-chapter { --ac: var(--r-forest); }
html.moi .dash-wrap .dash-basics-p small { justify-content: flex-start; gap: .3em; }
html.moi .dash-wrap .vh-banner { border: 1px solid var(--r-line) !important; background: var(--t-card) !important; box-shadow: var(--r-shadow); }
html.moi .dash-wrap .vh-banner.due { border-color: #E3C9A8 !important; background: #F8EEDD !important; }
html.moi .dash-wrap .vh-ic, html.moi .dash-wrap .vh-ic:is(.b, .o, .g) { background: var(--r-tile) !important; }
html.moi .dash-wrap .dash-ipa-legend span::before { border-color: #C9C0A6; }
html.moi .dash-wrap .dash-ipa-legend .v::before { background: #EEF0E2; } html.moi .dash-wrap .dash-ipa-legend .d::before { background: #F4EAD0; }
html.moi .dash-wrap .dash-ipa-legend .c0::before { background: #F8F1E1; } html.moi .dash-wrap .dash-ipa-legend .c1::before { background: #EFE6D1; }
/* tên Part không bị cắt giữa chữ ("Conversation-s", "Comprehensi-on") */
html.moi .dash-wrap .dash-part h3 { overflow-wrap: normal; word-break: normal; }
@media (min-width: 1101px) and (max-width: 1500px) { html.moi .dash-wrap .dash-part h3 { font-size: 16px !important; letter-spacing: -.005em; } }
/* laptop 1280–1440: dòng chào phụ chạm vào tranh → nền kem bên trái đậm hơn một chút */
@media (min-width: 641px) { html.moi .rg-banner { background: linear-gradient(90deg, rgba(248, 243, 226, .92) 0%, rgba(248, 243, 226, .78) 32%, rgba(248, 243, 226, 0) 54%), url("assets/toex-study-club/rung/dau-trang.webp?v=gb2") 70% 40% / cover no-repeat !important; } }
/* điện thoại: lời chào đè lên tranh → nền kem phía trên, tranh lùi xuống dưới */
@media (max-width: 640px) {
  html.moi .rg-banner { min-height: 330px; background: linear-gradient(180deg, rgba(248, 243, 226, .97) 0%, rgba(248, 243, 226, .93) 36%, rgba(248, 243, 226, 0) 60%), url("assets/toex-study-club/rung/dau-trang.webp?v=gb2") 72% 100% / cover no-repeat !important; }
  html.moi .rg-hi h1 { text-shadow: none !important; }
}
/* điện thoại: thanh trên chung của web (viền mực 2–3px, bóng cứng) → viền mảnh như thẻ rừng */
html.moi body.dash .p-nav { border-bottom: 1px solid var(--r-line) !important; background: rgba(251, 246, 234, .96) !important; }
html.moi body.dash .p-nav :is(.p-logo-mark, .p-pill, .p-ubar) { border: 1px solid var(--r-line) !important; box-shadow: none !important; background-color: #FBF6EA !important; }
/* trang bài học (ngữ pháp, từ vựng, giáo trình — lessons.css): bỏ xanh dương / san hô / cam của giao diện cũ.
   Đúng / sai vẫn xanh lá / đỏ nhưng sẫm cho đủ tương phản trên nền kem. */
html.moi .dash-wrap .lc-cover:is(.blue, .purple, .green) { background: linear-gradient(160deg, #4E6142, var(--r-forest)) !important; }
html.moi .dash-wrap .lc-cover:is(.coral, .orange, .yellow, .red, .pink) { background: linear-gradient(160deg, #C27040, #9E5326) !important; }
html.moi .dash-wrap :is(.lc-struct > small, .lc-table th:first-child, .lc-topic-t span.go, .vh-go, .dash-unit.has-lesson em) { color: var(--r-forest) !important; }
html.moi .dash-wrap .lc-table th:last-child { color: #9E5326 !important; }
html.moi .dash-wrap .lc-struct code { background: #E4E8D2 !important; color: var(--r-forest) !important; font-family: "Be Vietnam Pro", system-ui, sans-serif; }
html.moi .dash-wrap .lc-num { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .dash-wrap :is(.lc-signals b, .lc-mean, .lc-face.back b) { color: #9E5326 !important; }
html.moi .dash-wrap .lc-gap { border-bottom-color: #B25D2A !important; }
html.moi .dash-wrap .lc-opt:hover:not(:disabled) { border-color: var(--r-olive) !important; background: #F1EEDD !important; }
html.moi .dash-wrap .lc-mis .bad { color: #A8392B !important; } html.moi .dash-wrap :is(.lc-mis .good, .lc-msg, .dc-best, .lt-w.ok, .dc-unit.done small) { color: #2F6B3F !important; }
html.moi .dash-wrap .dash-unit.has-lesson { box-shadow: inset 0 0 0 1px var(--r-line), var(--r-shadow) !important; }
html.moi .dash-wrap :is(.dc-part, .dc-part.blue, .dc-part.coral, .dc-part.orange, .dc-part.yellow) { background: var(--r-forest) !important; color: #F3ECDC !important; }
html.moi .dash-wrap .dc-player.playing .dc-play, html.moi .dash-wrap .dc-mic.rec { background: #B25D2A !important; }
html.moi .dash-wrap .dc-player.playing .dc-wave i { background: var(--r-olive) !important; }
html.moi .dash-wrap .dc-input:focus { outline-color: var(--r-olive) !important; }
html.moi .dash-wrap .lb-rows li.me { background: #EEF0E2 !important; box-shadow: inset 0 0 0 1.5px var(--r-olive) !important; }
html.moi .dash-wrap .lb-pod .me strong::after { color: var(--r-olive); }
html.moi .dash-wrap .lc-cover small, html.moi .dash-wrap .lc-hero small { font-size: max(12px, 1em); }
/* hộp mở đầu đề THPTQG: danh sách ý canh trái (canh giữa làm dấu chấm đầu dòng lệch chữ) */
html.moi .tq-start ul, html.moi :is(.ex-modal, .tq-modal) ul { text-align: left; }
/* trang một cuốn sách: khung danh sách đề còn viền mực 2px + bóng cứng; nút quay lại cùng góc bo 6px */
html.moi .ex .ex-bk-list { border: 1px solid var(--r-line) !important; box-shadow: var(--r-shadow) !important; overflow: hidden; }
html.moi .ex .ex-bk-list .ex-bk-row { box-shadow: none !important; border-width: 0 0 1px !important; }
html.moi .ex .ex-bk-list .ex-bk-row:last-child { border-bottom: 0 !important; }
html.moi .ex .ex-back { border-radius: 6px !important; }

/* ######## [thptqg.css] ######## */
/* ===== Luyện đề THPTQG (thptqg.js) — theo giao diện "rừng ấm cúng" của Góc học tập (goc-rung.css), góc bo 6px =====
   Màn làm bài phủ kín cửa sổ: thanh đầu 56px · thân 2 cột cuộn riêng · bảng câu ở chân. Vừa laptop 1280×650 không cuộn trang. */
.tq, .tq-run, .tq-modal {
  --tq-paper: #FBF6EA; --tq-card: #F6EDDB; --tq-tile: #EAE2CE; --tq-line: #E2D8C0; --tq-bg: #F1E9D6;
  --tq-forest: #3A4A32; --tq-olive: #5F6D45; --tq-ink: #4A4A3E; --tq-mute: #625E51; --tq-orange: #D9824A;
  --tq-right: #4F7A3A; --tq-right-bg: #E3EDD2; --tq-wrong: #B5523B; --tq-wrong-bg: #F6DED4;
}

/* ---------- trang danh sách ---------- */
.tq .tq-wait { padding: 40px 0; text-align: center; color: var(--tq-mute); }
.tq .tq-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.tq .tq-filters .ex-tabs { align-self: flex-start; max-width: 100%; border-radius: 6px !important; }
.tq .tq-filters .ex-tab { border-radius: 6px !important; }
.tq .tq-src .ex-tab { min-height: 40px; font-size: 14.5px; }
.tq .tq-note { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--tq-line); border-left: 4px solid var(--tq-olive); border-radius: 6px; background: var(--tq-paper); color: var(--tq-ink); font-size: 14.5px; line-height: 1.55; }
.tq .tq-note b { color: var(--tq-forest); }
/* tạm khoá (04/11/2026, cờ TAM_KHOA_THPT_DGNL trong functions/_middleware.js): dải báo + bìa mờ, nút "Tạm khoá" không nổi */
.tq .tq-khoa { border-left-color: #B25D2A; }
.tq .tq-khoa b { color: #8A4520; }
.tq .tq-covers.is-khoa .ex-cover-art { opacity: .55; filter: grayscale(.5); }
.tq .tq-covers.is-khoa .tq-khoa-btn { background: var(--tq-tile); border-color: var(--tq-line); color: var(--tq-mute); cursor: not-allowed; }
.tq .tq-covers { margin-bottom: 28px; }
.tq .ex-cover-art svg { display: block; width: 100%; height: auto; border-radius: 6px; }
.tq .tq-cover-fb { display: grid; place-items: center; aspect-ratio: 3 / 4; padding: 16px; border-radius: 6px; background: var(--tq-card); font: 700 16px/1.3 "Lora", Georgia, serif; color: var(--tq-forest); text-align: center; }
.tq .ex-cover small strong { color: var(--tq-forest); }
.tq .tq-hist { margin: 8px 0 24px; }
.tq .tq-hist ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; } /* 04/11: tên đề dài không đẩy tràn ngang */
.tq .tq-hist li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--tq-line); border-radius: 6px; background: var(--tq-paper); }
.tq .tq-hist-score { flex: none; min-width: 66px; color: var(--tq-mute); font-size: 13px; }
.tq .tq-hist-score b { font: 700 22px "Lora", Georgia, serif; color: var(--tq-forest); }
.tq .tq-hist-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tq .tq-hist-name b { overflow: hidden; color: var(--tq-ink); font-size: 14.5px; white-space: nowrap; text-overflow: ellipsis; }
.tq .tq-hist-name small { color: var(--tq-mute); font-size: 12.5px; }

/* ---------- hộp thoại ---------- */
.tq-modal .ex-modal-card { max-width: 520px; border-radius: 6px !important; }
.tq-modal h3 { margin: 0 0 10px; font: 700 20px/1.3 "Lora", Georgia, serif; color: var(--tq-forest); }
.tq-modal p { margin: 0 0 10px; color: var(--tq-ink); line-height: 1.55; }
.tq-intro { margin: 0 0 12px; padding-left: 18px; color: var(--tq-ink); font-size: 14.5px; line-height: 1.6; }
.tq-intro li { margin-bottom: 4px; }
.tq-intro-dang { padding: 8px 12px; border-radius: 6px; background: var(--tq-tile); font-weight: 600; }
.tq-miss { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* ---------- màn làm bài ---------- */
html.tq-lock, html.tq-lock body { overflow: hidden !important; }
.tq-run { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: var(--tq-bg); color: var(--tq-ink); font-family: "Be Vietnam Pro", system-ui, sans-serif; }
.tq-bar { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 16px; border-bottom: 1px solid var(--tq-line); background: var(--tq-paper); }
.tq-x { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--tq-line); border-radius: 6px; background: var(--tq-card); color: var(--tq-forest); cursor: pointer; }
.tq-x svg { width: 18px; height: 18px; }
.tq-x:hover { background: var(--tq-tile); }
.tq-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tq-name small { color: var(--tq-olive); font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.tq-name b { overflow: hidden; font: 700 16px "Lora", Georgia, serif; color: var(--tq-forest); white-space: nowrap; text-overflow: ellipsis; }
.tq-secnav { flex: none; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--tq-mute); }
.tq-secnav b { color: var(--tq-forest); }
.tq-secnav button { width: 32px; height: 32px; border: 1px solid var(--tq-line); border-radius: 6px; background: var(--tq-card); color: var(--tq-forest); font-size: 20px; line-height: 1; cursor: pointer; }
.tq-secnav button:disabled { opacity: .35; cursor: default; }
.tq-clock { flex: none; min-width: 84px; padding: 6px 12px; border-radius: 6px; background: var(--tq-forest); color: #F3ECDC; font: 700 18px/1.2 "Be Vietnam Pro", system-ui, sans-serif; font-variant-numeric: tabular-nums; text-align: center; }
.tq-clock.warn { background: var(--tq-orange); animation: tq-blink 1s steps(2) infinite; }
@keyframes tq-blink { 50% { opacity: .75; } }
.tq-submit { flex: none; min-height: 38px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--tq-olive); color: #FBF6EA; font: 700 15px "Be Vietnam Pro", system-ui, sans-serif; box-shadow: 0 2px 0 #5E6B45; cursor: pointer; }
.tq-submit:hover { filter: brightness(1.05); }
.tq-submit.ghost { background: var(--tq-tile); color: var(--tq-forest); box-shadow: 0 2px 0 #DCCFB0; }
/* nút "Aa" + bảng chọn hiển thị */
.tq-aa { flex: none; display: grid; place-items: center; width: 40px; height: 38px; padding: 0; border: 1px solid var(--tq-line); border-radius: 6px; background: var(--tq-card); color: var(--tq-forest); font: 700 16px/1 "Lora", Georgia, serif; cursor: pointer; }
.tq-aa:hover, .tq-aa.on { background: var(--tq-tile); border-color: var(--tq-olive); }
.tq-aa:focus-visible { outline: 3px solid var(--tq-olive); outline-offset: 1px; }
.tq-pop { position: fixed; z-index: 2005; display: grid; gap: 12px; width: min(290px, calc(100vw - 16px)); padding: 14px 16px; border: 1px solid var(--tq-line); border-radius: 6px; background: var(--tq-paper); box-shadow: 0 14px 30px -14px rgba(46, 53, 40, .45); }
.tq-pop[hidden] { display: none; }
.tq-pop-row { display: grid; gap: 6px; color: var(--tq-forest); font-size: 13px; font-weight: 700; }
.tq-sws { display: flex; gap: 8px; }
.tq-sw { width: 30px; height: 30px; padding: 0; border: 1px solid #CFC3A6; border-radius: 6px; cursor: pointer; }
.tq-sw.on { border-color: var(--tq-forest); box-shadow: 0 0 0 2px var(--tq-forest); }
.tq-sw:focus-visible { outline: 3px solid var(--tq-olive); outline-offset: 2px; }
.tq-sel { height: 38px; padding: 0 8px; border: 1px solid var(--tq-line); border-radius: 6px; background: #FFFCF4; color: var(--tq-ink); font: 600 14px "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
.tq-sel:focus-visible { outline: 3px solid var(--tq-olive); outline-offset: 1px; }
/* tra từ (tra-tu.js, z-index 60–61) phải nổi trên lớp làm bài (z-index 2000) */
html.tq-lock .tra-btn { z-index: 2011; }
html.tq-lock .t-dict { z-index: 2010; }
.tq-score { flex: none; display: flex; align-items: baseline; gap: 6px; }
.tq-score b { font: 700 24px "Lora", Georgia, serif; color: var(--tq-forest); }
.tq-score small { color: var(--tq-mute); font-size: 13px; }

/* thân 2 cột: đoạn văn | thanh kéo | câu hỏi; --tq-l = độ rộng cột đoạn văn (25–75%, thptqg.js dragSplit) */
.tq-body { display: grid; grid-template-columns: minmax(0, var(--tq-l, 50%)) 14px minmax(0, 1fr); gap: 0; min-height: 0; padding: 12px 16px; }
.tq-body.one { grid-template-columns: minmax(0, 860px); justify-content: center; }
.tq-body.dragging { cursor: col-resize; user-select: none; }
.tq-splitbar { display: grid; place-items: center; margin: 0 2px; border-radius: 6px; cursor: col-resize; touch-action: none; }
.tq-splitbar i { width: 4px; height: 44px; border-radius: 4px; background: #C9BFA6; }
.tq-splitbar:hover, .tq-splitbar:focus-visible, .tq-body.dragging .tq-splitbar { background: var(--tq-line); outline: none; }
.tq-splitbar:hover i, .tq-splitbar:focus-visible i, .tq-body.dragging .tq-splitbar i { background: var(--tq-forest); }
/* màu giấy / kiểu chữ / cỡ chữ do nút "Aa" đặt (--tq-read, --tq-font, --tq-opt-font, --tq-size trên .tq-run) */
.tq-passage, .tq-qs { min-height: 0; overflow-y: auto; border: 1px solid var(--tq-line); border-radius: 6px; background: var(--tq-read, var(--tq-paper)); scrollbar-width: thin; scrollbar-color: #CFC3A6 transparent; transition: background-color .15s; }
.tq-passage { padding: 16px 22px 22px; font: 500 var(--tq-size, 16px)/1.7 var(--tq-font, "Lora", Georgia, serif); color: #3E3D33; }
.tq-passage:focus-visible { outline: 3px solid var(--tq-olive); outline-offset: -3px; }
.tq-passage h3 { margin: 6px 0 10px; font: 700 15px/1.4 "Be Vietnam Pro", system-ui, sans-serif; color: var(--tq-forest); letter-spacing: .3px; text-align: center; }
.tq-passage p { margin: 0 0 10px; }
.tq-passage img { display: block; max-width: 100%; margin: 6px auto 12px; border-radius: 6px; }
.tq-passage u { text-decoration-color: var(--tq-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tq-passage b { color: var(--tq-forest); }
.tq-blank { display: inline-flex; align-items: baseline; gap: 4px; padding: 0 6px 0 2px; border-radius: 6px; background: var(--tq-tile); cursor: pointer; transition: background .15s, box-shadow .15s; }
.tq-blank em { padding: 0 5px; border-radius: 4px; background: var(--tq-forest); color: #F3ECDC; font: 700 12px/1.5 "Be Vietnam Pro", system-ui, sans-serif; }
.tq-blank > span { color: var(--tq-mute); }
.tq-blank.filled > span { color: var(--tq-forest); font-weight: 700; }
.tq-blank.cur { background: #F2D9A4; box-shadow: 0 0 0 2px var(--tq-orange); }
.tq-blank.right { background: var(--tq-right-bg); } .tq-blank.wrong { background: var(--tq-wrong-bg); } .tq-blank.skip { background: #EEE6D3; }
.tq-blank.right > span { color: var(--tq-right); } .tq-blank.wrong > span { color: var(--tq-wrong); text-decoration: line-through; }

.tq-qs { padding: 12px 14px 18px; }
.tq-sec-h { margin: 0 0 12px; }
.tq-passage .tq-sec-h { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--tq-line); font-family: "Be Vietnam Pro", system-ui, sans-serif; }
.tq-sec-h small { display: block; color: var(--tq-olive); font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.tq-sec-h b { display: block; margin: 2px 0 4px; font: 700 16.5px/1.35 "Lora", Georgia, serif; color: var(--tq-forest); }
.tq-sec-h p { margin: 0; color: var(--tq-mute); font: italic 500 13.5px/1.5 "Be Vietnam Pro", system-ui, sans-serif; text-align: left; }
.tq-q { margin: 0 0 10px; padding: 10px 12px 12px; border: 1px solid var(--tq-line); border-radius: 6px; background: #FFFCF4; background: color-mix(in srgb, var(--tq-read, #FBF6EA) 45%, #fff); scroll-margin: 12px; transition: border-color .15s, box-shadow .15s; }
.tq-q.cur { border-color: var(--tq-olive); box-shadow: 0 0 0 2px rgba(124, 138, 95, .25); }
.tq-q.hide { display: none; }
.tq-q-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tq-qn { padding: 2px 9px; border-radius: 6px; background: var(--tq-forest); color: #F3ECDC; font-size: 13px; font-weight: 700; }
.tq-verdict { font-size: 13px; font-weight: 700; }
.tq-q.right .tq-verdict { color: var(--tq-right); } .tq-q.wrong .tq-verdict { color: var(--tq-wrong); } .tq-q.skip .tq-verdict { color: var(--tq-mute); }
.tq-flagbtn { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 8px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--tq-mute); font: 600 12.5px "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
.tq-flagbtn svg { width: 14px; height: 14px; }
.tq-flagbtn:hover:not(:disabled) { border-color: var(--tq-line); }
.tq-flagbtn.on { background: #F8E3C8; color: #A55A26; }
.tq-flagbtn:disabled { cursor: default; }
.tq-flagbtn:disabled:not(.on) { visibility: hidden; }
.tq-stem { margin: 0 0 8px; color: #3E3D33; font: 500 calc(var(--tq-size, 16px) - 1px)/1.55 var(--tq-font, "Lora", Georgia, serif); }
.tq-stem p { margin: 0 0 4px; }
.tq-stem b { color: var(--tq-forest); }
.tq-stem u, .tq-opt u { text-decoration-color: var(--tq-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
.tq-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tq-opts.long { grid-template-columns: minmax(0, 1fr); }
.tq-opt { display: flex; align-items: flex-start; gap: 9px; min-height: 38px; padding: 7px 10px; border: 1px solid var(--tq-line); border-radius: 6px; background: var(--tq-read, var(--tq-paper)); color: #3E3D33; font: 500 calc(var(--tq-size, 16px) - 1.5px)/1.45 var(--tq-opt-font, "Be Vietnam Pro", system-ui, sans-serif); text-align: left; cursor: pointer; transition: background .12s, border-color .12s; }
.tq-opt i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid #CFC3A6; border-radius: 50%; color: var(--tq-ink); font: 700 12px "Be Vietnam Pro", system-ui, sans-serif; }
.tq-opt:hover:not(:disabled) { border-color: var(--tq-olive); background: #F4EEDD; }
.tq-opt:focus-visible { outline: 3px solid var(--tq-olive); outline-offset: 1px; }
.tq-opt.on { border-color: var(--tq-forest); background: #E7EBDA; }
.tq-opt.on i { border-color: var(--tq-forest); background: var(--tq-forest); color: #F3ECDC; }
.tq-opt:disabled { cursor: default; }
.tq-opt.right { border-color: var(--tq-right); background: var(--tq-right-bg); }
.tq-opt.right i { border-color: var(--tq-right); background: var(--tq-right); color: #fff; }
.tq-opt.wrong { border-color: var(--tq-wrong); background: var(--tq-wrong-bg); }
.tq-opt.wrong i { border-color: var(--tq-wrong); background: var(--tq-wrong); color: #fff; }
.tq-explain { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--tq-olive); border-radius: 6px; background: var(--tq-card); font-size: 14px; line-height: 1.6; }
.tq-explain b { color: var(--tq-forest); }
.tq-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tq-tags em, .tq-subs em { padding: 1px 8px; border-radius: 6px; background: var(--tq-tile); color: var(--tq-ink); font-size: 12px; font-weight: 600; }
.tq-pending { display: block; margin-top: 6px; color: var(--tq-mute); font-size: 12px; font-style: italic; }

/* ---------- bảng câu ---------- */
.tq-pal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 16px; border-top: 1px solid var(--tq-line); background: var(--tq-paper); }
.tq-cells { display: flex; flex-wrap: wrap; gap: 4px 10px; flex: 1; min-width: 0; }
.tq-cellgrp { display: inline-flex; gap: 3px; }
.tq-cell { width: 29px; height: 29px; padding: 0; border: 1px solid var(--tq-line); border-radius: 6px; background: #FFFCF4; color: var(--tq-ink); font: 600 12.5px "Be Vietnam Pro", system-ui, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; position: relative; }
.tq-cell:hover { border-color: var(--tq-olive); }
.tq-cell.done { border-color: var(--tq-forest); background: var(--tq-forest); color: #F3ECDC; }
.tq-cell.flag::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border: 2px solid var(--tq-paper); border-radius: 50%; background: var(--tq-orange); }
.tq-cell.cur { box-shadow: 0 0 0 2px var(--tq-orange); }
.tq-cell.right { border-color: var(--tq-right); background: var(--tq-right-bg); color: var(--tq-right); }
.tq-cell.wrong { border-color: var(--tq-wrong); background: var(--tq-wrong-bg); color: var(--tq-wrong); }
.tq-cell.skip { background: #EEE6D3; color: var(--tq-mute); border-style: dashed; }
.tq-cell.dim { opacity: .3; }
.tq-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--tq-mute); font-size: 12.5px; white-space: nowrap; }
.tq-legend i { display: inline-block; width: 12px; height: 12px; margin-left: 6px; border-radius: 3px; background: var(--tq-forest); }
.tq-legend i.flag { border-radius: 50%; background: var(--tq-orange); }
.tq-filter { display: inline-flex; gap: 4px; padding: 3px; border-radius: 6px; background: var(--tq-tile); }
.tq-filter button { padding: 5px 10px; border: 0; border-radius: 6px; background: none; color: var(--tq-ink); font: 600 13px "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
.tq-filter button em { color: var(--tq-mute); }
.tq-filter button.on { background: var(--tq-forest); color: #F3ECDC; }
.tq-filter button.on em { color: #CFD6BF; }

/* ---------- kết quả ---------- */
.tq-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; min-height: 0; max-width: 1080px; width: 100%; margin: 0 auto; padding: 16px; overflow-y: auto; align-content: start; }
.tq-res > section { padding: 20px 22px; border: 1px solid var(--tq-line); border-radius: 6px; background: var(--tq-paper); }
.tq-res-score { text-align: center; }
.tq-auto { margin: 0 0 8px; color: #A55A26; font-weight: 700; }
.tq-big { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 4px 0 6px; }
.tq-big b { font: 700 72px/1 "Lora", Georgia, serif; color: var(--tq-forest); }
.tq-big small { color: var(--tq-mute); font-size: 16px; font-weight: 600; }
.tq-big.pop b { animation: tq-pop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tq-pop { from { transform: scale(.6); opacity: 0; } }
.tq-res-score > p { margin: 0 0 14px; color: var(--tq-ink); line-height: 1.55; }
.tq-res-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.tq-res-facts li { display: flex; flex-direction: column; padding: 8px 4px; border-radius: 6px; background: var(--tq-card); color: var(--tq-mute); font-size: 12.5px; }
.tq-res-facts b { font: 700 20px "Lora", Georgia, serif; color: var(--tq-forest); }
.tq-res-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tq-btn { min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--tq-tile); color: var(--tq-ink); font: 700 14.5px "Be Vietnam Pro", system-ui, sans-serif; box-shadow: 0 2px 0 #DCCFB0; cursor: pointer; }
.tq-btn.primary { background: var(--tq-olive); color: #FBF6EA; box-shadow: 0 2px 0 #5E6B45; }
.tq-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.tq-res-kinds h3 { margin: 0 0 12px; font: 700 18px "Lora", Georgia, serif; color: var(--tq-forest); }
.tq-res-kinds h4 { margin: 16px 0 8px; font-size: 14px; color: var(--tq-forest); }
.tq-res-kinds ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tq-res-kinds li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 46px; align-items: center; gap: 10px; font-size: 14px; }
.tq-res-kinds li em { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: #F8E3C8; color: #A55A26; font-size: 11.5px; font-weight: 700; }
.tq-res-kinds li i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--tq-olive) var(--p), var(--tq-tile) var(--p)); }
.tq-res-kinds li.weak i { background: linear-gradient(90deg, var(--tq-orange) var(--p), var(--tq-tile) var(--p)); }
.tq-res-kinds li b { color: var(--tq-forest); text-align: right; font-variant-numeric: tabular-nums; }
.tq-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

/* ---------- màn nhỏ ---------- */
@media (max-height: 700px) and (min-width: 761px) {
  .tq-bar { min-height: 50px; padding: 4px 14px; }
  .tq-body { gap: 12px; padding: 10px 14px; }
  .tq-pal { padding: 6px 14px; }
  .tq-q { padding: 8px 10px 10px; margin-bottom: 8px; }
  .tq-opt { min-height: 34px; padding: 5px 9px; }
}
@media (max-width: 760px) {
  .tq-bar { flex-wrap: wrap; gap: 8px; padding: 6px 10px; }
  .tq-name { order: 1; flex: 1 1 calc(100% - 60px); }
  .tq-x { order: 0; }
  .tq-secnav { order: 2; flex: 1; }
  .tq-clock, .tq-score, .tq-aa { order: 3; min-width: 0; }
  .tq-submit { padding: 0 12px; }
  .tq-submit { order: 4; }
  .tq-body { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px; overflow-y: auto; }
  .tq-passage { flex: none; max-height: 42vh; padding: 12px 14px; }
  .tq-splitbar { display: none; }
  .tq-qs { flex: none; overflow: visible; }
  .tq-opts { grid-template-columns: minmax(0, 1fr); }
  .tq-pal { flex-wrap: nowrap; overflow-x: auto; padding: 6px 10px; }
  .tq-cells { flex-wrap: nowrap; }
  .tq-legend { display: none; }
  .tq-res { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .tq-res-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .tq-clock.warn { animation: none; } }

/* ---------- bìa đề: giấy đề thi, chỉ thông tin bộ đề ---------- */
.tq .ex-cover-art { background: var(--tq-paper); }
.tq .tq-bia { box-sizing: border-box; display: flex; flex-direction: column; height: 100%; padding: 12px 12px 10px; margin: 0; background: var(--tq-paper); color: var(--tq-forest); text-align: center; box-shadow: inset 0 0 0 5px var(--tq-paper), inset 0 0 0 6px var(--tq-line); }
.tq .tq-bia-top { padding: 4px 0 7px; border-bottom: 1px solid var(--tq-line); font: 700 9.5px/1.25 "Be Vietnam Pro", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--tq-mute); }
.tq .tq-bia-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.tq .tq-bia-kind { font: 600 12px/1.2 "Be Vietnam Pro", system-ui, sans-serif; color: var(--tq-olive); }
.tq .tq-bia-year { font: 700 44px/1 "Lora", Georgia, serif; letter-spacing: -.01em; color: var(--tq-forest); }
.tq .tq-bia-sub { font: 500 10px/1.3 "Be Vietnam Pro", system-ui, sans-serif; color: var(--tq-mute); }
.tq .tq-bia-where { display: flex; flex-direction: column; gap: 3px; min-height: 40px; justify-content: center; padding: 8px 0 4px; border-top: 1px solid var(--tq-line); }
.tq .tq-bia--bgd .tq-bia-where { border-color: rgba(251, 246, 234, .25); }
.tq .tq-bia-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 14px/1.25 "Lora", Georgia, serif; color: var(--tq-forest); }
.tq .tq-bia-code { font: 600 11px/1.2 "Be Vietnam Pro", system-ui, sans-serif; color: var(--tq-ink); }
/* đề của Bộ: nền xanh rừng để nổi bật đề chính thức */
.tq .tq-bia--bgd { background: var(--tq-forest); color: var(--tq-paper); box-shadow: inset 0 0 0 5px var(--tq-forest), inset 0 0 0 6px rgba(251, 246, 234, .35); }
.tq .tq-bia--bgd .tq-bia-top, .tq .tq-bia--bgd .tq-bia-sub { color: rgba(251, 246, 234, .72); border-color: rgba(251, 246, 234, .25); }
.tq .tq-bia--bgd .tq-bia-kind { color: #D9C98F; }
.tq .tq-bia--bgd .tq-bia-year, .tq .tq-bia--bgd .tq-bia-name, .tq .tq-bia--bgd .tq-bia-code { color: var(--tq-paper); }
.tq .ex-cover > b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 28/10: nút Nộp bài cùng kiểu phòng thi TOEIC (cam đất, chữ trắng đạt tương phản) — đồng bộ các màn làm đề */
.tq-run .tq-submit { background: #B25D2A !important; color: #fff !important; box-shadow: 0 2px 0 #8E4A20 !important; border: 0 !important; }
.tq-run .tq-submit:hover { background: #9E5326 !important; }
.tq-run .tq-submit:focus-visible { outline: 2px solid #D9C98F; outline-offset: 2px; }

/* ######## [lop-hoc.css] ######## */
/* ===== Lớp học (lop-hoc.js) — giao diện rừng ấm cúng của Góc học tập: Be Vietnam Pro + Lora, rừng #3A4A32, olive #5F6D45, nền kem, bo 6px ===== */
.lh {
  --lh-paper: #FBF6EA; --lh-card: #F6EDDB; --lh-line: #E2D8C0; --lh-forest: #3A4A32; --lh-olive: #5F6D45;
  --lh-ink: #4A4A3E; --lh-mute: #625E51; --lh-orange: #D9824A;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
}
.lh .lh-wait, .lh .lh-empty { padding: 36px 16px; border: 1px dashed var(--lh-line); border-radius: 6px; background: var(--lh-paper); color: var(--lh-mute); text-align: center; }
.lh .ex-top-desc b { color: var(--lh-forest); word-break: break-all; }

.lh .lh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 8px; }
.lh .lh-bar .ex-tabs { max-width: 100%; border-radius: 6px !important; }
.lh .lh-bar .ex-tab { border-radius: 6px !important; min-height: 42px; font-size: 15px; }
.lh .lh-bar .ex-tab em:empty { display: none; }
.lh .lh-search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px solid var(--lh-line); border-radius: 6px; background: var(--lh-paper); color: var(--lh-mute); }
.lh .lh-search svg { flex: none; width: 18px; height: 18px; }
.lh .lh-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--lh-ink); font: 500 15px "Be Vietnam Pro", system-ui, sans-serif; outline: none; }

.lh .lh-month h2 { display: flex; align-items: center; gap: 12px; margin: 26px 0 10px; color: var(--lh-forest); font: 700 12.5px "Be Vietnam Pro", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.lh .lh-month h2::after { content: ""; flex: 1; height: 1px; background: var(--lh-line); }
.lh .lh-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--lh-line); border-radius: 6px; background: var(--lh-paper); box-shadow: 0 2px 0 #E6DCC4; }
.lh .lh-item.new { border-left: 4px solid var(--lh-olive); }
.lh .lh-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; background: var(--lh-card); color: var(--lh-forest); }
.lh .lh-ic svg { width: 22px; height: 22px; }
.lh .lh-ic.audio, .lh .lh-ic.video { background: #E3E7D3; }
.lh .lh-ic.web { background: #E7DFCB; color: var(--lh-olive); }
.lh .lh-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lh .lh-body small { color: var(--lh-mute); font-size: 13px; }
.lh .lh-body b { color: var(--lh-forest); font: 700 17.5px/1.35 "Lora", Georgia, serif; overflow-wrap: anywhere; }
.lh .lh-new { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 6px; background: var(--lh-olive); color: #FBF6EA; font-size: 11.5px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.lh .lh-msg { margin: 4px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--lh-card); color: var(--lh-ink); font-size: 14.5px; line-height: 1.55; white-space: pre-line; }
.lh .lh-note { margin: 2px 0 0; color: var(--lh-mute); font-size: 13.5px; line-height: 1.5; white-space: pre-line; }
.lh .lh-media { width: 100%; max-width: 640px; margin-top: 8px; border-radius: 6px; }
.lh video.lh-media { background: #000; }
.lh .lh-video { position: relative; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; margin-top: 10px; border-radius: 10px; overflow: hidden; background: #000; border: 2px solid var(--lh-ink, #121212); }
.lh .lh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lh .lh-nhom { margin-top: 22px; }
.lh .lh-tmk { margin: 12px 0; border: 2px solid var(--lh-ink, #121212); border-radius: 12px; background: #fff; overflow: hidden; }
.lh .lh-tmk-dau { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: #FFF6DE; cursor: pointer; font: inherit; text-align: left; color: var(--lh-forest); }
.lh .lh-tmk-dau svg { width: 26px; height: 26px; flex: none; fill: #F6E7B8; stroke: #121212; stroke-width: 1.6; stroke-linejoin: round; }
.lh .lh-tmk-dau b { font: 700 18px/1.3 "Lora", Georgia, serif; flex: 0 1 auto; overflow-wrap: anywhere; }
.lh .lh-tmk-dau em { font: 700 12.5px "Be Vietnam Pro", system-ui, sans-serif; font-style: normal; padding: 1px 9px; border-radius: 999px; background: #fff; border: 1.5px solid var(--lh-ink, #121212); }
.lh .lh-tmk-dau span { margin-left: auto; color: var(--lh-mute); }
.lh .lh-tmk-ds { padding: 6px 10px 10px; border-top: 2px solid var(--lh-ink, #121212); }
.lh .lh-nhom-ten { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; border: 2px solid var(--lh-ink, #121212); border-radius: 10px; background: #EAF1F7; color: var(--lh-forest); font: 700 19px/1.3 "Lora", Georgia, serif; }
.lh .lh-nhom-ten em { font: 700 13px "Be Vietnam Pro", system-ui, sans-serif; font-style: normal; padding: 1px 9px; border-radius: 999px; background: #fff; border: 1.5px solid var(--lh-ink, #121212); }
.lh .lh-acts { flex: none; display: flex; gap: 8px; align-self: center; }
.lh .lh-acts .ex-kbtn { min-height: 38px; padding: 0 16px; border-radius: 6px !important; font-size: 14px; }

/* chấm số bài mới trên thanh bên */
.dash-nav a[data-tab="lop-hoc"] { position: relative; }
.dash-nav a[data-tab="lop-hoc"][hidden] { display: none !important; }
.dash-nav .lh-dot { position: absolute; top: 4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #D9824A; color: #fff; font: 700 11px/18px "Be Vietnam Pro", system-ui, sans-serif; font-style: normal; text-align: center; pointer-events: none; }

@media (max-width: 640px) {
  .lh .lh-item { flex-wrap: wrap; padding: 12px; }
  .lh .lh-acts { width: 100%; justify-content: flex-end; }
  .lh .lh-bar .ex-tabs { overflow-x: auto; }
}
/* hạn hoàn thành · đã học xong · lớp đã kết thúc */
.lh .lh-han, .lh .lh-ok { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 6px; background: var(--lh-card); color: var(--lh-forest); font-size: 11.5px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.lh .lh-han.late { background: #F6DED4; color: #B5523B; }
.lh .lh-ok { background: #E3EDD2; color: #4F7A3A; }
.lh .lh-item.done { background: #F3F1E4; }
.lh .lh-item.done .lh-body b { color: var(--lh-mute); }
.lh .lh-done[aria-pressed="true"] { background: #E3EDD2 !important; color: #4F7A3A !important; }
.lh .lh-ended { margin: -2px 0 10px; color: var(--lh-mute); font-size: 14px; }
/* ô chọn lớp (nhiều hơn 4 lớp) · dòng báo đang xem bằng tài khoản quản lý */
.lh .lh-admin { display: inline-block; margin: 8px 0 0; padding: 6px 12px; border-radius: 6px; background: #E3E7D3; color: var(--lh-forest); font-size: 13.5px; font-weight: 600; }
/* bài nhiều tệp (vd Dictation: phiếu PDF + các audio) */
.lh .lh-files { display: grid; gap: 6px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--lh-line); list-style: none; }
.lh .lh-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lh .lh-files .lh-fname { flex: 1 1 160px; min-width: 0; color: var(--lh-ink); font-size: 14px; font-weight: 600; }
.lh .lh-files audio, .lh .lh-files video { flex: 1 1 260px; max-width: 420px; height: 36px; }
.lh .lh-files video { height: auto; }
.lh .lh-files .ex-kbtn { min-height: 34px; padding: 0 14px; border-radius: 6px !important; font-size: 13.5px; }
.lh .lh-ic.sm { width: 30px; height: 30px; } .lh .lh-ic.sm svg { width: 16px; height: 16px; }

/* ===== 31/10/2026: mỗi lớp một khung (thiết kế GPT duyệt) ===== */
.lh .lh-dau-trang { margin: 0 0 14px; padding: 18px 22px; border: 1px solid var(--lh-line); border-radius: 6px; background: var(--lh-paper); }
.lh .lh-dau-trang h1 { margin: 6px 0 4px; color: var(--lh-forest); font: 700 clamp(28px, 4vw, 40px)/1.15 "Lora", Georgia, serif; }
.lh .lh-dau-trang .lh-admin { margin: 6px 0 0; }
.lh .lh-lop-lich { margin: 2px 0 0; color: var(--lh-ink); font-size: 15px; }
.lh .lh-lops { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.lh .lh-lop { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--lh-line); border-radius: 6px; background: var(--lh-paper); }
.lh .lh-lop.co-moi { border-left: 4px solid #B25D2A; }
.lh .lh-lop.ended { opacity: .85; }
.lh .lh-lop-dau { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lh .lh-lop-dau h2 { margin: 0; color: var(--lh-forest); font: 700 22px/1.2 "Lora", Georgia, serif; }
.lh .lh-lop-dau .lh-new { margin: 0; background: #B25D2A; color: #FFF8EE; font-weight: 700; }
.lh .lh-lop-so { margin: 4px 0 0; color: var(--lh-ink); font-size: 15px; }
.lh .lh-lop-so b { color: var(--lh-forest); font-size: 18px; }
.lh .lh-lop-han { margin: 0; padding: 6px 10px; border-radius: 6px; background: var(--lh-card); color: var(--lh-ink); font-size: 13.5px; }
.lh .lh-lop-han.soon { background: #F7E6D6; color: #8A4419; }
.lh .lh-lop-han.late { background: #F6DED4; color: #9C3F28; font-weight: 700; }
.lh .lh-lop-cuoi { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.lh .lh-lop-cuoi .ex-kbtn { min-height: 42px; padding: 0 18px; border-radius: 6px !important; font-size: 14.5px; }
.lh .lh-lop-cuoi .ex-kbtn.primary { background: #3A4A32 !important; color: #FFFDF6 !important; }
.lh .lh-ve { display: inline-flex; align-items: center; min-height: 40px; margin: 0 0 10px; padding: 0 14px; border: 1px solid var(--lh-line); border-radius: 6px; background: var(--lh-paper); color: var(--lh-forest); font: 700 14px "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
.lh .lh-han.soon { background: #F7E6D6; color: #8A4419; font-weight: 700; }
.lh .lh-item.late { border-left: 4px solid #9C3F28; }
.lh .lh-item.top { position: relative; flex-wrap: wrap; padding-top: 34px; border: 2px solid #3A4A32; }
.lh .lh-top-label { position: absolute; top: 10px; left: 16px; color: #B25D2A; font: 700 12px "Be Vietnam Pro", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.lh .lh-mo-xong { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.lh .lh-cu { margin-top: 22px; }
.lh .lh-cu summary { cursor: pointer; color: var(--lh-forest); font: 700 14px "Be Vietnam Pro", sans-serif; }
@media (max-width: 520px) {
  .lh .lh-lops { grid-template-columns: 1fr; }
  .lh .lh-lop-cuoi .ex-kbtn { flex: 1 1 auto; justify-content: center; }
  .lh .lh-dau-trang { padding: 14px 16px; }
}

/* yêu cầu vào lớp + lời mời (31/10/2026) */
.lh .lh-yc { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--lh-line); border-radius: 6px; background: var(--lh-paper); }
.lh .lh-yc-mo { padding: 0; border: 0; background: none; color: var(--lh-forest); font: 700 15px "Be Vietnam Pro", system-ui, sans-serif; text-align: left; cursor: pointer; }
.lh .lh-yc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.lh .lh-yc-form label { display: flex; flex-direction: column; gap: 5px; color: var(--lh-ink); font: 600 13.5px "Be Vietnam Pro", sans-serif; }
.lh .lh-yc-form label.rong, .lh .lh-yc-cuoi { grid-column: 1 / -1; }
.lh .lh-yc-form input { min-height: 44px; padding: 0 12px; border: 1px solid var(--lh-line); border-radius: 6px; background: #fff; color: var(--lh-ink); font: 500 15px "Be Vietnam Pro", sans-serif; }
.lh .lh-yc-cuoi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lh .lh-yc-cuoi .ex-kbtn { min-height: 44px; padding: 0 20px; border-radius: 6px !important; background: #3A4A32 !important; color: #FFFDF6 !important; }
.lh .lh-yc-cuoi small { color: var(--lh-mute); font-size: 13px; }
.lh .lh-yc-note { margin: 10px 0 0; color: var(--lh-ink); font-size: 14px; }
.lh .lh-yc-ds { margin: 10px 0 0; padding-left: 18px; color: var(--lh-ink); font-size: 13.5px; line-height: 1.7; }
.lh .lh-yc-cho { color: #8A4419; font-weight: 700; } .lh .lh-yc-duyet { color: #3A4A32; font-weight: 700; } .lh .lh-yc-tu_choi { color: #9C3F28; }
.lh .lh-moi { display: grid; gap: 10px; margin: 0 0 14px; }
.lh .lh-moi-the { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border: 2px solid #3A4A32; border-radius: 6px; background: var(--lh-paper); }
.lh .lh-moi-the div { display: flex; flex-direction: column; gap: 2px; }
.lh .lh-moi-the small { color: #B25D2A; font: 700 12px "Be Vietnam Pro", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.lh .lh-moi-the b { color: var(--lh-forest); font: 700 22px "Lora", Georgia, serif; }
.lh .lh-moi-the span { color: var(--lh-ink); font-size: 14.5px; }
.lh .lh-moi-the .ex-kbtn { min-height: 44px; padding: 0 22px; border-radius: 6px !important; background: #3A4A32 !important; color: #FFFDF6 !important; }
@media (max-width: 520px) { .lh .lh-yc-form { grid-template-columns: 1fr; } .lh .lh-moi-the .ex-kbtn { width: 100%; } }

/* ===== Trao đổi trong lớp — kiểu nhóm chat Zalo (03/11/2026) ===== */
.lh .lh-chat { margin-top: 10px; border: 1px solid #A9BBCC; border-radius: 10px; overflow: hidden; background: #BFCFDE; }
.lh .lh-c-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #F7FAFD; border-bottom: 1px solid #A9BBCC; }
.lh .lh-c-top i { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lh-olive); color: #fff; display: grid; place-items: center; font: 700 17px "Be Vietnam Pro", system-ui, sans-serif; font-style: normal; }
.lh .lh-c-top b { display: block; color: var(--lh-forest); font-size: 16px; }
.lh .lh-c-top small { color: var(--lh-mute); font-size: 12.5px; }
.lh .lh-c-ds { height: min(58vh, 500px); min-height: 280px; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 2px; }
.lh .lh-c-ds .lh-empty { margin: auto; border: 0; background: none; color: #46586A; }
.lh .lh-c-ngay { align-self: center; margin: 10px 0 6px; padding: 2px 12px; border-radius: 10px; background: rgba(60, 80, 100, .45); color: #fff; font-size: 12px; font-weight: 600; }
.lh .lh-c-tin { position: relative; display: flex; gap: 8px; align-items: flex-end; max-width: 78%; margin-top: 1px; }
.lh .lh-c-tin.dau { margin-top: 8px; }
.lh .lh-c-tin.toi { align-self: flex-end; }
.lh .lh-c-av { flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--lh-olive); color: #fff; display: grid; place-items: center; font: 700 13px "Be Vietnam Pro", system-ui, sans-serif; font-style: normal; }
.lh .lh-c-av.an { visibility: hidden; }
.lh .lh-c-av img { width: 100%; height: 100%; object-fit: cover; }
.lh .lh-c-bong { position: relative; min-width: 56px; padding: 7px 12px 6px; border-radius: 12px; background: #fff; box-shadow: 0 1px 1px rgba(40, 60, 80, .18); }
.lh .lh-c-tin.toi .lh-c-bong { background: #CDE6FF; }
.lh .lh-c-tin.gv .lh-c-bong { background: #FFF1DF; }
.lh .lh-c-ten { display: flex; align-items: center; gap: 6px; margin-bottom: 1px; font-size: 12.5px; }
.lh .lh-c-ten b { color: #4A6A8A; font-weight: 700; }
.lh .lh-c-gv { padding: 0 7px; border-radius: 8px; background: var(--lh-orange); color: #fff; font: 700 10.5px/17px "Be Vietnam Pro", system-ui, sans-serif; font-style: normal; }
.lh .lh-c-bong p { margin: 0; color: #1E2A36; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.lh .lh-c-bong time { display: block; margin-top: 2px; color: #6C7B8A; font-size: 11px; }
.lh .lh-c-xoa { position: absolute; top: 2px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #66727E; font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; }
.lh .lh-c-tin:hover .lh-c-xoa, .lh .lh-c-xoa:focus-visible { opacity: 1; }
.lh .lh-c-xoa:hover { background: #F3D4CF; color: #A3301F; }
.lh .lh-c-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; background: #F7FAFD; border-top: 1px solid #A9BBCC; }
.lh .lh-c-form textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 140px; padding: 10px 16px; border: 1px solid #C5D2DE; border-radius: 22px; background: #fff; color: #1E2A36; font: 500 15px "Be Vietnam Pro", system-ui, sans-serif; resize: none; outline: none; }
.lh .lh-c-form textarea:focus { border-color: #5B8DB8; }
.lh .lh-c-form .ex-kbtn { min-height: 42px; border-radius: 21px; padding: 0 20px; }
.lh .lh-c-note { margin: 0; padding: 6px 14px 8px; background: #F7FAFD; color: var(--lh-mute); font-size: 12px; }
@media (max-width: 640px) { .lh .lh-c-tin { max-width: 90%; } .lh .lh-c-xoa { opacity: 1; } .lh .lh-c-xoa::after { content: ""; position: absolute; inset: -10px; } } /* nút xoá tin nhắn 20px: mở rộng vùng chạm */

/* ===== Chia Part trong danh sách bài (03/11/2026) ===== */
.lh .lh-part { margin-bottom: 10px; }
.lh .lh-part-dau { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 8px; padding: 12px 16px; border: 1px solid var(--lh-line); border-radius: 6px; background: var(--lh-card); color: var(--lh-forest); font: inherit; text-align: left; cursor: pointer; }
.lh .lh-part-dau b { font-size: 17px; }
.lh .lh-part-dau span { flex: 1; color: var(--lh-mute); font-size: 13.5px; }
.lh .lh-part-dau i { font-style: normal; color: var(--lh-mute); }
.lh .lh-part-dau:hover { border-color: var(--lh-olive); }

/* Trao đổi: đặc và rõ hơn (03/11/2026) – nền gần đục, viền mực, bong bóng khác màu rõ */
.lh .lh-chat { background: #7F9AB3; border: 2px solid #1E2A36; box-shadow: 0 3px 0 #1E2A36; }
.lh .lh-c-top, .lh .lh-c-form, .lh .lh-c-note { background: #FFFFFF; border-color: #1E2A36; }
.lh .lh-c-top { border-bottom: 2px solid #1E2A36; }
.lh .lh-c-form { border-top: 2px solid #1E2A36; }
.lh .lh-c-top b { color: #111C26; font-size: 17px; }
.lh .lh-c-top small, .lh .lh-c-note { color: #3A4854; }
.lh .lh-c-ds .lh-empty { color: #0F1A24; font-weight: 600; }
.lh .lh-c-bong { background: #FFFFFF; border: 1.5px solid #1E2A36; box-shadow: 0 2px 0 rgba(30, 42, 54, .55); }
.lh .lh-c-tin.toi .lh-c-bong { background: #A9D3FF; }
.lh .lh-c-tin.gv .lh-c-bong { background: #FFD59A; }
.lh .lh-c-bong p { color: #0B141C; font-size: 15.5px; font-weight: 500; }
.lh .lh-c-bong time { color: #43515E; }
.lh .lh-c-ten b { color: #1D4F80; }
.lh .lh-c-ngay { background: #1E2A36; }
.lh .lh-c-form textarea { border: 2px solid #1E2A36; color: #0B141C; }
.lh .lh-c-av { border: 1.5px solid #1E2A36; }

/* biểu tượng thẻ bài: logo TOEX mờ thay cho hình tệp */
.lh .lh-ic:not(.sm) { position: relative; }
.lh .lh-ic:not(.sm) svg { display: none; }
.lh .lh-ic:not(.sm)::before { content: ""; width: 100%; height: 100%; background: url(assets/toex-logo.svg) center / 64% no-repeat; opacity: .42; }

/* chấm "có mục mới" trên tab trong lớp (04/11/2026) */
.lh .lh-bar .ex-tab { position: relative; }
.lh .lh-cham { position: absolute; top: 5px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #D9824A; box-shadow: 0 0 0 2px #FFFDF6; }
.lh .lh-lop-dau .lh-new-chat { background: #4A6A85; margin-left: 6px; }

/* một tông duy nhất: kính trắng mờ cho mọi ô trong trang lớp (bỏ lẫn ô kem / ô xanh) */
html.gb .lh .lh-dau-trang, html.gb .lh .lh-item, html.gb .lh .lh-part-dau, html.gb .lh .lh-search, html.gb .lh .lh-lop, html.gb .lh .lh-wait, html.gb .lh .lh-empty { background: rgba(255, 255, 255, .7) !important; border-color: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(20, 32, 18, .08); }
html.gb .lh .lh-msg, html.gb .lh .lh-ic, html.gb .lh .lh-admin, html.gb .lh .lh-han, html.gb .lh .lh-ok { background: rgba(255, 255, 255, .6) !important; color: var(--lh-forest); }
html.gb .lh .lh-ic.audio, html.gb .lh .lh-ic.video, html.gb .lh .lh-ic.web { background: rgba(255, 255, 255, .6) !important; }
html.gb.gb-toi .lh .lh-dau-trang, html.gb.gb-toi .lh .lh-item, html.gb.gb-toi .lh .lh-part-dau, html.gb.gb-toi .lh .lh-search, html.gb.gb-toi .lh .lh-lop, html.gb.gb-toi .lh .lh-wait, html.gb.gb-toi .lh .lh-empty { background: rgba(24, 32, 22, .78) !important; border-color: rgba(255, 255, 255, .14); }
html.gb.gb-toi .lh .lh-msg, html.gb.gb-toi .lh .lh-ic, html.gb.gb-toi .lh .lh-admin, html.gb.gb-toi .lh .lh-han, html.gb.gb-toi .lh .lh-ok { background: rgba(255, 255, 255, .1) !important; }
@media (max-width: 640px) { .lh .ex-kbtn.sm { min-height: 44px; } .lh .lh-ve { min-height: 44px; } }

/* Trao đổi – nền tối thật của trang (html.gb-toi) */
html.gb-toi .lh .lh-chat { background: #1B2733; border-color: #0A1118; box-shadow: none; }
html.gb-toi .lh .lh-c-top, html.gb-toi .lh .lh-c-form, html.gb-toi .lh .lh-c-note { background: #26323F; border-color: #0A1118; }
html.gb-toi .lh .lh-c-top b { color: #F1F6FB !important; }
html.gb-toi .lh .lh-c-top small, html.gb-toi .lh .lh-c-note { color: #B7C5D3 !important; }
html.gb-toi .lh .lh-c-ds .lh-empty { background: #26323F; color: #E7EEF5 !important; }
html.gb-toi .lh .lh-c-bong { background: #2E3C4B; border-color: #0A1118; box-shadow: none; }
html.gb-toi .lh .lh-c-tin.toi .lh-c-bong { background: #2F5578; }
html.gb-toi .lh .lh-c-tin.gv .lh-c-bong { background: #5A4128; }
html.gb-toi .lh .lh-c-bong p { color: #F1F6FB !important; }
html.gb-toi .lh .lh-c-bong time { color: #AFC0D0 !important; }
html.gb-toi .lh .lh-c-ten b { color: #9CC8F0 !important; }
html.gb-toi .lh .lh-c-form textarea { background: #1B2733; color: #F1F6FB; border-color: #4A5E72; }
html.gb-toi .lh .lh-c-form textarea::placeholder { color: #8DA0B3; }
.lh .lh-c-bong { padding-right: 26px; }
.lh .lh-c-xoa { top: 3px; right: 4px; }

/* khung "Lớp bạn đang học" ở đầu trang Tổng quan (04/11/2026) */
.lh.lh-tq { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.lh-tq .lh-tq-nhan { align-self: flex-start; padding: 5px 10px; border-radius: 6px; background: var(--lh-paper); color: var(--lh-forest); font: 700 12.5px "Be Vietnam Pro", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.lh-tq .lh-tq-lop { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--lh-line); border-left: 4px solid var(--lh-olive); border-radius: 6px; background: var(--lh-paper); color: var(--lh-ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.lh-tq .lh-tq-lop:hover, .lh-tq .lh-tq-lop:focus-visible { border-color: var(--lh-olive); transform: translateY(-1px); }
.lh-tq .lh-tq-lop.co-moi { border-left-color: var(--lh-orange); }
.lh-tq .lh-tq-chu { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lh-tq strong { color: var(--lh-forest); font: 700 19px Lora, Georgia, serif; }
.lh-tq small { color: var(--lh-mute); font-size: 14px; }
.lh-tq em { color: var(--lh-ink); font-size: 14px; font-style: normal; }
.lh-tq em b { color: var(--lh-forest); }
.lh-tq .lh-tq-nut { flex: none; padding: 10px 16px; border-radius: 6px; background: var(--lh-forest); color: #FBF6EA; font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (max-width: 640px) { .lh-tq .lh-tq-lop { flex-direction: column; align-items: stretch; } .lh-tq .lh-tq-nut { text-align: center; } }
html.gb.gb-toi .lh-tq .lh-tq-lop { background: rgba(24, 32, 22, .78); border-color: rgba(255, 255, 255, .14); border-left-color: var(--lh-olive); }
html.gb.gb-toi .lh-tq .lh-tq-lop.co-moi { border-left-color: var(--lh-orange); }

/* ===== 06/11/2026: Ô giáo viên (lop-giao-vien.js) — góc dưới bên phải đầu trang, chỉ giáo viên / quản lý thấy ===== */
.lh .lh-dau-trang.co-gv { position: relative; padding-right: 250px; }
.lh .lh-gv-o { position: absolute; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 0; border-radius: 10px; background: var(--lh-forest); color: #FBF6EA; text-align: left; cursor: pointer; box-shadow: 0 6px 16px rgba(30, 40, 24, .22); transition: transform .15s, box-shadow .15s; }
.lh .lh-gv-o:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 40, 24, .28); }
.lh .lh-gv-o:focus-visible { outline: 3px solid var(--lh-orange); outline-offset: 2px; }
.lh .lh-gv-o svg { flex: none; width: 30px; height: 30px; padding: 5px; border-radius: 8px; background: rgba(251, 246, 234, .16); }
.lh .lh-gv-o span { display: flex; flex-direction: column; line-height: 1.25; }
.lh .lh-gv-o b { font: 700 16px "Be Vietnam Pro", system-ui, sans-serif; }
.lh .lh-gv-o small { color: #E3E7D3; font-size: 13px; }
.lh a.lh-gv-o { text-decoration: none; }
/* 10/11: nút nhỏ mở hộp tải tệp riêng cũ (lop-giao-vien.js), nằm trên ô Khu giáo viên */
.lh .lh-gv-tep { position: absolute; right: 18px; bottom: 78px; border: 0; background: none; padding: 2px 4px; color: var(--lh-forest); font: 600 12.5px "Be Vietnam Pro", system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
@media (max-width: 720px) {
  .lh .lh-dau-trang.co-gv { padding-right: 22px; }
  .lh .lh-gv-o { position: static; margin-top: 12px; width: 100%; }
  .lh .lh-gv-tep { position: static; margin-top: 6px; }
}
/* hộp thoại */
.lhgv { --g-paper: #FBF6EA; --g-card: #F6EDDB; --g-line: #E2D8C0; --g-forest: #3A4A32; --g-olive: #5F6D45; --g-ink: #4A4A3E; --g-mute: #625E51; --g-orange: #D9824A;
  width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-paper); color: var(--g-ink); font-family: "Be Vietnam Pro", system-ui, sans-serif; box-shadow: 0 24px 60px rgba(20, 28, 18, .35); }
.lhgv::backdrop { background: rgba(28, 36, 24, .55); backdrop-filter: blur(3px); }
.lhgv .lhgv-than { max-height: calc(100dvh - 34px); overflow-y: auto; padding: 22px 24px 26px; }
.lhgv .lhgv-dau { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.lhgv .lhgv-dau > div { flex: 1; }
.lhgv .lhgv-nhan { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--g-forest); color: #FBF6EA; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lhgv h2 { margin: 8px 0 4px; color: var(--g-forest); font: 700 28px/1.2 "Lora", Georgia, serif; }
.lhgv .lhgv-dau p { margin: 0; color: var(--g-mute); font-size: 14.5px; line-height: 1.5; }
.lhgv .lhgv-dong { flex: none; width: 40px; height: 40px; border: 1px solid var(--g-line); border-radius: 8px; background: var(--g-card); color: var(--g-forest); font-size: 24px; line-height: 1; cursor: pointer; }
.lhgv fieldset { margin: 0 0 14px; padding: 14px 16px 6px; border: 1px solid var(--g-line); border-radius: 8px; background: rgba(255, 255, 255, .5); }
.lhgv legend { padding: 0 6px; color: var(--g-forest); font-weight: 700; font-size: 15px; }
.lhgv legend small, .lhgv label small { color: var(--g-mute); font-weight: 500; }
.lhgv label { display: block; margin-bottom: 12px; }
.lhgv label > span { display: block; margin-bottom: 5px; color: var(--g-ink); font-size: 14px; font-weight: 600; }
.lhgv input:not([type=checkbox]):not([type=radio]):not([type=file]), .lhgv select, .lhgv textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 9px 12px; border: 1px solid var(--g-line); border-radius: 8px; background: var(--g-paper); color: var(--g-ink); font: 500 15px "Be Vietnam Pro", system-ui, sans-serif; }
.lhgv textarea { resize: vertical; }
.lhgv input:focus, .lhgv select:focus, .lhgv textarea:focus { outline: 2px solid var(--g-olive); outline-offset: 1px; }
.lhgv .lhgv-hang { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: end; }
.lhgv .lhgv-lops { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 10px; }
.lhgv .lhgv-lops label { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--g-line); border-radius: 8px; background: var(--g-paper); cursor: pointer; }
.lhgv .lhgv-lops label:has(input:checked) { border-color: var(--g-olive); background: #E3E7D3; box-shadow: inset 3px 0 0 var(--g-olive); }
.lhgv .lhgv-lops input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--g-olive); }
.lhgv .lhgv-lops span { display: flex; flex-direction: column; margin: 0; }
.lhgv .lhgv-lops b { color: var(--g-forest); font-size: 15px; }
.lhgv .lhgv-lops small { font-size: 12.5px; line-height: 1.4; }
.lhgv .lhgv-chon { display: flex; gap: 6px; margin-bottom: 12px; padding: 4px; border: 1px solid var(--g-line); border-radius: 8px; background: var(--g-card); }
.lhgv .lhgv-chon label { position: relative; flex: 1; margin: 0; }
.lhgv .lhgv-chon input { position: absolute; opacity: 0; pointer-events: none; }
.lhgv .lhgv-chon span { display: grid; place-items: center; min-height: 36px; margin: 0; border-radius: 6px; color: var(--g-mute); font-size: 14px; font-weight: 700; cursor: pointer; }
.lhgv .lhgv-chon input:checked + span { background: var(--g-forest); color: #FBF6EA; }
.lhgv .lhgv-chon input:focus-visible + span { outline: 2px solid var(--g-orange); }
.lhgv .lhgv-tha { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed var(--g-line); border-radius: 10px; background: var(--g-paper); text-align: center; cursor: pointer; }
.lhgv .lhgv-tha.keo, .lhgv .lhgv-tha:hover { border-color: var(--g-olive); background: #EEF0E2; }
.lhgv .lhgv-tha input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lhgv .lhgv-tha b { color: var(--g-forest); font-size: 15px; }
.lhgv .lhgv-teps { display: grid; gap: 6px; margin: -4px 0 12px; padding: 0; list-style: none; }
.lhgv .lhgv-teps li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--g-line); border-radius: 8px; background: var(--g-paper); }
.lhgv .lhgv-teps span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.lhgv .lhgv-teps small { color: var(--g-mute); font-size: 12.5px; white-space: nowrap; }
.lhgv .lhgv-teps button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: var(--g-card); color: var(--g-forest); font-size: 18px; cursor: pointer; }
.lhgv .lhgv-teps i { width: 70px; padding: 2px 0; border-radius: 6px; background: linear-gradient(90deg, var(--g-olive) var(--p), var(--g-card) var(--p)); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; text-align: center; text-shadow: 0 0 2px rgba(0, 0, 0, .4); }
.lhgv .lhgv-cuoi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lhgv .lhgv-nut { display: inline-grid; place-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--g-line); border-radius: 8px; background: var(--g-card); color: var(--g-forest); font: 700 14px "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
.lhgv .lhgv-nut:hover { border-color: var(--g-olive); }
.lhgv .lhgv-nut.chinh { min-height: 46px; padding: 0 30px; border-color: var(--g-forest); background: var(--g-forest); color: #FBF6EA; font-size: 16px; }
.lhgv .lhgv-nut.chinh:hover { background: var(--g-olive); }
.lhgv .lhgv-nut:disabled { opacity: .6; cursor: progress; }
.lhgv .lhgv-nut:focus-visible { outline: 2px solid var(--g-orange); outline-offset: 2px; }
.lhgv .lhgv-ok, .lhgv .lhgv-loi { margin: 0; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.lhgv .lhgv-ok { background: #E3EDD2; color: #3F6A2C; }
.lhgv .lhgv-loi { background: #F6DED4; color: #9C3F2A; }
.lhgv .lhgv-da { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--g-line); }
.lhgv .lhgv-da h3 { margin: 0 0 10px; color: var(--g-forest); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lhgv .lhgv-da ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lhgv .lhgv-da li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--g-line); border-radius: 8px; background: var(--g-paper); }
.lhgv .lhgv-da li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lhgv .lhgv-da b { color: var(--g-forest); font: 700 16px/1.35 "Lora", Georgia, serif; overflow-wrap: anywhere; }
.lhgv .lhgv-da small { color: var(--g-mute); font-size: 13px; }
.lhgv .lhgv-da .lhgv-lopds { color: var(--g-olive); font-weight: 600; }
.lhgv .lhgv-trong { margin: 6px 0; color: var(--g-mute); font-size: 14px; }
@media (max-width: 560px) {
  .lhgv .lhgv-than { padding: 18px 16px 22px; }
  .lhgv .lhgv-hang { grid-template-columns: 1fr; }
  .lhgv h2 { font-size: 24px; }
}
html.gb-toi .lhgv { --g-paper: #1F2620; --g-card: #2A322A; --g-line: #3A4436; --g-forest: #DCE3C8; --g-olive: #9EB07A; --g-ink: #E6E2D6; --g-mute: #B5B0A2; }
html.gb-toi .lhgv fieldset { background: rgba(0, 0, 0, .12); }
html.gb-toi .lhgv .lhgv-lops label:has(input:checked) { background: #2F3A28; }
html.gb-toi .lhgv .lhgv-chon input:checked + span, html.gb-toi .lhgv .lhgv-nhan, html.gb-toi .lhgv .lhgv-nut.chinh { background: #9EB07A; color: #1B2117; }
html.gb-toi .lh .lh-gv-o { background: #9EB07A; color: #1B2117; }
html.gb-toi .lh .lh-gv-o small { color: #2B3523; }

/* ######## [lop-bai-lam.css] ######## */
/* ===== Bài làm (lop-bai-lam.js) — giữ dáng phiếu Dictation PDF: dải màu đầu trang, huy hiệu DAY, COURSE kèm tai nghe + mã audio,
   ô từ gợi ý xám có ghim, khung "Possible Answers", Right / Wrong, khung Practice Test. Chữ: Be Vietnam Pro + Lora, bo 6px. ===== */
html.bl-lock, html.bl-lock body { overflow: hidden !important; }
.bl { position: fixed; inset: 0; z-index: 2100; overflow-y: auto; background: #E9E4D6; font-family: "Be Vietnam Pro", system-ui, sans-serif; color: #3B3A36; }
.bl-page { --bl-c: #5E70B8; --bl-c2: #E8ECF8; --bl-ink: #3B3A36; --bl-mute: #6B675E; --bl-line: #CFC8B6; --bl-ok: #4F7A3A; --bl-ok-bg: #E3EDD2; --bl-no: #B5523B; --bl-no-bg: #F6DED4; --bl-gold: #E7C27A; }
.bl-page.bl-g { --bl-c: #7E9E5E; --bl-c2: #E6EEDD; }
.bl-page.bl-r { --bl-c: #5F6D45; --bl-c2: #ECEEDF; } /* 15/11: màu chung mọi phiếu – rừng như bài 600 từ vựng */
.bl-day small.dai { font-size: 10px; letter-spacing: .03em; white-space: nowrap; } @media (max-width: 640px) { .bl-day small.dai { font-size: 8.5px; letter-spacing: 0; } } /* nhãn dài (MINI TEST) gọn trong vòng tròn */
.bl-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; background: #FBF6EA; border-bottom: 1px solid var(--bl-line); font-weight: 600; color: var(--bl-mute); }
.bl-x { width: 38px; height: 38px; border: 1px solid var(--bl-line); border-radius: 6px; background: #F6EDDB; color: #3A4A32; font-size: 24px; line-height: 1; cursor: pointer; }
.bl-acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bl-score { font: 700 18px "Lora", Georgia, serif; color: #3A4A32; }
.bl-btn { min-height: 38px; padding: 0 18px; border: 0; border-radius: 6px; background: #5F6D45; color: #FBF6EA; font: 700 14.5px "Be Vietnam Pro", system-ui, sans-serif; box-shadow: 0 2px 0 #4A5636; cursor: pointer; }
.bl-btn.ghost { background: #EFE6D1; color: #3A4A32; box-shadow: 0 2px 0 #DCCFB0; }

.bl-sheet { position: relative; max-width: 860px; margin: 22px auto 40px; padding: 0 40px 28px; background: #fff; border-radius: 6px; box-shadow: 0 2px 14px rgba(60, 50, 30, .12); overflow: hidden; }
/* logo chìm như phiếu PDF gốc: rất mờ, lặp theo chiều dọc, nằm dưới nội dung, không chặn bấm. */
.bl-sheet { isolation: isolate; }
.bl-sheet::before { content: ""; position: absolute; inset: 150px 0 0; z-index: -1; background: url("/assets/toex-watermark.svg?v=20261029wm3") center top / min(64%, 520px) auto repeat-y; opacity: .05; pointer-events: none; }
.bl-band { height: 46px; margin: 0 -40px; background: var(--bl-c); }
.bl-head { display: flex; align-items: center; gap: 18px; margin: -26px 0 18px; }
.bl-day { flex: none; display: grid; place-items: center; align-content: center; width: 86px; height: 86px; border: 6px solid #fff; border-radius: 50%; background: var(--bl-c); color: #fff; box-shadow: 0 0 0 3px var(--bl-c); line-height: 1; }
.bl-day small { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.bl-day b { font-size: 30px; font-weight: 800; }
.bl-head h1 { margin: 22px 0 0; font: 800 clamp(22px, 3.2vw, 30px)/1.25 "Be Vietnam Pro", system-ui, sans-serif; color: #3B3A36; letter-spacing: .01em; }

.bl-sec { margin-top: 26px; }
.bl-sh { display: flex; align-items: flex-end; gap: 12px; padding-bottom: 6px; border-bottom: 1.5px solid #8C877C; }
.bl-sh h2 { flex: 1; margin: 0; font: 700 19px/1.3 "Be Vietnam Pro", system-ui, sans-serif; color: #4A4740; letter-spacing: .02em; }
.bl-sh h2 span { margin-right: 6px; }
.bl-track { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4A4740; }
.bl-ear { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bl-c); color: #fff; cursor: pointer; }
.bl-ear svg { width: 20px; height: 20px; }
.bl-player { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 6px 10px; border: 1px solid var(--bl-line); border-radius: 6px; background: var(--bl-c2); }
.bl-pp { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--bl-c); color: #fff; cursor: pointer; }
.bl-pp svg { width: 16px; height: 16px; }
.bl-player input[type="range"] { flex: 1; min-width: 60px; accent-color: var(--bl-c); }
.bl-time { min-width: 36px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--bl-mute); }
.bl-player select { padding: 3px 6px; border: 1px solid var(--bl-line); border-radius: 6px; background: #fff; font: 600 13px "Be Vietnam Pro", system-ui, sans-serif; }
.bl-guide { margin: 10px 0 14px; color: var(--bl-mute); font-size: 14.5px; font-style: italic; line-height: 1.6; letter-spacing: .01em; }

.bl-body.has-box { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; align-items: start; }
.bl-body.has-box .bl-side { order: 2; display: grid; gap: 14px; }
.bl-body.has-img { grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); }
.bl-img { display: block; width: 100%; height: auto; border-radius: 4px; }
.bl-img-cau { width: auto; max-width: min(420px, 100%); max-height: 320px; margin: 6px 0 8px; border: 1px solid var(--bl-line, #ddd); } /* ảnh riêng từng câu, 11/11/2026 */
.bl-box { position: relative; padding: 16px 18px 14px; border-radius: 6px; background: #DDDEE0; }
.bl-box i { position: absolute; top: -12px; right: -6px; font-style: normal; font-size: 22px; }
.bl-box ul { margin: 0; padding-left: 18px; line-height: 1.9; font-size: 15px; }
.bl-q { margin: 4px 0 12px; font-weight: 700; font-size: 16.5px; color: #4A4740; }

.bl-seg { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 4px; padding: 0; border: 1px solid var(--bl-line); border-radius: 50%; background: #fff; color: var(--bl-c); vertical-align: middle; cursor: pointer; }
.bl-seg svg { width: 12px; height: 12px; }
.bl-seg:hover { background: var(--bl-c2); }
.bl-no { margin-right: 4px; font-weight: 800; color: #3B3A36; }
.bl-cue { margin: 14px 0 4px; font-size: 15.5px; letter-spacing: .02em; }
.bl-line { width: 100%; padding: 8px 4px 6px; border: 0; border-bottom: 1.5px dashed #8C877C; border-radius: 0; background: transparent; color: #222; font: 500 16px "Be Vietnam Pro", system-ui, sans-serif; }
.bl-line:focus { outline: none; border-bottom: 2px solid var(--bl-c); background: var(--bl-c2); }
.bl-key { display: block; margin-top: 6px; padding: 6px 10px; border-radius: 6px; background: #F6F1E4; font-size: 14.5px; line-height: 1.6; }
.bl-key em { display: inline-block; min-width: 40px; margin-right: 6px; font-style: normal; font-weight: 800; color: var(--bl-mute); }
.bl-key mark { padding: 0 2px; border-radius: 3px; background: #F7DE94; color: inherit; }
.ok > .bl-key em, .bl-w.ok .bl-key em { color: var(--bl-ok); }
.bl-w.no .bl-key em { color: var(--bl-no); }
.bl-w { margin-bottom: 6px; }

.bl-poss { position: relative; margin: 26px 0 8px; padding: 26px 18px 12px; border: 1.5px solid #4A4740; border-radius: 6px; }
.bl-tab { position: absolute; top: -15px; left: 22px; padding: 4px 14px; background: var(--bl-gold); color: #4A4740; font-weight: 700; font-size: 15px; }
.bl-poss ol { margin: 0; padding: 0; list-style: none; counter-reset: p; }
.bl-poss li { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-style: italic; font-size: 16px; counter-increment: p; }
.bl-poss li::before { content: counter(p) "."; font-weight: 700; font-style: normal; }
.bl-poss li b { font-weight: 800; }

.bl-rwh { display: flex; justify-content: flex-end; gap: 22px; padding-right: 6px; font-weight: 700; font-size: 14px; color: #4A4740; }
.bl-rw { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 8px 0; }
.bl-rw .bl-key { grid-column: 1 / -1; }
.bl-rwb { display: flex; gap: 22px; padding-right: 10px; }
.bl-rwb button, .bl-tick { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1.5px solid #4A4740; border-radius: 3px; background: #fff; color: var(--bl-c); font-weight: 800; cursor: pointer; }
.bl-rwb button[aria-pressed="true"], .bl-tick[aria-pressed="true"] { background: var(--bl-c2); border-color: var(--bl-c); }
.bl-rw.ok .bl-rwb button[aria-pressed="true"] { background: var(--bl-ok-bg); border-color: var(--bl-ok); color: var(--bl-ok); }
.bl-rw.no .bl-rwb button[aria-pressed="true"] { background: var(--bl-no-bg); border-color: var(--bl-no); color: var(--bl-no); }

.bl-sec.khung { position: relative; margin-top: 40px; padding: 28px 20px 14px; border: 1.5px solid #4A4740; border-radius: 8px; }
.bl-sec.khung .bl-sh { border: 0; padding: 0; min-height: 0; }
.bl-sec.khung .bl-track { position: absolute; top: -52px; right: 0; }
.bl-mc { margin: 10px 0 18px; }
.bl-mcq { margin: 0 0 6px; font-size: 16px; letter-spacing: .02em; }
.bl-mcq b { margin-right: 6px; font-weight: 800; }
.bl-opt { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px; margin: 4px 0 4px 34px; }
.bl-opt b { font-style: italic; font-weight: 700; }
.bl-opt .bl-gach { font-style: normal; font-weight: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bl-opt .bl-key { grid-column: 3; margin-top: 2px; }
.bl-opt.dung > b { color: var(--bl-ok); }
.bl-mc.no .bl-opt.on .bl-tick { background: var(--bl-no-bg); border-color: var(--bl-no); color: var(--bl-no); }
.bl-mc .bl-opt.dung .bl-tick { border-color: var(--bl-ok); }
.bl-mc.ok .bl-opt.on .bl-tick { background: var(--bl-ok-bg); color: var(--bl-ok); }
.bl-fb { margin: 6px 0 0 34px; font-weight: 700; font-size: 14px; }
.bl-mc.ok .bl-fb { color: var(--bl-ok); } .bl-mc.no .bl-fb { color: var(--bl-no); }
/* lời giải sau khi nộp (15/11/2026) */
.bl-giai { margin: 6px 0 0 34px; padding: 8px 12px; border-left: 3px solid #5F6D45; background: rgba(95,109,69,.07); border-radius: 0 6px 6px 0; font-size: 14px; line-height: 1.6; color: #3d3a32; }
.bl-giai p { margin: 0; } .bl-giai p + p { margin-top: 4px; }
@media (max-width: 520px) { .bl-giai { margin-left: 0; } }
/* ===== văn bản đọc Part 7 (15/11/2026) ===== */
.bl-vbs { display: grid; gap: 16px; margin: 6px 0 20px; }
/* 18/11/2026: bài đọc Part 6/7 – màn rộng: văn bản trái (dính khi cuộn), câu hỏi phải như đề thi trên máy; màn hẹp giữ xếp dọc */
@media (min-width: 1100px) {
  .bl-page.bl-doc .bl-sheet { max-width: 1240px; overflow: clip; }
  .bl-body.co-vb .bl-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 30px; align-items: start; }
  .bl-body.co-vb .bl-main > * { grid-column: 2; }
  .bl-body.co-vb .bl-main > .bl-vbs { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 72px; max-height: calc(100vh - 92px); overflow-y: auto; margin: 0 0 20px; padding-right: 4px; overscroll-behavior: contain; }
  .bl-body.co-vb .bl-mc:first-of-type { margin-top: 0; }
}
.bl-vb { background: #FFFDF7; border: 1px solid var(--bl-line); border-radius: 6px; padding: 18px 22px; box-shadow: 0 1px 0 rgba(59,58,54,.04); font-size: 15.5px; line-height: 1.65; color: var(--bl-ink); }
.bl-vb p { margin: 0 0 8px; white-space: pre-line; } .bl-vb p:last-child { margin-bottom: 0; }
.bl-vb ul { margin: 4px 0 10px; padding-left: 20px; } .bl-vb li { margin: 2px 0; }
.bl-vb-td { margin: 0 0 10px; font-family: Lora, Georgia, serif; font-size: 19px; line-height: 1.3; color: var(--bl-c); text-align: center; }
.bl-vb-email .bl-vb-td, .bl-vb-thu .bl-vb-td, .bl-vb-tin_nhan .bl-vb-td, .bl-vb-bieu_mau .bl-vb-td { text-align: left; font-size: 17px; }
.bl-vb-nhan { display: inline-block; margin: -4px 0 10px; padding: 2px 10px; border-radius: 6px; background: var(--bl-c2); color: var(--bl-c); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.bl-vb-dau { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--bl-line); font-size: 14.5px; }
.bl-vb-dau dt { font-weight: 800; color: var(--bl-mute); } .bl-vb-dau dd { margin: 0; overflow-wrap: anywhere; }
.bl-vb-thu .bl-vb-than, .bl-vb-bai_bao .bl-vb-than { font-family: Lora, Georgia, serif; font-size: 16px; }
.bl-vb-ky { margin-top: 10px; } .bl-vb-ky p { margin: 0; }
.bl-vb-quang_cao, .bl-vb-thong_bao { border-width: 2px; border-color: var(--bl-c); }
.bl-vb-quang_cao .bl-vb-td, .bl-vb-thong_bao .bl-vb-td { font-size: 21px; }
.bl-vb-web { padding-top: 0; overflow: hidden; }
.bl-vb-url { display: flex; align-items: center; gap: 6px; margin: 0 -22px 14px; padding: 8px 12px; background: #EFEBDF; border-bottom: 1px solid var(--bl-line); font-size: 13px; color: var(--bl-mute); }
.bl-vb-url i { width: 9px; height: 9px; border-radius: 50%; background: #CFC8B6; } .bl-vb-url span { margin-left: 6px; padding: 2px 10px; background: #FFFDF7; border-radius: 6px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-vb-tin { display: grid; gap: 10px; }
.bl-vb-msg { max-width: 88%; padding: 8px 12px; border-radius: 6px; background: var(--bl-c2); }
.bl-vb-msg:nth-child(even) { justify-self: end; background: #F1EEE4; }
.bl-vb-msg p { margin: 0; } .bl-vb-ai { font-size: 13px; color: var(--bl-mute); } .bl-vb-ai b { color: var(--bl-ink); } .bl-vb-ai span { margin-left: 6px; }
.bl-vb-bangw { overflow-x: auto; margin: 8px 0 10px; }
.bl-vb-bang { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bl-vb-bang th, .bl-vb-bang td { border: 1px solid var(--bl-line); padding: 6px 10px; text-align: left; vertical-align: top; }
.bl-vb-bang th { background: var(--bl-c2); font-weight: 800; }
@media (max-width: 560px) { .bl-vb { padding: 14px 14px; font-size: 15px; } .bl-vb-url { margin: 0 -14px 12px; } .bl-vb-dau { grid-template-columns: 1fr; gap: 0; } .bl-vb-dau dd { margin-bottom: 4px; } .bl-vb-msg { max-width: 100%; } }
/* lời giải ô trống (15/11/2026) */
.tv-giai-wrap { margin-top: 12px; padding: 10px 14px; border-left: 3px solid #5F6D45; background: rgba(95,109,69,.07); border-radius: 0 6px 6px 0; }
.tv-giai { margin: 0; padding-left: 0; list-style: none; font-size: 14.5px; line-height: 1.6; color: #3d3a32; }
.tv-giai li + li { margin-top: 4px; }

.bl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--bl-line); }
.bl-foot p { margin: 0; color: var(--bl-mute); font-size: 14.5px; }

@media (max-width: 700px) {
  .bl-sheet { margin: 0 0 30px; padding: 0 14px 22px; border-radius: 0; }
  .bl-band { margin: 0 -14px; height: 36px; }
  .bl-day { width: 66px; height: 66px; border-width: 4px; } .bl-day b { font-size: 24px; }
  .bl-head { gap: 12px; margin-top: -20px; }
  .bl-body.has-box { grid-template-columns: 1fr; } .bl-body.has-box .bl-box { order: 0; }
  .bl-opt { margin-left: 0; }
  .bl-top > span:not(.bl-acts) { display: none; }
  .bl-sec.khung .bl-track { position: static; }
}

/* ----- dạng mở rộng: gợi ý in nghiêng, điền chỗ trống trong câu, ô trả lời, nhóm có khung / bảng Q, bảng từ, đoạn diễn đạt lại ----- */
.bl-hint { margin: 4px 0 6px; padding: 0; list-style: none; text-align: right; }
.bl-hint li { font-style: italic; font-weight: 700; font-size: 14.5px; color: #4A4740; }
.bl-hint li::before { content: "• "; }
ul.bl-guide { padding-left: 18px; } ul.bl-guide li { margin: 2px 0; }
.bl-dien { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 10px 0; }
.bl-dien > .bl-no { flex: none; }
.bl-dien > p { flex: 1 1 300px; min-width: 0; margin: 0; font-size: 15.5px; line-height: 2.3; letter-spacing: .01em; }
.bl-dien > .bl-hint { flex-basis: 100%; }
.bl-gapw { display: inline-flex; flex-direction: column; max-width: 100%; vertical-align: baseline; }
.bl-gap { box-sizing: border-box; min-width: 0; max-width: 100%; padding: 1px 4px; border: 0; border-bottom: 1.5px dashed #8C877C; background: transparent; color: #222; font: 600 15.5px "Be Vietnam Pro", system-ui, sans-serif; text-align: center; }
.bl-gap:focus { outline: none; border-bottom: 2px solid var(--bl-c); background: var(--bl-c2); }
.bl-gap.ok { border-bottom-color: var(--bl-ok); color: var(--bl-ok); background: var(--bl-ok-bg); }
.bl-gap.no { border-bottom-color: var(--bl-no); color: var(--bl-no); background: var(--bl-no-bg); }
.bl-gapk { font-style: normal; font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--bl-no); text-align: center; }
.bl-tl { margin: 8px 0; }
.bl-tlq { margin: 10px 0 4px; font-weight: 700; color: #4A4740; }
.bl-ans { width: 100%; min-height: 54px; padding: 8px 10px; border: 1px solid var(--bl-line); border-radius: 6px; background: #FDFBF6; color: #222; font: 500 15px "Be Vietnam Pro", system-ui, sans-serif; resize: vertical; }
.bl-ans:focus { outline: none; border-color: var(--bl-c); }
.bl-why { display: flex; align-items: center; gap: 8px; grid-column: 2 / 4; margin: 2px 0 4px; padding: 4px 10px; border: 1.5px dashed #E07A6A; border-radius: 8px; font-size: 13.5px; color: #4A4740; }
.bl-why input { flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed #8C877C; background: transparent; font: 500 14px "Be Vietnam Pro", system-ui, sans-serif; }
.bl-grp { position: relative; margin: 26px 0 10px; padding: 24px 16px 12px; border: 1.5px solid #4A4740; border-radius: 6px; }
.bl-grp.q { padding: 0; }
.bl-gq { display: flex; gap: 0; border-bottom: 1.5px solid #4A4740; font-weight: 700; }
.bl-gq b { flex: none; width: 52px; padding: 8px 10px; border-right: 1.5px solid #4A4740; text-align: center; }
.bl-gq span { padding: 8px 12px; }
.bl-gcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 30%); }
.bl-gmain { min-width: 0; padding: 4px 14px 8px; }
.bl-gans { padding: 4px 12px 10px; border-left: 1.5px solid #4A4740; }
.bl-gcol { margin: 6px 0 4px; font-weight: 700; font-size: 14px; text-align: center; color: #4A4740; }
.bl-gans1 { position: relative; margin-top: 26px; padding-top: 14px; }
.bl-tab.sm { top: -6px; left: 0; font-size: 14px; }
.bl-bang { margin: 10px 0; border: 1.5px solid #4A4740; border-radius: 4px; }
.bl-bh { display: grid; grid-template-columns: 1fr 1.6fr; background: var(--bl-gold); }
.bl-bh b { padding: 6px 12px; color: #4A4740; }
.bl-bb { display: grid; grid-template-columns: 1fr 1.6fr; padding: 8px 0; }
.bl-bb ul { margin: 0; padding: 0 12px 0 28px; line-height: 1.85; font-size: 14.5px; }
.bl-bb ul:first-child li { font-style: italic; font-weight: 700; }
.bl-doan { margin: 6px 0 12px; }
.bl-doan p { margin: 6px 0; font-size: 15px; font-style: italic; line-height: 1.6; }
.bl-doan p b { font-weight: 800; }
.bl-arr { font-style: normal; font-weight: 800; color: var(--bl-c); }
.bl-otext { font-size: 15px; }
.bl-opt:has(.bl-otext) .bl-key { grid-column: 3; }
@media (max-width: 700px) {
  .bl-gcols { grid-template-columns: 1fr; } .bl-gans { border-left: 0; border-top: 1.5px solid #4A4740; }
  .bl-bh, .bl-bb { grid-template-columns: 1fr 1fr; }
  .bl-body.has-img { grid-template-columns: 1fr; }
  .bl-why { grid-column: 1 / -1; }
}

/* điện thoại: vùng chạm 44px cho nút nhỏ (hình giữ nguyên) */
@media (max-width: 700px) {
  .bl-x { width: 44px; height: 44px; }
  .bl-btn { min-height: 44px; }
  .bl-player select { min-height: 44px; }
  .bl-pp, .bl-seg { position: relative; }
  .bl-pp::after { content: ""; position: absolute; inset: -5px; }
  .bl-seg::after { content: ""; position: absolute; inset: -9px; }
}

/* ----- 03/11/2026: chỉnh lệch nhỏ ----- */
.bl * , .bl *::before, .bl *::after { box-sizing: border-box; }
/* nút tai nghe + mã audio canh giữa theo tiêu đề phần */
.bl-sh { align-items: center; }
/* thanh tua: vạch mảnh, đồng màu cho cả bộ xanh dương và xanh lá (accent-color nhạt làm Chrome vẽ vạch đen dày) */
.bl-player input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: #D3CDBE; cursor: pointer; }
.bl-player input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--bl-c); }
.bl-player input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--bl-c); }
/* nhãn (A)–(E) cùng bề rộng để các ô chép câu thẳng hàng */
.bl-rw { grid-template-columns: 2.3em auto minmax(0, 1fr) auto; }
.bl-opt > b { min-width: 1.9em; }
/* khung có tai nghe nằm phía trên (Practice Test …): chừa chỗ để không đè dòng cuối của phần trước */
.bl-sec.khung:has(.bl-track) { margin-top: 76px; }
/* dòng chỉ có số câu + nút nghe: ô chép nằm cùng hàng */
.bl-w.inline { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; }
.bl-w.inline > .bl-cue { margin: 0; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.bl-w.inline > .bl-hint, .bl-w.inline > .bl-key { grid-column: 1 / -1; }
.bl-w.inline { margin: 10px 0; }
.bl-mcq.inline { display: flex; align-items: center; gap: 6px; }
.bl-mcq.inline > .bl-line { flex: 1; min-width: 0; margin-left: 4px; }
.bl-w.inline > .bl-cue .bl-no { min-width: 1.9em; }
@media (max-width: 700px) {
  .bl-sec.khung:has(.bl-track) { margin-top: 40px; }
  /* màn hẹp: ô chép câu xuống dòng riêng, đủ rộng; nhãn + nút nghe + ô Right/Wrong ở dòng trên */
  .bl-rw > .bl-line { grid-column: 1 / -1; grid-row: 2; }
  .bl-rw > .bl-rwb { grid-column: 4; grid-row: 1; }
}
@media (max-width: 700px) {
  /* iPhone tự phóng to trang khi chạm vào ô có chữ < 16px: ô nhập trên điện thoại dùng 16px */
  .bl input[type="text"], .bl textarea, .bl select, .bl .bl-gap, .bl .bl-why input { font-size: 16px; }
  /* ô tick và ô Right / Wrong: hình giữ 24px, vùng chạm ~44px */
  .bl-tick, .bl-rwb button { position: relative; }
  .bl-tick::after, .bl-rwb button::after { content: ""; position: absolute; inset: -8px -10px; }
}
@media (max-width: 700px) {
  /* câu điền: đoạn chữ nằm cạnh số câu; ô điền chừa chỗ cho dấu câu theo sau để dấu chấm không rơi xuống dòng riêng */
  .bl-dien { flex-wrap: nowrap; }
  .bl-dien > p { flex: 1 1 0; }
  .bl-dien { flex-wrap: wrap; } .bl-dien > .bl-no + p { flex-basis: calc(100% - 3em); }
  .bl-gapw { max-width: calc(100% - 1.1em); }
}

/* ######## [lop-tu-vung.css] ######## */
/* Bài từ vựng 600 (lop-tu-vung.js): dùng chung khung phiếu 650+ của lop-bai-lam.css (.bl, .bl-top, .bl-sheet, dải màu, huy hiệu DAY,
   tiêu đề phần có tai nghe, trình phát audio, ô từ có ghim, nút). Tệp này chỉ thêm phần riêng của bài từ vựng.
   Chữ: Be Vietnam Pro + Lora; màu chính olive #5F6D45 (chữ trắng trên nền này đạt 4.5:1); bo 6px. */
html.tv-lock, html.tv-lock body { overflow: hidden !important; }
.tv .tv-page { --bl-c: #5F6D45; --bl-c2: #ECEEDF; }
.tv *, .tv *::before, .tv *::after { box-sizing: border-box; }

/* thanh trên: tên bài + mục lục ngắn + điểm */
.tv .bl-top { gap: 10px; }
.tv .tv-crumb { flex: none; }
.tv .tv-nav { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tv .tv-nav::-webkit-scrollbar { display: none; }
.tv .tv-nav a { flex: none; padding: 6px 9px; border-radius: 6px; color: #625E51; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tv .tv-nav a:hover { background: #EFE6D1; color: #3A4A32; }
.tv .bl-score b { font-weight: 700; }

.tv .bl-head h1 small { display: block; margin-top: 2px; font: italic 500 17px/1.4 "Lora", Georgia, serif; color: #625E51; letter-spacing: 0; }
.tv .bl-sec { scroll-margin-top: 70px; }
.tv .bl-sec + .bl-sec { margin-top: 38px; }

/* Words to Learn */
.tv .tv-words { margin: 6px 0 0; padding: 0; list-style: none; }
.tv .tv-word { padding: 12px 0; border-bottom: 1px solid #E4DCCB; }
.tv .tv-word:last-child { border-bottom: 0; }
.tv .tv-wh { margin: 0; font-size: 15.5px; line-height: 1.6; color: #3B3A36; }
.tv .tv-wn { display: inline-block; min-width: 26px; font-weight: 800; color: var(--bl-c); }
.tv .tv-wh b { font-weight: 800; font-size: 16.5px; }
.tv .tv-wh i { color: #625E51; }
.tv .tv-vi { margin: 2px 0 0 26px; font-size: 14.5px; font-weight: 600; color: var(--bl-c); }
.tv .tv-ex { margin: 3px 0 0 26px; font: 15.5px/1.6 "Lora", Georgia, serif; color: #3B3A36; }
.tv .tv-ex span { margin-right: 4px; font: 700 13px "Be Vietnam Pro", system-ui, sans-serif; color: #625E51; }
/* bộ Pre TOEIC: tranh bên trái, phiên âm, nút nghe, câu dịch */
.tv .tv-word.has-img { display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: start; }
.tv .tv-wimg { width: 168px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 1px solid #E4DCCB; background: #F1ECE0; }
.tv .tv-ipa { margin-left: 6px; font-size: 14.5px; color: #625E51; white-space: nowrap; }
.tv .tv-am { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 6px; vertical-align: -8px; border: 1px solid #D9CFBB; border-radius: 50%; background: #fff; color: var(--bl-c); cursor: pointer; }
.tv .tv-am:hover { background: #F6F1E6; }
.tv .tv-am:focus-visible { outline: 2px solid var(--bl-c); outline-offset: 2px; }
.tv .tv-exvi { margin: 2px 0 0 26px; font-size: 14px; font-style: italic; color: #625E51; }

/* Words in Context: ô từ xám có ghim + đoạn văn có ô điền */
.tv .tv-bank { margin: 4px 0 16px; }
.tv .tv-bank ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 18px; padding: 0 0 0 18px; }
.tv .tv-passage { margin: 0 0 8px; }
.tv .tv-passage p { margin: 0 0 1em; font: 16.5px/2.1 "Lora", Georgia, serif; color: #3B3A36; }
.tv .tv-passage p:last-child { margin-bottom: 0; }
.tv .bnum { margin-right: 2px; font: 700 12px "Be Vietnam Pro", system-ui, sans-serif; color: var(--bl-c); vertical-align: .45em; }
.tv input.blank { width: 12ch; padding: 1px 4px; border: 0; border-bottom: 1.5px dashed #8C877C; border-radius: 0; background: transparent; color: #222; font: 600 15px "Be Vietnam Pro", system-ui, sans-serif; text-align: center; }
.tv input.blank:focus { outline: none; border-bottom: 2px solid var(--bl-c); background: var(--bl-c2); }
.tv input.blank.ok { border-bottom: 1.5px solid var(--bl-ok); color: var(--bl-ok); background: var(--bl-ok-bg); }
.tv input.blank.no { border-bottom: 1.5px solid var(--bl-no); color: var(--bl-no); background: var(--bl-no-bg); text-decoration: line-through; }
.tv input.blank.shown { border-bottom: 1.5px solid var(--bl-c); color: var(--bl-c); background: var(--bl-c2); }
.tv .tv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.tv .tv-result { font-size: 14.5px; color: #625E51; }
.tv .tv-result b { color: #3B3A36; }

/* Word Families: bảng viền đậm, tiêu đề vàng như bảng Key expressions */
.tv .tv-fam { margin-top: 12px; overflow-x: auto; border: 1.5px solid #4A4740; border-radius: 4px; }
.tv .tv-fam table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.tv .tv-fam th { padding: 7px 12px; background: var(--bl-gold); color: #4A4740; font-weight: 700; text-align: left; }
.tv .tv-fam td { padding: 7px 12px; border-top: 1px solid #E4DCCB; vertical-align: top; }
.tv .tv-fam tbody + tbody tr:first-child td { border-top: 1.5px solid #8C877C; }
.tv .tv-fam td.pos { width: 96px; color: #625E51; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.tv .tv-fam td.word { width: 140px; font-weight: 800; font-style: italic; }
.tv .tv-fam td.ex { font-family: "Lora", Georgia, serif; }

/* Listening */
.tv .bl-player audio { display: none; }
.tv .tv-sub { display: flex; align-items: center; gap: 10px; margin: 24px 0 6px; padding-bottom: 4px; border-bottom: 1px solid #E4DCCB; }
.tv .tv-sub h3 { flex: 1; margin: 0; font-size: 16.5px; font-weight: 700; color: #4A4740; }
.tv .tv-seg { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px 0 6px; border: 1px solid var(--bl-line); border-radius: 999px; background: #fff; color: var(--bl-c); font: 700 13px "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
.tv .tv-seg svg { display: grid; width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--bl-c); color: #fff; }
.tv .tv-seg:hover { background: var(--bl-c2); }
.tv .tv-img { display: block; max-width: min(100%, 560px); height: auto; margin: 10px auto; border: 1px solid var(--bl-line); border-radius: 4px; }
.tv .tv-img.tv-doc { max-width: 100%; margin: 10px 0 6px; }

/* câu trắc nghiệm */
.tv .q { margin: 0; padding: 12px 0; border-bottom: 1px dashed #E4DCCB; }
.tv .q:last-of-type { border-bottom: 0; }
.tv .q .stem { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: #3B3A36; }
.tv .q .stem b { margin-right: 6px; font-weight: 800; }
.tv .stem u { display: inline-block; min-width: 4.5em; border-bottom: 1.5px solid #4A4740; text-decoration: none; }
.tv .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 22px; }
.tv .opts.long { flex-direction: column; align-items: stretch; }
.tv .opt { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 12px 6px 7px; border: 1px solid var(--bl-line); border-radius: 6px; background: #fff; color: #3B3A36; font: 500 15px "Be Vietnam Pro", system-ui, sans-serif; text-align: left; cursor: pointer; }
.tv .opt .let { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid #4A4740; border-radius: 3px; font-weight: 800; font-size: 13px; color: #4A4740; }
.tv .opt:hover { border-color: var(--bl-c); background: var(--bl-c2); }
.tv .opt:focus-visible { outline: 2px solid var(--bl-c); outline-offset: 2px; }
.tv .opt.picked { border-color: var(--bl-c); }
.tv .opt.ok { border-color: var(--bl-ok); background: var(--bl-ok-bg); }
.tv .opt.ok .let { border-color: var(--bl-ok); background: var(--bl-ok); color: #fff; }
.tv .opt.no { border-color: var(--bl-no); background: var(--bl-no-bg); }
.tv .opt.no .let { border-color: var(--bl-no); background: var(--bl-no); color: #fff; }
.tv .exp { display: none; margin: 8px 0 0 22px; padding: 6px 10px; border-radius: 6px; background: #F6F1E4; font-size: 14.5px; line-height: 1.6; }
.tv .exp.on { display: block; }
.tv .exp b { color: #3A4A32; }
.tv .tv-n { font: 700 14px "Be Vietnam Pro", system-ui, sans-serif; color: var(--bl-c); white-space: nowrap; }

/* kịch bản nghe */
.tv details { margin: 8px 0 4px; border: 1px solid var(--bl-line); border-radius: 6px; background: #FDFBF6; }
.tv details > summary { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 14px; font-weight: 700; color: #4A4740; list-style: none; cursor: pointer; }
.tv details > summary::-webkit-details-marker { display: none; }
.tv details > summary::after { content: "+"; font-size: 18px; font-weight: 400; color: #625E51; }
.tv details[open] > summary { border-bottom: 1px solid var(--bl-line); }
.tv details[open] > summary::after { content: "–"; }
.tv .script { padding: 10px 14px; }
.tv .script p { margin: 0 0 .4em; font: 15px/1.75 "Lora", Georgia, serif; }

@media (max-width: 700px) {
  .tv .tv-nav { display: none; }
  .tv .bl-top > .tv-crumb { display: inline; }
  .tv .bl-head h1 small { font-size: 15px; }
  .tv .tv-passage p { font-size: 16px; line-height: 2.2; }
  .tv input.blank { width: 10ch; }
  .tv .opts, .tv .exp, .tv .tv-vi, .tv .tv-ex, .tv .tv-exvi { margin-left: 0; }
  .tv .tv-word.has-img { grid-template-columns: 92px 1fr; gap: 10px; }
  .tv .tv-wimg { width: 92px; }
  .tv .tv-wn { min-width: 20px; }
  .tv .tv-fam td.pos { width: auto; }
  .tv .tv-fam td.word { width: auto; }
}
@media print { .tv .bl-top, .tv .bl-player, .tv .tv-tools, .tv .tv-seg { display: none; } }
@media (prefers-reduced-motion: reduce) { .tv * { transition: none !important; animation: none !important; } }
@media (max-width: 700px) { .tv input.blank { font-size: 16px; } }

/* ######## [goc-ghibli.css] ######## */
/* ===== Góc học tập – phong cách Ghibli + liquid glass (30/10/2026, chủ trung tâm) =====
   Chỉ chạy khi <html class="gb"> (bật bằng ?ghibli=1, tắt ?ghibli=0 – xem script đầu dashboard.html).
   Nền: mỗi mục một tranh vẽ tay (assets/goc-ghibli, bảng gán trong GAN-TRANH.md do GPT chọn), cố định sau nội dung.
   Khung: kính sáng mờ (chữ mực đậm giữ nguyên → tương phản ≥ 4.5:1), thanh bên kính tối. Phông giữ Be Vietnam Pro + Lora. */
html.gb {
  --gb-kinh: linear-gradient(135deg, rgba(255, 255, 255, .62) 0%, rgba(255, 252, 240, .5) 55%, rgba(255, 255, 255, .58) 100%);
  --gb-kinh-dam: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 252, 240, .7));
  --gb-vien: 1px solid rgba(255, 255, 255, .75);
  --gb-bong: inset 1px 1px 0 rgba(255, 255, 255, .9), inset 0 0 22px rgba(255, 255, 255, .25), 0 10px 30px rgba(20, 40, 30, .16);
  --gb-mo: blur(18px) saturate(1.35);
  --gb-r: 18px;
}
html.gb body { background: #6E8F6A !important; }

/* --- tranh nền cố định theo mục --- */
html.gb body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: #6E8F6A url("assets/goc-ghibli/t01.webp?v=1") 60% center / cover no-repeat; filter: saturate(.9); transition: background-image .4s; }
html.gb body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 240, 222, .1), rgba(245, 240, 222, .02) 40%, rgba(30, 50, 35, .14)); }
html.gb body:is([data-tab="toeic"], [data-tab="toeic-tests"], [data-tab="toeic-dictation"], [data-tab="toeic-mistakes"], [data-tab="vocab"], [data-tab="vocab-curriculum"], [data-tab="vocab-lexical"], [data-tab="grammar"], [data-tab="ipa"], [data-tab="skill-listening"])::after { background: linear-gradient(180deg, rgba(20, 36, 28, .22), rgba(20, 36, 28, .12) 40%, rgba(20, 36, 28, .3)); }
html.gb body[data-tab="grammar"]::before { background-image: url("assets/goc-ghibli/t01.webp?v=1"); background-position: 45% center; }
/* tranh nhiều chi tiết: mờ thêm cho nội dung dễ đọc (GPT dặn) */
html.gb body:is([data-tab="ipa"], [data-tab="vocab-lexical"], [data-tab="games"], [data-tab="referral"], [data-tab="roadmap"])::before { filter: saturate(.88) blur(2px); transform: scale(1.02); }

/* --- thanh bên: kính tối --- */
html.gb .dash-side { background: linear-gradient(180deg, rgba(28, 44, 32, .62), rgba(28, 44, 32, .5)) !important; -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .28) !important; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .25), 0 12px 32px rgba(10, 25, 15, .25) !important; }
html.gb .dash-nav a[aria-current="page"], html.gb .dash-nav a.on, html.gb .dash-nav a.cur { background: rgba(255, 255, 255, .85) !important; }

/* --- khung nội dung: kính sáng --- */
html.gb .dash-main :is(.rg-card, .rg-paper, .rg-fact, .rg-bubble, .dash-card, .dash-box, .dash-unit, .dash-vcard, .dash-course, .dash-chapter, .dash-flow-step, .dash-quiz,
  .dash-lex, .dash-ipa, .dash-ipa-big, .dash-shelf, .dash-ref-code, .dc-card, .dc-hero, .gm-card, .gm-panel, .vh-set, .vh-banner, .nb-bucket, .nb-due,
  .ex-top, .ex-tabs, .ex-shelf, .ex-hero, .ex-empty, .lk) {
  background: var(--gb-kinh) !important; -webkit-backdrop-filter: var(--gb-mo); backdrop-filter: var(--gb-mo);
  border: var(--gb-vien) !important; border-radius: var(--gb-r) !important; box-shadow: var(--gb-bong) !important; }
/* khung lồng trong khung: nhẹ hơn để khỏi đục */
html.gb .dash-main :is(.rg-card, .dash-card, .dash-box, .ex-top, .gm-panel) :is(.rg-fact, .rg-paper, .dash-unit, .lk, .dash-box) {
  background: rgba(255, 255, 255, .42) !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .7) !important; border-radius: 14px !important; }

/* --- băng chào / hero: bỏ tranh linh vật cũ, thành tấm kính trong để lộ tranh nền --- */
html.gb .dash-main :is(.rg-banner, .dash-hero, .ex-hero, .dc-hero, .vh-banner) {
  background: linear-gradient(120deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .18) 60%, rgba(255, 255, 255, .08)) !important;
  -webkit-backdrop-filter: blur(6px) saturate(1.3); backdrop-filter: blur(6px) saturate(1.3);
  border: var(--gb-vien) !important; border-radius: 22px !important; box-shadow: var(--gb-bong) !important; }
html.gb .dash-main .rg-banner { min-height: 200px; }
html.gb .dash-main :is(.dash-hero-img, .rg-banner-img, .ex-hero-img) { display: none !important; }

/* --- nút: kính đậm hơn, nút chính xanh rừng trong --- */
html.gb .dash-main :is(.gm-btn, .ex-btn, .lc-btn.on, .tid-btn) { background: linear-gradient(135deg, rgba(58, 74, 50, .92), rgba(95, 109, 69, .88)) !important; color: #FFFDF6 !important;
  border: 1px solid rgba(255, 255, 255, .55) !important; border-radius: 12px !important; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), 0 6px 16px rgba(30, 50, 35, .22) !important; }
html.gb .dash-main :is(.ex-tab, .lc-btn:not(.on)) { background: rgba(255, 255, 255, .55) !important; border: 1px solid rgba(255, 255, 255, .8) !important; border-radius: 999px !important; }
html.gb .dash-main :is(input, select, textarea) { background: rgba(255, 255, 255, .78) !important; border: 1px solid rgba(255, 255, 255, .9) !important; border-radius: 12px !important; }

/* --- ghi chú dán (Tổng quan): giữ màu giấy nhạt cho vui mắt nhưng trong hơn --- */
html.gb .dash-main [class*="rg-note"] { border-radius: 14px !important; }

@media (max-width: 720px) {
  html.gb body::before { background-position: center center; }
  html.gb { --gb-r: 16px; }
}
@media (prefers-reduced-transparency: reduce) {
  html.gb .dash-main :is(.rg-card, .dash-card, .dash-box, .gm-card, .dc-card, .vh-set) { background: rgba(255, 252, 240, .95) !important; }
}
/* tự kiểm vòng 1: đầu mục nằm thẳng trên tranh → đặt trên kính; tab đang chọn chữ trắng trên nền sáng → nền xanh rừng */
html.gb .dash-main :is(.vh-head, .dash-head, .ex-head, .gm-head, .dc-head) { padding: 16px 20px !important; background: var(--gb-kinh) !important; -webkit-backdrop-filter: var(--gb-mo); backdrop-filter: var(--gb-mo);
  border: var(--gb-vien) !important; border-radius: var(--gb-r) !important; box-shadow: var(--gb-bong) !important; }
html.gb .dash-main :is(.ex-tab, .gm-chip, .lc-btn, .vh-tab, [role="tab"]):is(.on, [aria-selected="true"], .active) {
  background: linear-gradient(135deg, rgba(58, 74, 50, .94), rgba(95, 109, 69, .9)) !important; color: #FFFDF6 !important; border-color: rgba(255, 255, 255, .6) !important; }
html.gb .dash-main :is(.ex-tab, .gm-chip, .lc-btn, .vh-tab, [role="tab"]):is(.on, [aria-selected="true"], .active) * { color: #FFFDF6 !important; }
/* ===== sửa theo Gemini chấm (7,2/10) ===== */
/* khung kính đều sáng hơn để chữ mực không mất tương phản trên vùng tranh tối */
html.gb { --gb-kinh: linear-gradient(135deg, rgba(250, 250, 244, .8) 0%, rgba(246, 246, 236, .72) 55%, rgba(250, 250, 244, .78) 100%); --gb-mo: blur(20px) saturate(1.2); }
html.gb .dash-main :is(.rg-banner, .dash-hero, .ex-hero, .dc-hero, .vh-banner) { background: linear-gradient(120deg, rgba(250, 250, 244, .82), rgba(250, 250, 244, .6) 55%, rgba(250, 250, 244, .45)) !important; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
/* ô con đặc kiểu cũ (số liệu, mô tả đề, thẻ từ vựng) → kính bán trong */
html.gb .dash-main :is(.ex-top, .ex-top-desc, .dash-vcard, .rg-fact, .dash-box) { background: rgba(255, 255, 255, .55) !important; border: 1px solid rgba(255, 255, 255, .7) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* điện thoại: thanh trên cùng kính tối, thanh mục cuộn ngang có mép mờ */
@media (max-width: 900px) {
  html.gb body.dash .p-nav.p-nav { background: rgba(28, 44, 32, .72) !important; -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid rgba(255, 255, 255, .18) !important; }
  html.gb body.dash .p-nav.p-nav :is(.pill, button, .p-ubar) { background: rgba(255, 255, 255, .16) !important; border-color: rgba(255, 255, 255, .35) !important; color: #F4F1EA !important; }
  html.gb .p-nav :is(svg) { color: #F4F1EA; }
  html.gb .dash-nav { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); scroll-snap-type: x proximity; }
  html.gb .dash-nav a { scroll-snap-align: center; }
}
/* thẻ trò chơi: tiêu đề cùng cao, nhãn ghim đáy */
html.gb .dash-main .gm-card { display: flex !important; flex-direction: column; }
@media (min-width: 901px) { html.gb .dash-main .gm-card h3 { min-height: 2.5em; } }
/* 4 thẻ số liệu Thống kê cùng nhịp */
html.gb .dash-main .dash-card:has(> b) { display: flex; flex-direction: column; justify-content: space-between; min-height: 128px; }
/* biểu đồ trống có lưới mờ thay vì mảng rỗng */
html.gb .dash-main :is(.dash-chart, .st-chart, [class*="chart"]) { background-image: repeating-linear-gradient(0deg, rgba(58, 74, 50, .1) 0 1px, transparent 1px 32px) !important; }
/* Bộ sưu tập: nhãn huy hiệu một dòng */
html.gb .dash-main .rg-card :is(.rg-col, .rg-badge, [class*="coll"]) small { white-space: nowrap; font-size: 10.5px; }
@media (max-width: 900px) { html.gb body.dash .p-nav.p-nav .p-ubar :is(a, span, b, small) { color: #F4F1EA !important; } html.gb body.dash .p-nav.p-nav .p-ubar { background: rgba(255, 255, 255, .16) !important; border-color: rgba(255, 255, 255, .35) !important; } }
/* ===== GPT (nhà thiết kế) chấm 8,7/10 – 8 sửa để lên 10/10 ===== */
/* 1+2: kính bớt đục, 3 tầng: khung chính .68 / thẻ phụ .5 / ô trong .42; hệ bo góc chốt: vỏ 24 – thẻ 18 – ảnh 14 – chip tròn */
html.gb { --gb-r: 18px; --gb-vien: 1px solid rgba(255, 255, 255, .62); --gb-mo: blur(20px) saturate(1.25);
  --gb-bong: 0 8px 28px rgba(25, 40, 25, .1), inset 0 1px rgba(255, 255, 255, .7);
  --gb-kinh: rgba(250, 248, 238, .5); --gb-kinh-chinh: rgba(250, 248, 238, .68); }
html.gb .dash-main :is(.rg-banner, .dash-hero, .ex-hero, .dc-hero, .vh-banner, .vh-head, .ex-shelf, .rg-card.rg-over, .gm-panel) { background: var(--gb-kinh-chinh) !important; border-radius: 24px !important; }
html.gb .dash-main :is(.rg-card, .dash-card, .dash-unit, .vh-set, .gm-card, .dc-card, .dash-vcard, .nb-bucket, .dash-course, .dash-chapter, .dash-lex, .dash-ipa) { background: var(--gb-kinh) !important; border-radius: 18px !important; }
html.gb .dash-main :is(.rg-card, .dash-card, .gm-panel) :is(.rg-fact, .rg-paper, .dash-unit, .lk, .dash-box) { background: rgba(255, 255, 255, .42) !important; border-radius: 14px !important; }
/* 3: tranh linh vật trong thẻ hoà vào thẻ, không nhốt trong khung chữ nhật */
html.gb .dash-main :is(.gm-cover, .vh-set .vh-art, .vh-set img, .dash-vcard img, .gm-card img) { border: 0 !important; border-radius: 14px 14px 8px 8px !important; box-shadow: none !important;
  -webkit-mask-image: linear-gradient(#000 82%, transparent 100%); mask-image: linear-gradient(#000 82%, transparent 100%); }
/* 4: lớp điện ảnh nhẹ trên tranh nền */
html.gb body::after { background: linear-gradient(rgba(22, 38, 25, .08), rgba(22, 38, 25, .08)), linear-gradient(180deg, rgba(245, 240, 222, .08), rgba(30, 50, 35, .12)) !important; }
/* 5: phần đầu mục trên điện thoại gọn hơn */
@media (max-width: 720px) {
  html.gb .dash-main :is(.rg-banner, .dash-hero, .ex-hero, .dc-hero, .vh-head) { padding: 20px 18px !important; min-height: 0 !important; }
  html.gb .dash-main :is(.rg-banner, .dash-hero, .ex-hero, .dc-hero) h1 { font-size: clamp(30px, 9vw, 42px) !important; }
}
/* 6: thanh bên + thanh mục điện thoại = kính tối thật */
html.gb .dash-side { background: rgba(24, 45, 31, .76) !important; -webkit-backdrop-filter: blur(24px) saturate(1.3) !important; backdrop-filter: blur(24px) saturate(1.3) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important; box-shadow: 0 8px 30px rgba(0, 0, 0, .18) !important; border-radius: 24px !important; }
html.gb .dash-main :is(.gm-chip, .ex-tab, .lc-btn, .vh-tab) { border-radius: 999px !important; }
/* 8: chữ trên kính sáng – thân chữ mực đậm, chữ phụ có độ trong */
html.gb .dash-main :is(p, li, td, small, .muted, [class*="desc"], [class*="sub"]) { color: rgba(30, 43, 31, .78) !important; }
html.gb .dash-main :is(h1, h2, h3, h4, b, strong, label) { color: #263427; }
html.gb .dash-main :is(p, li) { font-weight: 500; text-shadow: 0 1px 0 rgba(255, 255, 255, .25); }
html.gb .dash-main :is(.gm-btn, .ex-btn, .tid-btn, .lc-btn.on, .ex-tab.on, .gm-chip.on) :is(*, p, small, b) { color: #FFFDF6 !important; text-shadow: none; }/* nút chính dạng lc-btn.primary (vd "Bắt đầu" ở Từ vựng) giữ nền xanh rừng; phần đầu Tổng quan bớt cao */
html.gb .dash-main :is(.lc-btn.primary, .lc-btn.primary:not(.on)) { background: linear-gradient(135deg, rgba(58, 74, 50, .94), rgba(95, 109, 69, .9)) !important; color: #FFFDF6 !important; border: 1px solid rgba(255, 255, 255, .55) !important; }
html.gb .dash-main .rg-banner { min-height: 150px !important; }/* tiêu đề chương/nhóm nằm thẳng trên tranh (Giáo trình, Ngữ pháp, Lexical, Nghe…) → nhãn kính dạng viên thuốc */
html.gb .dash-main :is(.dash-sec-h, .dash-vocab > h2, .dash-vocab > h3) { display: inline-flex !important; align-items: center; gap: 8px; width: auto; padding: 6px 16px !important; margin-bottom: 10px;
  background: var(--gb-kinh-chinh) !important; -webkit-backdrop-filter: var(--gb-mo); backdrop-filter: var(--gb-mo); border: var(--gb-vien) !important; border-radius: 999px !important; box-shadow: var(--gb-bong) !important; color: #263427 !important; }
html.gb .dash-main .dash-sec-h + :is(p, small, .dash-sec-sub) { display: inline-block; padding: 3px 12px; margin: -4px 0 10px; background: rgba(250, 248, 238, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 999px; }
/* ===== GPT chấm lần 2: 9,4/10 – 6 tinh chỉnh cuối ===== */
/* 1: thanh mục điện thoại – tab thường sáng hơn, tab đang mở nổi rõ */
@media (max-width: 900px) {
  html.gb .dash-side { padding: 6px !important; background: rgba(24, 45, 31, .78) !important; -webkit-backdrop-filter: blur(24px) saturate(1.35) !important; backdrop-filter: blur(24px) saturate(1.35) !important; }
  html.gb .dash-nav { gap: 6px; }
  html.gb .dash-nav a { min-height: 42px; padding: 0 14px !important; color: rgba(255, 255, 255, .78) !important; }
  html.gb .dash-nav a[aria-current="page"], html.gb .dash-nav a.on, html.gb .dash-nav a.cur { background: rgba(251, 246, 234, .92) !important; color: #263427 !important; box-shadow: 0 2px 10px rgba(0, 0, 0, .1), inset 0 1px rgba(255, 255, 255, .75) !important; }
}
/* 2: ô con kem (số liệu, mục tiêu, mô tả đề) bớt đặc */
html.gb .dash-main :is(.ex-top, .ex-top-desc, .dash-vcard, .rg-fact, .dash-box, .rg-paper) { background: rgba(251, 246, 234, .74) !important; -webkit-backdrop-filter: blur(10px) saturate(1.15) !important; backdrop-filter: blur(10px) saturate(1.15) !important;
  border: 1px solid rgba(255, 255, 255, .58) !important; box-shadow: inset 0 1px rgba(255, 255, 255, .55) !important; }
/* 3: mục dày thông tin (Ngữ pháp, IPA, Giáo trình, Lexical) – nền lui thêm một nhịp */
html.gb body:is([data-tab="grammar"], [data-tab="ipa"], [data-tab="vocab-curriculum"], [data-tab="vocab-lexical"], [data-tab="basics"])::after { background: linear-gradient(180deg, rgba(247, 240, 223, .16), rgba(247, 240, 223, .24)), linear-gradient(rgba(22, 38, 25, .06), rgba(22, 38, 25, .06)) !important; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
/* 4: ảnh linh vật mờ đáy muộn hơn, giữ ảnh rõ */
html.gb .dash-main :is(.gm-cover, .vh-set .vh-art, .vh-set img, .dash-vcard img, .gm-card img) { border-radius: 14px 14px 10px 10px !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, rgba(0, 0, 0, .78) 94%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 88%, rgba(0, 0, 0, .78) 94%, transparent 100%); }
/* 5: nhãn chương hoà vào hệ kính */
html.gb .dash-main .dash-sec-h { position: relative; background: rgba(251, 246, 234, .44) !important; -webkit-backdrop-filter: blur(14px) saturate(1.2) !important; backdrop-filter: blur(14px) saturate(1.2) !important;
  border: 1px solid rgba(255, 255, 255, .52) !important; box-shadow: 0 4px 14px rgba(30, 43, 31, .08), inset 0 1px rgba(255, 255, 255, .62) !important; }
html.gb .dash-main .dash-sec-h::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 55%); pointer-events: none; }
/* 6: điện thoại – các khối thở hơn chút */
@media (max-width: 768px) {
  html.gb .dash-main .dash-panel > * + * { margin-top: 14px; }
  html.gb .dash-main :is(.rg-banner, .dash-hero, .ex-hero, .dc-hero, .vh-head) { margin-bottom: 16px !important; }
  html.gb .dash-main :is(.rg-grid, .gm-grid, .vh-grid, .ex-grid) { gap: 12px !important; }
}
/* ô IPA đang chọn: nền xanh rừng chữ kem (trước bị chữ mực trên nền tối) */
html.gb .dash-main .dash-ipa:is(.on, .active, [aria-pressed="true"], [aria-selected="true"]) { background: linear-gradient(135deg, rgba(58, 74, 50, .94), rgba(95, 109, 69, .9)) !important; }
html.gb .dash-main .dash-ipa:is(.on, .active, [aria-pressed="true"], [aria-selected="true"]) * { color: #FFFDF6 !important; text-shadow: none !important; }
/* ===== 30/10: thanh bên thành kính thật (chủ trung tâm: "đổi bên này luôn") – thắng luật rừng html.moi (nền xanh đặc + nhiễu) ===== */
html.gb.gb .dash-wrap .dash-side { background: linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 40%, rgba(255, 255, 255, .1) 100%), rgba(22, 40, 28, .5) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important; backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, .32) !important; border-radius: 24px !important;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), inset 0 0 30px rgba(255, 255, 255, .06), 0 12px 32px rgba(10, 25, 15, .25) !important; }
html.gb.gb .dash-wrap .dash-side :is(.dash-nav a, .dash-nav-label, .dash-side-head, .dash-lang, .dash-search-ic, .dash-pin, .dash-me) { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
/* mục đang mở: kính sáng thay tấm kem đặc; rê chuột: kính mờ nhẹ */
html.gb.gb .dash-wrap .dash-nav a[aria-current="page"] { background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(251, 246, 234, .78)) !important; color: #263427 !important; text-shadow: none;
  box-shadow: inset 1px 1px 0 #fff, 0 4px 14px rgba(0, 0, 0, .15) !important; border: 1px solid rgba(255, 255, 255, .8) !important; }
html.gb.gb .dash-wrap .dash-nav a:not([aria-current="page"]):hover { background: rgba(255, 255, 255, .14) !important; }
/* ô tra từ: kính */
html.gb.gb .dash-wrap .dash-search { background: rgba(255, 255, 255, .12) !important; border: 1px solid rgba(255, 255, 255, .35) !important; border-radius: 14px !important; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .25) !important; }
html.gb.gb .dash-wrap .dash-search kbd { background: rgba(255, 255, 255, .18) !important; border: 1px solid rgba(255, 255, 255, .3) !important; }
/* biển gỗ "Chào mừng đến TOEX E-LEARNING" → bảng kính ánh hổ phách */
html.gb.gb .rung-sign { background: linear-gradient(135deg, rgba(255, 200, 120, .72), rgba(214, 140, 60, .55)), rgba(170, 100, 40, .3) !important; background-image: none;
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(255, 230, 190, .7) !important; border-radius: 16px !important;
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, .55), inset 0 0 18px rgba(255, 220, 160, .18), 0 6px 18px rgba(0, 0, 0, .2) !important; text-shadow: 0 1px 2px rgba(60, 30, 0, .45); }
html.gb.gb a.rung-sign:hover { transform: translateY(-2px); box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, .6), 0 10px 22px rgba(0, 0, 0, .25) !important; }
/* mẹo hôm nay cuối thanh bên: kính */
html.gb.gb .rung-tip { background: rgba(255, 255, 255, .12) !important; border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* 31/10: bìa đề (THPTQG, ĐGNL, sách) – chữ dưới bìa nằm trơ trên tranh → mỗi bìa một thẻ kính */
html.gb .dash-main .ex-cover { padding: 8px 8px 10px !important; background: var(--gb-kinh) !important; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: var(--gb-vien) !important; border-radius: 16px !important; box-shadow: 0 6px 18px rgba(25, 40, 25, .12), inset 0 1px rgba(255, 255, 255, .7) !important; }
html.gb .dash-main .ex-cover :is(b, strong, h3, h4) { color: #263427 !important; }
html.gb .dash-main .ex-cover small { color: rgba(30, 43, 31, .8) !important; }
/* ===== 31/10: độ mờ giống OpenQuiz (chủ trung tâm) – thanh bên trắng 80% mờ nền, thẻ nội dung gần như trắng đặc (95%), viền xám mảnh, bóng rất nhẹ ===== */
html.gb { --gb-kinh: rgba(255, 255, 255, .58); --gb-kinh-chinh: rgba(255, 255, 255, .58); --gb-vien: 1px solid rgba(255, 255, 255, .78); --gb-bong: 0 10px 34px rgba(18, 32, 22, .16), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .35); --gb-mo: blur(24px) saturate(1.35) brightness(1.12);
  --gk-chinh: rgba(255, 255, 255, .58); --gk-the: rgba(255, 255, 255, .58); --gk-o: rgba(255, 255, 255, .5); --gk-vien: 1px solid rgba(255, 255, 255, .78); --gk-bong: 0 10px 34px rgba(18, 32, 22, .16), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .35); --gk-mo: blur(24px) saturate(1.35) brightness(1.12); }
html.gb.gb .dash-wrap .dash-side { background: rgba(255, 255, 255, .5) !important; -webkit-backdrop-filter: blur(26px) saturate(1.35) brightness(1.12) !important; backdrop-filter: blur(26px) saturate(1.35) brightness(1.12) !important;
  border: 0 !important; border-right: 1px solid rgba(255, 255, 255, .75) !important; border-radius: 0 !important; box-shadow: none !important; }
html.gb.gb .dash-wrap .dash-side :is(.dash-nav a, .dash-nav-label, .dash-side-head, .dash-lang, .dash-search-ic, .dash-pin, .dash-me, .dash-me *, .dash-logo span *) { color: #1F2937 !important; text-shadow: none !important; }
html.gb.gb .dash-wrap .dash-nav a svg { color: #4B5563 !important; }
html.gb.gb .dash-wrap .dash-nav-label { color: #6B7280 !important; }
html.gb.gb .dash-wrap .dash-nav a[aria-current="page"] { background: rgba(255, 255, 255, .7) !important; border: 0 !important; box-shadow: none !important; color: #111827 !important; }
html.gb.gb .dash-wrap .dash-nav a:not([aria-current="page"]):hover { background: rgba(255, 255, 255, .45) !important; }
html.gb.gb .dash-wrap .dash-search { background: rgba(255, 255, 255, .55) !important; border: 1px solid #E5E7EB !important; box-shadow: none !important; }
html.gb.gb .dash-wrap .dash-search :is(input, kbd) { color: #374151 !important; }
html.gb.gb .dash-wrap .dash-search kbd { background: #fff !important; border: 1px solid #E5E7EB !important; }
/* mọi thẻ/khung trong nội dung: trắng đặc, bo 8–12, viền xám mảnh, không mờ nền (giống thẻ OpenQuiz) */
html.gb .dash-main :is(.rg-card, .rg-banner, .dash-hero, .ex-hero, .dc-hero, .vh-banner, .vh-head, .dash-card, .dash-box, .dash-unit, .dash-vcard, .dash-course, .dash-chapter, .dash-flow-step, .dash-quiz,
  .dash-lex, .dash-ipa, .dash-shelf, .dc-card, .gm-card, .gm-panel, .vh-set, .nb-bucket, .nb-due, .ex-top, .ex-tabs, .ex-shelf, .ex-empty, .ex-cover, .lk, .dash-sec-h, .rg-paper, .rg-fact) {
  background: linear-gradient(135deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 45%), rgba(255, 255, 255, .58) !important; -webkit-backdrop-filter: blur(24px) saturate(1.35) brightness(1.12) !important; backdrop-filter: blur(24px) saturate(1.35) brightness(1.12) !important; border: 1px solid rgba(255, 255, 255, .78) !important; box-shadow: 0 10px 34px rgba(18, 32, 22, .16), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .35) !important; }
html.gb .dash-main :is(.rg-card, .rg-banner, .dash-hero, .ex-hero, .dc-hero, .vh-head, .ex-shelf, .gm-panel, .dash-card, .gm-card, .vh-set, .dc-card, .ex-cover) { border-radius: 12px !important; }
html.gb .dash-main :is(.rg-card, .dash-card, .dash-box, .ex-top, .gm-panel) :is(.rg-fact, .rg-paper, .dash-unit, .lk, .dash-box, .ex-top-desc) { background: rgba(255, 255, 255, .5) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 1px solid rgba(255, 255, 255, .8) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important; border-radius: 8px !important; }
html.gb .dash-main .dash-sec-h::after { display: none !important; }
html.gb.dn-vid { --gb-kinh: rgba(255, 255, 255, .66); --gb-kinh-chinh: rgba(255, 255, 255, .66); }
@media (max-width: 900px) { html.gb.gb .dash-wrap .dash-side { border-right: 0 !important; border-bottom: 1px solid #DBDFE6 !important; border-radius: 16px !important; } }
html.gb.gb .rung-sign { background: linear-gradient(135deg, #C98A45, #A86A30) !important; border: 0 !important; box-shadow: 0 2px 6px rgba(120, 70, 20, .25) !important; text-shadow: 0 1px 1px rgba(60, 30, 0, .35); }
html.gb.gb .rung-sign * { color: #FFF8EC !important; }
html.gb.gb .dash-wrap .dash-search input::placeholder { color: #6B7280 !important; }
/* ===== 31/10: khi chọn hình nền riêng – làm như OpenQuiz: nội dung là một cột gọn giữa màn hình, nền lộ rộng hai bên, tranh sắc nét (bỏ lớp phủ tối + làm mờ) ===== */
html.gb.dn-co body::after { display: none !important; }
html.gb.dn-co body::before, html.gb.dn-co body[data-tab]::before { filter: none !important; transform: none !important; }
@media (min-width: 1100px) {
  html.gb.dn-co .dash-main { max-width: 1120px; margin-inline: auto; }
}
/* nền riêng: thẻ trắng đặc như OpenQuiz để tách hẳn khỏi tranh/video */
html.gb.dn-co .dash-main :is(.rg-card, .rg-banner, .dash-hero, .ex-hero, .dc-hero, .vh-head, .dash-card, .dash-box, .dash-vcard, .dash-course, .dash-chapter, .gm-card, .gm-panel, .vh-set, .dc-card, .ex-top, .ex-tabs, .ex-shelf, .ex-cover, .dash-sec-h) { background-color: rgba(255, 255, 255, .64) !important; }
/* 31/10 chiều: chủ trung tâm thấy kính còn yếu → kính trong rõ (trắng 58%, mờ nền 24px, viền sáng + vệt bóng chéo); chữ phụ đậm hơn để vẫn đọc rõ */
html.gb .dash-main :is(p, li, small, [class*="sub"], [class*="desc"], [class*="meta"], [class*="hint"]):not(.gb-den):not(.rung-sign *) { color: #2E3A2F; }
/* GPT chấm 31/10 (7/10): kính thiếu phân lớp → lớp ngoài trong hơn, ô chứa chữ bên trong đặc hơn; chữ phụ đậm + lớn hơn chút */
html.gb .dash-main :is(.rg-card, .dash-card, .dash-box, .ex-top, .gm-panel) :is(.rg-fact, .rg-paper, .dash-unit, .lk, .dash-box, .ex-top-desc) { background: rgba(255, 255, 255, .78) !important; }
html.gb .dash-main :is(.rg-task, .dash-task, [class*="task"]):not(.dash-main) { background-color: rgba(255, 255, 255, .78) !important; }
html.gb .dash-main :is(small, [class*="sub"], [class*="desc"], [class*="meta"], [class*="hint"]):not(.gb-den):not(.rung-sign *) { color: #283328 !important; }
/* 31/10: bảng "Chào mừng đến TOEX E-LEARNING" + "Mẹo hôm nay" ở thanh bên: kính xanh lá chữ trắng (thay khung cam) */
html.gb.gb body .dash-side :is(.rung-sign, .rung-tip) { background: linear-gradient(135deg, rgba(58, 74, 50, .82), rgba(95, 109, 69, .72)) !important; -webkit-backdrop-filter: blur(14px) saturate(1.2) !important; backdrop-filter: blur(14px) saturate(1.2) !important;
  border: 1px solid rgba(255, 255, 255, .35) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px rgba(20, 35, 22, .2) !important; }
html.gb.gb body .dash-side :is(.rung-sign, .rung-tip), html.gb.gb body .dash-side :is(.rung-sign, .rung-tip) * { color: #FFFDF6 !important; text-shadow: none !important; }
/* 31/10: mục đang chọn ở thanh bên – kính xanh rừng chữ trắng (trước chữ trắng trên nền sáng, khó đọc) */
html.gb.gb body .dash-wrap .dash-nav a:is([aria-current="page"], .on, .cur):not(#oq-z) { background: linear-gradient(135deg, rgba(58, 74, 50, .9), rgba(95, 109, 69, .82)) !important; border: 1px solid rgba(255, 255, 255, .35) !important; box-shadow: 0 4px 12px rgba(20, 35, 22, .2) !important; }
html.gb.gb body .dash-wrap .dash-nav a:is([aria-current="page"], .on, .cur):not(#oq-z), html.gb.gb body .dash-wrap .dash-nav a:is([aria-current="page"], .on, .cur):not(#oq-z) * { color: #FFFDF6 !important; text-shadow: none !important; }
/* 31/10: tiêu đề "Luyện từ vựng" (Giáo trình) không khung – chữ nằm thẳng trên tranh, viền sáng mờ cho dễ đọc */
html.gb.gb body .dash-main .vh-head:not(#oq-z) { background: none !important; background-image: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 4px 4px 0 !important; }
html.gb.gb body .dash-main .vh-head:not(#oq-z) :is(h1, p) { text-shadow: none !important; } /* 31/10 chủ trung tâm: chữ đen thường, không viền trắng */
html.gb.gb body .dash-main .vh-head:not(#oq-z) h1 { color: #1B1B18 !important; }
html.gb.gb body .dash-main .vh-head:not(#oq-z) p { color: #263427 !important; font-weight: 600 !important; }
/* 31/10: chữ nằm thẳng trên tranh (chú thích kệ sách, tên sách dưới bìa) – nhãn kính trắng cho dễ đọc */
html.gb.gb body .dash-main :is(.vh-hint, .ex-shelf-lead):not(#oq-z) { display: inline-block; padding: 4px 12px; border-radius: 10px; background: rgba(255, 255, 255, .82) !important; color: #263427 !important; text-shadow: none !important; }
html.gb.gb body .dash-main .ex-folder:not(#oq-z) > :is(b, small) { display: block; padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, .82); color: #263427 !important; text-shadow: none !important; }
html.gb.gb body .dash-main .ex-folder:not(#oq-z) > b { margin-top: 6px; border-radius: 8px 8px 0 0; }
html.gb.gb body .dash-main .ex-folder:not(#oq-z) > small { border-radius: 0 0 8px 8px; color: #4A4A3E !important; }
html.gb.gb body .dash-main .vh-tabwrap > .ex-tabs:not(#oq-z) { flex-wrap: wrap; overflow: visible; border-radius: 22px !important; }
/* 31/10: phần đầu Luyện đề TOEIC / THPTQG / ĐGNL thu gọn một dải – vào trang là thấy sách / đề ngay */
html.gb.gb body:is([data-tab="toeic"], [data-tab="toeic-tests"], [data-tab="thptqg"], [data-tab="dgnl"]) .dash-main .ex-top:not(#oq-z) { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-height: 0 !important; padding: 14px 20px !important; margin-bottom: 12px !important; }
html.gb.gb body:is([data-tab="toeic"], [data-tab="toeic-tests"], [data-tab="thptqg"], [data-tab="dgnl"]) .dash-main .ex-top:not(#oq-z) .ex-top-txt { flex: 1 1 420px; min-width: 0; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html.gb.gb body:is([data-tab="toeic"], [data-tab="toeic-tests"], [data-tab="thptqg"], [data-tab="dgnl"]) .dash-main .ex-top:not(#oq-z) .ex-top-label { display: none !important; }
html.gb.gb body:is([data-tab="toeic"], [data-tab="toeic-tests"], [data-tab="thptqg"], [data-tab="dgnl"]) .dash-main .ex-top:not(#oq-z) h1 { margin: 0 0 4px !important; font-size: clamp(26px, 3vw, 34px) !important; line-height: 1.15 !important; }
html.gb.gb body:is([data-tab="toeic"], [data-tab="toeic-tests"], [data-tab="thptqg"], [data-tab="dgnl"]) .dash-main .ex-top:not(#oq-z) .ex-top-desc { margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; font-size: 14.5px !important; line-height: 1.5 !important; }
html.gb.gb body:is([data-tab="toeic"], [data-tab="toeic-tests"], [data-tab="thptqg"], [data-tab="dgnl"]) .dash-main .ex-top:not(#oq-z) .ex-top-stats { display: flex !important; flex-wrap: wrap; gap: 8px !important; grid-template-columns: none !important; }
html.gb.gb body:is([data-tab="toeic"], [data-tab="toeic-tests"], [data-tab="thptqg"], [data-tab="dgnl"]) .dash-main .ex-top:not(#oq-z) .ex-top-stats > span { display: inline-flex !important; flex-direction: row !important; align-items: baseline; gap: 6px; min-height: 0 !important; padding: 6px 12px !important; border-radius: 999px !important; font-size: 13px !important; white-space: nowrap; }
html.gb.gb body:is([data-tab="toeic"], [data-tab="toeic-tests"], [data-tab="thptqg"], [data-tab="dgnl"]) .dash-main .ex-top:not(#oq-z) .ex-top-stats > span b { font-size: 18px !important; line-height: 1 !important; margin: 0 !important; }
/* 31/10: khung đầu (dash-hero) mọi mục trừ Tổng quan / Lộ trình – gọn một dải */
html.gb.gb body:not([data-tab="overview"]):not([data-tab="roadmap"]) .dash-main .dash-hero:not(.dash-road):not(#oq-z) { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: 0 !important; padding: 14px 20px !important; }
html.gb.gb body:not([data-tab="overview"]):not([data-tab="roadmap"]) .dash-main .dash-hero:not(.dash-road):not(#oq-z) > small { display: none !important; }
html.gb.gb body:not([data-tab="overview"]):not([data-tab="roadmap"]) .dash-main .dash-hero:not(.dash-road):not(#oq-z) h1 { margin: 0 !important; font-size: clamp(24px, 2.6vw, 32px) !important; line-height: 1.15 !important; white-space: nowrap; }
html.gb.gb body:not([data-tab="overview"]):not([data-tab="roadmap"]) .dash-main .dash-hero:not(.dash-road):not(#oq-z) h1 br { display: none; }
html.gb.gb body:not([data-tab="overview"]):not([data-tab="roadmap"]) .dash-main .dash-hero:not(.dash-road):not(#oq-z) > * { margin-top: 0 !important; margin-bottom: 0 !important; }
/* 31/10: tiêu đề đồng bộ màu đen (khối nền tối / kính xanh vẫn chữ trắng) */
html.gb.gb body :is(.dash-main, main) :is(h1, h2, h3, .ex-top-hl, .ex-h, .dash-sec-h):not(.oq-toi):not(.oq-toi *):not(.oq-xanh *):not(.oq-xanh) { color: #1B1B18 !important; }
html.gb.gb body .dash-main .vh-head p { color: #1B1B18 !important; }
/* Lộ trình học: câu hỏi nằm trong khung → chỉ thu nhỏ tiêu đề, khoảng trống */
html.gb.gb body .dash-main .dash-hero.dash-road:not(#oq-z) { padding: 14px 22px 18px !important; min-height: 0 !important; }
html.gb.gb body .dash-main .dash-hero.dash-road:not(#oq-z) h1 { margin: 4px 0 2px !important; font-size: clamp(24px, 2.6vw, 32px) !important; line-height: 1.15 !important; }
html.gb.gb body .dash-main .dash-hero.dash-road:not(#oq-z) h1 br { display: none; }
html.gb.gb body .dash-main .dash-hero.dash-road:not(#oq-z) > p { margin: 0 0 10px !important; }
/* 31/10: kệ sách Luyện đề TOEIC – khung ngoài đã trong suốt nên bỏ khoảng đệm, sách sát dưới hàng tab */
html.gb.gb body .dash-main .ex-shelf.ex-book-open:not(#oq-z) { margin-top: 12px !important; padding: 0 !important; }
html.gb.gb body .dash-main .ex-shelf.ex-book-open:not(#oq-z) .ex-shelf-tools { margin: 0 0 12px !important; }
/* 31/10: khung đầu gọn – tiêu đề · nhãn số · nút thẳng một hàng, cách đều */
html.gb.gb body:not([data-tab="overview"]):not([data-tab="roadmap"]) .dash-main .dash-hero:not(.dash-road):not(#oq-z) { column-gap: 18px !important; }
html.gb.gb body:not([data-tab="overview"]):not([data-tab="roadmap"]) .dash-main .dash-hero:not(.dash-road):not(#oq-z) > h1 { flex: 0 0 auto; }
html.gb.gb body:not([data-tab="overview"]):not([data-tab="roadmap"]) .dash-main .dash-hero:not(.dash-road):not(#oq-z) > .dash-chips { order: 3; flex: 1 1 100%; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px !important; margin: 0 !important; max-width: none !important; } /* 31/10: các ô số nằm chung một hàng */
@media (max-width: 640px) { html.gb.gb body:not([data-tab="overview"]):not([data-tab="roadmap"]) .dash-main .dash-hero:not(.dash-road):not(#oq-z) > .dash-chips { flex-wrap: wrap; } } /* 04/11: cùng độ ưu tiên với dòng trên – trước đây thua nên chip "Chuỗi 2 ngày" gãy 2 dòng */
html.gb.gb body:not([data-tab="overview"]):not([data-tab="roadmap"]) .dash-main .dash-hero[data-nb-hero]:not(#oq-z) { row-gap: 10px !important; padding-top: 16px !important; padding-bottom: 16px !important; } /* khung Sổ từ vựng gọn lại */
html.gb.gb body:not([data-tab="overview"]):not([data-tab="roadmap"]) .dash-main .dash-hero:not(.dash-road):not(#oq-z) > .gm-actions { order: 2; flex: 0 0 auto; display: flex; gap: 8px; margin: 0 0 0 auto !important; }
/* 31/10: Nghe chép – khung đầu gọn, hàng tab bộ sách */
html.gb.gb body .dash-main .dc-hero:not(#oq-z) { min-height: 0 !important; padding: 14px 20px !important; margin-bottom: 12px !important; }
html.gb.gb body .dash-main .dc-hero:not(#oq-z) :is(.lc-eyebrow, .ex-float) { display: none !important; }
html.gb.gb body .dash-main .dc-hero:not(#oq-z) h1 { margin: 0 0 4px !important; font-size: clamp(24px, 2.6vw, 32px) !important; line-height: 1.15 !important; }
html.gb.gb body .dash-main .dc-hero:not(#oq-z) p { margin: 0 !important; font-size: 14.5px !important; }
html.gb.gb body .dash-main .dc-series:not(#oq-z) { flex-wrap: wrap; margin: 0 0 14px !important; }
/* Bảng xếp hạng: ô đếm ngược nền tối chữ trắng (ô vẽ lại mỗi giây) · tên ở bục có nền sáng cho dễ đọc */
html.gb.gb body .dash-main .lb-count:not(#oq-z) > *, html.gb.gb body .dash-main .lb-count:not(#oq-z) > * * { color: #FFFDF6 !important; text-shadow: none !important; }
html.gb.gb body .dash-main .lb-pod:not(#oq-z) > * > :is(strong, span, small) { display: table; margin: 3px auto 0 !important; padding: 2px 10px; border-radius: 8px; background: rgba(255, 255, 255, .86); text-shadow: none !important; }
.lc-card.lc-fb .lc-duyet { display: block; margin-top: 6px; color: #625E51; font-size: 12.5px; font-style: italic; }
/* 31/10: kệ sách – bỏ tên + số bộ dưới bìa (bìa đã ghi tên sách) */
html.gb.gb body .dash-main .vh-books .ex-folder:not(#oq-z) > :is(b, small) { display: none !important; }
/* 31/10: thanh bên thu gọn kiểu OpenQuiz – dải 64px sát mép trái, nền trắng 80%, icon đen, vạch mảnh giữa nhóm, không thanh cuộn */
@media (min-width: 861px) {
  html.gb.gb body.dash:not(.dash-pinned) .dash-wrap { padding-left: calc(64px + clamp(16px, 2vw, 28px)) !important; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z) { left: 0 !important; top: 0 !important; bottom: 0 !important; width: 64px !important; height: 100vh !important; padding: 12px 8px !important;
    border-radius: 0 !important; border: 0 !important; border-right: 1px solid rgba(20, 30, 20, .08) !important; background: rgba(255, 255, 255, .8) !important; background-image: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; scrollbar-width: none; overflow-y: auto; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z)::-webkit-scrollbar { display: none; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z) :is(.rung-sign, .rung-tip) { display: none !important; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z) .dash-nav a { width: 44px; height: 44px; min-height: 44px; margin: 2px auto; border-radius: 12px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z) .dash-nav a:hover { background: rgba(20, 30, 20, .06) !important; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z) .dash-nav a[aria-current="page"] { background: #1B1B18 !important; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z) .dash-nav a[aria-current="page"] * { color: #fff !important; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z) :is(.dash-nav a, .dash-pin, .dash-search-ic, .dash-lang, .dash-me) { color: #1B1B18 !important; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z) :is(.dash-nav a, .dash-pin, .dash-search-ic) svg { width: 22px; height: 22px; stroke: #1B1B18; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z) .dash-nav a[aria-current="page"] svg { stroke: #fff; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z) .dash-nav-label { border-top: 1px solid rgba(20, 30, 20, .1) !important; margin: 8px 6px !important; }
  html.gb.gb body:not(.dash-pinned) .dash-wrap .dash-side:not(:hover):not(:focus-within):not(#oq-z) :is(.dash-pin, .dash-search-ic) { background: transparent !important; border: 0 !important; box-shadow: none !important; }
}
/* 31/10: Tổng quan – điểm mục tiêu to, lăn / kéo / nút ▲▼; ô Ngày thi bấm mở lịch */
.rg-goal .rg-goal-row { display: flex; align-items: center; gap: 10px; }
.rg-goal .rg-goal-n { display: inline-block; min-width: 3ch; font: 700 34px/1.05 "Lora", Georgia, serif !important; color: #1B1B18 !important; cursor: ns-resize; touch-action: none; user-select: none; transition: transform .15s, color .15s; transform-origin: left center; }
.rg-goal .rg-goal-n:focus-visible { outline: 3px solid #B25D2A; outline-offset: 3px; border-radius: 6px; }
.rg-goal .rg-goal-n.keo { color: #B25D2A !important; transform: scale(1.35); }
.rg-goal .rg-goal-btns { display: flex; flex-direction: column; gap: 3px; }
.rg-goal .rg-goal-btns button { width: 30px; height: 22px; padding: 0; border: 1px solid rgba(38, 52, 39, .2); border-radius: 6px; background: #fff; color: #263427; font-size: 11px; line-height: 1; cursor: pointer; }
.rg-goal .rg-goal-btns button:hover { background: #3A4A32; color: #FFFDF6; }
.rg-goal .rg-stars { margin-top: 2px; }
.rg-fact:has(input[data-exam]) { cursor: pointer; }
/* 31/10: lưới bìa đề / bộ từ tự giãn lấp kín bề ngang (thu gọn thanh bên không còn trống một bên) */
@media (min-width: 521px) {
  html.gb.gb body .dash-main .ex-covers:not(#oq-z) { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
  html.gb.gb body .dash-main .vh-sets:not(#oq-z) { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
}
/* 31/10: số điểm mục tiêu nổi bật – chữ Unbounded, màu cam TOEX */
.rg-goal .rg-goal-n { font: 800 38px/1.05 "Unbounded", "Lora", sans-serif !important; letter-spacing: -.02em; color: #B25D2A !important; }
.rg-goal .rg-goal-n.keo { color: #3A4A32 !important; }
/* 31/10: số điểm mục tiêu kiểu chữ tiêu đề trang chủ (Fraunces đậm, bóng đen lệch) – màu cam */
@font-face { font-family: "TOEX So"; font-style: normal; font-weight: 900; font-display: swap; src: url(https://fonts.gstatic.com/s/fraunces/v38/6NUu8FyLNQOQZAnv9bYEvDiIdE9Ea92usiIk_WBq8U_9v0c2Wa0K7iN7iQcIfJD58nia0oc7qv8.woff2) format("woff2"); }
.rg-goal .rg-goal-n { font: 900 42px/1 "TOEX So", "Lora", serif !important; letter-spacing: 0; color: #F08A3C !important; text-shadow: 3px 3px 0 #1B1B18; font-variation-settings: "SOFT" 100, "opsz" 144; }
.rg-goal .rg-goal-n.keo { color: #F7B267 !important; }
/* lịch chọn ngày thi kiểu kính mờ */
.gb-cal { position: fixed; z-index: 80; width: 300px; padding: 14px 14px 12px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 18px; background: rgba(255, 255, 255, .58); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 24px 50px -20px rgba(20, 30, 22, .45), inset 1px 1px 0 rgba(255, 255, 255, .8); color: #263427; font-family: "Be Vietnam Pro", system-ui, sans-serif; }
.gb-cal button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.gb-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gb-cal-h b { font: 600 17px/1 "Lora", serif; }
.gb-cal-h button { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .6); font-size: 20px; line-height: 1; }
.gb-cal-h button:hover { background: #3A4A32; color: #FFFDF6; }
.gb-cal-w, .gb-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.gb-cal-w i { font-style: normal; font-size: 12px; font-weight: 700; color: #4F5B3A; padding: 4px 0; }
.gb-cal-g button { height: 36px; border-radius: 50%; font-size: 14px; font-weight: 600; }
.gb-cal-g button:hover:not(:disabled) { background: rgba(58, 74, 50, .14); }
.gb-cal-g button.now { box-shadow: inset 0 0 0 2px #B25D2A; }
.gb-cal-g button.on { background: #3A4A32; color: #FFFDF6; }
.gb-cal-g button:disabled { opacity: .32; cursor: default; }
.gb-cal button:focus-visible { outline: 2px solid #B25D2A; outline-offset: 1px; }
.gb-cal-f { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(38, 52, 39, .14); }
.gb-cal-f button { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .6); }
.gb-cal-f button[data-clear] { color: #8A4A22; }
/* 31/10: Tổng quan – nút "Làm 6 câu hỏi" và "Mời bạn bè cùng học" nằm ngang hàng (đẩy nút xuống đáy thẻ) */
.rg-card.rg-map, .rg-card.rg-friends { display: flex !important; flex-direction: column; }
.rg-card.rg-map > .tid-btn, .rg-card.rg-friends > .tid-btn { margin-top: auto !important; align-self: flex-start; }
/* 1/11: cáo xanh TOEX trong Góc học tập – nhún thở nhẹ (dùng thuộc tính translate riêng nên không phá transform sẵn có); rê chuột thì nảy lên */
img:is([src*="fox"], [src*="state-"], [src*="linh-vat/cao"]) { animation: cxTho 3.8s ease-in-out infinite; transition: translate .3s cubic-bezier(.2, .9, .3, 1.4); }
img:is([src*="fox"], [src*="state-"], [src*="linh-vat/cao"]):hover { animation-play-state: paused; translate: 0 -6px; }
@keyframes cxTho { 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { img:is([src*="fox"], [src*="state-"], [src*="linh-vat/cao"]) { animation: none; } }

/* ######## [tro-choi.css] ######## */
/* ===== Mục Trò chơi bản game (03/11/2026) — nạp SAU goc-ghibli.css =====
   Sảnh kiểu cửa hàng game: hồ sơ (cấp, XP, chuỗi ngày, nhiệm vụ) · bộ từ · trò nổi bật · nhóm trò có bìa lớn.
   Màn chơi: điểm bay, chuỗi nóng, đếm ngược 3-2-1, kết quả có sao + XP. Cùng kính sáng của Góc học tập (html.gb). */
.dash-main { --tc-glass: linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 45%), rgba(255, 255, 255, .62);
  --tc-line: rgba(255, 255, 255, .8); --tc-ink: #16201A; --tc-mute: #4A5650; --tc-green: #3A4A32; --tc-gl: #86A3BB; --tc-navy: #2F4A62;
  --tc-gold: #E9B53B; --tc-orange: #E0703A; --tc-ok: #3F7D4E; --tc-bad: #B4413B; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc-glass, .gm-prof > *, .gm-deck, .gm-grp-h { background: var(--tc-glass); -webkit-backdrop-filter: blur(22px) saturate(1.3) brightness(1.1); backdrop-filter: blur(22px) saturate(1.3) brightness(1.1);
  border: 1px solid var(--tc-line); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 24px rgba(20, 40, 30, .12); color: var(--tc-ink); }

/* ---------- sảnh ---------- */
.dash-main .gm-hub:not([hidden]) { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.gm-prof { display: grid; grid-template-columns: 1.15fr .8fr 1.5fr; gap: 12px; }
.gm-prof > * { padding: 14px 16px; }
.gm-lv { display: flex; align-items: center; gap: 14px; }
.gm-lv-n { display: grid; place-items: center; flex: none; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #A9C1D4, var(--tc-navy)); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 0 0 3px rgba(255, 255, 255, .8); line-height: 1; }
.gm-lv-n small { font: 700 10px/1 "Be Vietnam Pro", sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 8px; }
.gm-lv-n b { font: 800 24px/1 "Unbounded", "Be Vietnam Pro", sans-serif; margin-top: -8px; }
.gm-lv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gm-lv-t > b { font: 700 18px/1.2 "Lora", serif; }
.gm-lv-t > span { font-size: 12.5px; color: var(--tc-mute); }
.gm-xpbar { height: 10px; border-radius: 99px; background: rgba(47, 74, 98, .14); overflow: hidden; }
.gm-xpbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tc-gl), var(--tc-navy)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.gm-streak { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; }
.gm-streak svg { grid-row: span 2; width: 36px; height: 36px; fill: #C9C2B2; }
.gm-streak.on svg { fill: var(--tc-orange); filter: drop-shadow(0 2px 6px rgba(224, 112, 58, .45)); }
.gm-streak b { font: 800 24px/1 "Unbounded", sans-serif; }
.gm-streak span { font-size: 12.5px; line-height: 1.35; color: var(--tc-mute); }
.gm-quests h3 { font: 700 12px/1 "Be Vietnam Pro", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--tc-mute); margin-bottom: 8px; }
.gm-quest { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13.5px; font-weight: 600; }
.gm-quest + .gm-quest { margin-top: 7px; }
.gm-quest small { font-size: 11.5px; color: var(--tc-mute); font-weight: 600; }
.gm-qbar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.gm-qbar i { display: block; height: 100%; background: var(--tc-gold); border-radius: inherit; }
.gm-quest.done span { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .35); color: var(--tc-mute); }
.gm-quest.done .gm-qbar i { background: var(--tc-ok); }

.gm-deck { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.gm-deck-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.gm-deck-h b { font: 700 17px/1.2 "Lora", serif; }
.gm-deck-h span { font-size: 12.5px; color: var(--tc-mute); }
.gm-deck-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gm-seg { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .08); }
.gm-seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: none; color: var(--tc-ink); font: 600 13.5px "Be Vietnam Pro", sans-serif; cursor: pointer; }
.gm-seg button.on { background: var(--tc-navy); color: #fff; box-shadow: 0 2px 6px rgba(47, 74, 98, .3); }
.gm-sel select { min-height: 40px; max-width: 260px; padding: 0 30px 0 12px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px; background: rgba(255, 255, 255, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316201A' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 9px center / 14px no-repeat;
  -webkit-appearance: none; appearance: none; color: var(--tc-ink); font: 600 13.5px "Be Vietnam Pro", sans-serif; cursor: pointer; }
.gm-deck-n { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: rgba(47, 74, 98, .1); font: 700 12.5px "Be Vietnam Pro", sans-serif; color: var(--tc-navy); }
.gm-deck .gm-note { margin: 0; font-size: 12.5px; color: #8A4A1F; }

/* trò nổi bật */
.gm-feat { position: relative; display: block; width: 100%; min-height: 300px; padding: 0; border: 1px solid var(--tc-line); border-radius: 16px; overflow: hidden; cursor: pointer; text-align: left; color: #fff;
  box-shadow: 0 14px 34px rgba(20, 40, 30, .22); background: #2D3A2A; font: inherit; }
.gm-feat > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.gm-feat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 22, 16, .82) 0%, rgba(14, 22, 16, .55) 38%, rgba(14, 22, 16, 0) 68%); }
.gm-feat:hover > img, .gm-feat:focus-visible > img { transform: scale(1.04); }
.gm-feat-t { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; max-width: 440px; padding: 28px 30px; min-height: 300px; justify-content: flex-end; }
.gm-feat h2 { font: 700 clamp(28px, 3.4vw, 40px)/1.05 "Lora", serif !important; color: #fff !important; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.gm-feat p { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .92) !important; }
.gm-feat-f { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.gm-feat .gm-btn { pointer-events: none; }
.gm-new { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: var(--tc-orange); color: #fff; font: 700 11px/1 "Be Vietnam Pro", sans-serif; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }

/* nhóm + thẻ trò */
.gm-grp { display: flex; flex-direction: column; gap: 10px; }
.gm-grp-h { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; align-self: flex-start; padding: 8px 14px; }
.gm-grp-h h2 { font: 700 20px/1.2 "Lora", serif; }
.gm-grp-h span { font-size: 12.5px; color: var(--tc-mute); }
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
html .dash-main .gm-grid .gm-card { display: flex !important; flex-direction: column; gap: 0; padding: 0 !important; overflow: hidden; text-align: left; cursor: pointer; transition: transform .18s, box-shadow .18s; }
html .dash-main .gm-grid .gm-card:hover, html .dash-main .gm-grid .gm-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 40, 30, .2) !important; outline: none; }
html .dash-main .gm-grid .gm-cover { position: relative; display: block; aspect-ratio: 16 / 10; margin: 0 !important; border: 0 !important; border-radius: 0 !important; overflow: hidden; background: #B9C6B0; }
html .dash-main .gm-grid .gm-cover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.gm-grid .gm-card:hover .gm-cover img { transform: scale(1.05); }
.gm-cover .gm-new { position: absolute; top: 10px; left: 10px; }
.gm-card-b { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
html .dash-main .gm-grid .gm-card h3 { min-height: 0 !important; font: 700 17px/1.25 "Lora", serif; color: var(--tc-ink); }
.gm-card-b p { font-size: 13px; line-height: 1.45; color: var(--tc-mute); }
.gm-card-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.gm-best { font: 700 12px "Be Vietnam Pro", sans-serif; color: var(--tc-navy); }
.gm-best.lt { color: rgba(255, 255, 255, .92); }
.gm-stars-s { display: inline-flex; gap: 2px; }
.gm-stars-s i, .gm-res-stars i { display: block; width: 16px; height: 16px; background: rgba(0, 0, 0, .16);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.gm-stars-s.lt i { background: rgba(255, 255, 255, .35); }
.gm-stars-s i.on, .gm-res-stars i.on { background: var(--tc-gold); }

/* ---------- khung chơi ---------- */
.dash-main .gm-stage { max-width: 860px; margin: 0 auto 40px; }
.dash-main .gm-bar { position: sticky; top: 8px; z-index: 5; flex-wrap: nowrap; padding: 8px 10px; border-radius: 14px; background: var(--tc-glass); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); border: 1px solid var(--tc-line); box-shadow: 0 8px 22px rgba(20, 40, 30, .14); }
.dash-main .gm-back { min-height: 40px; border: 0 !important; border-radius: 10px; background: rgba(255, 255, 255, .7) !important; box-shadow: none !important; font-weight: 700; white-space: nowrap; }
.dash-main .gm-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 19px/1.2 "Lora", serif !important; }
.dash-main .gm-stats { flex-wrap: nowrap; gap: 6px; }
.dash-main .gm-stat { min-width: 58px; padding: 4px 10px; border: 0 !important; border-radius: 10px; background: rgba(255, 255, 255, .72) !important; transition: background .2s, transform .2s; }
.dash-main .gm-stat b { font: 800 16px/1.15 "Be Vietnam Pro", sans-serif; font-variant-numeric: tabular-nums; }
.dash-main .gm-stat small { font-size: 9.5px; }
.gm-stat.hot { background: linear-gradient(135deg, #FFE1B8, #FFC58A) !important; }
.gm-stat.hot b { color: #A2400F; }
.gm-pulse-ok { animation: gm-pulse .4s; }
@keyframes gm-pulse { 40% { transform: scale(1.12); } }
.gm-mute { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .7); color: var(--tc-ink); cursor: pointer; }
.gm-mute svg { width: 20px; height: 20px; }

/* thẻ câu hỏi + đáp án to, kiểu game */
html .dash-main .gm-q { border: 0 !important; border-radius: 14px; background: rgba(255, 255, 255, .78) !important; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .06); transition: background .2s; }
html .dash-main .gm-q .w { font-family: "Lora", serif !important; font-weight: 700 !important; }
html .dash-main .gm-q.ok { background: #DCEBD9 !important; }
html .dash-main .gm-q.bad { background: #F6D4C4 !important; }
html .dash-main .gm-opt { position: relative; min-height: 62px; border: 0 !important; border-radius: 14px; background: #fff !important; box-shadow: 0 4px 0 rgba(47, 74, 98, .22), 0 6px 14px rgba(20, 40, 30, .08) !important; font-size: 15.5px; transition: transform .08s, box-shadow .08s; }
html .dash-main .gm-opt:hover:not(:disabled) { transform: translateY(-2px); }
html .dash-main .gm-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(47, 74, 98, .22) !important; }
html .dash-main .gm-opt.ok { background: #DCEBD9 !important; box-shadow: 0 4px 0 var(--tc-ok) !important; }
html .dash-main .gm-opt.bad { background: #F6D4C4 !important; box-shadow: 0 4px 0 var(--tc-bad) !important; animation: gm-shake .3s; }
.gm-opt kbd { position: absolute; top: 6px; left: 8px; font: 700 10.5px "Be Vietnam Pro", sans-serif; color: rgba(0, 0, 0, .35); }
html .dash-main .gm-time { height: 10px; border: 0 !important; background: rgba(0, 0, 0, .1) !important; }
html .dash-main .gm-time i { background: linear-gradient(90deg, var(--tc-gl), var(--tc-navy)) !important; border-radius: inherit; }
html .dash-main .gm-time.warn i { background: var(--tc-gold) !important; }
html .dash-main .gm-time.low i { background: var(--tc-bad) !important; }
html .dash-main .gm-time.frozen i { background: repeating-linear-gradient(45deg, #9FC6E4 0 8px, #CFE5F4 8px 16px) !important; }

/* hiệu ứng */
.gm-float { position: fixed; z-index: 9999; transform: translate(-50%, 0); pointer-events: none; font: 800 18px "Be Vietnam Pro", sans-serif; color: var(--tc-ok); text-shadow: 0 1px 0 #fff, 0 0 8px rgba(255, 255, 255, .9); animation: gm-up .95s ease-out forwards; white-space: nowrap; }
.gm-float.bad { color: var(--tc-bad); }
.gm-float.combo { color: var(--tc-orange); font-size: 20px; }
.gm-float.dmg { font-size: 26px; color: #fff; text-shadow: 0 2px 0 #7A2A1F, 0 0 10px rgba(0, 0, 0, .4); }
.gm-float.crit { font-size: 30px; color: #FFD45C; text-shadow: 0 2px 0 #8A3A0F, 0 0 14px rgba(0, 0, 0, .45); }
@keyframes gm-up { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1.12); } 100% { opacity: 0; transform: translate(-50%, -54px) scale(1); } }
.gm-shk { animation: gm-shake .32s; }
.gm-confetti { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
.gm-intro, .gm-arena, .gm-result { position: relative; }
.gm-countin { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; border-radius: inherit; background: rgba(22, 32, 26, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gm-countin b { font: 800 clamp(64px, 14vw, 120px)/1 "Unbounded", sans-serif; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .4); animation: gm-pop .55s cubic-bezier(.2, 1.6, .4, 1); }
.gm-countin b.go { font-size: clamp(36px, 8vw, 64px); color: #FFD45C; }
@keyframes gm-pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* màn giới thiệu */
.dash-main .gm-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; overflow: hidden; }
.gm-intro-art { margin: calc(-1 * clamp(18px, 3vw, 28px)) 0 calc(-1 * clamp(18px, 3vw, 28px)) calc(-1 * clamp(18px, 3vw, 28px)); align-self: stretch; min-height: 260px; }
.gm-intro-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gm-intro-t h2 { font: 700 30px/1.15 "Lora", serif !important; }
.gm-deckline { margin: 10px 0 2px; padding: 8px 12px; border-radius: 10px; background: rgba(47, 74, 98, .08); font-size: 13.5px; }
.gm-deckline a { color: var(--tc-navy); font-weight: 700; }
.gm-how { margin: 10px 0 14px; }
.gm-how summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--tc-navy); }
.gm-how .gm-rules { margin: 8px 0 0; font-size: 14px; }
.gm-intro .gm-lbl { min-width: 0; }
.gm-btn.gm-play { min-height: 52px; padding: 0 30px; font-size: 16.5px; }

/* màn kết quả */
.dash-main .gm-result { text-align: center; overflow: hidden; }
.gm-res-hero { position: relative; height: 170px; margin: calc(-1 * clamp(18px, 3vw, 28px)) calc(-1 * clamp(18px, 3vw, 28px)) 12px; overflow: hidden; }
.gm-res-hero img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95); }
.gm-res-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .75)); }
.gm-res-stars { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 1; display: flex; justify-content: center; align-items: flex-end; gap: 6px; }
.gm-res-stars { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.gm-res-stars i { width: 62px; height: 62px; background: rgba(255, 255, 255, .8); }
.gm-res-stars i:nth-child(2) { width: 82px; height: 82px; }
.gm-res-stars i.on { animation: gm-star .5s cubic-bezier(.2, 1.7, .4, 1) both; animation-delay: var(--d); }
@keyframes gm-star { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }
.dash-main .gm-result .gm-big { font: 800 clamp(44px, 9vw, 64px)/1 "Unbounded", sans-serif !important; font-variant-numeric: tabular-nums; margin-top: 6px; }
.gm-big-l { font-size: 13px; font-weight: 700; color: var(--tc-mute); text-transform: uppercase; letter-spacing: .08em; }
.gm-xp-res { max-width: 420px; margin: 14px auto 4px; padding: 12px 14px; border-radius: 12px; background: rgba(47, 74, 98, .08); text-align: left; }
.gm-xp-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.gm-xp-row b { font: 800 18px "Be Vietnam Pro", sans-serif; color: var(--tc-navy); }
.gm-xp-row span { font-size: 12.5px; color: var(--tc-mute); }
.gm-lvup, .gm-qdone { margin-top: 8px; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 700; }
.gm-lvup { background: linear-gradient(135deg, #FFE1B8, #FFC58A); color: #8A3A0F; text-align: center; font-size: 15px; }
.gm-qdone { background: #DCEBD9; color: #2C5A37; }
.gm-res-act { justify-content: center; }
.gm-review ul { list-style: none; padding: 0; }
.gm-review li { display: flex; align-items: center; gap: 8px; text-align: left; }
.gm-say { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(47, 74, 98, .1); color: var(--tc-navy); cursor: pointer; }
.gm-say svg { width: 16px; height: 16px; }

/* Ghép cặp */
.gm-sb { justify-content: space-between; margin-bottom: 12px; }
.gm-dots { display: inline-flex; gap: 5px; }
.gm-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, .14); }
.gm-dots i.on { background: var(--tc-ok); }
.gm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gm-tile { min-height: 84px; padding: 8px; border: 0; border-radius: 14px; background: #fff; color: var(--tc-ink); font: 600 14.5px/1.3 "Be Vietnam Pro", sans-serif; cursor: pointer; word-break: break-word;
  box-shadow: 0 4px 0 rgba(47, 74, 98, .2), 0 6px 14px rgba(20, 40, 30, .08); transition: transform .12s, box-shadow .12s, opacity .25s; -webkit-tap-highlight-color: transparent; }
.gm-tile.en { font: 700 16px/1.2 "Lora", serif; background: #F3F7FA; }
.gm-tile.sel { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--tc-navy), 0 8px 18px rgba(47, 74, 98, .3); }
.gm-tile.ok { background: #DCEBD9; box-shadow: 0 0 0 3px var(--tc-ok); animation: gm-pulse .3s; }
.gm-tile.bad { background: #F6D4C4; box-shadow: 0 0 0 3px var(--tc-bad); animation: gm-shake .3s; }
.gm-tile.gone { opacity: 0; transform: scale(.7); pointer-events: none; }

/* Đấu trùm */
.gm-boss { --boss: #86A3BB; display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; margin-bottom: 12px; }
.gm-boss-art { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 3px var(--boss), 0 10px 24px rgba(0, 0, 0, .2); }
.gm-boss-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; transition: filter .3s, transform .3s; }
.gm-boss-fx { position: absolute; left: 50%; top: 35%; }
.gm-boss.hit .gm-boss-art { animation: gm-hit .35s; }
.gm-boss.hit .gm-boss-art img { animation: gm-flash .35s; }
@keyframes gm-hit { 20% { transform: translate(-6px, 2px) rotate(-2deg); } 50% { transform: translate(5px, -2px) rotate(2deg); } }
@keyframes gm-flash { 30% { filter: brightness(1.8) saturate(.3); } }
.gm-boss.dead .gm-boss-art img { filter: grayscale(1) brightness(.7); transform: scale(.9); }
.gm-boss.enter .gm-boss-art { animation: gm-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.gm-boss-info small { font: 700 11.5px "Be Vietnam Pro", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--tc-mute); }
.gm-boss-info > b { display: block; font: 700 22px/1.2 "Lora", serif; margin: 2px 0 8px; }
.gm-hp { position: relative; height: 22px; border-radius: 99px; background: rgba(0, 0, 0, .14); overflow: hidden; }
.gm-hp i { display: block; height: 100%; background: linear-gradient(90deg, #C2492F, #E58A3A); border-radius: inherit; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.gm-hp span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px "Be Vietnam Pro", sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.gm-me { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.gm-coin { display: inline-flex; align-items: center; gap: 6px; font: 700 14px "Be Vietnam Pro", sans-serif; }
.gm-coin i { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFE58A, #D49A1E); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }
.gm-arena.hurt { animation: gm-hurt .45s; }
@keyframes gm-hurt { 0%, 100% { box-shadow: none; } 30% { box-shadow: inset 0 0 0 4px rgba(180, 65, 59, .7), inset 0 0 40px rgba(180, 65, 59, .35); } }
.gm-q.listen { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gm-listen { display: grid; place-items: center; width: 68px; height: 68px; border: 0; border-radius: 50%; background: var(--tc-navy); color: #fff; cursor: pointer; box-shadow: 0 4px 0 #1C3044; }
.gm-listen svg { width: 30px; height: 30px; }
.gm-power { display: flex; gap: 8px; margin-top: 14px; }
.gm-pw { flex: 1; min-height: 50px; padding: 4px 8px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .85); color: var(--tc-ink); font: 700 13px/1.2 "Be Vietnam Pro", sans-serif; cursor: pointer; box-shadow: 0 3px 0 rgba(212, 154, 30, .55); }
.gm-pw small { display: block; font-size: 11px; font-weight: 600; color: #8A6410; }
.gm-pw:disabled { opacity: .45; cursor: default; box-shadow: none; }
.gm-bossdown { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; background: #DCEBD9; text-align: center; animation: gm-pop .5s; }
.gm-bossdown b { font: 700 22px "Lora", serif; }

/* ---------- điện thoại ---------- */
@media (max-width: 900px) {
  .gm-prof { grid-template-columns: 1fr 1fr; }
  .gm-quests { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .gm-prof { grid-template-columns: 1fr; gap: 8px; }
  .gm-prof > * { padding: 12px 14px; }
  .gm-lv-n { width: 52px; height: 52px; }
  .gm-streak { grid-template-columns: auto auto 1fr; grid-template-rows: auto; }
  .gm-streak svg { grid-row: auto; width: 28px; height: 28px; }
  .gm-seg { width: 100%; }
  .gm-seg button { flex: 1; padding: 0 6px; font-size: 12.5px; }
  .gm-sel { flex: 1 1 140px; } .gm-sel select { width: 100%; max-width: none; font-size: 16px; }
  .gm-feat, .gm-feat-t { min-height: 340px; }
  .gm-feat::after { background: linear-gradient(0deg, rgba(14, 22, 16, .88) 0%, rgba(14, 22, 16, .55) 45%, rgba(14, 22, 16, 0) 75%); }
  .gm-feat-t { padding: 18px; }
  .gm-feat p { font-size: 13.5px; }
  .gm-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gm-card-b { padding: 9px 10px 11px; }
  html .dash-main .gm-grid .gm-card h3 { font-size: 15px; }
  .gm-card-b p { display: none; }
  .gm-card-f { flex-direction: column; align-items: flex-start; gap: 3px; padding-top: 4px; }
  .dash-main .gm-bar { top: 4px; gap: 6px; padding: 6px; }
  .dash-main .gm-back span, .dash-main .gm-title { display: none; }
  .dash-main .gm-stats { flex: 1; justify-content: flex-end; }
  .dash-main .gm-stat { min-width: 0; flex: 1; max-width: 92px; padding: 4px 6px; }
  .dash-main .gm-intro { grid-template-columns: 1fr; gap: 14px; }
  .gm-intro-art { margin: calc(-1 * clamp(18px, 3vw, 28px)) calc(-1 * clamp(18px, 3vw, 28px)) 0; min-height: 0; aspect-ratio: 16 / 9; }
  .gm-intro-t h2 { font-size: 25px !important; }
  .gm-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gm-tile { min-height: 74px; font-size: 13.5px; padding: 6px; }
  .gm-tile.en { font-size: 15px; }
  .gm-boss { grid-template-columns: 96px 1fr; gap: 12px; }
  .gm-boss-info > b { font-size: 17px; }
  html .dash-main .gm-opts { gap: 8px; }
  html .dash-main .gm-opt { min-height: 58px; font-size: 14.5px; }
  .gm-pw { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-float, .gm-countin b, .gm-res-stars i.on, .gm-tile, .gm-boss-art, .gm-boss-art img, .gm-arena.hurt { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) { html .dash-main .gm-arena .gm-opts, html .dash-main .gm-stage .gm-opts { grid-template-columns: 1fr 1fr !important; } }

/* ---------- nền tối (html.gb-toi): kính tối, chữ kem ---------- */
html.gb.gb-toi .dash-main { --tc-glass: rgba(20, 28, 18, .78); --tc-line: rgba(255, 255, 255, .13); --tc-ink: #EEEBE2; --tc-mute: #C9C4B5; --tc-navy: #A9C1D4; }
html.gb.gb-toi .dash-main :is(.gm-prof > *, .gm-deck, .gm-grp-h, .gm-bar) { box-shadow: 0 4px 16px rgba(0, 0, 0, .28); }
html.gb.gb-toi .dash-main :is(.gm-back, .gm-stat, .gm-mute, .gm-seg, .gm-sel select, .gm-pw) { background-color: rgba(255, 255, 255, .1) !important; color: #EEEBE2 !important; border-color: rgba(255, 255, 255, .16) !important; }
html.gb.gb-toi .dash-main .gm-seg button { color: #EEEBE2; }
html.gb.gb-toi .dash-main .gm-seg button.on:not(#hz) { background: #A9C1D4 !important; color: #16201A !important; }
html.gb.gb-toi .dash-main :is(.gm-q, .gm-opt, .gm-tile) { background: rgba(255, 255, 255, .1) !important; color: #EEEBE2 !important; }
html.gb.gb-toi .dash-main .gm-tile.en { background: rgba(169, 193, 212, .16) !important; }
html.gb.gb-toi .dash-main :is(.gm-opt.ok, .gm-tile.ok, .gm-q.ok) { background: rgba(111, 160, 126, .35) !important; }
html.gb.gb-toi .dash-main :is(.gm-opt.bad, .gm-tile.bad, .gm-q.bad) { background: rgba(196, 90, 80, .35) !important; }
html.gb.gb-toi .dash-main :is(.gm-card h3, .gm-stat b, .gm-title, .gm-boss-info > b, .gm-coin, .gm-lv-t > b, .gm-deck-h b, .gm-grp-h h2, .gm-intro-t h2, .gm-result h2, .gm-big) { color: #EEEBE2 !important; }
html.gb.gb-toi .dash-main :is(.gm-deck-n, .gm-deckline, .gm-xp-res, .gm-say) { background: rgba(255, 255, 255, .08); color: #EEEBE2; }
html.gb.gb-toi .dash-main .gm-res-hero::after { background: linear-gradient(180deg, rgba(20, 28, 18, 0) 30%, rgba(20, 28, 18, .8)); }
html.gb.gb-toi .gm-float { text-shadow: 0 1px 0 #000, 0 0 8px rgba(0, 0, 0, .8); }
html .dash-main .gm-feat :is(h2, p):not(#hz):not(#hz) { color: #fff !important; -webkit-text-fill-color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45) !important; }
html .dash-main .gm-feat p:not(#hz):not(#hz) { color: rgba(255, 255, 255, .92) !important; -webkit-text-fill-color: rgba(255, 255, 255, .92); }
html .dash-main .gm-hub :is(.gm-grp, .gm-prof):not(#hz) { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* đang chơi: ẩn khối đầu mục (các lớp kính khác ép display:flex lên [hidden]) */
html .dash-main #gmHead[hidden]:not(#hz):not(#hz) { display: none !important; }

/* nền tối: các ô có nền sáng riêng trong game (kỷ lục, nhiệm vụ xong, lên cấp, banner, ô số liệu…) chuyển sang nền tối trong suốt, chữ kem
   (thanh-tren.js gắn .gt-sang ép chữ kem cho mọi chữ tối, nên ô nào còn nền sáng sẽ mất chữ) */
html.gb.gb-toi .dash-main :is(.gm-record, .gm-banner, .gm-cells > div, .gm-levelup, .gm-key):not(#hz):not(#hz) { background: rgba(233, 181, 59, .2) !important; border-color: rgba(233, 181, 59, .45) !important; color: #F3E3B5 !important; }
html.gb.gb-toi .dash-main .gm-cells > div:not(#hz):not(#hz) { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .16) !important; color: #EEEBE2 !important; }
html.gb.gb-toi .dash-main :is(.gm-qdone, .gm-bossdown):not(#hz):not(#hz) { background: rgba(111, 160, 126, .28) !important; color: #CFE8D3 !important; }
html.gb.gb-toi .dash-main :is(.gm-lvup, .gm-stat.hot, .gm-banner.bad):not(#hz):not(#hz) { background: rgba(224, 112, 58, .3) !important; color: #FFD9BF !important; }
html.gb.gb-toi .dash-main :is(.gm-record, .gm-banner, .gm-cells > div, .gm-levelup, .gm-key, .gm-qdone, .gm-bossdown, .gm-lvup, .gm-stat.hot, .gm-banner.bad) *:not(#hz):not(#hz) { color: inherit !important; }
/* 04/11: khung thư (Điền đoạn văn), giải thích, manh mối (Giải mã từ) vẽ lại mỗi lượt – trước đây nền kem rồi chữ tối trên kính tối ~2 giây chờ kinh-oq.js */
html.gb.gb-toi .dash-main :is(.gm-mail, .gm-explain > div, .gm-clues > div):not(#hz):not(#hz) { background: rgba(20, 28, 18, .76) !important; border-color: rgba(255, 255, 255, .16) !important; color: #EEEBE2 !important; transition: none !important; }
html.gb.gb-toi .dash-main .gm-explain > div.ok:not(#hz):not(#hz) { background: rgba(111, 160, 126, .26) !important; }
html.gb.gb-toi .dash-main .gm-explain > div.bad:not(#hz):not(#hz) { background: rgba(196, 90, 80, .26) !important; }
html.gb.gb-toi .dash-main :is(.gm-mail, .gm-explain > div, .gm-clues > div) :not(input):not(button):not(button *):not(#hz):not(#hz) { color: inherit !important; }
html.gb.gb-toi .dash-main .gm-mail-head:not(#hz):not(#hz) { border-color: rgba(255, 255, 255, .3) !important; }
/* ô chữ + bàn phím Giải mã từ: nền sáng (kem, xám, vàng, xanh lá) nên chữ đậm – trước đây chữ trắng thừa hưởng từ khung tối */
html.gb.gb-toi .dash-main :is(.gm-cell, .gm-kb button):not(#hz):not(#hz), html.gb.gb-toi .dash-main :is(.gm-cell, .gm-kb button) *:not(#hz):not(#hz) { color: #16201A !important; }
html.gb.gb-toi .dash-main .gm-fb.ok:not(#hz):not(#hz) { color: #9FD3AA !important; }
html.gb.gb-toi .dash-main .gm-fb.bad:not(#hz):not(#hz), html.gb.gb-toi .gm-float.bad { color: #FF9C8C !important; }

/* (04/11: khối trang Kỹ năng dưới đây trước viết thẳng vào goc-2.css, chuyển về tệp nguồn để công cụ gộp không bỏ mất) */
/* ===== Trang Kỹ năng (04/11): biểu tượng nét màu rừng thay emoji, một màu nền ô cho đồng bộ các trang khác ===== */
body .dash-wrap .dash-shelf-item .dash-shelf-ic, body .dash-wrap .dash-course-ic { display: grid; place-items: center; background: #ECEEDF !important; color: #3A4A32; }
body .dash-wrap .dash-shelf-ic svg { width: 30px; height: 30px; }
body .dash-wrap .dash-course-ic svg { width: 26px; height: 26px; }
body .dash-wrap .dash-shelf-item:hover .dash-shelf-ic { transform: translateY(-2px); background: #3A4A32 !important; color: #F6F1E4; }
body .dash-wrap .dash-course:hover .dash-course-ic { background: #3A4A32 !important; color: #F6F1E4; }
body .dash-wrap .dash-shelf-ic, body .dash-wrap .dash-course-ic { transition: transform .2s, background-color .2s, color .2s; }
@media (max-width: 700px) {
  body .dash-wrap .dash-courses .dash-course { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: start; min-height: 0; padding: 14px; }
  body .dash-wrap .dash-courses .dash-course > .dash-course-ic { grid-column: 1; grid-row: 1 / span 3; width: 48px; height: 48px; margin: 0; }
  body .dash-wrap .dash-courses .dash-course > .dash-course-ic svg { width: 22px; height: 22px; }
  body .dash-wrap .dash-courses .dash-course > .dash-ring { grid-column: 3; grid-row: 1; position: relative; inset: auto; width: 40px; height: 40px; font-size: 11px; margin: 0; }
  body .dash-wrap .dash-courses .dash-course > :is(h3, small, p, em, .dash-mini-mail) { grid-column: 2; margin: 0; }
  body .dash-wrap .dash-courses .dash-course > h3 { grid-row: 1; align-self: center; }
  body .dash-wrap .dash-courses .dash-course > .dash-mini-mail { grid-column: 2 / -1; margin-top: 8px; }
}
/* góp ý GPT 04/11 cho trang Kỹ năng: thẻ không kéo cao bằng nhau, chữ mô tả đậm hơn, dải mục con một hàng cuộn ngang trên điện thoại */
body .dash-wrap .dash-courses.writing, body .dash-wrap .dash-courses.speaking, body .dash-wrap .dash-courses.listening { align-items: start; }
body .dash-wrap .dash-courses .dash-course > p { color: #3F3D36; opacity: 1; }
body .dash-wrap .dash-courses .dash-course > small { color: #4E4A40; opacity: 1; }
@media (max-width: 700px) {
  body:is([data-tab^="skill-"], [data-tab="toeic-dictation"]) .dash-wrap .dash-subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body:is([data-tab^="skill-"], [data-tab="toeic-dictation"]) .dash-wrap .dash-subnav a { flex: none; }
}

/* ===== 18/11/2026: câu trắc nghiệm có tranh → tranh trái, phương án phải (như đề thi); nút nghe từng câu = nút loa nổi ===== */
.bl-mc-hang { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 18px; align-items: center; margin: 4px 0 6px; }
.bl-mc-hang .bl-img-cau { width: 100%; max-width: 100%; max-height: 260px; object-fit: contain; margin: 0; border-radius: 10px; background: #fff; }
.bl-mc-hang .bl-opt { margin-left: 0; padding: 6px 10px; border: 1px solid var(--bl-line, #ddd); border-radius: 10px; background: #fff; }
.bl-mc-hang .bl-opt.on { border-color: var(--bl-c); background: var(--bl-c2); }
.bl-mc-pa { display: flex; flex-direction: column; gap: 6px; }
.bl-seg { width: 34px; height: 34px; margin-left: 8px; border: 0; background: var(--bl-c, #5B6E3A); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 4px 10px -3px rgba(0,0,0,.35); transition: transform .12s, box-shadow .12s; }
.bl-seg svg { width: 18px; height: 18px; }
.bl-seg:hover { background: var(--bl-c, #5B6E3A); transform: translateY(-1px) scale(1.06); box-shadow: 0 6px 14px -4px rgba(0,0,0,.4); }
.bl-seg:active { transform: scale(.96); }
@media (max-width: 640px) {
  .bl-mc-hang { grid-template-columns: 1fr; gap: 10px; }
  .bl-mc-hang .bl-img-cau { max-height: 240px; }
}
@media print { .bl-seg { display: none; } .bl-mc-hang { grid-template-columns: 240px 1fr; } }
/* 18/11/2026: ảnh cả trang chiếu (bài tham khảo Pre TOEIC) – trải rộng dưới phần chữ, bấm mở ảnh lớn (chủ trung tâm: "không thấy hình gì luôn") */
.bl-body.has-img:has(.bl-img-trang) { display: flex; flex-direction: column-reverse; gap: 14px; }
.bl-body.has-img:has(.bl-img-trang) .bl-side { order: 0; width: 100%; }
.bl-img-trang { width: 100%; max-width: 100%; border: 1px solid var(--bl-line, #ddd); border-radius: 10px; cursor: zoom-in; box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); }
/* 18/11/2026 (chủ trung tâm: "giải thích nào quan trọng… đổi màu chữ đỏ, hoặc highlight", "quét chữ bất kỳ có thể dịch được như trang học tập"):
   lời giải – **đậm** = chữ đỏ trọng tâm, ==…== = tô nền vàng; nút "Tra" + thẻ nghĩa (tra-tu.js) nổi trên màn làm bài (.bl z-index 2100) */
.bl-giai b { color: #B42318; font-weight: 800; }
.bl-hl { background: linear-gradient(transparent 12%, #FFE58A 12%, #FFE58A 88%, transparent 88%); color: inherit; padding: 0 2px; border-radius: 3px; }
/* 22/11/2026: khối lý thuyết chữ thật (phần.ly) thay ảnh chụp trang chiếu — theo khuôn phiếu "MẤT GỐC – BUỔI 1" của trung tâm:
   bảng kẻ mảnh có hàng đầu tô màu, chữ gạch chân, chú thích đỏ dưới từ, nhãn Subject / Verb / Object màu. */
.bl-ly { margin: 8px 0 14px; color: var(--bl-ink); }
.bl-ly-tieu { margin: 16px 0 6px; font: 800 15.5px/1.4 "Be Vietnam Pro", system-ui, sans-serif; color: var(--bl-c); }
.bl-ly-p { margin: 8px 0; font-size: 15px; line-height: 1.65; }
.bl-ly b { font-weight: 800; }
.bl-ly u { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.bl-ly-do { color: #C8372D; font-weight: 700; }
.bl-ly-ds { margin: 6px 0 10px; padding-left: 22px; font-size: 15px; line-height: 1.6; }
.bl-ly-ds li { margin: 3px 0; }
.bl-ly-ds li::marker { color: var(--bl-c); }
.bl-ly-luu { margin: 10px 0; padding: 10px 14px; border-left: 4px solid var(--bl-gold); border-radius: 0 6px 6px 0; background: #FBF4E2; font-size: 14.5px; line-height: 1.6; }
.bl-ly-luu p { margin: 4px 0; }
.bl-ly-bw { overflow-x: auto; margin: 10px 0 14px; -webkit-overflow-scrolling: touch; }
.bl-ly-bang { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; background: #fff; }
.bl-ly-bang th, .bl-ly-bang td { border: 1px solid #B9B4A6; padding: 7px 10px; text-align: center; vertical-align: middle; }
.bl-ly-bang thead th { background: var(--bl-c); color: #fff; font-weight: 700; }
.bl-ly-bang tbody th { background: var(--bl-c2); font-weight: 700; }
.bl-ly-bang.cot1 td:first-child { background: var(--bl-c2); font-weight: 700; text-align: left; white-space: nowrap; }
.bl-ly-bang td.trai, .bl-ly-bang.trai td { text-align: left; }
.bl-ly-nhan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; font-size: 15px; }
.bl-ly-truoc { font-weight: 700; margin-right: 4px; }
.bl-ly-tag { display: inline-block; padding: 5px 14px; border-radius: 4px; color: #fff; font-weight: 800; letter-spacing: .02em; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bl-ly-tag.m-luc { background: #2F6B3A; } .bl-ly-tag.m-do { background: #D2392B; } .bl-ly-tag.m-lam { background: #3D72C4; }
.bl-ly-tag.m-vang { background: #D9A23A; } .bl-ly-tag.m-tim { background: #7B5BA8; } .bl-ly-tag.m-xam { background: #6B675E; }
.bl-ly-cong { font-weight: 800; color: var(--bl-mute); }
.bl-ly-vd { margin: 10px 0; font-size: 15px; line-height: 1.5; }
.bl-ly-w { display: inline-flex; flex-direction: column; align-items: center; vertical-align: top; }
.bl-ly-w small { width: max-content; max-width: 7.5em; margin-top: 2px; font-size: 12px; font-weight: 700; color: #C8372D; line-height: 1.2; text-align: center; }
.bl-ly-cot { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 6px 22px; }
.bl-ly-tranh { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 12px 0; }
.bl-ly-tranh figure { margin: 0; text-align: center; }
.bl-ly-tranh img { width: 100%; max-height: 190px; object-fit: contain; border-radius: 6px; }
.bl-ly-tranh figcaption { margin-top: 6px; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 640px) { .bl-ly-cot { grid-template-columns: 1fr; } .bl-ly-bang { font-size: 12.5px; line-height: 1.4; } .bl-ly-bang th, .bl-ly-bang td { padding: 5px 4px; overflow-wrap: anywhere; } .bl-ly-p, .bl-ly-ds, .bl-ly-vd { font-size: 14.5px; } .bl-ly-bang.cot1 td:first-child { white-space: normal; } }
@media print { .bl-ly-bw { overflow: visible; } .bl-ly-bang thead th, .bl-ly-bang tbody th, .bl-ly-bang.cot1 td:first-child, .bl-ly-luu { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .bl-ly-bang tr, .bl-ly-nhan, .bl-ly-vd { break-inside: avoid; } }
body .tra-btn { z-index: 2300; }
body .t-dict { z-index: 2290; }
