/* v1.7.12 – Thiết kế lại site giáo viên (anh Huu 16/11; Gemini + Canvas thiết kế, BS36).
   Quy tắc: một màu chủ đạo (teal) chỉ cho NÚT CHÍNH duy nhất mỗi màn + mục đang chọn; số liệu là chữ thường, không nằm trong nút;
   nút ≥ 40px; viền 1px nhạt thay đổ bóng; tiếng Việt dài → cho xuống 2 dòng, không cắt giữa chữ. */
.tq{display:flex;flex-direction:column;gap:20px;max-width:1240px}
.tq-hd{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.tq-hd h1{margin:0;font-size:28px;line-height:1.25}
.tq-sum{margin:6px 0 0;color:var(--muted);font-size:15px}
.tq-acts{display:flex;gap:10px;flex-wrap:wrap}
.tq-acts .btn,.hub-tabs a,.pf-ti{min-height:40px}
.tq-acts .btn svg{width:18px;height:18px;margin-right:6px;vertical-align:-3px}
.tq-alert{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid color-mix(in srgb,#d97706 35%,transparent);background:color-mix(in srgb,#fef3c7 70%,var(--surface));border-radius:12px;font-size:14px}
.tq-alert svg{width:18px;height:18px;color:#b45309;flex:none}.tq-alert a{margin-left:auto;font-weight:600;white-space:nowrap}
.tq-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.tq-k{padding:16px 20px;display:flex;flex-direction:column;gap:2px;border-left:1px solid var(--line)}.tq-k:first-child{border-left:0}
.tq-kl{font-size:13px;color:var(--muted)}.tq-kv{font-size:28px;font-weight:700;line-height:1.2;color:var(--ink)}.tq-kv small{font-size:15px;font-weight:500;color:var(--muted)}
.tq-ks{font-size:13px;color:var(--muted)}.tq-k.warn .tq-kv{color:#b45309}
.tq-todo{margin:0}
.tq-cls h2{margin:0;font-size:19px}.tq-cls .cards{margin-top:12px}
.tq-util{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px}
.tq-util h3{margin:0;font-size:16px;display:flex;align-items:center;gap:8px}
.tq-m{display:grid;gap:2px;padding:10px 0;border-top:1px solid var(--line);color:inherit;text-decoration:none}.tq-m:first-of-type{margin-top:10px}
.tq-m b{font-size:14px}.tq-m.un b::after{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-left:6px;vertical-align:1px}
.tq-mb{font-size:14px;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tq-m:hover .tq-mb{color:var(--accent)}
.tq-camp{display:flex;gap:8px;align-items:center;padding:8px 0;color:inherit;text-decoration:none}.tq-camp:first-of-type{margin-top:8px}
.tq-seat{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.tq-seatn{font-size:14px;color:var(--muted);margin:6px 0}.tq-seatn b{color:var(--ink);font-size:18px}
/* Học liệu: một cửa, 4 thẻ con */
.hub-tabs{margin:0 0 18px}.hub-h{margin-bottom:4px}
.hub-row{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.hub-row a{display:inline-flex;align-items:center;padding:10px 14px;color:var(--muted);font-weight:600;text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.hub-row a.on{color:var(--accent);border-bottom-color:var(--accent)}.hub-row a:hover{color:var(--ink)}
.hub-sub{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.hub-sub a{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;font-size:14px;color:var(--ink);text-decoration:none;background:var(--surface)}
.hub-sub a svg{width:16px;height:16px}.hub-sub a.on{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.hub-trash{display:inline-flex;align-items:center;gap:6px;margin:22px 0 8px;color:var(--muted)}.hub-trash svg{width:16px;height:16px}
/* Tài khoản & Tiện ích */
.pf-tools{margin:12px 0 16px}.pf-tools h3{margin:0 0 10px}
.pf-tl{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}
.pf-ti{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);border-radius:12px;color:inherit;text-decoration:none;background:var(--surface)}
.pf-ti svg{width:20px;height:20px;flex:none;color:var(--accent);margin-top:2px}.pf-ti span{display:grid;gap:2px}.pf-ti small{color:var(--muted);font-size:13px}
.pf-ti:hover{border-color:var(--accent)}.pf-ti.warn{border-color:color-mix(in srgb,#d97706 45%,transparent)}.pf-ti.warn svg{color:#b45309}
/* chân thanh bên: các lối phụ xếp dọc, không xuống dòng giữa chữ */
#sidefoot .sf-links a{white-space:nowrap}
@media (max-width:900px){.tq-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.tq-k:nth-child(3){border-left:0}.tq-k:nth-child(n+3){border-top:1px solid var(--line)}.tq-util{grid-template-columns:1fr}}
@media (max-width:600px){.tq-hd h1{font-size:22px}.tq-acts{width:100%}.tq-acts .btn{flex:1;justify-content:center}.tq-k{padding:12px 14px}.tq-kv{font-size:22px}.tq-alert{flex-wrap:wrap}.tq-alert a{margin-left:0}}
.clscard .cc-n{display:inline-flex;align-items:center;gap:4px}.clscard .cc-n svg{width:15px;height:15px}

/* v1.7.12 – BS37 thiết kế lại site học sinh (Gemini + Canvas) */
.sxdiem{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 10px;border-radius:10px;color:var(--ink);font-weight:600;font-size:14px;text-decoration:none}
.sxdiem svg{width:18px;height:18px}.sxdiem.on,.sxdiem:hover{color:var(--accent);background:var(--accent-soft,rgba(13,148,136,.08))}
.hub-s .hub-row{-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
@media (min-width:700px){.hub-s .hub-row{-webkit-mask-image:none;mask-image:none}}
.sxfilter{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.sxfilter .sxlsearch{flex:1 1 220px;min-width:0}
.sxfilter select{min-height:40px;max-width:100%;border:1px solid var(--line);border-radius:10px;padding:0 10px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px}
.sxfind{display:flex;margin:0 0 12px;min-width:0;max-width:none}
.sxmore{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0}
.sxmore .btn{min-height:40px}
.sxold{margin-top:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.sxold>summary{cursor:pointer;padding:12px 14px;font-weight:600;display:flex;justify-content:space-between;gap:10px;min-height:44px;align-items:center}
.sxold>summary span{color:var(--muted);font-weight:500}
.sxold .sxlist{padding:0 8px 8px}
.sxrow b{overflow-wrap:anywhere;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media (max-width:640px){.sxdiem span{display:none}.sxdiem{padding:0 8px}}
/* BS37 – thanh trên điện thoại ≤ 480px: thêm nút "Điểm số" nên cất tên trang (đã có ở thanh đáy), nút sáng/tối và tin nhắn (đã có ở Tài khoản / thanh đáy) */
@media (max-width:480px){body:not(.guest) .topbar .crumb{display:none}body:not(.guest) .topbar #theme{display:none}body:not(.guest) .topbar #chatbtn{display:none}body:not(.guest) .topbar .tbrand{margin-right:auto}}
/* bài giảng video: ảnh thu nhỏ YouTube thay biểu tượng (17/11) */
.cd-thumb{position:relative;flex:0 0 auto;width:96px;height:54px;border-radius:8px;overflow:hidden;background:#0f172a}
.cd-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cd-thumb i{position:absolute;inset:auto 6px 6px auto;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center}
.cd-thumb i svg{width:12px;height:12px}
@media (max-width:480px){.cd-thumb{width:80px;height:45px}}
/* 17/11 – lỗi biểu tượng lệch: lớp "exam" của ô biểu tượng (.sxk.exam) trùng tên với bố cục màn làm bài (.exam = lưới 2 cột 1fr + 280px) */
.sxk.exam,.sxk.practice,.sxk.lesson{grid-template-columns:none;gap:0;align-items:center}
/* BS39 – song ngữ */
#i18n-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 16px 0;padding:6px 12px;min-height:32px;border-radius:8px;background:#fef3c7;color:#78350f;font-size:13px}
#i18n-strip button{border:0;background:none;color:inherit;font-size:18px;line-height:1;cursor:pointer;min-width:32px;min-height:32px}
#i18n-pill{position:fixed;top:12px;right:12px;z-index:50;display:flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--surface);box-shadow:0 2px 8px rgba(0,0,0,.06);font-size:13px}
#i18n-pill button{border:0;background:none;padding:6px 10px;border-radius:999px;min-height:32px;cursor:pointer;color:var(--ink)}
#i18n-pill button.on{background:var(--accent);color:#fff}
.pf-lang{display:flex;flex-direction:column;gap:6px;margin:12px 0}
.pf-lang-l{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pf-lang select{min-height:40px;border:1px solid var(--line);border-radius:10px;padding:0 10px;background:var(--surface);color:var(--ink);font:inherit;max-width:100%}
.lsw-langlink{color:inherit;text-decoration:underline}
/* EN dài hơn: nhãn thanh đáy không xuống dòng, cắt gọn (Gemini 4.5) */
html[lang=en] #bnav a span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
html[lang=en] .btn{white-space:nowrap}
/* v1.7.12 (BS38) – Lớp học của giáo viên khi nhiều lớp */
.tcl-hd{gap:10px;flex-wrap:wrap;align-items:center}
.tcl-q{min-height:40px;min-width:260px;padding:6px 12px;border:1px solid var(--line,#e2e8f0);border-radius:10px;font:inherit}
.tcl-lab{margin:2px 0 8px}
.tcl-more{display:flex;justify-content:center;margin:12px 0}
.tcl-more .btn{min-height:44px;min-width:200px}
.tcl-arch summary{cursor:pointer;margin:18px 0 8px;list-style:none}
.tcl-arch summary::-webkit-details-marker{display:none}
.tcl-arch summary::before{content:'▸ ';color:var(--muted,#64748b)}
.tcl-arch[open] summary::before{content:'▾ '}
@media (max-width:480px){.tcl-q{min-width:0;width:100%}}
/* v1.7.12 (BS38) – Bài & Đề: ô lớp + ô tìm chiếm đủ bề ngang trên điện thoại */
@media (max-width:600px){ #bkcls,#bkq{max-width:none!important;flex:1 1 100%;width:100%} #bkcls{min-height:44px} #bkq{min-height:44px} #bkcls + #bkq{margin-top:0} .bk-lab{line-height:1.5} }
/* v1.7.12 (BS38) – kết quả một bài: thanh lọc học sinh */
.rs-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin:6px 0 2px}
.rs-bar #rsq{max-width:280px;min-height:40px} #rstbl tr[hidden]{display:none}
@media (max-width:600px){ .rs-bar #rsq{max-width:none;width:100%} }
/* v1.7.12-hf – gợi ý dưới ô tên bài (dán nhầm link video) */
.ttlhint{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 4px;padding:8px 12px;border:1px solid #f59e0b;border-radius:10px;background:#fef3c7;color:#92400e;font-size:13.5px}
.ttlhint span{flex:1 1 220px}
.mathword{font-style:normal}

/* v1.7.13 – màn soạn BÀI GIẢNG làm lại (hội đồng thiết kế 17/11): ba thẻ cùng một khuôn (tiêu đề + nút phụ bên phải,
   một dòng hướng dẫn xám, phần thân); cột phải xem trước dính khi cuộn. Không emoji, nút nào cũng có chữ. */
.lsn-ed{grid-template-columns:minmax(0,58fr) minmax(0,42fr);gap:20px}
.lsn-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.lsn-c{padding:20px 22px;margin:0}
.lsn-h{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.lsn-h h3{margin:0;font-size:16.5px;font-weight:700;color:var(--ink)}
.lsn-help{margin:4px 0 14px;font-size:13.5px;color:var(--muted);line-height:1.5}
.lsn-badge{font-size:12.5px;font-weight:600;color:var(--muted);background:var(--bg);border-radius:999px;padding:3px 10px;white-space:nowrap}
.lsn-add{display:flex;gap:8px}
.lsn-add input{flex:1;min-width:0;min-height:44px}
.lsn-add .btn{min-height:44px;padding:0 22px}
.lsn-sub{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0}
#lvmbao:not(:empty){margin-top:10px}
#lvmbao .note{margin:0}
#lvmulti{margin-top:14px}
.lsn-empty{border:1px dashed var(--line);border-radius:10px;padding:18px 14px;text-align:center;font-size:13.5px;color:var(--muted)}
.lsn-vl{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.lsn-vl>li{display:flex;align-items:center;gap:12px;padding:10px 12px;background:var(--surface,#fff)}
.lsn-vl>li+li{border-top:1px solid var(--line)}
.lsn-vn{flex:none;width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700}
.lsn-vt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lsn-vt b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lsn-va{flex:none;display:flex;gap:2px}
.lsn-va .btn.sm{min-height:36px;padding:0 10px;color:var(--muted)}
.lsn-va .btn.sm:not(:disabled):hover{color:var(--ink);background:var(--bg)}
.lsn-va .btn:disabled{opacity:.35}
.lsn-del{color:var(--crit)!important}
.lsn-ta{width:100%;min-height:300px;resize:vertical;font-size:15px;line-height:1.6;margin:0}
#lcnd .rf{min-height:280px;font-size:16px}
.lsn-c .btn.sm{min-height:38px}
.lsn-busy{display:flex;align-items:center;gap:10px;padding:10px 12px;margin-bottom:10px;border-radius:10px;background:var(--info-soft);font-size:14px}
.lsn-busy .spin{margin:0;width:18px;height:18px}
#lcnd.drag,#lcnd.over{outline:2px dashed var(--accent);outline-offset:2px}
.lsn-file{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px}
.lsn-file b{flex:1;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lsn-fi{color:var(--muted);display:flex}
.lsn-prev{padding:20px 22px}
.lsn-prev .eyebrow{margin-bottom:10px}
.lsn-pv{margin-bottom:16px}
.lsn-pvl{margin:8px 0 0;padding:0;list-style:none;font-size:13.5px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.lsn-pvl li{padding:7px 12px;color:var(--muted)}
.lsn-pvl li+li{border-top:1px solid var(--line)}
.lsn-pvl li.on{color:var(--accent);font-weight:600;background:var(--accent-soft)}
@media (max-width:1100px){.lsn-ed{grid-template-columns:1fr}.lsn-prev{position:static;max-height:none}}
@media (max-width:640px){
  .lsn-c,.lsn-prev{padding:16px}
  .lsn-sub .btn{flex:1}
  .lsn-vl>li{flex-wrap:wrap;row-gap:6px}
  .lsn-vt{flex-basis:calc(100% - 40px)}
  .lsn-va{width:100%;justify-content:flex-end}
  .lsn-ta,#lcnd .rf{min-height:220px}
}

/* v1.7.13 – ẢNH BÌA VIDEO dùng chung (danh sách bài GV/HS, trang chủ, chi tiết bài giảng, màn soạn).
   Không có ảnh (video trong kho chưa chụp bìa, Vimeo, ảnh Drive riêng tư) → ô tối có nút ▶ ở giữa. */
.vth{position:relative;flex:none;display:block;width:96px;height:54px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,hsl(var(--vh,215) 55% 34%),hsl(var(--vh,215) 60% 22%));color:#fff}
.vth img{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;display:block}
/* v1.7.13 (BS41) – BÌA TỰ VẼ: màu môn + tên môn + tên bài. Nằm DƯỚI ảnh; ảnh không có/hỏng thì bìa này là thứ em thấy. */
.vth .vg{position:absolute;inset:0;padding:5px 7px;display:flex;flex-direction:column;justify-content:flex-start;gap:1px;line-height:1.2;text-align:left}
.vth .vg b{font-size:9px;font-weight:700;letter-spacing:.02em;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.vth .vg em{font-style:normal;font-size:10.5px;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vth .vg .vgn{margin-top:auto;font-size:9px;opacity:.85}
.vth i{z-index:2}
.vth-row .vg em,.vth-ed .vg em,.cd-thumb .vg em{display:none}
.vth-row .vg,.vth-ed .vg,.cd-thumb .vg{justify-content:center;align-items:flex-start}
.vth-row .vg b,.vth-ed .vg b,.cd-thumb .vg b{font-size:9.5px}
.vth i{position:absolute;right:5px;bottom:5px;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.62);color:#fff;display:grid;place-items:center}
.vth i svg{width:11px;height:11px;margin-left:1px}

.vth-row{width:72px;height:40px;border-radius:8px}
.vth-row i{width:18px;height:18px;right:3px;bottom:3px}

.vth-ed{width:64px;height:36px;border-radius:6px}
.vth-ed i{width:16px;height:16px;right:3px;bottom:3px}
.vth-ed i svg,.vth-row i svg{width:9px;height:9px}
.vth-part{width:80px;height:45px;border-radius:6px}
.vth-part i{width:18px;height:18px;right:3px;bottom:3px}
@media (max-width:640px){.vth-row{width:64px;height:36px}.vth-part{width:72px;height:40px}}

/* v1.7.13 – thẻ con đứng yên: khung chờ, vạch tiến trình, lỗi trong khung (Gemini) */
.hub-tabs{position:relative}
.hub-tabs.busy::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:linear-gradient(90deg,transparent,var(--accent),transparent);background-size:40% 100%;background-repeat:no-repeat;animation:hubbar 1.1s linear infinite}
@keyframes hubbar{from{background-position:-40% 0}to{background-position:140% 0}}
.hub-panel{min-height:60vh;outline:none}
.hub-skel{display:grid;gap:12px;margin-top:8px}
.hub-skel i{display:block;height:64px;border-radius:12px;background:linear-gradient(90deg,var(--line) 0%,var(--surface) 50%,var(--line) 100%);background-size:200% 100%;animation:hubsk 1.4s ease-in-out infinite;opacity:.7}
@keyframes hubsk{from{background-position:100% 0}to{background-position:-100% 0}}
.hub-slow{margin:0 0 8px}
.hub-err{padding:20px;display:grid;gap:8px;justify-items:start}.hub-err .btn{min-height:44px}
@media (prefers-reduced-motion:reduce){.hub-tabs.busy::after,.hub-skel i{animation:none}}
#main.hub-stay>*{animation:none!important}
/* v1.7.13 – thanh thẻ trang lớp / nhà trường: vạch tiến trình khi đang đổi thẻ (đầu trang đứng yên) */
nav.tabs{position:relative}
nav.tabs.busy::after,.sc-otabs.busy::after,.sc-seg.busy::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,transparent,var(--accent),transparent);background-size:40% 100%;background-repeat:no-repeat;animation:hubbar 1.1s linear infinite}
@media (prefers-reduced-motion:reduce){nav.tabs.busy::after{animation:none}}
.kp-chips{position:relative;padding-bottom:4px}.kp-chips.busy::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,transparent,var(--accent),transparent);background-size:40% 100%;background-repeat:no-repeat;animation:hubbar 1.1s linear infinite}
/* v1.7.34 – trang Lớp học & mục "Lớp học của tôi": dòng gọn gom theo khối (hội đồng ai-council-design) */
.tcl-dau{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.tcl-dau h1{margin:0 0 2px}.tcl-dau p{margin:0}.tcl-dau p b{color:#b45309;font-weight:600}
.tcl-nut{display:flex;gap:8px;flex-wrap:wrap}
.tcl-cc{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 12px}
.tcl-cc .tcl-q{flex:1 1 320px;max-width:460px;min-height:44px}
.tcl-cc select{min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);padding:0 10px;font:inherit}
.tcl-cc .tcl-lab{margin:0 0 0 auto}
.tcl-ds{display:flex;flex-direction:column;gap:14px}
.tcl-nhom{border:0}
.tcl-nhom>summary{display:flex;align-items:baseline;gap:10px;cursor:pointer;list-style:none;padding:4px 2px 8px;font-size:15px}
.tcl-nhom>summary::-webkit-details-marker{display:none}
.tcl-nhom>summary::before{content:'';width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(-45deg);transition:transform .15s;align-self:center;margin-right:2px}
.tcl-nhom[open]>summary::before{transform:rotate(45deg)}
.tcl-nhom>summary b{font:700 17px var(--f-display);color:var(--ink)}
.tcl-nhom>summary span{color:var(--muted);font-size:14px}.tcl-nhom>summary em{font-style:normal;color:#b45309;font-weight:600}
.tcl-nhom>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.tcl-nhom-ds{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
.clsrow.clscard{display:grid;grid-template-columns:40px minmax(0,1.4fr) minmax(0,1fr) minmax(0,auto) auto 44px;align-items:center;gap:14px;min-height:72px;padding:10px 12px 10px 16px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;color:var(--ink);text-decoration:none;position:relative;overflow:visible}
.clsrow.clscard:last-child{border-bottom:0}
.clsrow.clscard:hover{background:var(--bg);transform:none;box-shadow:none;border-color:var(--line)}
.clsrow.clscard:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.clsrow .cr-mon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:color-mix(in srgb,var(--mc) 10%,var(--surface));color:var(--mc)}
.clsrow.clscard .band.cover.cr-anh{display:block;width:40px;height:40px;margin:0;border-radius:10px;padding:0}
.clsrow .cr-ten{min-width:0;display:flex;flex-direction:column}
.clsrow .cr-ten h3{margin:0;font:600 16.5px/1.3 var(--f-display);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.clsrow .cr-ten small{color:var(--muted);font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.clsrow .cr-so{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:14px}
.clsrow .cc-n{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.clsrow .cc-n svg{width:15px;height:15px}
.clsrow .cr-cho{color:#b45309;font-weight:600;white-space:nowrap}
.clsrow .cr-viec{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 4px;color:#b45309;font-weight:600;font-size:14.5px;cursor:pointer;white-space:nowrap;border-radius:8px}
.clsrow .cr-viec.hot{color:#b91c1c}
.clsrow .cr-viec:hover{text-decoration:underline}.clsrow .cr-viec:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.clsrow .cr-viec::before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
.clsrow .cr-ma{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 8px;border-radius:8px;color:var(--muted);cursor:pointer}
.clsrow .cr-ma .ccode{font:600 13px ui-monospace,monospace;background:none;padding:0;color:var(--ink);letter-spacing:.04em}
.clsrow .cr-ma svg{width:15px;height:15px}.clsrow .cr-ma:hover{background:var(--soft,#f1f5f9)}.clsrow .cr-ma:focus-visible{outline:2px solid var(--accent)}
.clsrow.clscard .cmenu{position:static;width:44px;height:44px;border-radius:10px;border-color:transparent;background:transparent}.clsrow.clscard .cmenu:hover{border-color:var(--line)}
.tq-cls-ds .clsrow.clscard{grid-template-columns:40px minmax(0,1.4fr) minmax(0,1fr) minmax(0,auto) 44px}
.tcl-them{margin:8px 16px 12px;align-self:flex-start}
.tcl-arch{margin-top:18px}.tcl-arch>summary{cursor:pointer;font-weight:600;padding:6px 2px}.tcl-arch .tcl-nhom-ds{margin-top:8px;opacity:.85}
.tcl-meo{margin-top:16px}
.tcl-rong{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:32px 16px}.tcl-rong svg{width:32px;height:32px;color:var(--muted)}
@media (max-width:760px){
  .clsrow.clscard,.tq-cls-ds .clsrow.clscard{grid-template-columns:40px minmax(0,1fr) 44px;grid-template-areas:"a t m" "a s s" "a v v";row-gap:4px;column-gap:12px;padding:12px 8px 12px 12px}
  .clsrow .cr-mon,.clsrow .cr-anh{grid-area:a;align-self:start}
  .clsrow .cr-ten{grid-area:t}.clsrow .cmenu{grid-area:m;align-self:start}
  .clsrow .cr-so{grid-area:s;gap:10px;font-size:13.5px}
  .clsrow .cr-viec-o{grid-area:v}.clsrow .cr-viec-o:empty{display:none}
  .clsrow .cr-ma{display:none}
  .tcl-cc .tcl-lab{margin:0;flex-basis:100%}
  .tcl-nut .btn{flex:1}
}
/* v1.7.35 – ngoại lệ từng em trên trang kết quả */
.nl-chip{background:color-mix(in srgb,var(--acc,#0f766e) 12%,transparent);color:inherit;font-weight:600}
.nl-cur{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:8px 0 12px;display:grid;gap:6px}
.nl-loai{border:0;padding:0;margin:0 0 8px;display:flex;gap:18px;flex-wrap:wrap}
.nowrap{white-space:nowrap}
.late-box{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.pk-row{margin-top:12px}.pk-tl-f{margin-top:10px}.gm-ls{margin-top:6px}.gm-ls ol{margin:4px 0 0;padding-left:18px}
.nl-nhanh{display:flex;gap:8px;margin:4px 0 8px;flex-wrap:wrap}.nl-nhanh .btn{min-height:40px}
.pk-ctx{margin:8px 0;padding:8px 10px;border-radius:8px;background:var(--soft)}
.gm-keys{margin-top:6px;font-size:12.5px}.gm-keys kbd{font:600 11.5px var(--f-body,inherit);border:1px solid var(--line,#e2e8f0);border-bottom-width:2px;border-radius:5px;padding:0 5px;background:var(--surface,#fff)}
/* v1.7.40 – BS90 H2: Tự luyện 3 đoạn vừa khít 390, không cuộn ngang */
.hub-s3 .hub-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hub-bm{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-radius:999px;color:var(--ink);text-decoration:none;font-weight:600;font-size:14px;border:1px solid var(--line);background:var(--surface)}
.hub-bm svg{color:#0f766e}.hub-bm.on{border-color:#0f766e;color:#0f766e;background:#f0fdfa}
.hub-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:14px;background:var(--line,#e2e8f0)}
.hub-seg a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border-radius:10px;color:var(--muted);font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap}
.hub-seg a.on{background:var(--surface,#fff);color:#0f766e;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.hub-seg a:hover:not(.on){color:var(--ink)}
@media (max-width:380px){.hub-seg a{font-size:14px;gap:4px}.hub-seg svg{width:16px;height:16px}}
@media (min-width:900px){.hub-seg{max-width:560px}}
/* v1.7.40 – BS90 G3: Chấm bài = một danh sách theo độ gấp + chip lọc */
.gq2-f{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 16px}
.gq2-f button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:600 14px var(--f-body);cursor:pointer}
.gq2-f button em{font-style:normal;font-weight:800;color:var(--muted)}
.gq2-f button[aria-selected="true"]{background:#0f766e;border-color:#0f766e;color:#fff}.gq2-f button[aria-selected="true"] em{color:#ccfbf1}
.gq2-i{width:18px;height:18px;flex:none}
.gq.gq2{display:flex;flex-direction:column;gap:18px}
.gq2-g{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.gq2-h{display:flex;align-items:center;gap:8px;margin:0;font:800 16px var(--f-display)}
.gq2-h .gq2-i{width:22px;height:22px;padding:5px;box-sizing:content-box;border-radius:10px;background:#f0fdfa;color:#0f766e}
.gq2-cham .gq2-h .gq2-i{background:#fef3c7;color:#b45309}.gq2-xong .gq2-h .gq2-i{background:var(--soft,#f1f5f9);color:#475569}
.gq2-hint{margin:4px 0 10px}
.gq2-l{display:flex;flex-direction:column;gap:8px}
.gq2 .gq-it{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;min-height:56px;color:inherit;text-decoration:none;background:var(--surface)}
.gq2 a.gq-it:hover{border-color:#0f766e}
.gq2-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.gq2-t b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gq2 .gq-go{flex:none;min-width:112px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--line);font-weight:700;font-size:14px;color:#0f766e}
.gq2 .gq-2{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.gq2 .gq-2 .btn{min-height:40px;display:inline-flex;align-items:center;gap:6px}
.st-ic.ok{background:#f0fdfa;color:#0f766e}
@media (max-width:600px){.gq2 .gq-it{flex-wrap:wrap}.gq2 .gq-go{min-width:0;width:100%}.gq2 .gq-2{width:100%}.gq2 .gq-2 .btn{flex:1;justify-content:center}}
/* v1.7.40 – BS90 G4: thanh bên giáo viên – hai nhóm có nhãn ở đáy; thanh trên gọn (chuông + trợ giúp) */
body.tb-slim .topbar #theme,body.tb-slim .topbar #chatbtn{display:none}
.sf-grp{border-radius:12px}
.sf-grp>summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 10px;border-radius:10px;cursor:pointer;font-weight:700;font-size:14.5px;color:var(--ink)}
.sf-grp>summary::-webkit-details-marker{display:none}
.sf-grp>summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s;opacity:.6}
.sf-grp[open]>summary::after{transform:rotate(45deg)}
.sf-grp>summary:hover{background:var(--soft,#f1f5f9)}
.sf-gl{display:flex;flex-direction:column;gap:2px;padding:2px 0 6px 12px}
.sf-gl a,.sf-gl button{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 10px;border-radius:10px;color:var(--muted);text-decoration:none;font:500 14.5px var(--f-body);background:none;border:0;cursor:pointer;text-align:left;width:100%}
.sf-gl a:hover,.sf-gl button:hover{background:var(--soft,#f1f5f9);color:var(--ink)}.sf-gl a.on{color:var(--accent);font-weight:700}
.sf-gl svg,.sf-grp>summary svg{width:18px;height:18px;flex:none}
/* v1.7.40 – BS90 G5 (Gemini vòng 1): mỗi dòng Kho chỉ còn MỘT nút chữ "Đưa vào lớp" + nút ba chấm; Sửa / Quầy / Thùng rác
   (trước là 3 biểu tượng nhỏ < 36 px ngay cạnh nhau, dễ bấm nhầm) đã có đủ trong trình đơn ba chấm. */
.lbrow .lbsua,.lbrow .lbxoa,.lbrow .lbqyb{display:none!important}
/* v1.7.40 – BS90 G6: trang lớp 4 nhóm thẻ + hàng con */
nav.tabs.ct-tabs{display:block;border-bottom:0;overflow:visible;margin:14px 0 14px}
.ct-g{display:flex;gap:2px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.ct-g a{padding:10px 16px;min-height:44px;display:inline-flex;align-items:center;color:var(--muted);text-decoration:none;font-weight:600;font-size:15px;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.ct-g a.on{color:var(--accent);border-bottom-color:var(--accent)}.ct-g a:hover{color:var(--ink)}
.ct-sub{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ct-sub a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none;background:var(--surface)}
.ct-sub a.on{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.ct-sub a[hidden]{display:none}
.ct-note{display:flex;align-items:center;gap:10px;margin:-4px 0 14px;padding:8px 12px;border-radius:10px;background:#f0fdfa;color:#115e59;border:1px solid #ccfbf1}
.ct-note span{flex:1}.ct-note button{border:0;background:none;font-size:18px;line-height:1;cursor:pointer;color:inherit;min-width:32px;min-height:32px}
.gq.gq2{display:flex!important;flex-direction:column;align-items:stretch;width:100%;max-width:1040px}.gq2-g{width:100%;box-sizing:border-box}
.lbrow .lbmn{display:block!important}   /* BS90 G5: nút ba chấm hiện cả trên máy tính (thay 3 biểu tượng nhỏ) */
