/* Trình soạn bài giao — BỐ CỤC CHIA ĐÔI theo trang "Mã đề & in ấn → Sửa đề":
   trái = trang tổng quan (thông tin, kiểm tra phát hành, bảng đáp án, cài đặt giao bài, máy đọc đề, đính kèm),
   phải = panel soạn câu hỏi cố định (kéo giãn được, thu gọn được, chế độ tập trung).
   Nạp SAU gbt-pro.css; thành phần con (nút, ô nhập, thẻ câu, bảng đáp án…) vẫn dùng lớp gx- của gbt-pro.css.
   Tiền tố mới: gs- (split). */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.gs-page{margin:0;background:#fafafa;color:#18181b;font:14px/1.5 Inter,"Be Vietnam Pro",ui-sans-serif,system-ui,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
.gs-page .gx-wrap{padding:0;min-height:100vh}

/* ===== Khung chia đôi ===== */
.gs-root{--gs-w:max(50vw,640px);--gs-pad:clamp(14px,2vw,28px);position:relative;min-height:100vh}
.gs-left{min-width:0;padding:14px var(--gs-pad) 96px;padding-right:calc(var(--gs-w) + var(--gs-pad));transition:padding-right .25s ease}
.gs-left>*{max-width:1040px}
.gs-panel{position:fixed;top:0;right:0;bottom:0;z-index:60;display:flex;flex-direction:column;width:var(--gs-w);max-width:100vw;border-left:1px solid var(--line);background:#fff;box-shadow:-8px 0 30px rgba(24,24,27,.05);transition:transform .25s ease}
.gs-pbar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;height:48px;padding:0 14px 0 8px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96)}
.gs-pbar-l,.gs-pbar-r{display:flex;align-items:center;gap:8px;min-width:0}
.gs-pbar-l{flex:1}
.gs-ptitle{display:flex;align-items:baseline;gap:8px;min-width:0}
.gs-ptitle h1{flex:none;font-size:14px;line-height:20px;font-weight:600;letter-spacing:-.01em}
.gs-ptitle span{overflow:hidden;color:var(--mut);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.gs-pbody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 20px 96px;scrollbar-width:thin;scroll-behavior:smooth}
.gs-panel .gx-btn{height:30px;padding:0 12px;border-radius:0;font-size:12.5px}
.gs-panel .gx-btn.gx-sm{height:26px;padding:0 9px;font-size:12px}
.gs-panel .gx-out{border-color:var(--in);box-shadow:none}
.gs-panel .gx-ghost{padding:0 8px}
.gs-panel .gx-ib{border-radius:0}
.gs-panel .gx-in{border-radius:0;font-size:13px}
.gs-panel textarea.gx-in{resize:none}
.gs-panel .gx-fld-t{font-size:11.5px;font-weight:500;color:var(--mut)}
.gs-panel .gx-state span{max-width:170px;overflow:hidden;text-overflow:ellipsis}
.gs-ptotal{flex:none;color:var(--mut);font-size:12.5px;font-weight:600;white-space:nowrap}
.gs-ptotal.is-ok{color:var(--ok)}
.gs-ptotal.is-warn{color:#b45309}

/* thanh kéo đổi độ rộng */
.gs-resize{position:fixed;top:0;bottom:0;right:calc(var(--gs-w) - 4px);z-index:70;width:9px;cursor:col-resize;touch-action:none}
.gs-resize::after{content:"";position:absolute;left:4px;top:0;bottom:0;width:2px;background:transparent;transition:background .12s}
.gs-resize:hover::after,.gs-resize.is-drag::after,.gs-resize:focus-visible::after{background:var(--acc)}
.gs-resize:focus-visible{outline:0}
.gs-resizing,.gs-resizing *{cursor:col-resize!important;user-select:none!important}
.gs-resizing .gs-panel,.gs-resizing .gs-left{transition:none}

/* chế độ: thu gọn panel / tập trung soạn câu */
.gs-root.is-over .gs-panel{transform:translateX(100%);box-shadow:none}
.gs-root.is-over .gs-left{padding-right:var(--gs-pad)}
.gs-root.is-over .gs-resize{display:none}
.gs-root.is-focus .gs-left,.gs-root.is-focus .gs-resize{display:none}
.gs-root.is-focus .gs-panel{right:auto;left:50%;width:min(100vw,960px);transform:translateX(-50%);border-right:1px solid var(--line)}
.gs-fab{position:fixed;right:0;top:50%;z-index:55;display:none;align-items:center;gap:6px;height:38px;padding:0 12px 0 10px;border:1px solid var(--in);border-right:0;border-radius:8px 0 0 8px;background:#fff;color:var(--fg);font-size:12.5px;font-weight:600;box-shadow:-4px 4px 16px rgba(0,0,0,.08);cursor:pointer;transform:translateY(-50%)}
.gs-fab:hover{background:var(--sel);color:var(--sel-ink);border-color:#bcd9fb}
.gs-root.is-over .gs-fab{display:inline-flex}
.gs-fab .gx-ic{width:15px;height:15px}

/* ===== Cột trái: thanh trên + đầu trang ===== */
.gs-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.gs-top-r{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gs-top .gx-back{margin-left:-6px}
.gs-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}
.gs-head>div{min-width:0;flex:1}
.gs-head h1{font-size:20px;line-height:26px;font-weight:600;letter-spacing:-.02em;overflow-wrap:anywhere}
.gs-chips{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:8px}
.gs-chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--mut);font-size:12px;font-weight:500;white-space:nowrap}
.gs-chip .gx-ic{width:13px;height:13px}
.gs-chip b{color:var(--fg);font-weight:600}
.gs-chip.is-warn{border-color:var(--warn-ln);background:var(--warn-bg);color:var(--warn)}
.gs-chip.is-ok{border-color:var(--ok-ln);background:var(--ok-bg);color:var(--ok)}
.gs-chip.is-pub{border-color:#bcd9fb;background:var(--sel);color:var(--sel-ink)}
.gs-left .gx-acts{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin-bottom:12px}
.gs-left .gx-card+.gx-card,.gs-left .gx-card{margin-top:12px}
.gs-left .gx-warn{margin-bottom:12px}
.gs-left .gx-warn .gx-btn{border-radius:5px}

/* ===== Thẻ "Sẵn sàng phát hành" ===== */
.gs-ready{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 18px;align-items:start;padding:14px}
.gs-ring{--p:0;position:relative;display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:conic-gradient(var(--pri) calc(var(--p)*1%),#ececee 0)}
.gs-ring::before{content:"";position:absolute;inset:8px;border-radius:50%;background:#fff}
.gs-ring.is-ok{background:conic-gradient(var(--ok) calc(var(--p)*1%),#ececee 0)}
.gs-ring b{position:relative;font-size:19px;font-weight:700;letter-spacing:-.02em}
.gs-ring small{position:relative;display:block;margin-top:-4px;color:var(--mut);font-size:10.5px;text-align:center}
.gs-ring>span{position:relative;text-align:center;line-height:1.1}
.gs-checks{display:grid;gap:2px}
.gs-check{display:flex;align-items:center;gap:9px;min-height:30px;padding:3px 8px;border:0;border-radius:6px;background:none;font-size:13px;text-align:left;color:var(--fg)}
button.gs-check{cursor:pointer}
button.gs-check:hover{background:var(--soft)}
.gs-check .gs-dot{display:grid;place-items:center;flex:none;width:18px;height:18px;border-radius:50%;background:#e4e4e7;color:#fff}
.gs-check .gs-dot .gx-ic{width:11px;height:11px;stroke-width:2.6}
.gs-check.is-ok .gs-dot{background:var(--ok)}
.gs-check.is-bad .gs-dot{background:#ef4444}
.gs-check.is-soft .gs-dot{background:#f59e0b}
.gs-check span.t{flex:1;min-width:0}
.gs-check small{display:block;color:var(--mut);font-size:12px;line-height:16px}
.gs-check .go{flex:none;color:var(--sel-ink);font-size:12px;font-weight:600}
.gs-ready-f{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin:8px -14px -14px;padding:10px 14px;border-top:1px solid var(--line);background:var(--bg)}
.gs-ready-f p{color:var(--mut);font-size:12.5px;min-width:0;flex:1 1 220px}
.gs-mix{display:flex;height:8px;margin-top:8px;border-radius:99px;overflow:hidden;background:#ececee}
.gs-mix i{display:block;height:100%;background:var(--c)}
.gs-mixl{display:flex;flex-wrap:wrap;gap:2px 12px;margin-top:6px;color:var(--mut);font-size:11.5px}
.gs-mixl span{display:inline-flex;align-items:center;gap:5px}
.gs-mixl i{width:7px;height:7px;border-radius:50%;background:var(--c)}

/* ===== Bảng đáp án có chỉnh nhanh ===== */
.gs-left .gx-kt td.k{position:relative}
.gs-left .gx-kt td.k.is-open{box-shadow:inset 0 0 0 2px var(--pri);background:var(--sel)}
.gs-pop{position:fixed;z-index:2200;min-width:176px;max-width:min(92vw,320px);padding:8px;border:1px solid var(--in);border-radius:8px;background:#fff;box-shadow:0 12px 36px rgba(24,24,27,.18)}
.gs-pop-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:12px;font-weight:600}
.gs-pop-h small{color:var(--mut);font-weight:400}
.gs-pop-r{display:flex;flex-wrap:wrap;gap:4px}
.gs-pop-b{min-width:34px;height:32px;padding:0 8px;border:1px solid var(--in);border-radius:6px;background:#fff;font-size:13px;font-weight:600;cursor:pointer}
.gs-pop-b:hover{background:var(--soft)}
.gs-pop-b.on{border-color:var(--ok);background:var(--ok);color:#fff}
.gs-pop-b.d.on{border-color:var(--ok);background:var(--ok)}
.gs-pop-b.s.on{border-color:var(--bad);background:var(--bad)}
.gs-pop-b:disabled{opacity:.4;cursor:default}
.gs-pop-row{display:flex;align-items:center;gap:8px;margin-top:5px}
.gs-pop-row>span{flex:none;width:18px;color:var(--mut);font-size:12px;font-weight:700;text-align:center}
.gs-pop-row .t{flex:1;min-width:0;overflow:hidden;color:var(--mut);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.gs-pop-f{display:flex;justify-content:space-between;gap:6px;margin-top:8px;padding-top:6px;border-top:1px solid var(--line)}
.gs-pop textarea{width:100%;min-height:52px;padding:6px 8px;border:1px solid var(--in);border-radius:6px;font:12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}
.gs-symgrid{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;min-width:300px}
.gs-symgrid button{height:30px;border:0;border-radius:4px;background:none;font-size:15px;cursor:pointer}
.gs-symgrid button:hover{background:var(--sel);color:var(--sel-ink)}

/* ===== Cài đặt giao bài (cột trái) ===== */
.gs-set2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:0}
.gs-set2>.gx-set-g{padding:14px;border-bottom:1px solid var(--line);align-content:start}
.gs-set2>.gx-set-g:last-child{border-bottom:0}
@media (min-width:1500px){.gs-set2>.gx-set-g{border-right:1px solid var(--line)}}
.gs-dates{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.gs-presets{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.gs-preset{height:22px;padding:0 8px;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--mut);font-size:11.5px;font-weight:500;cursor:pointer}
.gs-preset:hover{border-color:var(--pri);background:var(--sel);color:var(--sel-ink)}
.gs-preset.is-x{border-style:dashed}
.gs-bad{color:var(--bad)!important}
.gs-plan{margin:0;padding:10px 14px;border-top:1px solid var(--line);background:var(--bg)}
.gs-plan h3{margin-bottom:6px;color:var(--mut);font-size:11.5px;font-weight:600}
.gs-plan ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:3px 16px}
.gs-plan li{display:flex;align-items:flex-start;gap:7px;font-size:12.5px;line-height:1.45}
.gs-plan li .gx-ic{margin-top:2px;width:14px;height:14px;color:var(--mut)}
.gs-plan li b{font-weight:600}

/* ===== Panel: thông tin bài + công cụ ===== */
.gs-info{display:grid;grid-template-columns:minmax(0,1fr) 112px minmax(0,.55fr);gap:8px 10px;align-items:end}
.gs-info .gs-t1{grid-column:1/-1}
.gs-time{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;margin-top:8px}
.gs-time .gx-suf{width:112px}
.gs-time .gx-quick{border-radius:0}
.gs-time .gx-pill.is-est{color:var(--sel-ink);font-weight:600}
.gs-panel .gx-quick{border-radius:0}
.gs-panel .gx-chips{border-radius:0}
.gs-panel .gx-pill.on,.gs-panel .gx-chipf[aria-pressed=true]{background:#eaf4ff;color:#1d6fc4}
.gs-note{margin-top:8px}
.gs-note-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.gs-note-h .gx-fld-t{font-size:11.5px;font-weight:500;color:var(--mut)}
.gs-note-h .gx-hint{margin-left:6px}
.gs-linkb{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 6px;border:0;border-radius:4px;background:none;color:var(--sel-ink);font-size:12px;font-weight:500;cursor:pointer}
.gs-linkb:hover{background:var(--sel)}
.gs-linkb .gx-ic{width:13px;height:13px}
.gs-note-r{display:flex;align-items:center;gap:2px}
.gs-math{margin-top:6px}
.gs-panel .gx-etools{margin:10px 0 0}
.gs-panel .gx-search{max-width:none}
.gs-panel .gx-sec{margin:16px 0 6px}
.gs-panel .gx-sec .gs-tip{flex:1 1 240px;text-align:right;color:var(--faint);font-size:11.5px;line-height:1.4}
.gs-panel .gx-adds{margin-top:10px}
.gs-panel .gx-add{border-radius:0}
.gs-panel .gx-empty{border-radius:0}

/* thẻ câu hỏi trong panel: góc vuông, gọn như "Sửa đề" của Mã đề */
.gs-panel .gx-q{margin-top:8px;border-radius:0;scroll-margin-top:12px}
.gs-panel .gx-q.is-flash{box-shadow:0 0 0 2px rgba(84,168,251,.5)}
.gs-panel .gx-num,.gs-panel .gx-mark,.gs-panel .gx-step,.gs-panel .gx-thumb,.gs-panel .gx-tg,.gs-panel .gx-wc,.gs-panel .gx-essay,.gs-panel .gx-nomatch{border-radius:0}
.gs-panel .gx-q .gx-qb{padding:8px 8px 2px}
.gs-qtools{display:flex;align-items:center;flex:none;gap:0}
.gs-qtool{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 6px;border:0;border-radius:0;background:none;color:var(--sel-ink);font-size:12px;font-weight:500;cursor:pointer;white-space:nowrap}
.gs-qtool:hover{background:var(--sel)}
.gs-qtool .gx-ic{width:14px;height:14px}
.gs-qtool.is-ic{width:26px;padding:0;justify-content:center;color:var(--mut)}
.gs-qtool.is-ic:hover{background:var(--soft);color:var(--fg)}
.gs-qtool.is-on{background:var(--warn-bg);color:#b45309}
.gs-panel .gx-q.is-collapsed .gs-qtools{display:none}
.gs-panel .gx-q:not(.is-collapsed) .gx-ty{margin-right:2px}
.gs-mini{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 8px;border:0;border-radius:0;background:none;color:var(--mut);font-size:12px;font-weight:500;cursor:pointer}
.gs-mini:hover{background:var(--soft);color:var(--fg)}
.gs-mini:disabled{opacity:.4;pointer-events:none}
.gs-mini .gx-ic{width:13px;height:13px}
.gs-hasprev .gx-prev{border-radius:0}
.gs-paste-hint{margin:4px 0 0;color:var(--faint);font-size:11.5px}

/* ===== Hộp thoại: bảng lệnh Ctrl+K, xem trước như học sinh ===== */
.gs-cmd{position:fixed;inset:0;z-index:2300;display:grid;justify-items:center;align-items:start;padding:12vh 14px 14px;background:rgba(24,24,27,.45)}
.gs-cmd-c{width:min(560px,100%);overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.3)}
.gs-cmd-in{display:flex;align-items:center;gap:10px;padding:0 14px;border-bottom:1px solid var(--line)}
.gs-cmd-in .gx-ic{color:var(--faint)}
.gs-cmd-in input{flex:1;min-width:0;height:48px;border:0;outline:0;background:none;font-size:15px}
.gs-cmd-in kbd,.gs-kbd{display:inline-block;padding:1px 6px;border:1px solid var(--in);border-bottom-width:2px;border-radius:5px;background:var(--bg);color:var(--mut);font:600 11px/1.5 Inter,system-ui,sans-serif}
.gs-cmd-l{max-height:min(52vh,420px);overflow-y:auto;padding:6px}
.gs-cmd-g{margin:6px 8px 3px;color:var(--faint);font-size:11px;font-weight:600}
.gs-cmd-i{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:5px 10px;border:0;border-radius:7px;background:none;font-size:13.5px;text-align:left;cursor:pointer}
.gs-cmd-i .gx-ic{color:var(--mut)}
.gs-cmd-i .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-cmd-i small{flex:none;color:var(--faint);font-size:11.5px}
.gs-cmd-i.is-on{background:var(--sel);color:var(--sel-ink)}
.gs-cmd-i.is-on .gx-ic{color:var(--sel-ink)}
.gs-cmd-e{padding:22px;text-align:center;color:var(--mut)}
.gs-cmd-f{display:flex;gap:14px;padding:8px 14px;border-top:1px solid var(--line);background:var(--bg);color:var(--mut);font-size:11.5px}

.gs-pv{position:fixed;inset:0;z-index:2250;display:flex;flex-direction:column;background:#ededf0}
.gs-pv-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;height:50px;padding:0 14px;border-bottom:1px solid var(--line);background:#fff}
.gs-pv-bar b{font-size:14px;font-weight:600}
.gs-pv-bar .gs-pbar-r{gap:10px}
.gs-pv-body{flex:1;min-height:0;overflow:auto;padding:22px 14px 60px}
.gs-pv-dev{width:min(100%,820px);margin:0 auto;transition:width .2s}
.gs-pv-dev.is-phone{width:min(100%,390px)}
.gs-pv-sheet{padding:22px 24px 26px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.05)}
.gs-pv-dev.is-phone .gs-pv-sheet{padding:16px 14px 20px}
.gs-pv-sheet h1{font-size:21px;line-height:28px;font-weight:600;letter-spacing:-.02em}
.gs-pv-sub{margin-top:2px;color:var(--mut);font-size:13px}
.gs-pv-note{margin-top:12px;padding:10px 12px;border-left:3px solid var(--pri);background:var(--sel);color:#1e3a5f;font-size:13.5px;white-space:pre-wrap;overflow-wrap:anywhere}
.gs-pv-q{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.gs-pv-q:first-of-type{border-top:0}
.gs-pv-qh{display:flex;align-items:baseline;gap:8px;margin-bottom:6px;font-size:13px;font-weight:700}
.gs-pv-qh small{color:var(--mut);font-weight:500}
.gs-pv-qt{font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.gs-pv-qt .katex-display{overflow-x:auto;overflow-y:hidden}
.gs-pv-img{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.gs-pv-img img{max-width:100%;max-height:260px;border:1px solid var(--line);border-radius:6px}
.gs-pv-o{display:flex;align-items:flex-start;gap:10px;margin-top:6px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font-size:14.5px}
.gs-pv-o .k{display:grid;place-items:center;flex:none;width:24px;height:24px;border:1.5px solid var(--in);border-radius:50%;font-size:12px;font-weight:700;color:var(--mut)}
.gs-pv-o.is-multi .k{border-radius:5px}
.gs-pv-o .t{flex:1;min-width:0;overflow-wrap:anywhere}
.gs-pv.show .gs-pv-o.is-ok{border-color:var(--ok-ln);background:var(--ok-bg)}
.gs-pv.show .gs-pv-o.is-ok .k{border-color:var(--ok);background:var(--ok);color:#fff}
.gs-pv-s{display:flex;align-items:center;gap:10px;margin-top:6px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font-size:14.5px}
.gs-pv-s .a{flex:none;width:22px;color:var(--mut);font-weight:700}
.gs-pv-s .t{flex:1;min-width:0;overflow-wrap:anywhere}
.gs-pv-s .tg{display:inline-flex;flex:none;border:1px solid var(--in);border-radius:6px;overflow:hidden}
.gs-pv-s .tg span{min-width:34px;padding:3px 0;text-align:center;font-size:12px;font-weight:700;color:var(--mut)}
.gs-pv-s .tg span+span{border-left:1px solid var(--in)}
.gs-pv.show .gs-pv-s .tg span.on-d{background:var(--ok);color:#fff}
.gs-pv.show .gs-pv-s .tg span.on-s{background:var(--bad);color:#fff}
.gs-pv-in{margin-top:8px;height:38px;padding:0 12px;border:1px solid var(--in);border-radius:8px;color:var(--faint);display:flex;align-items:center;font-size:14px}
.gs-pv-ta{margin-top:8px;min-height:90px;padding:10px 12px;border:1px solid var(--in);border-radius:8px;color:var(--faint);font-size:14px}
.gs-pv-key{margin-top:6px;color:var(--ok);font-size:12.5px;font-weight:600}
.gs-pv-sol{margin-top:8px;padding:8px 10px;border-radius:6px;background:var(--soft);color:var(--mut);font-size:13px;white-space:pre-wrap}
.gs-pv-up{margin-top:22px;padding:14px;border:1.5px dashed var(--in);border-radius:10px;color:var(--mut);font-size:13.5px;text-align:center}
.gs-pv-empty{padding:40px 14px;color:var(--mut);text-align:center}

/* ===== Thanh chuyển tab trên điện thoại ===== */
.gs-mtabs{display:none}
.gs-toastw{position:relative;z-index:2100}

/* ===== Thu nhỏ: màn hình < 1000px → một cột, chuyển tab Tổng quan / Soạn câu hỏi ===== */
@media (max-width:999px){
  .gs-root{--gs-w:100vw}
  .gs-left{padding-right:var(--gs-pad);padding-bottom:84px}
  .gs-resize,.gs-fab,.gs-root.is-over .gs-fab{display:none}
  .gs-root.is-over .gs-panel,.gs-root.is-focus .gs-panel{transform:none;left:0;right:0;width:100vw;border:0}
  .gs-root.m-over .gs-panel{display:none}
  .gs-root.m-edit .gs-left{display:none}
  .gs-panel{width:100vw;border-left:0;box-shadow:none}
  .gs-pbody{padding:10px 12px 96px}
  .gs-mtabs{position:fixed;left:0;right:0;bottom:0;z-index:80;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
  .gs-mtabs button{display:flex;align-items:center;justify-content:center;gap:7px;height:38px;border:1px solid var(--in);border-radius:8px;background:#fff;color:var(--mut);font-size:13px;font-weight:600;cursor:pointer}
  .gs-mtabs button[aria-pressed=true]{border-color:var(--pri);background:var(--sel);color:var(--sel-ink)}
  .gs-mtabs .gx-ic{width:16px;height:16px}
  .gs-info{grid-template-columns:1fr 1fr}
  .gs-info .gs-t1{grid-column:1/-1}
  .gs-ready{grid-template-columns:1fr;justify-items:center}
  .gs-checks{justify-self:stretch}
  .gs-ptotal,.gs-panel .gx-state span{display:none}
  .gs-pbar-r .gs-hide-m{display:none}
  .gs-qtool:not(.is-ic) span{display:none}
  .gs-qtool:not(.is-ic){width:26px;padding:0;justify-content:center}
}
@media (max-width:560px){
  .gs-top .gx-back span{display:none}
  .gs-head h1{font-size:18px}
  .gs-ready{padding:12px}
  .gs-ready-f{margin:8px -12px -12px}
}
@media (prefers-reduced-motion:reduce){
  .gs-panel,.gs-left,.gs-pv-dev{transition:none}
  .gs-panel,.gs-pbody{scroll-behavior:auto}
}
@media print{.gs-panel,.gs-resize,.gs-fab,.gs-mtabs,.gs-cmd,.gs-pv,.gs-pop{display:none!important}.gs-left{padding:0!important}}

/* bổ sung */
.gx-toast.is-warn{background:#92400e}
.gs-panel .gx-etools{position:sticky;top:-12px;z-index:6;margin:10px -20px 0;padding:8px 20px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* Tên | Môn | Lớp cùng một hàng trên desktop (mobile: tên chiếm cả hàng) */
@media (min-width:1000px){.gs-info .gs-t1{grid-column:auto}}
.gs-ready>.gs-mixw{grid-column:1/-1}

/* phiên 4: hàng Đúng/Sai trong popover đáp án */
.gs-pop-row .t{text-align:left;font-weight:400}