/* Lớp học trực tuyến: trang chính và phòng học (dùng chung common.css) */
.wrap { max-width: 900px; }
.wrap.narrow { max-width: 420px; margin-top: 8vh; }
.top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.top h1 { margin: 0; font-size: 1.4rem; }
.tabrow { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.tabrow > button { margin: 0; padding: 9px 14px; background: transparent; color: inherit; border: 1px solid var(--line); }
.tabrow > button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tablewrap { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; }
.atable th, .atable td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.atable tr.off { opacity: .55; }
.atable tr.live td { font-weight: 600; }
.acts > * { margin: 2px 4px 2px 0; }
.acts select { width: auto; min-width: 8em; padding: 5px 8px; }
input.num { width: 7em; }
input[type=datetime-local], input[type=month] { width: 100%; padding: 10px 14px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: inherit; }
details > summary { cursor: pointer; margin: 8px 0; }
.warn { color: var(--warn); }
.pre { white-space: pre-wrap; }
.code { font: 600 1.2rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 8px 0; }
.agree input { margin-top: 5px; flex: none; width: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.stat { padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.statn { font-size: 1.3rem; font-weight: 700; }
.wrapRow { flex-wrap: wrap; }
@media print { body > main > *:not(#view), #view > *:not(.codes), .codes .row, .codes .muted { display: none; } .card { border: 0; box-shadow: none; } }

/* ---------- phòng học ---------- */
body.room { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #10151c; color: #eef2f6; }
body.room .muted { color: #a9b4c0; }
.rTop { display: flex; gap: 12px; align-items: center; padding: 8px 12px; flex-wrap: wrap; }
.rRec { color: #ff6b6b; font-weight: 700; }
body.room .msg { margin: 0 12px 6px; }
.rMain { flex: 1; min-height: 0; display: flex; gap: 8px; padding: 0 8px; }
.rStage { flex: 1; min-width: 0; position: relative; background: #000; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rStage video { width: 100%; height: 100%; object-fit: contain; }
.stScreen, .stCam { position: absolute; inset: 0; }
.stScreen:empty, .stCam:empty { display: none; }
.rStage.hasScreen .stCam { inset: auto 10px 10px auto; width: 22%; min-width: 120px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px #000a; z-index: 2; }
.rStage.hasScreen .stCam video { object-fit: cover; }
.rNote { position: relative; z-index: 1; margin: 0; padding: 12px; text-align: center; color: #c8d1db; }
.rSide { width: 300px; flex: none; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
body.teacher .rSide { width: 46%; max-width: 720px; }
.rSelf, .rTile { position: relative; background: #1d2530; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.rSelf { width: 160px; flex: none; }
body.teacher .rSelf { display: none; }
.rSelf video, .rTile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rSelf video { transform: scaleX(-1); }
.rName { position: absolute; left: 4px; bottom: 3px; padding: 1px 6px; border-radius: 6px; background: #000a; font-size: .78rem; max-width: 94%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rTiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; overflow-y: auto; flex: none; max-height: 40%; }
body.teacher .rTiles { grid-template-columns: repeat(4, 1fr); max-height: none; flex: 1 1 auto; align-content: start; }
.rTiles:empty, .rHands:empty, .rPager:empty { display: none; }
.rHands { max-height: 24%; overflow-y: auto; flex: none; }
.rHands p { margin: 4px 0; }
.rChat { flex: 1 1 80px; min-height: 60px; overflow-y: auto; background: #1d2530; border-radius: 10px; padding: 6px 10px; font-size: .92rem; }
.rChat p { margin: 3px 0; overflow-wrap: anywhere; }
.rChat .mine { color: #9fd3ff; }
body.room input[type=text] { background: #1d2530; color: inherit; border-color: #3a4656; margin: 0; }
body.room form.row { margin: 0; align-items: center; }
.rBar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 8px; }
.rBar button, .rBar .btn { margin: 0; width: auto; }
@media (max-width: 760px) {
  .rMain { flex-direction: column; }
  .rStage { flex: 1 1 45%; }
  .rSide, body.teacher .rSide { width: auto; max-width: none; flex: 1 1 55%; }
  body.teacher .rTiles { grid-template-columns: repeat(3, 1fr); }
  .rTiles { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- buổi phát trực tiếp, ý kiến, bài tập ---------- */
.wrap.wide { max-width: 1100px; }
.ytWrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.ytFrame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qRow { margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: var(--soft); overflow-wrap: anywhere; }
.qRow.picked { outline: 2px solid var(--accent); }
.qCard { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.qCard.picked { border-color: var(--accent); background: var(--soft); }
.qCard.answered, .qCard.hidden { opacity: .7; display: block; }
.qCard p { margin: 2px 0; }
.qLine { font-size: .92rem; }
.qCount { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 600; vertical-align: middle; }
.hwBox { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; align-items: start; margin: 8px 0; }
.hwPic { position: relative; line-height: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.hwPic img { width: 100%; height: auto; display: block; }
.hwLine { position: absolute; height: 0; border-top: 3px solid #d92d20; border-radius: 2px; pointer-events: none; }
.hwTag { position: absolute; transform: translate(-110%, -55%); min-width: 1.5em; padding: 0 4px; border-radius: 999px; background: #d92d20; color: #fff; font: 700 .8rem/1.5 system-ui, sans-serif; text-align: center; pointer-events: none; }
.hwNotes { margin: 0; padding-left: 1.4em; }
.hwNotes li { margin: 6px 0; overflow-wrap: anywhere; }
.hwNotes li::marker { color: #d92d20; font-weight: 700; }
.hwNotes textarea { margin-bottom: 4px; }
.hwScore { font-size: 1.3rem; font-weight: 700; }
@media (max-width: 760px) { .hwBox { grid-template-columns: 1fr; } }
.qCard.top { border-color: #d92d20; border-width: 2px; }
.qTop { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: #d92d20; color: #fff; font-size: .8rem; font-weight: 600; vertical-align: middle; }
.feelRow { align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.feelRow button { margin: 0; width: auto; }
.pollCard { border: 2px solid var(--accent); }
.pollCard.right { border-color: var(--ok); }
.pollText { font-size: 1.1rem; font-weight: 600; }
.pollOpts { display: grid; gap: 8px; }
.pollOpts button { margin: 0; width: 100%; text-align: left; white-space: normal; }
.pollBar { margin: 2px 0; }
.pollBar.right { color: var(--ok); font-weight: 600; }
.qCard input, .qCard select { margin-bottom: 6px; }

/* nhật ký học tập */
.dDay { border-left: 5px solid var(--soft); }
.dDay.good { border-left-color: var(--ok); }
.dDay.warn { border-left-color: var(--warn); }
.dDay.off { border-left-color: #98a2b3; }
.dHead { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.dBadge { padding: 3px 10px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .9rem; }
.dBadge.good { background: var(--ok); color: #fff; }
.dBadge.warn { background: var(--warn); color: #fff; }
.dBadge.off { background: #667085; color: #fff; }
.dLine { margin: 4px 0; overflow-wrap: anywhere; }
.dList { margin: 2px 0 6px 20px; padding: 0; }
.dList li { overflow-wrap: anywhere; }
.dNote { margin: 4px 0 4px 12px; padding-left: 10px; border-left: 3px solid var(--soft); }
.dStars { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; }
.dStar { color: #667085; }
.dStar.got { color: inherit; font-weight: 600; }

/* ---------- trang hướng dẫn ---------- */
.guide li { margin: 4px 0; }
.guide code { font: .92em ui-monospace, Consolas, monospace; background: var(--soft); padding: 1px 5px; border-radius: 6px; }
.gFlow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.gStage { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--soft); }
.gStage.now { border-color: var(--accent); border-width: 2px; }
.gStage h3 { margin: 0 0 6px; }
.gStage p { margin: 4px 0; }
.gToc a { white-space: nowrap; }
/* đầu trang giống Gro1.net: logo, chữ Gro1.net, khẩu hiệu rộng đúng bằng chữ (static/js/brand.js chép từ Gro1) */
.gHead { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.gLogo { display: inline-flex; align-items: center; gap: clamp(10px, 2.5vw, 16px); font-weight: 800; font-size: clamp(1.9rem, 8vw, 2.8rem); line-height: 1;
  color: var(--accent); text-decoration: none; letter-spacing: -.01em; min-width: 0; }
.gLogo img { width: 1.6em; height: 1.6em; flex: none; display: block; }
.gBrand { display: flex; flex-direction: column; gap: .12em; width: min-content; }
.gHead .slogan { width: 0; min-width: 100%; white-space: nowrap; font-size: .32em; text-align: justify; text-align-last: justify; font-weight: 600; color: var(--muted); letter-spacing: 0; line-height: 1.2; }
.gTitle h1 { font-size: 1.3rem; }
.gHead.gCenter { justify-content: center; }
/* trang bên trong: đầu trang Gro1.net nhỏ, không bấm được để không rời buổi học */
.gHead.gSmall { margin: 0 0 10px; }
.gHead.gSmall .gLogo { font-size: clamp(1.25rem, 5vw, 1.6rem); }
.gMini { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #9fd3ff; }
.gMini img { width: 24px; height: 24px; display: block; }
.gLoginTitle { font-size: 1.3rem; margin: 0 0 4px; }
.subRow { display: flex; align-items: center; gap: 6px; }
.subRow input { flex: 1; min-width: 0; }
.subRow span { color: var(--muted); white-space: nowrap; }
.plink { word-break: break-all; font-size: .85rem; }
/* trang phụ huynh: học phí */
.feeDue { border-color: var(--warn); }
/* ô ẩn của mẫu đăng ký học thử: người thật không thấy, máy tự điền thì bị bỏ */
.hpot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; }
label.check input { width: auto; margin-top: 4px; }
.lateNote { border-left: 4px solid var(--warn); }
/* mã quét chuyển khoản học phí: nền trắng quanh mã để máy quét đọc được cả khi trang tối */
.qrBox { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.qrImg { width: 240px; max-width: 100%; height: auto; background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--line, #ddd); image-rendering: pixelated; }
.qrInfo { flex: 1 1 240px; min-width: 0; }
.qrInfo .dLine { overflow-wrap: anywhere; }
.qrInfo .dLine button { margin-left: 8px; }

/* ---------- Gro1.net một trung tâm: học sinh chọn môn, LIVE (bạn hiền đổi mô hình 24/11/2026) ---------- */
.subGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.subCard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; padding: 14px; min-height: 86px; text-align: left;
  background: var(--card); color: inherit; border: 1px solid var(--line); border-radius: 14px; }
.subCard.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.subName { font-weight: 700; font-size: 1.05rem; }
.subMeta { font-size: .85rem; }
.liveTag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #d92d20; color: #fff; font: 700 .75rem/1.5 system-ui, sans-serif; letter-spacing: .08em;
  animation: liveBlink 1.2s ease-in-out infinite; }
.subCard .liveTag { position: absolute; top: 10px; right: 10px; }
@keyframes liveBlink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .liveTag { animation: none; } }
.liveBox { padding: 10px 12px; margin: 8px 0; border-radius: 12px; border: 1px solid #d92d20; }
.liveBox .row { align-items: center; gap: 10px; }
.subPick { margin: 6px 0; }
label.check.inline { display: inline-flex; margin: 2px 12px 2px 0; font-weight: 400; }
label.check.inline input { width: auto; margin-right: 4px; }
p.ok { color: var(--ok, #1a7f37); }
.starPick { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.starPick button { margin: 0; padding: 6px 10px; font-size: 1.4rem; line-height: 1; background: transparent; color: #e6a700; border: 1px solid var(--line); }
.starPick button.on { background: #fff6d6; border-color: #e6a700; }
.doorCard { border-color: var(--accent); }
.doorBtns { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.doorBtns .btn { flex: 1 1 220px; text-align: center; padding: 14px 16px; font-size: 1.05rem; }
.pwRow { position: relative; }
.pwRow input { padding-right: 52px; }
.pwRow .pwEye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); margin: 0; width: 44px; height: 40px; padding: 0; font-size: 1.2rem; line-height: 1;
  background: transparent; color: inherit; border: 0; }
.obsCard { border-color: var(--accent); }
.obsCard > summary { font-size: 1.05rem; }
.gStep { margin: 10px 0 18px; }
.gStep img { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.gStep figcaption { margin-top: 6px; font-size: 1.02rem; }
.gChrome { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin: 10px 0; border-radius: 12px; border: 2px solid #f4b400; background: var(--soft); }
.gChrome img { flex: none; }
.gChrome p { margin: 0; }

/* Trợ lý đồng hành soạn bài và dạy (lời cô Lê Thành, 24/11/2026) */
.pollBar.wrongHot { color: var(--warn); font-weight: 600; }
.whoList { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.whoTag { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; }
.whoTag.ok { border-color: var(--ok); color: var(--ok); }
.whoTag.bad { border-color: var(--warn); color: var(--warn); }
.whoTag.wait { opacity: .7; border-style: dashed; }
.lvTag, .okTag { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: .82rem; border: 1px solid var(--line); }
.okTag { border-color: var(--ok); color: var(--ok); }
.qCard.draft { border-style: dashed; border-color: #f4b400; }
.secGroup { margin: 12px 0; padding-top: 6px; border-top: 1px solid var(--line); }
label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; }
label.inline input { width: auto; margin: 0; }
.chatLog { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--soft); }
.chatMsg { margin: 6px 0; padding: 6px 10px; border-radius: 10px; max-width: 92%; }
.chatMsg.ai { background: var(--card); border: 1px solid var(--line); }
.chatMsg.gv { margin-left: auto; border: 1px solid var(--accent); }
.chatMsg p { margin: 2px 0; }
.picTag { display: inline-flex; align-items: center; gap: 6px; }
.picTag img { height: 64px; border-radius: 6px; border: 1px solid var(--line); }
.secView { padding: 6px 10px; border-left: 3px solid var(--accent); margin: 4px 0 8px; }
.secView p { margin: 4px 0; }
.secFig { display: block; max-width: 100%; max-height: 320px; margin: 6px 0; border-radius: 6px; }
body.show .wrap { max-width: 1200px; }
.slide { min-height: 60vh; padding: 24px 28px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.slideTitle { font-size: 2rem; margin: 0 0 12px; }
.slideBody { font-size: 1.6rem; line-height: 1.5; }
.slideBody p { margin: 8px 0; }
.slideFig { display: block; max-width: 100%; max-height: 50vh; margin: 12px auto 0; }
.slideBar { margin: 10px 0; }
.slideList p { margin: 4px 0; }
.katex { font-size: 1.05em; }
.dropZone.dropOn { outline: 3px dashed var(--accent); outline-offset: 2px; }
.chatFig { display: block; max-width: 100%; max-height: 320px; margin: 6px 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pollFig { display: block; width: 100%; max-width: 520px; height: auto; margin: 6px auto; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.pollFigLink { display: block; }
textarea.mono { font-family: Consolas, "Courier New", monospace; font-size: .92rem; }
.figEdit { margin: 6px 0; }
.secFig { background: #fff; }
.chatFigBox { margin: 6px 0; }

/* Soạn bài: duyệt câu hỏi hàng loạt (lời cô Lê Thành 24/11/2026) */
.qBar { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin: 8px 0; }
.qTools .qBar { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 4px 8px; display: flex; flex-wrap: wrap; gap: 0 12px; align-items: center; }
.qTools .qBar .row { margin: 0; gap: 4px; }
.qBar .row { margin: 2px 0; }
.qRow { padding: 6px 10px; }
.qRow.sel { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.qHead { display: flex; gap: 8px; align-items: flex-start; }
.qPick { display: flex; align-items: center; padding: 4px 2px; cursor: pointer; }
.qPick input { width: 22px; height: 22px; margin: 0; }
.qMain { flex: 1; min-width: 0; }
.qBtns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.qTags { font-size: .85rem; }
.qTags > * { margin-right: 6px; }
.draftTag { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: .82rem; border: 1px solid #f4b400; color: #8a5a00; }
.qRight { font-weight: 600; color: var(--ok); }
/* phương án: 4, 2 hay 1 cột theo độ dài (lời cô Lê Thành 24/11/2026); chỉ con trực tiếp, không chạm vào các phần bên trong công thức */
.qOpts { display: grid; gap: 2px 14px; margin: 4px 0 2px; font-size: .95rem; }
.qOpts.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qOpts.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qOpts.c1 { grid-template-columns: 1fr; }
.qOpts > div { min-width: 0; }
@media (max-width: 600px) { .qOpts.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qOpts.c2 { grid-template-columns: 1fr; } }
.qOpenBox { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  background: #1e4620; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; max-width: calc(100vw - 32px); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) { .qHead { flex-wrap: wrap; } .qBtns { width: 100%; } }

/* Soạn bài hai khung trên màn hình rộng (lời cô Lê Thành 24/11/2026) */
body.soanSplit .wrap.wide { max-width: none; padding: 8px 16px 0; }
body.soanSplit .gHead.gSmall { display: none; }
body.soanSplit .top h1 { font-size: 1.15rem; }
body.soanSplit .headCard { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 8px 14px; margin: 8px 0; }
body.soanSplit .headCard p { margin: 0; }
body.soanSplit .headCard .row { margin: 0; }
.split { --cw: 38%; display: grid; grid-template-columns: var(--cw) 10px 1fr; grid-template-rows: minmax(0, 1fr); gap: 0; min-height: 360px; }
.split.noChat { grid-template-columns: 52px 1fr; gap: 8px; }
.split.noDoc { grid-template-columns: 1fr 52px; gap: 8px; }
.split.dragging { user-select: none; cursor: col-resize; }
.pane { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; }
.pane.min { align-items: center; padding-top: 8px; }
.vBtn { writing-mode: vertical-rl; padding: 12px 6px; white-space: nowrap; }
.paneHead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--card); }
.paneHead .grow { flex: 1; }
.paneBody { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 12px; scroll-padding-top: 8px; }
.paneBody > .card { margin: 10px 0; padding: 14px; }
.chatPane { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.chatFill { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0 !important; border: 0; border-radius: 0; padding: 10px; }
.chatFill .chatLog { flex: 1; min-height: 120px; max-height: none; }
.chatFill details { margin-bottom: 6px; }

.splitBar { cursor: col-resize; position: relative; }
.splitBar::after { content: ""; position: absolute; top: 50%; left: 3px; width: 4px; height: 48px; margin-top: -24px; border-radius: 4px; background: var(--line); }
.splitBar:hover::after, .split.dragging .splitBar::after { background: var(--accent); }
#paneDoc:fullscreen { border-radius: 0; border: 0; }
#paneDoc:fullscreen .paneBody { padding: 0 max(16px, calc((100vw - 1400px) / 2)) 24px; }
.toast.err { background: var(--warn); }
.chatFill textarea.grow1 { min-height: 2.6em; resize: none; overflow-y: auto; margin-top: 8px; }
.chatFill .quick { margin: 2px 0 0; }

/* Câu trùng, xem như học sinh (lời cô Lê Thành 24/11/2026) */
.dupTag { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: .82rem; border: 1px solid var(--warn); color: var(--warn); }
.qWhy { font-size: .9rem; margin-top: 4px !important; }
.stuSwitch { margin-left: 10px; vertical-align: middle; }
.stuSwitch button { font-size: .85rem; }
body.stuView .qPick, body.stuView .qBtns, body.stuView .qTags, body.stuView .qOpenBox, body.stuView .qMark, body.stuView .qWhy,
body.stuView #qTools, body.stuView .qBar, body.stuView #qSection > p, body.stuView .secGroup > .row, body.stuView .secGroup .qCount,
body.stuView #dongY, body.stuView #phongCach, body.stuView .secCard > p.muted, body.stuView .secCard > label, body.stuView .secCard > .row,
body.stuView .secCard .figEdit, body.stuView #kienThuc > p, body.stuView #kienThuc > .row { display: none !important; }
.secStuTitle { display: none; }
body.stuView .secStuTitle { display: block; margin: 0 0 6px; }
.qFigSmall { max-width: 360px; }
body.stuView .qFigSmall { max-width: 520px; }
body.stuView .qRight { font-weight: inherit; color: inherit; }
body.stuView .qRow, body.stuView .qRow.sel, body.stuView .qCard.draft { border: 1px solid var(--line); box-shadow: none; background: var(--card); }
body.stuView .qView { font-size: 1.15rem; }
body.stuView .secView { font-size: 1.15rem; }
body.stuView .qOpts { font-size: 1.1rem; }

/* kéo thả sắp xếp mục, câu hỏi (lời cô Lê Thành 24/11/2026) */
.grip { cursor: grab; user-select: none; color: var(--muted); font-size: 1.2rem; padding: 2px 4px; line-height: 1; touch-action: none; }
.grip:hover { color: var(--accent); }
.dragging { opacity: .45; }
.dropBefore { box-shadow: inset 0 3px 0 var(--accent) !important; }
.dropAfter { box-shadow: inset 0 -3px 0 var(--accent) !important; }
.secGroup.dropIn { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 8px; }
body.stuView .grip { display: none; }

/* kéo nhãn trên hình (lời cô Lê Thành 24/11/2026) */
.labDrag { margin: 8px 0; padding: 8px; border: 1px dashed var(--accent); border-radius: 10px; background: #fff; }
.labSvg { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; touch-action: none; }
.labSvg .labMove { cursor: move; }
.labSvg .labMove:hover { fill: #d9730d; }
@media (prefers-color-scheme: dark) { .draftTag { color: #f4c542; border-color: #f4c542; } .labDrag { background: #fff; color: #1f2d3a; } }
