/* ===== Trang bài học + bìa học liệu (lessons.js) — cùng hệ giao diện Góc học tập (Quicksand, thẻ bo 16–24px) ===== */
@keyframes lcUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --- bìa: màu + biểu tượng + nhãn, cùng kiểu bìa Part --- */
.lc-cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; aspect-ratio: 4 / 3; padding: 10px 12px; border-radius: 6px 14px 14px 6px; color: #fff; overflow: hidden; box-shadow: inset 6px 0 0 rgba(0, 0, 0, .12), 0 6px 14px rgba(16, 24, 40, .12); }
.lc-cover.coral { background: linear-gradient(160deg, #FF8A73, #FF6555); } .lc-cover.orange { background: linear-gradient(160deg, #FFB067, #FF9442); } .lc-cover.yellow { background: linear-gradient(160deg, #FFD36B, #FFB72E); color: #1B1D22; }
.lc-cover.blue { background: linear-gradient(160deg, #7E9BFF, #5278F5); } .lc-cover.purple { background: linear-gradient(160deg, #AE8FEA, #8E6BDB); } .lc-cover.green { background: linear-gradient(160deg, #4FCBA2, #20B989); } .lc-cover.teal { background: linear-gradient(160deg, #2E9C86, #187866); }
.lc-cover::before { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.lc-cover > small { position: absolute; left: 10px; top: 10px; padding: 2px 7px; border-radius: 5px; background: rgba(255, 255, 255, .92); color: #1B1D22; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lc-cover > i { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); font-style: normal; font-size: 44px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .16)); transition: transform .3s; }
.lc-cover > b { position: relative; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lc-cover > img { position: absolute; right: -10px; bottom: -12px; width: 64px; height: auto; }
.lc-cover.big { width: 230px; flex: none; aspect-ratio: 3 / 4; padding: 14px 16px; }
.lc-cover.big > i { font-size: 72px; top: 44%; } .lc-cover.big > b { font-size: 15px; } .lc-cover.big > img { width: 96px; right: -12px; bottom: -14px; }

/* --- danh sách chủ đề có bìa --- */
.lc-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }
.lc-topic { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 16px; border-radius: 20px; background: var(--t-card); color: var(--t-ink); box-shadow: var(--t-shadow); text-decoration: none; animation: lcUp .4s calc(var(--i) * 30ms) both; transition: transform .2s, box-shadow .2s; }
a.lc-topic:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(16, 24, 40, .12); }
a.lc-topic:hover .lc-cover > i { transform: translate(-50%, -50%) rotate(-8deg) scale(1.1); }
.lc-topic.soon .lc-cover { filter: saturate(.55) brightness(1.05); }
.lc-topic-t { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.lc-topic-t h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; } .lc-topic-t small { font-size: 12.5px; color: var(--t-muted); font-weight: 600; }
.lc-topic-t span { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--t-muted); } .lc-topic-t span.go { color: #5278F5; }

/* --- bài ngữ pháp trong danh sách --- */
.dash-wrap .dash-unit.has-lesson { background: var(--t-card); box-shadow: inset 0 0 0 1.5px var(--ac, #5278F5), var(--t-shadow); }
.dash-wrap .dash-unit.has-lesson em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--ac, #5278F5); white-space: nowrap; }
.dash-wrap .dash-unit.soon { opacity: .75; }

/* --- trang bài học --- */
.lc { animation: lcUp .35s both; }
.lc-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; }
.lc-back:hover { transform: translateX(-3px); }
.lc-hero { display: flex; gap: 28px; align-items: center; margin-bottom: 16px; padding: 24px; border-radius: 24px; background: var(--t-card); box-shadow: var(--t-shadow); }
.lc-hero-t { flex: 1; min-width: 0; }
.lc-eyebrow { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--t-soft); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t-muted); }
.lc-hero h1 { margin: 10px 0 2px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; color: var(--t-ink); }
:root body.v3 .lc-hero h1 { color: var(--t-ink) !important; font-family: "Quicksand", system-ui, sans-serif !important; font-weight: 700 !important; }
.lc-en { margin: 0; font-size: 17px; font-weight: 600; color: var(--t-muted); }
.lc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } .lc-chips span { padding: 6px 12px; border-radius: 999px; background: var(--t-soft); font-size: 13.5px; font-weight: 700; }
.lc-prog { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--t-muted); } .lc-prog b { color: var(--t-ink); }
.lc-bar { flex: 1; display: block; height: 8px; border-radius: 999px; background: var(--t-soft); overflow: hidden; } .lc-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #20B989, #5278F5); transition: width .5s; }
.lc-modes { margin-bottom: 16px; }
.lc-card { padding: 18px 20px; border-radius: 18px; background: var(--t-card); box-shadow: var(--t-shadow); }
.lc-intro p { margin: 0; font-size: 16px; line-height: 1.7; }
.lc-intro-a { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; } .lc-msg { font-weight: 700; color: #17A57A; }
.lc-h { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-size: 22px; } .lc-h::after { content: ""; flex: 1; border-bottom: 1.5px dashed var(--t-line); }
.lc-structs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lc-struct { display: flex; flex-direction: column; gap: 8px; animation: lcUp .4s calc(var(--i) * 60ms) both; }
.lc-struct > small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5278F5; }
.lc-struct code { align-self: flex-start; padding: 8px 12px; border-radius: 10px; background: #EEF3FF; color: #2F4FB8; font: 700 15.5px/1.3 "Quicksand", sans-serif; }
html[data-theme="dark"] .lc-struct code { background: #1E2A4A; color: #A9BEFF; }
.lc-struct > p { margin: 0; font-size: 14px; color: var(--t-muted); font-weight: 600; }
.lc-ex { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--t-soft); }
.lc-ex p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; } .lc-ex small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--t-muted); font-weight: 500; }
.lc-say { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--t-card); box-shadow: var(--t-shadow); cursor: pointer; font-size: 14px; transition: transform .15s; }
.lc-say:hover { transform: scale(1.1); }
.lc-uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.lc-use { display: flex; gap: 14px; animation: lcUp .4s calc(var(--i) * 60ms) both; }
.lc-num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #5278F5; color: #fff; font-size: 15px; }
.lc-use h3 { margin: 4px 0 4px; font-size: 16.5px; } .lc-use p { margin: 0 0 8px; font-size: 14px; color: var(--t-muted); font-weight: 600; } .lc-use .lc-ex p { color: var(--t-ink); margin: 0; }
.lc-signals { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.lc-signals span { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--t-card); box-shadow: var(--t-shadow); }
.lc-signals b { font-size: 16px; color: #FF6555; } .lc-signals small { font-size: 13px; color: var(--t-muted); font-weight: 600; }
.lc-table { padding: 0; overflow: hidden; } .lc-table table { width: 100%; border-collapse: collapse; }
.lc-table th, .lc-table td { padding: 12px 16px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--t-line); }
.lc-table th { background: var(--t-soft); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; } .lc-table th:first-child { color: #5278F5; } .lc-table th:last-child { color: #FF9442; }
.lc-table tr:last-child td { border-bottom: 0; } .lc-table td { font-weight: 600; }
.lc-tips { display: flex; gap: 18px; align-items: center; } .lc-tips img { width: 100px; height: auto; flex: none; }
.lc-tips ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; } .lc-tips li { font-size: 15px; line-height: 1.55; font-weight: 600; }
.lc-next { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.lc-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--t-card); color: var(--t-ink); box-shadow: inset 0 0 0 1.5px #D5DAE3; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s; }
.lc-btn:hover:not(:disabled) { transform: translateY(-2px); } .lc-btn:disabled { opacity: .5; cursor: default; }
.lc-btn.primary { background: #1B1D22; color: #fff; box-shadow: none; }
html[data-theme="dark"] .lc-btn.primary { background: #ECEEF2; color: #1B1D22; }
/* từ vựng */
.lc-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 16px; }
.lc-word { display: flex; flex-direction: column; gap: 8px; animation: lcUp .4s calc(var(--i) * 40ms) both; }
.lc-word-h { display: flex; align-items: center; gap: 10px; } .lc-word-h b { display: block; font-size: 21px; } .lc-word-h small { font-size: 13px; color: var(--t-muted); font-weight: 600; }
.lc-mean { margin: 0; font-size: 16px; font-weight: 700; color: #FF6555; }
/* flashcard */
.lc-flash, .lc-quiz, .lc-result { max-width: 720px; margin: 0 auto; }
.lc-flash-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-weight: 700; font-size: 14px; color: var(--t-muted); }
.lc-fcard { position: relative; display: block; width: 100%; height: 320px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1200px; font: inherit; }
.lc-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; border-radius: 24px; background: var(--t-card); color: var(--t-ink); box-shadow: 0 14px 32px rgba(16, 24, 40, .1); backface-visibility: hidden; transition: transform .5s cubic-bezier(.2, .9, .3, 1); text-align: center; }
.lc-face.back { transform: rotateY(180deg); background: linear-gradient(160deg, #FFF4E8, var(--t-card)); }
html[data-theme="dark"] .lc-face.back { background: var(--t-soft); }
.lc-fcard.flip .front { transform: rotateY(-180deg); } .lc-fcard.flip .back { transform: rotateY(0); }
.lc-face small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t-muted); }
.lc-face.front b { font-size: clamp(36px, 5vw, 54px); } .lc-face.front em { font-style: normal; font-size: 18px; color: var(--t-muted); font-weight: 600; }
.lc-face.back b { font-size: 28px; color: #FF6555; } .lc-face.back span { font-size: 17px; font-weight: 600; max-width: 520px; line-height: 1.5; } .lc-face.back small { text-transform: none; letter-spacing: 0; font-size: 14px; }
.lc-hint { position: absolute; bottom: 16px; font-size: 12.5px; color: var(--t-muted); font-weight: 600; }
.lc-flash-btns { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
/* trắc nghiệm */
.lc-q { display: flex; align-items: flex-start; gap: 12px; } .lc-q p { flex: 1; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.5; }
.lc-gap { display: inline-block; min-width: 80px; border-bottom: 3px solid #FF6555; color: transparent; }
.lc-opts { display: grid; gap: 10px; margin-top: 12px; }
.lc-opt { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 16px; border: 1px solid #E2E6ED; border-radius: 12px; background: var(--t-card); color: var(--t-ink); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; animation: lcUp .35s calc(var(--i) * 50ms) both; transition: border-color .15s, background .15s; }
html[data-theme="dark"] .lc-opt { border-color: rgba(255, 255, 255, .1); }
.lc-opt:hover:not(:disabled) { border-color: #5278F5; background: #F7F9FF; } html[data-theme="dark"] .lc-opt:hover:not(:disabled) { background: #1E2433; }
.lc-opt b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--t-soft); font-size: 14px; }
.lc-opt.right { border-color: #20B889; background: #F2FBF7; } .lc-opt.right b { background: #20B889; color: #fff; }
.lc-opt.wrong { border-color: #FF6657; background: #FFF5F3; } .lc-opt.wrong b { background: #FF6657; color: #fff; }
html[data-theme="dark"] .lc-opt.right { background: #12302A; } html[data-theme="dark"] .lc-opt.wrong { background: #351C19; }
.lc-opt:disabled { cursor: default; }
.lc-fb { margin-top: 12px; border-left: 4px solid #20B889; animation: lcUp .3s both; } .lc-fb.bad { border-left-color: #FF6657; }
.lc-fb b { font-size: 16px; } .lc-fb p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; font-weight: 500; }
.lc-res-top { display: flex; gap: 18px; align-items: center; } .lc-res-top img { width: 110px; height: auto; } .lc-res-top h2 { margin: 8px 0 4px; font-size: 26px; } .lc-res-top p { margin: 0; color: var(--t-muted); font-weight: 600; }
.lc-miss { display: grid; gap: 10px; } .lc-miss p { margin: 0 0 4px; font-weight: 700; } .lc-miss small { color: var(--t-muted); font-weight: 600; } .lc-miss-ex { margin-top: 6px !important; font-weight: 500 !important; font-size: 14px; }
@media (max-width: 860px) { .lc-hero { flex-direction: column; align-items: stretch; } .lc-cover.big { width: 100%; aspect-ratio: 16 / 9; } .lc-tips { flex-direction: column; } .lc-fcard { height: 280px; } }
@media (prefers-reduced-motion: reduce) { .lc, .lc *, .lc-topic { animation: none !important; transition: none !important; } }

/* vòng duyệt 26/10: hero thấp hơn, thanh chế độ dính, mục tiêu + lỗi hay gặp */
.lc-hero { padding: 20px 24px; gap: 24px; }
.lc-cover.big { width: 200px; aspect-ratio: 20 / 27; } .lc-cover.big > i { font-size: 62px; }
.lc-hero h1 { font-size: clamp(28px, 3vw, 40px); }
.lc-meta { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--t-muted); }
.lc-modes { position: sticky; top: 10px; z-index: 5; padding: 6px; margin-left: -6px; border-radius: 999px; background: color-mix(in srgb, var(--t-bg) 85%, transparent); backdrop-filter: blur(8px); width: max-content; max-width: 100%; }
.lc-obj { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: #EEF3FF; }
html[data-theme="dark"] .lc-obj { background: #1E2A4A; }
.lc-obj b { font-size: 14px; } .lc-obj ul { margin: 6px 0 0; padding-left: 18px; } .lc-obj li { font-size: 14.5px; line-height: 1.55; font-weight: 600; }
.lc-mistakes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lc-mis p { margin: 0 0 4px; font-size: 15px; font-weight: 700; } .lc-mis .bad { color: #D9483A; text-decoration: line-through; text-decoration-thickness: 1.5px; } .lc-mis .good { color: #17A57A; }
.lc-mis small { font-size: 13.5px; color: var(--t-muted); font-weight: 600; line-height: 1.5; }
.lc-words { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } .lc-word .lc-ex p { line-height: 1.6; }
@media (max-width: 640px) { .lc-modes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: auto; } .lc-modes::-webkit-scrollbar { display: none; } .lc-modes a { flex: none; white-space: nowrap; } }
@media (max-width: 860px) { .lc-cover.big { width: 100%; aspect-ratio: 16 / 7; } .lc-cover.big > i { font-size: 52px; } }

/* ===== Luyện từ vựng (kiểu Senglish / Đậu TOEIC): thông báo ôn, 3 số liệu, bộ từ có bìa + tiến độ ===== */
.vh-head h1 { margin: 0 0 4px; font-size: clamp(28px, 3vw, 38px); color: var(--t-ink); }
:root body.v3 .vh-head h1 { color: var(--t-ink) !important; font-family: "Quicksand", system-ui, sans-serif !important; font-weight: 700 !important; }
.vh-head p { margin: 0 0 16px; font-size: 15.5px; font-weight: 600; color: var(--t-muted); }
.vh-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 16px 20px; border-radius: 18px; border: 1.5px solid #BFE9D7; background: #EEFAF4; }
.vh-banner.due { border-color: #FFD3A8; background: #FFF6EC; }
html[data-theme="dark"] .vh-banner { background: #15291F; border-color: #1F4A38; }
html[data-theme="dark"] .vh-banner.due { background: #33240F; border-color: #5A3E14; }
.vh-banner > div { flex: 1; display: flex; flex-direction: column; }
.vh-banner b { font-size: 16.5px; }
.vh-banner > div > span { font-size: 14px; font-weight: 600; color: var(--t-muted); }
.vh-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #fff; font-size: 20px; }
html[data-theme="dark"] .vh-ic { background: var(--t-soft); }
.vh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.vh-stats > div { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--t-card); box-shadow: var(--t-shadow); }
.vh-stats .vh-ic { grid-row: 1 / 3; }
.vh-stats b { font-size: 28px; line-height: 1.1; }
.vh-stats small { font-size: 13.5px; font-weight: 600; color: var(--t-muted); }
.vh-ic.b { background: #ECF1FF; } .vh-ic.o { background: #FFF1E6; } .vh-ic.g { background: #EAF8F3; }
html[data-theme="dark"] .vh-ic.b, html[data-theme="dark"] .vh-ic.o, html[data-theme="dark"] .vh-ic.g { background: var(--t-soft); }
.vh-tabs { align-items: center; }
.vh-mine { margin-left: auto; padding: 8px 14px; border-radius: 999px; background: var(--t-card); box-shadow: var(--t-shadow); color: var(--t-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.vh-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 30px; }
.vh-set { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 16px; border-radius: 20px; background: var(--t-card); color: var(--t-ink); box-shadow: var(--t-shadow); text-decoration: none; animation: lcUp .4s calc(var(--i) * 25ms) both; transition: transform .2s, box-shadow .2s; }
.vh-set:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(16, 24, 40, .12); }
.vh-set:hover .lc-cover > i { transform: translate(-50%, -50%) rotate(-8deg) scale(1.1); }
.vh-set-t { display: flex; flex-direction: column; gap: 3px; padding: 0 4px; }
.vh-set-t h3 { margin: 0; font-size: 17px; font-weight: 700; }
.vh-set-t small { font-size: 13px; font-weight: 600; color: var(--t-muted); }
.vh-meta { font-size: 12.5px; font-weight: 600; color: var(--t-muted); }
.vh-prog { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--t-muted); }
.vh-prog b { color: var(--t-ink); }
.vh-prog i { display: block; height: 7px; border-radius: 999px; background: var(--t-soft); overflow: hidden; }
.vh-prog em { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #20B989, #5278F5); }
.vh-go { margin-top: 6px; font-size: 14px; font-weight: 700; color: #5278F5; }
@media (max-width: 640px) { .vh-stats { gap: 8px; } .vh-stats > div { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 4px; padding: 12px; text-align: center; justify-items: center; } .vh-stats .vh-ic { grid-row: auto; width: 34px; height: 34px; font-size: 16px; border-radius: 10px; } .vh-stats b { font-size: 22px; } .vh-stats small { font-size: 12px; } .vh-mine { margin-left: 0; } .vh-banner { flex-wrap: wrap; } }

/* chấm mức nhớ trong flashcard */
.lc-rate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.lc-rate > span { grid-column: 1 / -1; text-align: center; font-weight: 700; color: var(--t-muted); }
.lc-rate button { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1.5px solid transparent; border-radius: 14px; background: var(--t-card); color: var(--t-ink); box-shadow: var(--t-shadow); font: inherit; cursor: pointer; transition: transform .15s; }
.lc-rate button:hover { transform: translateY(-2px); }
.lc-rate b { font-size: 15px; } .lc-rate small { font-size: 12.5px; font-weight: 600; color: var(--t-muted); }
.lc-rate .r0 { border-color: #FFC9C0; } .lc-rate .r1 { border-color: #FFE1A3; } .lc-rate .r2 { border-color: #BFE9D7; }
.lc-word.known { box-shadow: inset 0 0 0 1.5px #BFE9D7, var(--t-shadow); }
.lc-known { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #20B989; color: #fff; font-style: normal; font-weight: 700; font-size: 13px; }

/* ===== Dictation + Shadowing ===== */
.dc-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; padding: 24px 28px; border-radius: 24px; background: linear-gradient(135deg, #5278F5, #7B5CF0); color: #fff; }
.dc-hero > div { flex: 1; }
.dc-hero h1 { margin: 10px 0 6px; font-size: clamp(30px, 3.2vw, 42px); color: #fff; }
:root body.v3 .dc-hero h1 { color: #fff !important; font-family: "Quicksand", system-ui, sans-serif !important; font-weight: 700 !important; }
.dc-hero p { margin: 0; max-width: 640px; font-size: 15px; line-height: 1.6; opacity: .92; }
.dc-hero .lc-eyebrow { background: rgba(255, 255, 255, .2); color: #fff; }
.dc-hero img { width: 140px; height: auto; }
.dc-hero-n { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dc-hero-n span { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .18); font-size: 12.5px; font-weight: 700; }
.dc-hero-n b { font-size: 22px; }
.dc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dc-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 20px; background: var(--t-card); box-shadow: var(--t-shadow); animation: lcUp .4s calc(var(--i, 0) * 30ms) both; }
.dc-card h3 { margin: 4px 0 0; font-size: 18px; }
.dc-card p { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--t-muted); }
.dc-part { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #5278F5; color: #fff; font-size: 12px; font-weight: 700; }
.dc-part.coral { background: #FF6555; } .dc-part.orange { background: #FF9442; } .dc-part.yellow { background: #E9A400; } .dc-part.blue { background: #5278F5; }
.dc-best { font-size: 13px; font-weight: 700; color: #17A57A; } .dc-best.muted { color: var(--t-muted); }
.dc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.dc-btns .lc-btn { min-height: 40px; padding: 0 14px; font-size: 14px; text-decoration: none; }
.dc-note { margin-top: 16px; font-size: 13px; color: var(--t-muted); font-weight: 600; }
.dc-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dc-top h2 { margin: 6px 0 0; font-size: 24px; }
.dc-stage { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.lc-quiz .dc-stage { max-width: none; }
.dc-player { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dc-play { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #1B1D22; color: #fff; font-size: 18px; cursor: pointer; transition: transform .15s; }
.dc-play:hover { transform: scale(1.08); }
.dc-player.playing .dc-play { background: #FF6555; }
html[data-theme="dark"] .dc-play { background: #ECEEF2; color: #1B1D22; }
.dc-wave { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 3px; height: 34px; overflow: hidden; }
.dc-wave i { flex: 1; max-width: 6px; height: var(--h, 60%); border-radius: 3px; background: var(--t-line); transform: scaleY(.5); }
.dc-player.playing .dc-wave i { background: linear-gradient(#FF6555, #FF9442); animation: exWave .9s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -73ms); }
.dc-who { font-size: 13px; font-weight: 700; color: var(--t-muted); }
.dc-rates { display: flex; gap: 4px; }
.dc-rates button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--t-soft); color: var(--t-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dc-rates button.on { background: #1B1D22; color: #fff; }
html[data-theme="dark"] .dc-rates button.on { background: #ECEEF2; color: #1B1D22; }
.dc-hint { margin: 0; font-size: 16px; font-weight: 600; color: var(--t-muted); letter-spacing: .02em; }
.dc-target { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--t-soft); font-size: 19px; font-weight: 700; line-height: 1.5; }
.dc-input { box-sizing: border-box; width: 100%; min-height: 70px; padding: 12px 14px; border: 1.5px solid var(--t-line) !important; border-radius: 14px; background: var(--t-soft); color: var(--t-ink); font: 600 17px/1.5 "Quicksand", sans-serif; resize: vertical; }
.dc-input:focus { outline: 3px solid #5278F5; outline-offset: 1px; }
.dc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dc-keys { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--t-muted); }
.dc-mic.rec { background: #FF6555 !important; color: #fff !important; animation: exPulse 1s ease-in-out infinite; }
.dc-warn { font-size: 13px; font-weight: 600; color: #C2311F; }
.dc-res { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; border-left: 4px solid #20B889; background: var(--t-soft); animation: lcUp .3s both; }
.dc-res.mid { border-left-color: #F2A900; } .dc-res.bad { border-left-color: #FF6657; }
.dc-score { display: flex; align-items: baseline; gap: 8px; }
.dc-score b { font-size: 26px; } .dc-score span { font-weight: 700; color: var(--t-muted); }
.dc-diff { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.7; }
.lt-w.ok { color: #17A57A; }
.lt-w.miss { color: #E5483A; text-decoration: underline wavy; text-underline-offset: 4px; }
.dc-said, .dc-tr { margin: 0; font-size: 14px; font-weight: 600; color: var(--t-muted); }
.dc-tips { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.dc-tips li { font-size: 14.5px; line-height: 1.55; font-weight: 600; }
@media (max-width: 640px) { .dc-hero { flex-direction: column; align-items: flex-start; padding: 20px; } .dc-hero img { display: none; } .dc-keys { display: none; } .lc-rate { grid-template-columns: 1fr; } }
.dc > .lc-flash-top, .dc > .lc-next { max-width: 820px; margin-left: auto; margin-right: auto; width: 100%; }
.dc > .lc-flash-top .lc-bar, .lc-quiz > .lc-flash-top .lc-bar, .lc-flash > .lc-flash-top .lc-bar { background: var(--t-line); }
@media (max-width: 640px) { .vh-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .vh-set { padding: 8px 8px 12px; border-radius: 16px; } .vh-set-t h3 { font-size: 15px; } .vh-set-t small, .vh-meta { font-size: 12px; } .vh-tabs .vh-mine { width: 100%; text-align: center; } }
.vh-banner > .vh-banner-a { flex: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; } .vh-banner-a .lc-btn { text-decoration: none; }
@media (max-width: 640px) { .vh-banner-a { width: 100%; } .vh-banner-a .lc-btn { flex: 1; justify-content: center; } }

/* ===== Bảng xếp hạng ===== */
.lb-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; padding: 24px 28px; border-radius: 24px; background: linear-gradient(135deg, #FFB547, #FF8A4C); color: #1B1D22; }
.lb-hero > div { flex: 1; }
.lb-hero h1 { margin: 10px 0 6px; font-size: clamp(30px, 3.2vw, 42px); }
:root body.v3 .lb-hero h1 { color: #1B1D22 !important; font-family: "Quicksand", system-ui, sans-serif !important; font-weight: 700 !important; }
.lb-hero p { margin: 0 0 14px; max-width: 640px; font-size: 15px; font-weight: 600; line-height: 1.6; }
.lb-hero .lc-eyebrow { background: rgba(255, 255, 255, .45); color: #1B1D22; }
.lb-hero small { display: block; font-size: 12.5px; font-weight: 700; opacity: .8; }
.lb-hero img { width: 150px; height: auto; }
.lb-count { display: flex; gap: 8px; margin-top: 8px; }
.lb-count span { display: grid; place-items: center; min-width: 64px; padding: 8px 6px; border-radius: 14px; background: #1B1D22; color: #fff; }
.lb-count b { font-size: 24px; line-height: 1.1; } .lb-count small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.lb-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.lb-card { padding: 20px; border-radius: 20px; background: var(--t-card); box-shadow: var(--t-shadow); }
.lb-board-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.lb-board-h h2 { margin: 0; font-size: 20px; } .lb-board-h span { font-size: 13px; font-weight: 600; color: var(--t-muted); }
.lb-skel { height: 56px; margin-bottom: 8px; border-radius: 14px; background: linear-gradient(90deg, var(--t-soft), var(--t-line), var(--t-soft)); background-size: 200% 100%; animation: lbShine 1.2s linear infinite; }
@keyframes lbShine { to { background-position: -200% 0; } }
.lb-pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; margin-bottom: 14px; }
.lb-pod > div { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; animation: lcUp .5s calc(var(--i) * 90ms) both; }
.lb-pod em { font-style: normal; font-size: 26px; line-height: 1; animation: exPulse 2s ease-in-out infinite; }
.lb-pod i, .lb-rows i { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--t-soft); font-style: normal; font-weight: 700; font-size: 22px; }
.lb-pod .p1 i { width: 76px; height: 76px; box-shadow: 0 0 0 4px #FFC547; }
.lb-pod .p2 i { box-shadow: 0 0 0 3px #C9D1DC; } .lb-pod .p3 i { box-shadow: 0 0 0 3px #E8A879; }
.lb-pod i img, .lb-rows i img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lb-pod i b { position: absolute; bottom: -8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1B1D22; color: #fff; font-size: 12px; }
.lb-pod strong { margin-top: 10px; font-size: 15px; overflow-wrap: anywhere; } .lb-pod span { font-size: 14px; font-weight: 700; color: #E07A1F; } .lb-pod small { font-size: 12px; font-weight: 600; color: var(--t-muted); }
.lb-step { width: 100%; margin-top: 8px; border-radius: 12px 12px 4px 4px; }
.lb-pod .p1 .lb-step { height: 64px; background: linear-gradient(#FFD36E, #FFB547); } .lb-pod .p2 .lb-step { height: 44px; background: linear-gradient(#E3E8EF, #C9D1DC); } .lb-pod .p3 .lb-step { height: 30px; background: linear-gradient(#F6CBA8, #E8A879); }
.lb-pod .me strong::after { content: " (bạn)"; color: #5278F5; }
.lb-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.lb-rows li { display: grid; grid-template-columns: 30px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: var(--t-soft); animation: lcUp .4s calc(var(--i) * 30ms) both; }
.lb-rows li.me { background: #ECF1FF; box-shadow: inset 0 0 0 1.5px #5278F5; } html[data-theme="dark"] .lb-rows li.me { background: #1E2A4A; }
.lb-rows li > b { text-align: center; } .lb-rows i { width: 40px; height: 40px; font-size: 16px; background: var(--t-card); }
.lb-rows strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb-rows small { font-size: 12.5px; font-weight: 600; color: var(--t-muted); } .lb-rows span { font-weight: 700; }
.lb-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; text-align: center; } .lb-empty img { width: 120px; } .lb-empty p { margin: 0; font-size: 14px; color: var(--t-muted); font-weight: 600; }
.lb-side { display: grid; gap: 16px; }
.lb-me small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-muted); }
.lb-me-n { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 6px; } .lb-me-n b { font-size: 40px; line-height: 1; } .lb-me-n span { font-weight: 700; color: var(--t-muted); }
.lb-me p { margin: 0 0 10px; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.lb-me-a { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } .lb-me-a .lc-btn { min-height: 40px; font-size: 14px; text-decoration: none; }
.lb-note { margin: 8px 0 0 !important; font-size: 12.5px !important; color: var(--t-muted); font-weight: 600; }
.lb-break h3 { margin: 0 0 12px; font-size: 16px; }
.lb-kind { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 4px; align-items: center; margin-bottom: 10px; }
.lb-kind > span { grid-row: 1 / 3; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--t-soft); }
.lb-kind b { display: block; font-size: 14px; } .lb-kind small { font-size: 12px; font-weight: 600; color: var(--t-muted); } .lb-kind em { font-style: normal; font-weight: 700; }
.lb-kind i { grid-column: 2 / 4; display: block; height: 6px; border-radius: 999px; background: var(--t-soft); overflow: hidden; } .lb-kind u { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FFB547, #FF8A4C); }
.tid-rank { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: #1B1D22; font-size: 13.5px; font-weight: 700; text-decoration: none; }
html[data-theme="dark"] .tid-rank { background: rgba(0, 0, 0, .25); color: inherit; }
@media (max-width: 1100px) { .lb-body { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .lb-hero { flex-direction: column; align-items: flex-start; padding: 20px; } .lb-hero img { display: none; } .lb-count span { min-width: 0; flex: 1; } .lb-rows li { grid-template-columns: 26px 36px minmax(0, 1fr) auto; } .lb-rows li small { display: none; } .lb-pod .p1 i { width: 64px; height: 64px; } .lb-pod i { width: 52px; height: 52px; } }
.lb-kind > span { font-size: 17px; }
@media (max-width: 1100px) { .lb-side { display: contents; } .lb-me { order: -1; } }
/* học liệu từ sách luyện đề */
.lc-src { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--t-muted); }
.lc-skel { height: 320px; border-radius: 24px; background: linear-gradient(90deg, var(--t-card), var(--t-soft), var(--t-card)); background-size: 200% 100%; animation: lbShine 1.2s linear infinite; }
[data-exhist] .ex-hist { margin-bottom: 24px; }
/* Dictation theo sách */
.dc-src { margin-bottom: 4px; }
.dc-tests { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.dc-test { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 18px; background: var(--t-card); box-shadow: var(--t-shadow); animation: lcUp .4s calc(var(--i) * 25ms) both; }
.dc-test > b { font-size: 16px; }
.dc-tparts { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-tp { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; background: var(--t-soft); color: var(--t-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: transform .15s; }
.dc-tp:hover { transform: translateY(-2px); } .dc-tp .dc-part { align-self: center; }
.dc-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.dc-unit { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--t-card); box-shadow: var(--t-shadow); color: var(--t-ink); text-decoration: none; animation: lcUp .35s calc(var(--i) * 15ms) both; transition: transform .15s; }
.dc-unit:hover { transform: translateY(-2px); } .dc-unit b { font-size: 15px; } .dc-unit small { font-size: 12.5px; font-weight: 600; color: var(--t-muted); }
.dc-unit.done { box-shadow: inset 0 0 0 1.5px #BFE9D7, var(--t-shadow); } .dc-unit.done small { color: #17A57A; }
.dc-unit.tried { box-shadow: inset 0 0 0 1.5px #FFE1A3, var(--t-shadow); }
.lc-flash-top .lc-btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; text-decoration: none; }
.dc-real { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 14px; background: #FFF6EC; }
html[data-theme="dark"] .dc-real { background: #33240F; }
.dc-real .lc-btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
.dc-real-t { font-weight: 700; font-variant-numeric: tabular-nums; } .dc-real small { flex-basis: 100%; font-size: 12.5px; font-weight: 600; color: var(--t-muted); }
@media (max-width: 640px) { .dc-tests { grid-template-columns: 1fr; } .dc-units { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== bìa SVG cho bộ từ (topic-cover.js / book-cover.js, 27/10/2026) ===== */

.lc-cover.art { display: block; padding: 0; aspect-ratio: 3 / 4; background: none; border: 2px solid var(--g-edge, #121212); border-radius: 4px 9px 9px 4px; box-shadow: 4px 4px 0 var(--g-hard, #121212); }
.lc-cover.art::before { display: none; }
.lc-cover.art svg { display: block; width: 100%; height: 100%; }
.lc-cover.art.big { width: 200px; aspect-ratio: 3 / 4; padding: 0; }
.dash-wrap .vh-sets { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.dash-wrap .vh-set, .dash-wrap .lc-topic { padding: 0; border: 0 !important; box-shadow: none !important; background: transparent; }
.dash-wrap .vh-set:hover, .dash-wrap a.lc-topic:hover { transform: none; box-shadow: none !important; }
.dash-wrap .vh-set:hover .lc-cover.art, .dash-wrap a.lc-topic:hover .lc-cover.art { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--g-hard, #121212); }
.dash-wrap .vh-set .lc-cover.art, .dash-wrap .lc-topic .lc-cover.art { transition: transform .2s, box-shadow .2s; }
.dash-wrap .vh-set .lc-cover:not(.art), .dash-wrap .lc-topic .lc-cover:not(.art) { aspect-ratio: 3 / 4; }
.dash-wrap .lc-topics { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
@media (max-width: 860px) { .lc-cover.art.big { width: 150px; aspect-ratio: 3 / 4; } }
@media (max-width: 640px) { .dash-wrap .vh-sets, .dash-wrap .lc-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } }
html[data-theme="dark"] .lc-cover.art { border-color: var(--g-edge, #ECEEF2); box-shadow: 4px 4px 0 #000; }

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

/* Nghe điền — sách nghe chép Hackers 750+ LC (lessons.js fill): phát cả bài, gõ câu / chỗ trống, chấm từng từ */
.lf { gap: 14px; }
.lf-player { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: #F6EDDB; border: 1px solid #E2D8C0; border-radius: 6px; }
.lf-player audio { flex: 1 1 260px; min-width: 0; height: 40px; }
.lf-rates { display: flex; gap: 6px; }
.lf-rates button { padding: 6px 10px; border: 1px solid #D9CFB6; border-radius: 6px; background: #FBF6EA; color: #3A4A32; font: 600 13px "Be Vietnam Pro", system-ui, sans-serif; cursor: pointer; }
.lf-rates button.on { background: #3A4A32; border-color: #3A4A32; color: #FBF6EA; }
.lf-note { margin: 0; color: #625E51; font: 400 14px/1.6 "Be Vietnam Pro", system-ui, sans-serif; }
.lf-who { display: inline-block; min-width: 2.2em; margin-right: 6px; color: #5F6D45; font: 700 13px "Be Vietnam Pro", system-ui, sans-serif; }
.lf-in { box-sizing: border-box; padding: 8px 10px; border: 1px solid #D9CFB6; border-radius: 6px; background: #FBF6EA; color: #2F3A28; font: 500 16px "Be Vietnam Pro", system-ui, sans-serif; }
.lf-in:focus { outline: 2px solid #5F6D45; outline-offset: 1px; }
.lf-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lf-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; background: #F6EDDB; border: 1px solid #E2D8C0; border-left-width: 4px; border-radius: 6px; }
.lf-item > b { padding-top: 9px; color: #3A4A32; font: 700 14px "Be Vietnam Pro", system-ui, sans-serif; }
.lf-item > div { display: flex; flex-wrap: wrap; align-items: center; }
.lf-item .lf-in { flex: 1 1 200px; width: 100%; }
.lf-ans { flex-basis: 100%; margin-top: 8px; }
.lf-ans p { margin: 0 0 4px; font: 400 16px/1.6 "Lora", Georgia, serif; }
.lf-ans small, .lf-vi small { color: #625E51; font: 400 14px/1.6 "Be Vietnam Pro", system-ui, sans-serif; }
.lf-item.ok, .lf-key li.ok { border-left-color: #3E7A4A; } .lf-item.mid, .lf-key li.mid { border-left-color: #B68A2E; } .lf-item.bad, .lf-key li.bad { border-left-color: #B25D2A; }
.lf-doan { margin: 0; padding: 16px 18px; border-radius: 6px; color: #2F3A28; font: 400 17px/2.2 "Lora", Georgia, serif; overflow-wrap: anywhere; }
.lf-gap { display: inline-flex; align-items: baseline; gap: 4px; max-width: 100%; vertical-align: baseline; }
.lf-gap b { color: #5F6D45; font: 700 12px "Be Vietnam Pro", system-ui, sans-serif; }
.lf-gap .lf-in { width: calc(var(--ch, 12) * 0.62em + 20px); max-width: min(100%, 26em); padding: 2px 8px; border-width: 0 0 2px; border-color: #5F6D45; border-radius: 6px 6px 0 0; font-size: 15px; }
.lf-gap.ok .lf-in { border-color: #3E7A4A; background: #E8F0DF; } .lf-gap.mid .lf-in { border-color: #B68A2E; background: #F6EBD2; } .lf-gap.bad .lf-in { border-color: #B25D2A; background: #F7E6DA; }
.lf-key { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lf-key li { padding: 10px 14px; background: #F6EDDB; border: 1px solid #E2D8C0; border-left-width: 4px; border-radius: 6px; font: 400 16px/1.6 "Lora", Georgia, serif; }
.lf-key li b { color: #3A4A32; font: 700 13px "Be Vietnam Pro", system-ui, sans-serif; }
.lf-vi { padding: 14px 18px; border-radius: 6px; }
.lf-vi p { margin: 6px 0 0; color: #2F3A28; font: 400 15px/1.7 "Be Vietnam Pro", system-ui, sans-serif; }
@media (max-width: 640px) { .lf-doan { padding: 12px; font-size: 16px; } .lf-gap { display: inline-flex; flex-wrap: wrap; } .lf-gap .lf-in { max-width: calc(100vw - 120px); } }
/* 02/11: bìa Dictation có tranh (dictation.js dcBia) – ảnh phủ kín bìa, nhãn bộ sách góc trên trái */
html body .lc-cover.art.dc-bia { position: relative; overflow: hidden; padding: 0 !important; }
html body .lc-cover.art.dc-bia img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0 !important; transform: none !important; }
html body .lc-cover.art.dc-bia small { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 3px 9px; border-radius: 6px; background: rgba(255, 253, 248, .92); color: #17222D; font: 800 13px/1.3 "Plus Jakarta Sans", system-ui, sans-serif !important; letter-spacing: .04em; }

/* ===== flashcard mẫu mới (09/11, lessons.js cards2) — tạm chỉ bài "Hợp đồng" v600-1: thẻ trắng gọn, không dải chấm màu ===== */
.fc2-wrap { --fc-ink: #1F2420; --fc-mute: #6B6E66; --fc-line: #E6E1D6; --fc-acc: var(--r-forest, #3A4A32); --fc-soft: #F4F1E9; max-width: 720px; margin: 0 auto; }
.fc2 { display: grid; perspective: 1400px; cursor: pointer; border-radius: 22px; outline: none; }
.fc2:focus-visible { box-shadow: 0 0 0 3px rgba(58, 74, 50, .35); }
.fc2-face { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 340px; padding: 32px 28px 26px; border: 1px solid var(--fc-line); border-radius: 22px; background: #FFFEFB; color: var(--fc-ink); box-shadow: 0 1px 2px rgba(31, 36, 32, .05), 0 12px 32px rgba(31, 36, 32, .08); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .5s cubic-bezier(.2, .8, .3, 1); text-align: center; }
.fc2-face.back { transform: rotateY(180deg); justify-content: flex-start; align-items: stretch; text-align: left; gap: 10px; padding: 26px 28px; }
.fc2.flip .front { transform: rotateY(-180deg); } .fc2.flip .back { transform: rotateY(0); }
.fc2-img { width: min(100%, 300px); aspect-ratio: 3 / 2; margin-bottom: 10px; border-radius: 14px; overflow: hidden; background: var(--fc-soft); }
.fc2-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fc2-w { font: 800 var(--fs, clamp(36px, 6vw, 52px))/1.1 "Be Vietnam Pro", system-ui, sans-serif; letter-spacing: -.01em; color: var(--fc-ink); overflow-wrap: anywhere; }
.fc2-pos { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--fc-mute); } .fc2-pos i { font-style: normal; opacity: .6; }
.fc2-ipa { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 18px; color: var(--fc-ink); }
.fc2-ic { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--fc-line); border-radius: 50%; background: #fff; color: var(--fc-acc); cursor: pointer; transition: background .15s, border-color .15s; }
.fc2-ic:hover, .fc2-ic:focus-visible { background: var(--fc-soft); border-color: #CFC8B8; }
.fc2-ic svg, .fc2-pop svg, .fc2-nav svg, .fc2-add svg { width: 18px; height: 18px; }
.fc2-spk { position: relative; display: inline-flex; }
.fc2-pop { position: absolute; left: 50%; top: calc(100% + 8px); z-index: 5; display: grid; gap: 2px; min-width: 230px; padding: 6px; border: 1px solid var(--fc-line); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(31, 36, 32, .14); opacity: 0; visibility: hidden; transform: translate(-50%, -4px); transition: opacity .15s, transform .15s, visibility .15s; text-align: left; }
.fc2-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* cầu nối để rê chuột từ loa xuống ô chọn giọng không bị tắt */
.fc2-spk:hover .fc2-pop, .fc2-spk:focus-within .fc2-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.fc2-pop button { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--fc-ink); font: inherit; font-size: 14px; cursor: pointer; }
.fc2-pop { min-width: max-content; } .fc2-pop button > span { white-space: nowrap; }
.fc2-pop button svg { color: var(--fc-mute); } .fc2-pop button small { font-size: 12px; font-weight: 600; color: var(--fc-mute); white-space: nowrap; }
.fc2-pop button:hover { background: var(--fc-soft); }
.fc2-pop button[aria-pressed="true"] { background: var(--fc-soft); } .fc2-pop button[aria-pressed="true"] svg, .fc2-pop button[aria-pressed="true"] small { color: var(--fc-acc); }
.fc2-hint { margin-top: 14px; font-size: 13px; color: var(--fc-mute); }
.fc2-lb { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fc-mute); }
.fc2-m { font: 700 clamp(28px, 4.6vw, 38px)/1.25 "Be Vietnam Pro", system-ui, sans-serif; color: var(--fc-acc); margin-bottom: 4px; }
.fc2-ex { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--fc-soft); }
.fc2-ex p { margin: 0 0 4px; font-size: 16.5px; font-style: italic; line-height: 1.5; color: var(--fc-ink); } .fc2-ex small { font-size: 14px; line-height: 1.5; color: var(--fc-mute); }
.fc2-hl { padding: 0; background: none; color: var(--r-orange, #B25D2A); font-weight: 700; } /* từ đang học trong câu ví dụ / cụm từ */
.fc2-col { display: grid; gap: 8px; margin-top: 4px; }
.fc2-col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.fc2-col li { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid var(--fc-line); border-radius: 12px; }
.fc2-col li b { font-size: 15px; font-weight: 700; color: var(--fc-ink); } .fc2-col li span { font-size: 13.5px; color: var(--fc-mute); }
.fc2-keys { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--fc-mute); }
.fc2-keys kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--fc-line); border-bottom-width: 2px; border-radius: 6px; background: #fff; font: 600 12px/1.5 ui-monospace, Consolas, monospace; color: var(--fc-ink); }
.fc2-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 14px; }
.fc2-add { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--fc-acc); border-radius: 12px; background: var(--fc-acc); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.fc2-add:hover { opacity: .9; } .fc2-add:disabled { opacity: .6; cursor: wait; }
.fc2-add.da, html.gb .fc2-add.da:not(#oq-z) { background: #fff !important; background-image: none !important; color: var(--fc-acc) !important; border: 1px solid var(--fc-acc) !important; box-shadow: none !important; }
html.gb .fc2-pop.fc2-pop.fc2-pop.fc2-pop { background: #fff !important; border-color: var(--fc-line) !important; box-shadow: 0 10px 28px rgba(31, 36, 32, .16) !important; } /* kinh-oq.js gắn kính trắng 80% → chữ dưới lộ qua ô chọn giọng */
.fc2-nav { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--fc-mute); white-space: nowrap; }
.fc2-nav button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--fc-line); border-radius: 12px; background: #fff; color: var(--fc-ink); cursor: pointer; }
.fc2-nav button:hover { background: var(--fc-soft); } .fc2-nav button:disabled { opacity: .4; cursor: default; }
.fc2-known { justify-self: end; font-size: 14px; font-weight: 600; color: var(--fc-mute); }
.fc2-msg { min-height: 20px; margin: 8px 0 0; font-size: 14px; color: var(--fc-acc); }
.fc2-msg:empty { min-height: 0; margin: 0; }
@media (prefers-reduced-motion: reduce) { .fc2-face { transition: none; } }
@media (hover: none) { .fc2-keys { display: none; } }
@media (max-width: 640px) {
  .fc2-face { min-height: 300px; padding: 26px 18px 20px; } .fc2-face.back { padding: 20px 16px; }
  .fc2-col ul { grid-template-columns: 1fr; }
  .fc2-bar { grid-template-columns: 1fr auto; } .fc2-known { display: none; }
  .fc2-add { padding: 0 14px; }
  .fc2-pop, .fc2-spk:hover .fc2-pop, .fc2-spk:focus-within .fc2-pop { left: auto; right: -6px; transform: none; } /* ô chọn giọng neo phải loa, không tràn mép màn hình */
}

/* ===== 3 bộ từ có sao (09/11): 600 từ TOEIC, Hackers, ETS — chỉ cho học viên (dashboard.js SAO_TAB, lessons.js saoBo) ===== */
.ex-tab .vh-sao { margin-right: 6px; font-style: normal; color: #C9861E; }
.ex-tab.on .vh-sao { color: #F2C14E; }
.vh-sao-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 10px 2px 4px; font-size: 14px; color: var(--r-mute, #625E51); }
.vh-sao-note > i { font-style: normal; color: #C9861E; }
.vh-xin { min-height: 32px; padding: 0 12px; border: 1px solid var(--r-forest, #3A4A32); border-radius: 10px; background: #fff; color: var(--r-forest, #3A4A32); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.vh-xin:hover { background: #F4F1E9; }
.vh-set.khoa .lc-cover, .vh-set.khoa > :first-child { filter: grayscale(.55); opacity: .75; }
.vh-set.khoa .vh-go { color: var(--r-mute, #625E51); }
.lc-khoa { max-width: 620px; margin: 24px auto; padding: 28px 26px; text-align: center; }
.lc-khoa-ic { display: block; font-size: 30px; line-height: 1; color: #C9861E; }
.lc-khoa small { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--r-olive, #5F6D45); }
.lc-khoa h2 { margin: 6px 0 10px; font-size: clamp(22px, 3.4vw, 28px); }
.lc-khoa p { margin: 0 auto; max-width: 520px; line-height: 1.6; color: var(--r-mute, #625E51); }
.lc-khoa .lc-next { justify-content: center; margin-top: 18px; }
