/* v1.7.35 (BS72) – màn gọi 1-1 và buổi học trực tiếp – theo nguyên mẫu Gemini Canvas:
   sân khấu tối #0B1120, thẻ nền #111A2E viền mảnh, nút có biểu tượng + chữ (cao ≥ 44px), xanh ngọc #0F766E cho nút chính,
   đỏ chỉ cho Kết thúc và bút chỉ, hổ phách cho cảnh báo mạng. */
.gcall{--gb-bg:#0B1120;--gb-card:#111A2E;--gb-line:rgba(255,255,255,.1);--gb-mut:#94A3B8;--gb-teal:#0F766E;--gb-red:#EF4444;
  position:fixed;inset:0;z-index:120;background:var(--gb-bg);color:#F8FAFC;display:flex;flex-direction:column;font-family:inherit}
.gcall .gc-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-bottom:1px solid var(--gb-line);flex-wrap:wrap}
.gcall .gc-who{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.gcall .gc-who b{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw}
.gcall .gc-st{display:inline-flex;align-items:center;gap:6px;color:var(--gb-mut);font-size:13px}
.gcall .gc-st i,.lv-live i{width:8px;height:8px;border-radius:50%;background:#22C55E;display:inline-block}
.gcall .gc-net{font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;border:1px solid var(--gb-line);color:var(--gb-mut)}
.gcall .gc-net.ok{color:#4ADE80;border-color:rgba(74,222,128,.35)}.gcall .gc-net.warn{color:#FBBF24;border-color:rgba(251,191,36,.4)}.gcall .gc-net.bad{color:#F87171;border-color:rgba(248,113,113,.4)}
.gcall .gc-ban{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 20px 0;padding:10px 14px;border-radius:12px;background:rgba(245,158,11,.14);border:1px solid rgba(245,158,11,.45);color:#FDE68A;font-size:14px}
.gcall .gc-ban[hidden]{display:none}
.gcall .gc-stage{position:relative;flex:1;min-height:0;margin:12px 20px;border-radius:16px;background:#020617;border:1px solid var(--gb-line);overflow:hidden}
.gcall .gc-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:transparent}
.gcall .gc-stage video.remote.pip,.gcall .gc-stage video.local{position:absolute;inset:auto 16px 16px auto;width:200px;height:130px;object-fit:cover;border-radius:12px;border:2px solid rgba(255,255,255,.25);z-index:3;background:#000}
.gcall .gc-stage video.local:not([src]):not([srcObject]){}
.gcall .gc-stage .who{position:absolute;inset:0;display:grid;place-content:center;gap:10px;text-align:center;pointer-events:none;color:var(--gb-mut)}
.gcall .gc-stage .who h2{color:#F8FAFC;margin:0;font-size:20px}
.gcall .gc-stage .who .bigav{width:96px;height:96px;border-radius:50%;margin:0 auto;display:grid;place-items:center;background:linear-gradient(135deg,#14B8A6,#0F766E);color:#fff;font-size:34px;font-weight:700}
.gcall .gc-stage .who .bigav svg{width:40px;height:40px}
.gcall .gc-lbl{position:absolute;left:16px;top:12px;z-index:4;font-size:12px;font-weight:600;padding:6px 10px;border-radius:8px;background:rgba(2,6,23,.8);border:1px solid var(--gb-line)}
.gcall .gc-lbl::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#14B8A6;margin-right:6px}
.gcall .note-c{text-align:center;font-size:12px;color:var(--gb-mut);padding:0 16px}
.gcall .bar{display:flex;justify-content:center;align-items:stretch;gap:10px;padding:12px 16px 16px;flex-wrap:wrap}
.gc-b{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:84px;min-height:56px;padding:8px 12px;border-radius:14px;
  background:var(--gb-card,#111A2E);border:1px solid var(--gb-line,rgba(255,255,255,.12));color:#F8FAFC;font:600 12.5px/1.2 inherit;cursor:pointer}
.gc-b:hover{border-color:rgba(255,255,255,.3)}.gc-b.on{background:var(--gb-teal,#0F766E);border-color:transparent}
.gc-b.off{color:#FCA5A5}.gc-b.hang{background:var(--gb-red,#EF4444);border-color:transparent}.gc-b.ok{background:#16A34A;border-color:transparent}
.gc-b:disabled{opacity:.55;cursor:not-allowed}
/* thanh bút – cột bên trái khung chia sẻ (máy tính), hàng ngang dưới (điện thoại) */
.gb-ink{position:absolute;inset:0;z-index:5;pointer-events:none;touch-action:none}.gb-ink.on{pointer-events:auto}
.gb-bar{position:absolute;left:12px;top:50%;transform:translateY(-50%);z-index:6;display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:16px;background:rgba(17,26,46,.94);border:1px solid rgba(255,255,255,.12);max-height:calc(100% - 24px);overflow:auto}
.gb-bar[hidden]{display:none}
.gb-bar button[data-tool]{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 10px;border-radius:10px;background:transparent;border:0;color:#E2E8F0;font:600 13px inherit;cursor:pointer;text-align:left}
.gb-bar button[data-tool]:hover{background:rgba(255,255,255,.06)}.gb-bar button[data-tool].on{background:#0F766E;color:#fff}
.gb-pen{border-radius:12px;background:rgba(255,255,255,.04);padding-bottom:6px}
.gb-colors{display:flex;gap:8px;padding:2px 10px}
.gb-c{width:24px;height:24px;border-radius:50%;background:var(--c);border:2px solid transparent;cursor:pointer;padding:0}.gb-c.on{border-color:#fff;box-shadow:0 0 0 2px var(--c)}
/* chat: nút gọi có chữ + trạng thái */
.callbtns{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}.cbtn{display:inline-flex;align-items:center;gap:6px}.cbtn svg{width:16px;height:16px}.cbtn small{font-weight:500;opacity:.8}
.pres{font-weight:600}.pres.on{color:#16A34A}.pres.on::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#22C55E;margin-right:5px}.pres.busy{color:#B45309}.pres.off{color:var(--muted)}
.cbcard{display:grid;gap:6px;justify-items:center;padding:12px 16px;border:1px dashed var(--line);border-radius:14px;max-width:340px;margin:8px auto}.cbcard .cb-h{font-weight:600}
/* buổi học trực tiếp */
.lv-live{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#FCA5A5;padding:4px 10px;border-radius:999px;background:rgba(239,68,68,.14);border:1px solid rgba(239,68,68,.35)}
.lv-live i{background:#EF4444!important;animation:lvp 1.4s infinite}@keyframes lvp{50%{opacity:.35}}
.lvt .lv-end{display:inline-flex;align-items:center;gap:8px;min-height:44px}.lvt .lv-end svg{width:18px;height:18px}
.lvt .lv-main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;margin:12px 20px 0}
.lvt .lv-main .gc-stage{margin:0}
.lv-side{background:var(--gb-card);border:1px solid var(--gb-line);border-radius:16px;padding:14px;overflow:auto;display:flex;flex-direction:column;gap:16px}
.lv-side h3{margin:0 0 8px;font-size:15px;color:#F8FAFC}.lv-side h3 span{color:var(--gb-mut);font-weight:500}
.lv-list{display:flex;flex-direction:column;gap:8px}
.lv-row{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid var(--gb-line)}
.lv-row.col{flex-direction:column;align-items:stretch}.lv-r1{display:flex;justify-content:space-between;gap:8px}.lv-r2{display:flex;gap:6px;flex-wrap:wrap}.lv-r2:empty{display:none}
.lv-row b{flex:1;color:#F8FAFC}.lv-row .btn{min-height:36px}.lv-row .btn svg{width:14px;height:14px}
.lv-no{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(245,158,11,.2);color:#FBBF24;font-size:12px;font-weight:700}
.lv-st{font-size:12px;color:var(--gb-mut)}.lv-st.sp{color:#4ADE80;font-weight:700}.lv-st.wk{color:#FBBF24;font-weight:700}
.lvs .lv-status{margin:8px 16px 0;padding:8px 12px;border-radius:10px;background:rgba(15,118,110,.22);color:#99F6E4;font-size:14px}
.lvs .gc-stage{margin:8px 16px}.lvs .lv-leave{display:inline-flex;align-items:center;gap:6px;color:#F8FAFC;border-color:var(--gb-line)}.lvs .lv-leave svg{width:16px;height:16px}
.lvs .lv-thumb .gc-b{flex:1;max-width:220px;min-height:60px;font-size:14px}
.lv-card{margin:0 16px 8px;padding:14px;border-radius:14px;background:#0F766E;display:grid;gap:10px}.lv-card[hidden]{display:none}.lv-card .acts{display:flex;gap:8px;flex-wrap:wrap}.lv-card .btn{min-height:44px}
.lv-inv{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:110;display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:16px;background:#0B1120;color:#F8FAFC;box-shadow:0 10px 30px rgba(0,0,0,.3);max-width:calc(100vw - 24px);flex-wrap:wrap}
.lv-pre{max-width:560px;margin:24px auto;display:grid;gap:10px}
.lv-chk{display:flex;align-items:center;gap:10px;margin:8px 0}.lv-meter{flex:1;height:10px;border-radius:6px;background:var(--soft);overflow:hidden}.lv-meter i{display:block;height:100%;width:0;background:#16A34A;transition:width .08s}
.lv-prev{width:100%;max-height:220px;border-radius:12px;background:#000;object-fit:cover}.lv-tips{padding-left:18px;display:grid;gap:6px}
.live-go{background:#fff!important;color:#B91C1C!important;border:0!important;margin-top:6px;font-weight:700}
@media (max-width:760px){
  .gcall .gc-top{padding:10px 12px}.gcall .gc-stage{margin:8px 10px}.gcall .bar{gap:6px;padding:8px 8px 12px}.gc-b{min-width:0;flex:1}
  .gb-bar{left:50%;top:auto;bottom:8px;transform:translateX(-50%);flex-direction:row;max-width:calc(100% - 16px);overflow-x:auto}
  .gb-bar button[data-tool] span{display:none}.gb-pen{display:flex;align-items:center;padding:0}
  .gcall .gc-stage video.local,.gcall .gc-stage video.remote.pip{width:96px;height:128px;right:8px;bottom:8px}
  .lvt .lv-main{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 40%;margin:8px 10px 0}
}
/* ghi đè kiểu cũ của màn gọi (.call) – bố cục mới không dùng nút tròn nổi */
.gcall.call .bar{position:static;inset:auto}
.gcall.call .bar button.gc-b{width:auto;height:auto;border-radius:14px;font-size:12.5px;background:var(--gb-card)}
.gcall.call .bar button.gc-b.hang{background:var(--gb-red)}.gcall.call .bar button.gc-b.ok{background:#16A34A}.gcall.call .bar button.gc-b.on{background:var(--gb-teal)}
.gcall.call .bar button.gc-b.off{background:var(--gb-card);color:#FCA5A5}
.gcall.call video.remote{flex:initial;min-height:0}.gcall.call .who{top:auto}
.gcall.call.audio video{display:block}.gcall.call video[hidden],.gcall.call video.nosrc{display:none}
.gcall.call .note-c{position:static;opacity:1}
/* hộp hỏi / thông báo phải nổi TRÊN màn gọi và buổi học (trước đây bị khung gọi che – bấm không được) */
body:has(#liveui) .modal,body:has(#callui) .modal{z-index:220}
body:has(#liveui) .toast,body:has(#callui) .toast,body:has(#liveui) #toast,body:has(#callui) #toast{z-index:230}
.lv-row .btn.ghost{color:#E2E8F0;border-color:rgba(255,255,255,.2)}.lv-row .btn:not(.primary):not(.ghost){background:rgba(255,255,255,.08);color:#F8FAFC;border-color:rgba(255,255,255,.15)}
.lvt .lv-end{background:#EF4444!important;color:#fff!important;border:0!important}
/* v1.7.35 (BS73) – buổi học trực tiếp mở rộng, theo nguyên mẫu Gemini Canvas 21/11: Ổn định lớp viền hổ phách, 3 thẻ Giơ tay /
   Trong lớp / Chưa vào (thẻ đang chọn nền xanh ngọc), nhãn trạng thái màu, hộp trắng nổi trên phòng tối (câu hỏi nhanh, kết thúc). */
.lv-topb{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.gcall .lv-calm{min-height:44px;display:inline-flex;align-items:center;gap:8px;background:transparent;color:#FCD34D;border:2px solid #F59E0B;font-weight:700}
.gcall .lv-calm:hover{background:rgba(245,158,11,.12)}.gcall .lv-calm svg,.gcall .lv-end svg{width:18px;height:18px}
.gcall .gc-net.lv-obs{color:#5EEAD4;border-color:rgba(94,234,212,.4);display:inline-flex;align-items:center;gap:6px}.gcall .gc-net.lv-obs svg{width:14px;height:14px}.gcall .gc-net[hidden]{display:none}
.lv-side{gap:12px}
.lv-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid var(--gb-line)}
.lv-tabs button{min-height:44px;border:0;border-radius:9px;background:none;color:#CBD5E1;font:600 13px inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}
.lv-tabs button b{min-width:22px;padding:1px 6px;border-radius:999px;background:rgba(255,255,255,.1);font-size:12px}
.lv-tabs button.on{background:#0F766E;color:#fff}.lv-tabs button.on b{background:rgba(255,255,255,.22)}
.lv-tabs button.hot:not(.on) b{background:#F59E0B;color:#111827}
.lv-list .lv-row{flex-direction:column;align-items:stretch;gap:8px}
.lv-list .lv-r1{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lv-list .lv-r1 b{flex:1;min-width:0}
.lv-st{display:inline-flex;align-items:center;padding:3px 8px;border-radius:8px;background:rgba(255,255,255,.07);font-weight:600}
.lv-st.sp{background:rgba(20,184,166,.18);color:#5EEAD4}.lv-st.wk{background:rgba(245,158,11,.16);color:#FCD34D}.lv-st.crit{background:rgba(239,68,68,.16);color:#FCA5A5}
.lv-a{min-height:40px;padding:0 12px;border-radius:10px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#F8FAFC;font:600 13px inherit;cursor:pointer;flex:1;white-space:nowrap}
.lv-a:hover{background:rgba(255,255,255,.12)}.lv-a.pri{background:#0F766E;border-color:#0F766E}.lv-a.crit{flex:0 0 auto;color:#FCA5A5}.lv-a:disabled{opacity:.6}
.gcall .lv-nall{min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;background:rgba(15,118,110,.2);color:#99F6E4;border:1px solid rgba(94,234,212,.35)}.lv-nall svg{width:16px;height:16px}
.gc-stage .lv-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}.gc-stage .lv-img[hidden]{display:none}
.gc-stage video[hidden]{display:none}
/* hộp câu hỏi nhanh của thầy cô: thẻ trắng nổi góc dưới phải sân khấu */
.lv-qcard{position:absolute;right:376px;bottom:96px;z-index:5;width:min(440px,calc(100vw - 32px));max-height:70vh;overflow:auto;background:#fff;color:#0F172A;border-radius:16px;padding:16px;box-shadow:0 20px 50px rgba(0,0,0,.45);display:grid;gap:10px}
.lv-qcard[hidden]{display:none}.lv-qcard .acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.lv-qcard .btn{min-height:44px}
.lv-qtxt{font-size:15px;font-weight:600;line-height:1.5}.lv-qtxt img{max-width:100%;max-height:180px}
.lv-bars{display:grid;gap:8px}.lv-bar{display:grid;grid-template-columns:32px 1fr auto;gap:10px;align-items:center}
.lv-bar .L{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#F1F5F9;font-weight:800}
.lv-bar .t .rich{font-size:13px;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lv-bar .track{height:10px;border-radius:999px;background:#E2E8F0;overflow:hidden;margin-top:4px}.lv-bar .track i{display:block;height:100%;background:#64748B;border-radius:999px}
.lv-bar .n{font-size:13px;font-weight:700;color:#334155;white-space:nowrap}
.lv-bar.ok .L{background:#0F766E;color:#fff}.lv-bar.ok .track i{background:#0F766E}
.lv-wrong{padding:12px;border-radius:12px;background:#FFFBEB;border:1px solid #FDE68A;color:#92400E;display:grid;gap:6px}.lv-wrong .btn{justify-self:start}
/* bảng trượt câu hỏi phía em */
.lv-sheet{position:absolute;left:0;right:0;bottom:0;z-index:6;background:#fff;color:#0F172A;border-radius:22px 22px 0 0;padding:14px 16px 18px;display:grid;gap:10px;max-height:80vh;overflow:auto;box-shadow:0 -12px 40px rgba(0,0,0,.4)}
.lv-sheet[hidden]{display:none}.lv-sheet .grab{width:40px;height:5px;border-radius:999px;background:#CBD5E1;margin:0 auto}
.lv-opts{display:grid;gap:8px}.lv-opts button{min-height:52px;display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:14px;border:2px solid #E2E8F0;background:#fff;color:#0F172A;font:600 15px inherit;text-align:left;cursor:pointer}
.lv-opts .L{width:34px;height:34px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;background:#F1F5F9;font-weight:800}
.lv-opts button.on{border-color:#0F766E;background:#F0FDFA}.lv-opts button.on .L{background:#0F766E;color:#fff}
.lv-opts button.ok{border-color:#16A34A;background:#F0FDF4}.lv-opts button.ok .L{background:#16A34A;color:#fff}.lv-opts button.bad{border-color:#DC2626;background:#FEF2F2}.lv-opts button.bad .L{background:#DC2626;color:#fff}
.lv-opts button:disabled{cursor:default}
.lv-res{margin:0;padding:10px 12px;border-radius:12px;background:#F1F5F9;font-weight:700}.lv-res.ok{background:#DCFCE7;color:#166534}.lv-res.bad{background:#FEE2E2;color:#991B1B}
/* thẻ bắt kịp, phấn, chỉ xem bảng, dự giờ */
.lv-catch{position:absolute;left:16px;right:16px;top:120px;z-index:7;background:#fff;color:#0F172A;box-shadow:0 20px 50px rgba(0,0,0,.45)}
.lv-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.lv-thumbs img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;border:1px solid #E2E8F0;background:#fff}
.lv-card.lv-chalk{background:#1D4ED8}
.gcall .gc-ban.lv-bang{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:rgba(245,158,11,.16);color:#FDE68A;border-color:rgba(245,158,11,.4)}
.gcall .gc-ban.lv-bang[hidden]{display:none}.gc-ban.lv-bang .btn{min-height:40px;background:#F59E0B;color:#111827;border:0;font-weight:700}
.gcall .gc-ban.lv-obsban{display:flex;align-items:center;gap:10px;background:rgba(20,184,166,.14);color:#99F6E4;border-color:rgba(94,234,212,.35)}.lv-obsban svg{width:18px;height:18px;flex-shrink:0}
.lvs .lv-solo{flex:1;min-height:0;display:flex;flex-direction:column}.lvs .lv-solo .gc-stage{flex:1}
.lvstaff .lv-main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;margin:8px 16px 0}.lvstaff .lv-main .gc-stage{margin:0}
.lvs .lv-qcard{right:372px}
/* hộp kết thúc (trắng): điểm danh đề xuất + ghi chú bảng */
.lv-att{display:grid;gap:8px;max-height:46vh;overflow:auto;padding-right:4px}
.lv-arow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border-radius:12px;border:1px solid var(--x-s200,#E2E8F0)}.lv-arow[hidden]{display:none}
.x-seg.lv-seg{grid-template-columns:repeat(4,auto);padding:4px;gap:4px;border-radius:12px}.lv-seg button{min-height:40px;padding:0 12px;font-size:13px}
.lv-snaps{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}.lv-snap{display:grid;gap:6px;font-size:13px;cursor:pointer}.lv-snap img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;border:1px solid #E2E8F0}
.lv-fin .x-mf{flex-wrap:wrap}
.lv-qpick{display:grid;gap:16px}.lv-qlist{display:grid;gap:8px;margin-top:8px}.lv-qrow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;border:1px solid #E2E8F0}
.lv-qrow .btn{min-height:44px;white-space:nowrap}.lv-qrow .lv-qtxt{font-weight:500;margin-top:4px}
.lv-rm h1{font-size:22px}
@media (max-width:900px){.lv-qcard,.lvs .lv-qcard{right:16px;bottom:110px}.lvstaff .lv-main{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 40%}.lv-arow{grid-template-columns:1fr}.x-seg.lv-seg{grid-template-columns:repeat(4,1fr)}}
.lv-tabs button{white-space:nowrap;padding:0 6px;font-size:13px}
.lv-snap img,.lv-thumbs img{object-fit:contain}
.gcall .gc-lbl.warn{background:#B91C1C;color:#fff}
