/* SSP Học lux v2→v4 (27/11/2026, Bu) — Lucian UX/UI: chuyển động nhẹ, chỉ phần nhìn. a = nền + bấm + báo · b = đáp án + tab + hộp · c = thanh + vào trang + lên đầu · d (v4) = vòng cuộn, tích ô mã, hàng bảng, biểu đồ tuần, ô trống, tấm đáy · e = nút Trang chủ · f (v5, 28/11) = tiêu đề trồi lần lượt (/, IELTS), vệt sáng nhãn IELTS; 404 la bàn #089 nằm ngay trong 404.html. Sửa file này → tăng ?v= ở cả 8 trang. */
/* Token — Lucian UX/UI Prompt theme tokens · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/ */
:root{--ux-accent:var(--accent,var(--acc,#1A70E8));--ux-ok:var(--ok,#3FAE49);--ux-bad:var(--bad,#E5263F);--ux-ok-bg:var(--ok-bg,var(--ok-soft,#E6F5E8));--ux-bad-bg:var(--bad-bg,var(--bad-soft,#FDE6E9));--ux-soft:var(--soft,var(--line));--ux-line-2:var(--line2,var(--line));--ux-ease:cubic-bezier(.2,.7,.2,1);--ux-spring:cubic-bezier(.34,1.45,.64,1);--lxa-sh:#fff9;--lxa-k:.97;--lxa-d:.09s}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--lxa-sh:#fff2}}
:root[data-theme="dark"]{--lxa-sh:#fff2}
/* Bấm lún — phỏng theo nhịp Lucian UX/UI Prompt #471 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#471 */
.btn,.pick button,a.tile,.gc,.game,button.row,.row.click,.dock button{-webkit-tap-highlight-color:transparent;transition:background .15s,color .15s,transform var(--lxa-d) var(--ux-ease)}
.chip,.lvl button,.tabsbar button,button.kpi{-webkit-tap-highlight-color:transparent;transition:transform var(--lxa-d) var(--ux-ease)}
.btn:active:not(:disabled),.chip:active:enabled,.pick button:active:enabled,a.tile:not(.soon):active,.gc:not(.soon):active,.game:active,button.row:active:enabled,.row.click:active,.lvl button:active:enabled,.dock button:active,.tabsbar button:active,button.kpi:active{transform:scale(var(--lxa-k))}
.hud .btn:active,.tdo .btn:active,.demo .btn:active{transform:none}
/* Toast — phỏng theo nhịp Lucian UX/UI Prompt #435 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#435 */
.toast:not([hidden]){animation:lxa-toast .22s var(--ux-ease) backwards}
@keyframes lxa-toast{from{opacity:0;transform:translateX(-50%) translateY(8px)}}
/* Nút chép — Lucian UX/UI Prompt #008 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#008 */
.lxa-ok{position:relative}
.lxa-ok::after{position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;display:grid;place-items:center;content:"✓";font-weight:700;color:var(--pos-ink,var(--ux-ok));background:var(--ux-ok-bg);box-shadow:inset 0 0 0 1.5px var(--ux-ok);animation:lxa-ok 1.2s var(--ux-ease) both}
@keyframes lxa-ok{0%{opacity:0;transform:scale(.85)}15%,85%{opacity:1;transform:none}to{opacity:0}}
/* Khung xương lúc tải — Lucian UX/UI Prompt #439 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#439 */
#view>.empty:has(>.spin)::after{--lxa-b:linear-gradient(var(--ux-line-2),var(--ux-line-2));content:"";display:block;max-width:280px;height:46px;margin:14px auto 0;pointer-events:none;background:linear-gradient(90deg,transparent calc(100% - 90px),var(--lxa-sh) calc(100% - 45px),transparent) 0 0/0 100% no-repeat,var(--lxa-b) 0 0/100% 10px no-repeat,var(--lxa-b) 0 18px/82% 10px no-repeat,var(--lxa-b) 0 36px/60% 10px no-repeat;animation:lxa-sk 1.3s ease-in-out infinite}
@keyframes lxa-sk{to{background-size:calc(100% + 90px) 100%,100% 10px,82% 10px,60% 10px}}
/* Nhãn ô nhập — Lucian UX/UI Prompt #025 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#025 */
.fld:focus-within>span,.form label:focus-within{color:var(--ux-accent)}
.form label:focus-within>input{color:var(--muted)}
.codein input:focus{box-shadow:0 0 0 1px var(--ux-accent)}
@media (prefers-reduced-motion:reduce){:root{--lxa-k:1;--lxa-d:0s}.toast,#view>.empty::after{animation:none!important}}
@media print{.toast,#view>.empty::after{animation:none!important}}

:root{--lxb-ok:var(--ux-ok,var(--ok,#3FAE49));--lxb-bad:var(--ux-bad,var(--bad,#E5263F));--lxb-sp:var(--ux-spring,cubic-bezier(.34,1.56,.64,1))}
/* Đáp án đúng / sai — phỏng theo nhịp Lucian UX/UI Prompt #438 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#438 */
:is(.opts,.bigopts) button:is(.ok,.bad),.fill .gap:is(.ok,.bad),.q:is(.ok,.bad),.review .it{position:relative}
:is(.opts,.bigopts) button:is(.ok,.bad)::after,.fill .gap:is(.ok,.bad)::after{content:"✓";position:absolute;inset:-7px -6px auto auto;width:18px;text-align:center;border-radius:50%;
font:700 11px/18px sans-serif;pointer-events:none;background:var(--surface,#fff);color:var(--pos-ink,#1F7A2B);box-shadow:0 0 0 1.5px var(--lxb-ok)}
:is(.opts,.bigopts) button.bad::after,.fill .gap.bad::after{content:"✕";color:var(--neg-ink,#B8172F);box-shadow:0 0 0 1.5px var(--lxb-bad)}
.fill .gap:is(.ok,.bad)::after{inset:-15px 0 auto auto}
.q:is(.ok,.bad)::after,.review .it::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;box-shadow:0 0 0 3px var(--lxb-ok)}
.q.bad::after,.review .it.bad::after{box-shadow:0 0 0 3px var(--lxb-bad)}
/* Viên nền tab trượt — Lucian UX/UI Prompt #417 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#417 */
@media (max-width:1099px){#tabs.lxb-pl{position:relative;z-index:0}}
.lxb-pl::before{content:"";position:absolute;left:0;top:0;z-index:-1;width:var(--lxb-sw,100%);height:var(--lxb-sh,100%);pointer-events:none;opacity:0;background:var(--menu-on,#eee);
clip-path:inset(var(--lxb-t) var(--lxb-r) var(--lxb-b) var(--lxb-l) round 13px)}
@media screen and (prefers-reduced-motion:no-preference){
:is(.opts,.bigopts) button.ok{animation:lxb-nay .26s var(--lxb-sp)}
:is(.opts,.bigopts) button.bad{animation:lxb-lac .28s ease}
:is(.opts,.bigopts) button:is(.ok,.bad)::after{animation:lxb-dau .22s var(--lxb-sp) backwards}
.q:is(.ok,.bad)::after,.review .it::after{animation:lxb-vien .3s ease-out}
/* Chọn đáp án nhún — phỏng theo nhịp Lucian UX/UI Prompt #416 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#416 */
:is(.bigopts,.noi-opts,.lvl,.topics) button[aria-pressed="true"],.chip[aria-pressed="true"]{animation:lxb-nhun .14s var(--ux-ease,ease-out)}
.lxb-pl::before{transition:clip-path .38s var(--lxb-sp),opacity .1s .15s}
.lxb-pl.lxb-mv::before{opacity:1;transition-delay:0s;transition-duration:.38s,0s}
.lxb-pl.lxb-nt::before{transition:none}
.lxb-pl.lxb-mv>button[aria-selected="true"]{background:transparent}
/* Hộp thoại bật — Lucian UX/UI Prompt #436 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#436 */
dialog[open]{animation:lxb-vao .24s var(--lxb-sp)}
dialog[open]::backdrop{animation:lxb-mo .2s}
/* Khối gập mở mượt — Lucian UX/UI Prompt #044 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#044 */
details[open]>:not(summary){animation:lxb-tro .2s var(--ux-ease,ease-out) backwards}
}
@keyframes lxb-nay{45%{transform:scale(1.04)}}
@keyframes lxb-lac{20%,60%{transform:translateX(-3px)}40%,80%{transform:translateX(3px)}}
@keyframes lxb-dau{from{opacity:0;transform:scale(.4)}}
@keyframes lxb-vien{from{opacity:.55}}
@keyframes lxb-nhun{from{transform:scale(.96)}}
@keyframes lxb-vao{from{opacity:0;transform:translateY(12px) scale(.96)}}
@keyframes lxb-mo{from{opacity:0}}
@keyframes lxb-tro{from{opacity:0;transform:translateY(-4px)}}

@media screen and (prefers-reduced-motion:no-preference){
/* Thanh mọc — Lucian UX/UI Prompt #472 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#472 */
:is(.kpi .bar,.crit .r .b,.topics .r .b,.ph-wrap .bar,.cdb .r .b,.hk-c .bar)>i,.lxc-moc{transform-origin:0;animation:lxc-moc .24s var(--ux-ease,cubic-bezier(.2,.7,.2,1)) backwards}
@keyframes lxc-moc{from{transform:scaleX(var(--lxc-tu,0))}}
/* Thẻ trồi — Lucian UX/UI Prompt #251 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#251 */
:is(.tiles>a.tile,.hk3>.hk-c,.asg>.card,.gcards>.gc,.gamegrid>.game,.kpis>.kpi){animation:lxc-troi .18s var(--ux-ease,cubic-bezier(.2,.7,.2,1)) calc(var(--lxc-i,0)*20ms) backwards}
:is(.tiles,.hk3,.asg,.gcards,.gamegrid,.kpis)>:nth-child(2){--lxc-i:1}
:is(.tiles,.hk3,.asg,.gcards,.gamegrid,.kpis)>:nth-child(3){--lxc-i:2}
:is(.tiles,.hk3,.asg,.gcards,.gamegrid,.kpis)>:nth-child(n+4){--lxc-i:3}
.qcard{animation:lxc-mo .18s ease-out backwards}
#view>.panel:not(:has(.hud,.tbar,.tpp,.arena,.card3d,.bub,.fcard,.tw-wrap)){animation:lxc-mo .2s ease-out backwards}
@keyframes lxc-troi{from{opacity:.4;transform:translateY(6px)}}
@keyframes lxc-mo{from{opacity:.4}}
/* Số bật — phỏng theo nhịp Lucian UX/UI Prompt #426 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#426 */
:is(.score b,.score .big,.result .big,.hk-big,.res .sc){animation:lxc-bat .24s var(--ux-spring,cubic-bezier(.34,1.56,.64,1)) backwards}
@keyframes lxc-bat{from{transform:scale(.9)}}
/* Bút dạ quang — Lucian UX/UI Prompt #281 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#281 */
h1 em{background:linear-gradient(var(--accent-soft,#E6F0FD) 0 0) 0 92%/100% 44% no-repeat;-webkit-box-decoration-break:clone;animation:lxc-quet .5s cubic-bezier(.55,.1,.3,1) .1s backwards}
@keyframes lxc-quet{from{background-size:0 44%}}
@keyframes lxc-bay{50%{transform:translateY(-6px)}}
.lxc-top{animation:lxc-len .2s ease-out backwards;transition:transform .15s}
.lxc-top:active{transform:scale(.92)}
@keyframes lxc-len{from{opacity:.4;transform:translateY(8px)}}
}
/* Nút lên đầu trang — Lucian UX/UI Prompt #450 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#450 */
.lxc-top{position:fixed;z-index:25;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid var(--line2,#E2E2E2);border-radius:50%;background:var(--surface,#FCFCFC);color:var(--ink,#1F1D1A);cursor:pointer;-webkit-tap-highlight-color:transparent}
.lxc-top[hidden]{display:none!important}
@media (max-width:1099px){.lxc-top.lxc-dk{bottom:calc(84px + env(safe-area-inset-bottom,0px))}}
@media print{.lxc-top{display:none!important}}
/* ===== lux nhóm d — v4 (27/11/2026, Bu): 6 món còn lại so với Valor dashboard. Chỉ phần nhìn, không đổi chữ / số / lệnh ghi ===== */
/* Vòng tiến độ cuộn quanh nút lên đầu — Lucian UX/UI Prompt #450 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#450 */
.lxd-vg{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);transform:rotate(-90deg);pointer-events:none;overflow:visible}
.lxd-vg circle{fill:none;stroke:var(--ux-accent);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100}
/* Ô nhập mã đúng dạng → dấu tích xanh — Lucian UX/UI Prompt #025 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#025 */
.codein.lxd-hop input{border-color:var(--ux-ok)!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%233FAE49'/%3E%3Cpath d='M5.8 10.3l2.7 2.7 5.7-5.9' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:20px 20px;padding-right:40px;padding-left:40px}
/* Bảng: dải nền khi rê chuột — phỏng theo nhịp Lucian UX/UI Prompt #031 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#031 */
@media (hover:hover){:where(.tablebox,.wkt) tbody tr:hover>td:not([class*="cell-"]){background:var(--ux-soft)}}
/* Ô trống: biểu tượng khay — phỏng theo nhịp Lucian UX/UI Prompt #440 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#440 */
.empty:not(td):not(:has(.spin)):not(.kt-pic .empty)::before{content:"";display:block;width:28px;height:28px;margin:0 auto 8px;background:currentColor;opacity:.55;pointer-events:none;
-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13h4l1.5 2.5h5L16 13h4'/%3E%3Cpath d='M4 13l2.2-6.6A2 2 0 0 1 8.1 5h7.8a2 2 0 0 1 1.9 1.4L20 13v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center/contain no-repeat;
mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13h4l1.5 2.5h5L16 13h4'/%3E%3Cpath d='M4 13l2.2-6.6A2 2 0 0 1 8.1 5h7.8a2 2 0 0 1 1.9 1.4L20 13v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center/contain no-repeat}
/* Hộp thoại trên iPhone thành tấm trượt từ đáy — Lucian UX/UI Prompt #436 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#436 */
/* hộp có ô nhập (thêm HS, sửa lớp…) giữ ở giữa: bàn phím iPhone không che nút Lưu; riêng ô nhận xét #hsC của hồ sơ bé (chỉ sửa để chép) vẫn cho tấm đáy */
@media (max-width:640px){dialog#dlg:not(:has(input:not([type=checkbox]):not([type=radio]),textarea:not(#hsC),select)){margin:auto 0 0;width:100%;max-width:100%;max-height:calc(100dvh - 32px);border-radius:20px 20px 0 0;border-bottom:0}
dialog#dlg:not(:has(input:not([type=checkbox]):not([type=radio]),textarea:not(#hsC),select))>#dlgBody{padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}}
@media screen and (prefers-reduced-motion:no-preference){
.codein.lxd-hop input{animation:lxd-tich .26s var(--ux-spring,cubic-bezier(.34,1.56,.64,1))}
@keyframes lxd-tich{from{background-size:0 0}}
.empty:not(td):not(:has(.spin)):not(.kt-pic .empty)::before{animation:lxc-bay 1.6s ease-in-out 3}
/* Hàng bảng trồi khi cuộn tới — phỏng theo nhịp Lucian UX/UI Prompt #251 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#251 */
tr.lxd-tr{animation:lxd-tr .3s var(--ux-ease,cubic-bezier(.2,.7,.2,1)) backwards}
@keyframes lxd-tr{from{opacity:0;transform:translateY(8px)}}
/* Biểu đồ tuần: chấm bật lần lượt, đường nối hiện dần — phỏng theo nhịp Lucian UX/UI Prompt #472 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#472 */
.wk.lxd-ve svg>circle{transform-box:fill-box;transform-origin:center;animation:lxd-cham .3s var(--ux-spring,cubic-bezier(.34,1.56,.64,1)) var(--lxd-t,0s) backwards}
.wk.lxd-ve svg>line:not(.xh),.wk.lxd-ve svg>text{animation:lxd-hien .3s ease-out var(--lxd-t,0s) backwards}
@keyframes lxd-cham{from{transform:scale(0)}}
@keyframes lxd-hien{from{opacity:0}}
@media (max-width:640px){dialog#dlg[open]:not(:has(input:not([type=checkbox]):not([type=radio]),textarea:not(#hsC),select)){animation:lxd-day .28s cubic-bezier(.2,.8,.2,1)}}
@keyframes lxd-day{from{transform:translateY(100%)}}
}
@media print{.lxd-vg{display:none!important}.empty::before{display:none!important}}

/* ===== Nhóm e (27/11/2026, Bu): nút «Trang chủ» trên thanh đầu mọi trang (cậu Long: về trang chủ nhanh từ mọi nơi). Iphone: chỉ còn icon. ===== */
.lxe-nha{display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.lxe-nha svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.atop .lxe-nha svg{width:18px;height:18px;stroke:var(--ink2)}
@media (max-width:640px){.lxe-nha>span{display:none}.btn.lxe-nha{min-width:34px;justify-content:center;padding-inline:8px}}
@media print{.lxe-nha{display:none!important}}
/* thanh đầu chật (iPhone, tên giáo viên dài): tên trang + tên người tự rút «…» thay vì đẩy nút Đăng xuất ra ngoài; nút chừa khoảng tối thiểu */
@media (max-width:640px){.topnav:has(.lxe-nha){flex-wrap:nowrap;gap:6px}.topnav:has(.lxe-nha) .brand{min-width:0;flex:0 1 auto}.topnav:has(.lxe-nha) .brand>div{min-width:0;overflow:hidden}.topnav:has(.lxe-nha) .brand>div,.topnav:has(.lxe-nha) .brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topnav:has(.lxe-nha) .sp{min-width:0}.topnav:has(.lxe-nha) .brand .mark{flex:none}.topnav:has(.lxe-nha)>.btn,.topnav:has(.lxe-nha)>a.btn{flex:none}}

/* ===== Nhóm f (v5, 28/11/2026, Bu): soát cuối Lucian — chỉ chạy lúc mở trang, ≤240 ms, 2 vệt sáng rồi thôi */
@media screen and (prefers-reduced-motion:no-preference){
/* Tiêu đề trồi lần lượt — phỏng theo nhịp Lucian UX/UI Prompt #216 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#216 */
.wrap>div.brand,.wrap>div.brand~div>:is(h1,.sub),.lhero>div:first-child>*{animation:lxf-len .18s cubic-bezier(.2,.8,.2,1) calc(var(--lxf-i,0)*15ms) backwards}
.wrap>div.brand~div>h1,.lhero>div:first-child>:nth-child(2){--lxf-i:1}
.wrap>div.brand~div>.sub,.lhero>div:first-child>:nth-child(3){--lxf-i:2}
.lhero>div:first-child>:nth-child(4){--lxf-i:3}
.lhero>div:first-child>:nth-child(n+5){--lxf-i:4}
@keyframes lxf-len{from{opacity:.4;transform:translateY(14px)}}
/* Vệt sáng lướt qua nhãn — Lucian UX/UI Prompt #252 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#252 */
.lhero .eb{position:relative;overflow:hidden}
.lhero .eb::after{content:"";position:absolute;top:0;bottom:0;left:-80px;width:60px;background:linear-gradient(100deg,transparent,var(--lxa-sh,#fff9),transparent);transform:skewX(-18deg);pointer-events:none;animation:lxf-sh 3s ease-in-out .5s 2}
@keyframes lxf-sh{0%{left:-80px}30%,100%{left:120%}}
}
