/* ===== style.css part 0 — CSS nền gốc (bản 22/10/2026, khôi phục 25/11/2026: bị mất khi tách module 19/11) ===== */

/* Bố cục: thanh tiêu đề — thông tin dự án — hai khung code cạnh nhau — báo cáo bên dưới */
:root {
	--nen: #F4F2EC; --mat: #FFFFFF; --chu: #1B2A41; --phu: #5A6577; --vien: #DCD6CA;
	--navy: #1B2A41; --vang: #B08D57; --vangnhat: #F3EBDD;
	--xanh: #2E6B4F; --xanhnhat: #E3F0E8; --do: #9B2C2C; --donhat: #F7E4E2;
	--code: #FBFAF7;
	--f-ui: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-code: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
	--nen: #12161D; --mat: #1A2029; --chu: #E8E4DA; --phu: #9AA3B2; --vien: #2D3542;
	--navy: #0E131A; --vang: #CDA972; --vangnhat: #2B261D;
	--xanh: #7CC2A0; --xanhnhat: #1B2B24; --do: #E38B84; --donhat: #2E1D1D; --code: #151A22; color-scheme: dark } }
:root[data-theme="dark"] {
	--nen: #12161D; --mat: #1A2029; --chu: #E8E4DA; --phu: #9AA3B2; --vien: #2D3542;
	--navy: #0E131A; --vang: #CDA972; --vangnhat: #2B261D;
	--xanh: #7CC2A0; --xanhnhat: #1B2B24; --do: #E38B84; --donhat: #2E1D1D; --code: #151A22; color-scheme: dark }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--nen); color: var(--chu); font-family: var(--f-ui); font-size: 14px; line-height: 1.5; }
.khung { max-width: 1320px; margin: 0 auto; padding-block: 0 48px;
	padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* thanh tiêu đề */
header.dau { background: #1B2A41; color: #F4F2EC; }
header.dau .khung { padding-block: 18px 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.ten { font-weight: 700; font-size: 22px; letter-spacing: .2px; margin: 0; }
.ten b { color: #CDA972; font-weight: 700; }
.mota { color: #B9C0CC; font-size: 13px; margin: 0; }
.vach { height: 3px; background: linear-gradient(90deg, #B08D57 0 120px, transparent 120px); }

/* thông tin dự án */
.thongtin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-top: 18px; }
label.o { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--phu); font-weight: 500; letter-spacing: .3px; }
input[type=text] { font: inherit; font-size: 14px; color: var(--chu); background: var(--mat); border: 1px solid var(--vien); border-radius: 6px; padding: 8px 10px; min-width: 0; }
input[type=text]:focus, textarea:focus { outline: 2px solid var(--vang); outline-offset: 1px; }
details.tuychon { margin-top: 10px; }
details.tuychon summary { cursor: pointer; color: var(--phu); font-size: 13px; width: fit-content; }
.dsTuychon { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.dsTuychon label { display: flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.dsTuychon input { accent-color: var(--vang); }

/* hai khung code */
.haiKhung { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.oCode { background: var(--mat); border: 1px solid var(--vien); border-radius: 8px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.oCode .dauO { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--vien); flex-wrap: wrap; }
.oCode h2 { font-size: 13px; margin: 0; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--phu); }
.oCode h2 span { text-transform: none; letter-spacing: 0; font-weight: 400; }
textarea { width: 100%; height: 460px; resize: vertical; border: 0; background: var(--code); color: var(--chu);
	font-family: var(--f-code); font-size: 13px; line-height: 1.55; padding: 12px 14px; tab-size: 4; white-space: pre; overflow: auto; }
.nut { font: inherit; font-size: 13px; font-weight: 500; border-radius: 6px; padding: 6px 12px; cursor: pointer; border: 1px solid var(--vien); background: var(--mat); color: var(--chu); }
.nut:hover { border-color: var(--vang); }
.nut:focus-visible { outline: 2px solid var(--vang); outline-offset: 1px; }
.nut.chinh { background: var(--vang); border-color: var(--vang); color: #1B2A41; font-weight: 600; padding: 9px 20px; font-size: 14px; }
.nut.chinh:hover { filter: brightness(1.06); }
.nhom { display: flex; gap: 6px; flex-wrap: wrap; }
.thanhChay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.tomtat { display: flex; gap: 8px; flex-wrap: wrap; }
.the { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.the.sua { background: var(--xanhnhat); color: var(--xanh); }
.the.canh { background: var(--donhat); color: var(--do); }
.the.on { background: var(--vangnhat); color: var(--chu); }
.goiy { color: var(--phu); font-size: 12.5px; }
kbd { font-family: var(--f-code); font-size: 11.5px; border: 1px solid var(--vien); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; }

/* báo cáo */
.baoCao { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 22px; }
.bang { background: var(--mat); border: 1px solid var(--vien); border-radius: 8px; min-width: 0; }
.bang h3 { margin: 0; font-size: 14px; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--vien); display: flex; justify-content: space-between; gap: 8px; }
.bang h3 small { color: var(--phu); font-weight: 400; font-size: 12.5px; }
.ds { list-style: none; margin: 0; padding: 4px 0; max-height: 380px; overflow: auto; }
.ds li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 7px 14px; align-items: baseline; border-bottom: 1px solid color-mix(in srgb, var(--vien) 55%, transparent); }
.ds li:last-child { border-bottom: 0; }
.ma { font-family: var(--f-code); font-size: 12px; font-weight: 500; color: var(--vang); }
.ds .doan { display: block; font-family: var(--f-code); font-size: 12px; color: var(--phu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ds .so { font-variant-numeric: tabular-nums; color: var(--phu); font-size: 12.5px; }
.ds button.dong { font: inherit; font-size: 12px; background: none; border: 1px solid var(--vien); border-radius: 4px; color: var(--chu); padding: 1px 7px; cursor: pointer; white-space: nowrap; }
.ds button.dong:hover { border-color: var(--do); color: var(--do); }
.trong { padding: 18px 14px; color: var(--phu); font-size: 13px; }
.chuthich { margin-top: 18px; color: var(--phu); font-size: 12.5px; max-width: 80ch; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: #1B2A41; color: #F4F2EC; padding: 8px 16px; border-radius: 6px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.hien { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

@media (max-width: 900px) {
	.haiKhung, .baoCao { grid-template-columns: minmax(0, 1fr); }
	.thongtin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	textarea { height: 320px; }
}
@media (max-width: 520px) { .thongtin { grid-template-columns: minmax(0, 1fr); } }

/* ---------- phần thêm cho bản thương mại ---------- */
header.dau .khung { align-items: center; }
.taiKhoan { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #B9C0CC; }
.taiKhoan img { width: 28px; height: 28px; border-radius: 50%; }
.taiKhoan .nut { background: transparent; color: #F4F2EC; border-color: #3A4A63; }
.manHinh { max-width: 520px; margin: 56px auto 0; background: var(--mat); border: 1px solid var(--vien); border-radius: 10px; padding: 28px; }
.manHinh h2 { margin: 0 0 8px; font-size: 20px; }
.manHinh p { color: var(--phu); margin: 0 0 16px; }
.nutGoogle { display: inline-flex; align-items: center; gap: 10px; }
.nutGoogle svg { width: 18px; height: 18px; }
.trangThai { display: inline-block; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--vangnhat); }
.hanDung { color: var(--phu); font-size: 12.5px; }
.dangChay { opacity: .6; pointer-events: none; }
/* trang quản trị */
.locDs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; align-items: center; }
.locDs input { flex: 1 1 220px; }
.cuon { overflow-x: auto; background: var(--mat); border: 1px solid var(--vien); border-radius: 8px; }
table.nd { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
table.nd th, table.nd td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--vien); vertical-align: middle; }
table.nd th { font-size: 12px; color: var(--phu); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
table.nd td.so { font-variant-numeric: tabular-nums; }
.tt-cho { background: var(--vangnhat); color: var(--chu); }
.tt-duyet { background: var(--xanhnhat); color: var(--xanh); }
.tt-het { background: var(--donhat); color: var(--do); }
.tacVu { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
select { font: inherit; font-size: 13px; padding: 5px 6px; border-radius: 6px; border: 1px solid var(--vien); background: var(--mat); color: var(--chu); }

[hidden] { display: none !important; }
a.nut { text-decoration: none; display: inline-block; }
.hangBoLuat { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 12px 14px; }
.hangBoLuat label { flex: 1 1 220px; }
.hangBoLuat input[type=file] { font: inherit; font-size: 13px; color: var(--chu); }

/* cảnh báo gom theo loại */
.ds li.nhomCB { display: block; }
.nhomCB .dauCB { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.nhomCB .cacDong { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0 62px; }
.nhomCB .them { color: var(--phu); font-size: 12px; align-self: center; }
.the.canh { cursor: pointer; }

/* ===== style.css part 1 (block 1) — extracted verbatim from index.html ===== */
#kiemRa .kiemDs{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
#kiemRa .kiemDs li{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:13px;line-height:1.5}
#kiemRa .kiemDs .ma{font-family:ui-monospace,monospace;font-weight:700;color:#ff8f8f;flex:none}
#kiemRa .dong{flex:none;font:600 12px ui-monospace,monospace;padding:3px 9px;border-radius:7px;border:1px solid rgba(245,179,1,.4);background:rgba(245,179,1,.12);color:#f5b301;cursor:pointer}
#kiemRa .dong:hover{background:rgba(245,179,1,.25)}
#kiemRa .moHinh{font-size:11.5px;opacity:.75;word-break:break-all}

.tabChinh { display: flex; gap: 2px; margin-top: 16px; border-bottom: 1px solid var(--vien); overflow-x: auto; scrollbar-width: none; }
.tabChinh::-webkit-scrollbar { display: none; }
.tabChinh button { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--phu); padding: 10px 16px 9px; cursor: pointer; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tabChinh button small { font-weight: 400; font-size: 12px; color: var(--phu); }
.tabChinh button[aria-selected="true"] { color: var(--chu); border-bottom-color: var(--vang); }
.tabChinh button:hover { color: var(--chu); }
.tabChinh button:focus-visible { outline: 2px solid var(--vang); outline-offset: -2px; }
.manTab[hidden] { display: none !important; }
.cdO { margin-top: 18px; background: var(--mat); border: 1px solid var(--vien); border-radius: 8px; padding: 16px; display: grid; gap: 14px; }
.cdO h2 { margin: 0; font-size: 16px; font-weight: 600; }
.cdO .moTa { margin: 0; color: var(--phu); font-size: 13px; max-width: 90ch; }
.cdHang { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cdHang label { display: flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.cdHang input[type=checkbox] { accent-color: var(--vang); }
.cdTha { border: 1.5px dashed var(--vien); border-radius: 8px; padding: 22px 16px; text-align: center; cursor: pointer; background: var(--code); transition: border-color .15s; }
.cdTha:hover, .cdTha.keo { border-color: var(--vang); }
.cdTha b { display: block; font-size: 14px; margin-bottom: 4px; }
.cdTha span { color: var(--phu); font-size: 12.5px; }
.cdTha input { display: none; }
.cdTrangThai { font-size: 13px; color: var(--phu); min-height: 1.4em; }
.cdTrangThai.ok { color: var(--xanh); }
.cdTrangThai.loi { color: var(--do); }
.cdKetQua { font-size: 13px; border-left: 3px solid var(--vang); background: var(--code); padding: 8px 12px; border-radius: 0 6px 6px 0; }
.cdKetQua[hidden] { display: none; }
.cdKetQua ul { margin: 4px 0 0; padding-left: 18px; }
.cdKetQua li { margin: 2px 0; }
.cdKetQua code, .cdO code { font-family: var(--f-code); font-size: 12px; }
.cdRa { width: 100%; height: 420px; resize: vertical; border: 1px solid var(--vien); border-radius: 6px; background: var(--code); color: var(--chu); font-family: var(--f-code); font-size: 13px; line-height: 1.55; padding: 12px 14px; tab-size: 4; white-space: pre; overflow: auto; }
.cdRa[hidden] { display: none; }
/* PDF → LaTeX: kết quả chia đôi (máy tính) / chuyển tab (iPad, điện thoại) */
.ptHai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.ptHai[hidden] { display: none; }
.ptTabHai { display: none; gap: 8px; grid-column: 1 / -1; }
.ptCot { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* 20.2: khung mã bên trái kéo dài bằng cả cột phải (nút biên dịch + PDF + danh sách lỗi + log) */
.ptHai .cdRa { height: auto; min-height: 560px; flex: 1 1 auto; resize: none; }
.ptKhungPdf { width: 100%; height: 560px; border: 1px solid var(--vien); border-radius: 6px; background: #fff; }
.ptKhungPdf[hidden], .ptLog[hidden] { display: none; }
.ptLog { margin: 0; max-height: 160px; overflow: auto; font-family: var(--f-code); font-size: 12px; background: var(--code); border: 1px solid var(--vien); border-radius: 6px; padding: 8px 10px; white-space: pre-wrap; }
.ptMauTen { font-size: 12px; opacity: .75; }
@media (max-width: 1024px) {
	.ptHai { grid-template-columns: minmax(0, 1fr); }
	.ptTabHai { display: flex; }
	.ptHai[data-tab="ma"] #ptCotPdf, .ptHai[data-tab="pdf"] #ptCotMa { display: none; }
	.ptHai .cdRa, .ptKhungPdf { height: 440px; min-height: 0; flex: none; }
}
.nut[disabled] { opacity: .55; cursor: progress; }
@media (max-width: 600px) { .tabChinh button small { display: none; } .cdRa { height: 300px; } }
/* ===== Xưởng PDF → Word: bàn soát đề — trái: dải trang PDF như tờ liên ảnh; phải: bản in thử đề như file Word ===== */
:root { --giay: #FFFFFF; --giayChu: #16202E; --mucCau: #1F3FB8; --mucDung: #A3261F; --toi: rgba(27, 42, 65, .55); --bong: 0 1px 2px rgba(27, 42, 65, .06), 0 8px 24px -12px rgba(27, 42, 65, .18); --f-de: "Noto Serif", "Times New Roman", Times, serif; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --giay: #1F2631; --giayChu: #E6E2D8; --mucCau: #93A9FF; --mucDung: #F0938B; --toi: rgba(5, 8, 12, .7); --bong: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6); } }
:root[data-theme="dark"] { --giay: #1F2631; --giayChu: #E6E2D8; --mucCau: #93A9FF; --mucDung: #F0938B; --toi: rgba(5, 8, 12, .7); --bong: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6); }

.xuong { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.xuong > *, .xuongDau > *, .ban > * { min-width: 0; }
.xuongDau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.xuongDau h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .1px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.xuongDau h2 small { font-size: 13px; font-weight: 400; color: var(--phu); }
.chipAI { min-width: 0; font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--vien); background: var(--mat); color: var(--chu); cursor: pointer; max-width: 100%; }
.chipAI:hover { border-color: var(--vang); }
.chipAI:focus-visible { outline: 2px solid var(--vang); outline-offset: 2px; }
.chipAI .cham { width: 8px; height: 8px; border-radius: 50%; background: var(--vang); flex: none; box-shadow: 0 0 0 3px var(--vangnhat); }
.chipAI[data-tt="ok"] .cham { background: var(--xanh); box-shadow: 0 0 0 3px var(--xanhnhat); }
.chipAI[data-tt="loi"] .cham { background: var(--do); box-shadow: 0 0 0 3px var(--donhat); }
.chipAI .tenAI { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chipAI .tenAI b { font-weight: 600; }
.chipAI svg { width: 15px; height: 15px; flex: none; color: var(--phu); }

.xuongThan { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.khoi { background: var(--mat); border: 1px solid var(--vien); border-radius: 10px; min-width: 0; }

/* --- dải trang --- */
.dai { position: sticky; top: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 24px); overflow: hidden; }
.daiDau { padding: 12px 14px; border-bottom: 1px solid var(--vien); display: grid; gap: 10px; }
.tepPdf { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tepPdf .bieu { width: 34px; height: 40px; flex: none; border-radius: 4px; background: var(--vangnhat); color: var(--vang); display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .5px; border: 1px solid var(--vien); }
.tepPdf .tt { min-width: 0; flex: 1; }
.tepPdf .tt b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tepPdf .tt span { font-size: 12px; color: var(--phu); font-variant-numeric: tabular-nums; }
.locTrang { display: flex; flex-wrap: wrap; gap: 6px; }
.locTrang button { font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--vien); background: transparent; color: var(--chu); cursor: pointer; }
.locTrang button:hover { border-color: var(--vang); }
.locTrang button[aria-pressed="true"] { border-color: var(--vang); background: var(--vang); color: #1a1a1a; font-weight: 600; }
.locTrang button:focus-visible { outline: 2px solid var(--vang); outline-offset: 1px; }
.dsTrang { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow-y: auto; min-height: 0; }
.the { position: relative; cursor: pointer; border-radius: 6px; outline: none; }
.the .to { position: relative; aspect-ratio: 210 / 297; max-width: 100%; background: #fff; border: 1px solid var(--vien); border-radius: 4px; overflow: hidden; box-shadow: var(--bong); transition: transform .15s, border-color .15s, opacity .15s; }
.the canvas { width: 100%; height: 100%; display: block; }
.the:hover .to { transform: translateY(-1px); border-color: var(--vang); }
.the:focus-visible .to { outline: 2px solid var(--vang); outline-offset: 2px; }
.the[aria-checked="false"] .to { opacity: .42; }
.the .chon { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; border-radius: 5px; background: var(--mat); border: 1.5px solid var(--vien); display: grid; place-items: center; }
.the[aria-checked="true"] .chon { background: var(--navy); border-color: var(--navy); }
.the[aria-checked="true"] .chon::after { content: ""; width: 9px; height: 5px; border: 2px solid #F4F2EC; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.the .nhan { position: absolute; top: 6px; right: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--xanhnhat); color: var(--xanh); border: 1px solid transparent; }
.the .nhan.scan { background: var(--vangnhat); color: var(--vang); }
.the .so { display: flex; flex-wrap: wrap; gap: 0 6px; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; color: var(--phu); font-variant-numeric: tabular-nums; }
.the .tinh { position: absolute; inset: 0; display: grid; place-items: center; background: var(--toi); color: #fff; opacity: 0; transition: opacity .2s; pointer-events: none; font-size: 12px; font-weight: 600; }
.the[data-tt] .tinh { opacity: 1; }
.the[data-tt="xong"] .tinh, .the[data-tt="nho"] .tinh { opacity: 0; }
.the .dau { position: absolute; bottom: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.the[data-tt="xong"] .dau, .the[data-tt="nho"] .dau { display: grid; background: var(--xanh); }
.the[data-tt="loi"] .dau { display: grid; background: var(--do); }
.vongQuay { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: quay 0.9s linear infinite; }
@keyframes quay { to { transform: rotate(360deg); } }
.thaTep { position: relative; margin: 12px; padding: 34px 16px; border: 1.5px dashed var(--vien); border-radius: 10px; display: grid; justify-items: center; gap: 10px; text-align: center; cursor: pointer; background: var(--code); transition: border-color .15s, background .15s; }
.thaTep:hover, .thaTep.keo { border-color: var(--vang); background: var(--vangnhat); }
.thaTep:focus-within { outline: 2px solid var(--vang); outline-offset: 2px; }
.thaTep svg { width: 34px; height: 34px; color: var(--vang); }
.thaTep b { font-size: 14px; }
.thaTep span { font-size: 12.5px; color: var(--phu); max-width: 30ch; }
.thaTep input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* --- bàn làm việc --- */
.ban { display: grid; gap: 0; overflow: hidden; }
.banDieuKhien { padding: 14px 16px; display: grid; gap: 12px; border-bottom: 1px solid var(--vien); }
.hangNut { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nut.chinh .soN { font-variant-numeric: tabular-nums; }
.nut svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; }
.nut.phu2 { padding: 9px 16px; font-size: 14px; font-weight: 600; }
.nut:disabled { opacity: .5; cursor: not-allowed; }
.uocTinh { font-size: 12.5px; color: var(--phu); flex: 1 1 220px; min-width: 0; }
.uocTinh b { color: var(--chu); font-weight: 600; font-variant-numeric: tabular-nums; }
.tienDo { display: grid; gap: 6px; }
.tienDo[hidden] { display: none; }
.thanhTD { height: 6px; border-radius: 999px; background: var(--code); border: 1px solid var(--vien); overflow: hidden; }
.thanhTD i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--vang), var(--xanh)); transition: width .35s ease; }
.chuTD { font-size: 12.5px; color: var(--phu); font-variant-numeric: tabular-nums; }
.chuTD.loi { color: var(--do); }
.chuTD.ok { color: var(--xanh); }

.dinhDang { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 13px; }
.dinhDang label { display: inline-flex; align-items: center; gap: 6px; color: var(--phu); }
.dinhDang select { font: inherit; font-size: 13px; color: var(--chu); background: var(--mat); border: 1px solid var(--vien); border-radius: 6px; padding: 5px 8px; max-width: 100%; }
.dinhDang select:focus-visible { outline: 2px solid var(--vang); outline-offset: 1px; }
.dinhDang input[type=checkbox] { accent-color: var(--vang); }
.dinhDang .bat { color: var(--chu); cursor: pointer; }
.manhGhep { display: inline-flex; border: 1px solid var(--vien); border-radius: 7px; padding: 2px; background: var(--code); }
.manhGhep button { font: inherit; font-size: 12.5px; border: 0; background: transparent; color: var(--phu); padding: 5px 11px; border-radius: 5px; cursor: pointer; }
.manhGhep button[aria-pressed="true"] { background: var(--mat); color: var(--chu); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.manhGhep button:focus-visible { outline: 2px solid var(--vang); outline-offset: -2px; }

.theKQ { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--vien); overflow-x: auto; scrollbar-width: none; }
.theKQ button { font: inherit; font-size: 13px; font-weight: 600; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--phu); padding: 10px 10px 9px; cursor: pointer; white-space: nowrap; }
.theKQ button[aria-selected="true"] { color: var(--chu); border-bottom-color: var(--vang); }
.theKQ button:focus-visible { outline: 2px solid var(--vang); outline-offset: -2px; }
.theKQ .dem { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; font-size: 11px; background: var(--vangnhat); color: var(--vang); text-align: center; }
.manKQ { padding: 18px; background: var(--nen); min-height: 420px; }
.manKQ[hidden] { display: none; }

/* bản in thử: tờ đề như file Word */
.toDe { background: var(--giay); color: var(--giayChu); max-width: 820px; margin: 0 auto; padding: 44px clamp(16px, 6%, 64px) 52px; border-radius: 3px; box-shadow: var(--bong); font-family: var(--f-de); font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.toDe .viDu { font-family: var(--f-ui); font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--vang); margin: -20px 0 18px; }
.toDe .tieuDeDe { text-align: center; font-weight: 700; margin: 0 0 18px; line-height: 1.45; text-wrap: balance; }
.toDe h3 { font-family: var(--f-de); font-size: 16px; font-weight: 700; margin: 22px 0 10px; }
.toDe .cau { margin: 0 0 16px; }
.toDe .cau::after { content: ""; display: block; clear: both; }
.toDe .nhanCau { color: var(--mucCau); font-weight: 700; }
.toDe .hinhPhai { float: right; max-width: 42%; margin: 0 0 8px 16px; }
.toDe img { max-width: 100%; height: auto; vertical-align: middle; }
.toDe .giua { text-align: center; margin: 6px 0; }
.toDe .hienThi { display: block; text-align: center; margin: 6px 0; overflow-x: auto; }
.toDe .pa { display: grid; gap: 4px 16px; margin: 6px 0 0 18px; }
.toDe .pa.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.toDe .pa.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.toDe .pa > div { min-width: 0; }
.toDe .pa b { color: var(--mucCau); }
.toDe .pa .dung b { color: var(--mucDung); text-decoration: underline; text-underline-offset: 3px; }
.toDe .ds { margin: 6px 0 0 18px; display: grid; gap: 3px; }
.toDe .ds b { color: var(--mucCau); }
.toDe .ds .dS { font-family: var(--f-ui); font-size: 11px; font-weight: 600; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--xanhnhat); color: var(--xanh); }
.toDe .ds .dS.sai { background: var(--donhat); color: var(--do); }
.toDe .dapSo { margin-top: 6px; font-weight: 700; }
.toDe .dapSo span { color: var(--mucDung); }
.toDe details.lg { margin-top: 8px; border-top: 1px dashed var(--vien); padding-top: 6px; }
.toDe details.lg summary { cursor: pointer; font-family: var(--f-ui); font-size: 12.5px; color: var(--phu); width: fit-content; }
.toDe table { border-collapse: collapse; margin: 6px auto; }
.toDe td { border: 1px solid currentColor; padding: 3px 10px; text-align: center; }
.toDe .boc { overflow-x: auto; max-width: 100%; }
.toDe .hinhTikz { display: inline-block; font-family: var(--f-ui); font-size: 12px; color: var(--phu); border: 1px dashed var(--vien); padding: 10px 14px; border-radius: 4px; }
.toDe .hinhTikz.loi { color: var(--do); border-color: var(--do); }
.toDe .loiTex { color: var(--do); font-family: var(--f-code); font-size: 12px; }
.toDe math { font-size: 1.05em; }
.maTex { width: 100%; min-height: 460px; resize: vertical; border: 1px solid var(--vien); border-radius: 8px; background: var(--code); color: var(--chu); font-family: var(--f-code); font-size: 13px; line-height: 1.6; padding: 14px 16px; tab-size: 4; white-space: pre; overflow: auto; }
.maTex:focus { outline: 2px solid var(--vang); outline-offset: 1px; }
.hangMa { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12.5px; color: var(--phu); }
.dsCB { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 820px; }
.dsCB li { background: var(--mat); border: 1px solid var(--vien); border-left: 3px solid var(--vang); border-radius: 0 6px 6px 0; padding: 9px 12px; font-size: 13px; }
.dsCB li.trong { border-left-color: var(--xanh); color: var(--phu); }

/* hình cắt (PDF/Ảnh → Word) */
.dsHinhCat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 820px; }
.dsHinhCat li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--vien); border-radius: 8px; background: var(--mat); }
.dsHinhCat li.trong { color: var(--phu); }
.dsHinhCat .anhNho { flex: 0 0 140px; height: 90px; display: grid; place-items: center; background: #fff; border: 1px solid var(--vien); border-radius: 4px; overflow: hidden; }
.dsHinhCat .anhNho img { max-width: 100%; max-height: 100%; }
.dsHinhCat .ttHinh { flex: 1 1 auto; display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.dsHinhCat .ttHinh span { color: var(--phu); font-size: 12px; }
@media (max-width: 560px) { .dsHinhCat li { flex-wrap: wrap; } .dsHinhCat .anhNho { flex-basis: 100%; } }
dialog.hopCat { border: 1px solid var(--vien); border-radius: 12px; padding: 0; width: min(940px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--mat); color: var(--chu); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); overflow: auto; }
dialog.hopCat::backdrop { background: rgba(14, 19, 26, .55); }
.hopCat .dauHop { padding: 14px 18px 10px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--vien); }
.hopCat h2 { margin: 0; font-size: 16px; }
.hopCat .dauHop p { margin: 4px 0 0; font-size: 12.5px; color: var(--phu); }
.hopCat .dong { font: inherit; border: 0; background: none; color: var(--phu); cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 6px; }
.hangCat { display: flex; gap: 14px; align-items: center; padding: 8px 18px; font-size: 13px; }
.hangCat select { font: inherit; color: var(--chu); background: var(--mat); border: 1px solid var(--vien); border-radius: 6px; padding: 4px 6px; }
.coCat { color: var(--phu); }
.vungCat { position: relative; margin: 0 18px; width: max-content; max-width: calc(100% - 36px); touch-action: none; cursor: crosshair; user-select: none; }
.vungCat canvas { display: block; max-width: none; border: 1px solid var(--vien); }
.khungCat { position: absolute; border: 2px solid #e5484d; background: rgba(229, 72, 77, .08); pointer-events: none; }
.hopCat .chanHop { padding: 12px 18px 16px; display: flex; justify-content: flex-end; gap: 10px; }

/* hộp cấu hình AI */
dialog.hopAI { border: 1px solid var(--vien); border-radius: 12px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--mat); color: var(--chu); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); }
dialog.hopAI::backdrop { background: rgba(14, 19, 26, .55); }
.hopAI form { display: grid; gap: 0; }
.hopAI .dauHop { padding: 18px 20px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: start; border-bottom: 1px solid var(--vien); }
.hopAI h2 { margin: 0; font-size: 17px; }
.hopAI .dauHop p { margin: 4px 0 0; font-size: 12.5px; color: var(--phu); }
.hopAI .dong { font: inherit; border: 0; background: none; color: var(--phu); cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.hopAI .dong:focus-visible { outline: 2px solid var(--vang); }
.hopAI .thanHop { padding: 16px 20px; display: grid; gap: 16px; overflow-y: auto; }
.nguonAI { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nguonAI label { position: relative; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--vien); border-radius: 8px; cursor: pointer; background: var(--code); }
.nguonAI label:hover { border-color: var(--vang); }
.nguonAI input { position: absolute; opacity: 0; }
.nguonAI label:has(input:checked) { border-color: var(--vang); background: var(--vangnhat); box-shadow: inset 0 0 0 1px var(--vang); }
.nguonAI label:has(input:focus-visible) { outline: 2px solid var(--vang); outline-offset: 2px; }
.nguonAI b { font-size: 13.5px; }
.nguonAI span { font-size: 12px; color: var(--phu); }
.nguonAI label.tat { opacity: .55; }
.phanAI { display: grid; gap: 12px; }
.phanAI[hidden] { display: none; }
.buoc { margin: 0; padding-left: 20px; font-size: 13px; display: grid; gap: 4px; }
.buoc a { color: var(--chu); font-weight: 600; text-decoration-color: var(--vang); text-underline-offset: 3px; }
.oKhoa { display: flex; gap: 8px; flex-wrap: wrap; }
.oKhoa input { flex: 1 1 220px; min-width: 0; font-family: var(--f-code); font-size: 13px; }
.hopAI input[type=password], .hopAI input[type=text] { font: inherit; color: var(--chu); background: var(--mat); border: 1px solid var(--vien); border-radius: 6px; padding: 8px 10px; }
.hopAI select { font: inherit; font-size: 13px; color: var(--chu); background: var(--mat); border: 1px solid var(--vien); border-radius: 6px; padding: 7px 8px; max-width: 100%; }
.hopAI .truong { display: grid; gap: 5px; font-size: 12.5px; color: var(--phu); font-weight: 500; }
.ttKhoa { font-size: 12.5px; min-height: 1.3em; color: var(--phu); }
.ttKhoa.ok { color: var(--xanh); }
.ttKhoa.loi { color: var(--do); }
.nhieuKhoa { display: grid; gap: 8px; padding: 10px 12px; border: 1px dashed var(--vien); border-radius: 8px; }
.nhieuKhoaDau { display: grid; gap: 2px; font-size: 12.5px; }
.nhieuKhoaDau span { color: var(--phu); }
.dsKhoaPhu { list-style: decimal; margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.dsKhoaPhu li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dsKhoaPhu input { flex: 1 1 200px; min-width: 0; font-family: var(--f-code); font-size: 13px; }
.dsKhoaPhu .ttK { flex-basis: 100%; font-size: 12px; color: var(--phu); min-height: 0; }
.dsKhoaPhu .ttK.ok { color: var(--xanh); }
.dsKhoaPhu .ttK.loi { color: var(--do); }
.hangNutKhoa { display: flex; flex-wrap: wrap; gap: 6px; }
.ghiChuAI { font-size: 12px; color: var(--phu); line-height: 1.55; margin: 0; padding: 10px 12px; background: var(--code); border-radius: 8px; border: 1px solid var(--vien); }
.nangCao { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ptCauNoi .ptTokenCau { flex: 1 1 150px; min-width: 120px; }
/* 19.7 — hộp AI web miễn phí (dán tay) */
dialog#hopAIWeb { width: min(760px, calc(100vw - 32px)); }
#hopAIWeb .chanHop { flex-wrap: wrap; }
#hopAIWeb textarea { width: 100%; box-sizing: border-box; margin-top: 6px; font: 12px/1.5 var(--f-code); color: var(--chu); background: var(--mat); border: 1px solid var(--vien); border-radius: 6px; padding: 8px 10px; resize: vertical; }
#hopAIWeb details summary { cursor: pointer; font-size: 12.5px; color: var(--phu); margin-top: 6px; }
.awWeb { display: flex; flex-wrap: wrap; gap: 6px; }
.awHang { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
/* 20.2–20.3: chế độ "Cả file PDF" — số trang/nhịp + khoảng trang của nhịp hiện tại; Bước 2 chỉ một nút + dòng phụ */
.awNhipChon select { font: inherit; padding: 5px 8px; border: 1px solid var(--vien); border-radius: 6px; background: var(--code); color: var(--chu); }
.awKhoang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--phu); white-space: nowrap; }
.awKhoang input { width: 4.2em; font: inherit; color: var(--chu); padding: 5px 6px; border: 1px solid var(--vien); border-radius: 6px; background: var(--code); text-align: center; }
/* 20.4: số trang/nhịp (nhập 1–20) + chọn phạm vi chuyển (liên tiếp từ trang 1 / tuỳ chọn khoảng trang) */
.awNhipChon { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--phu); white-space: nowrap; }
.awNhipChon input { width: 4em; font: inherit; color: var(--chu); padding: 5px 6px; border: 1px solid var(--vien); border-radius: 6px; background: var(--code); text-align: center; }
.awPV { align-items: center; gap: 6px 14px; }
.awPV label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }
.awKhoang[hidden] { display: none; }
.awNhipSo { margin: 4px 0 0; font-size: 11.5px; }
.awNhipSo:empty { display: none; }
/* 20.3: thanh nút Tiếp tục / Hoàn tất / Dừng luôn ghim ở đáy hộp — chỉ thân hộp cuộn */
dialog#hopAIWeb[open] { display: flex; flex-direction: column; overflow: hidden; }
#hopAIWeb .thanHop { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#hopAIWeb .dauHop { flex-shrink: 0; }
#hopAIWeb .chanHop { position: sticky; bottom: 0; z-index: 2; flex-shrink: 0; background: var(--mat); }
.awAnh { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.awAnh figure { margin: 0; display: grid; gap: 6px; padding: 6px; border: 1px solid var(--vien); border-radius: 8px; background: var(--code); }
.awAnh img { width: 100%; height: 170px; object-fit: contain; background: #fff; border-radius: 4px; }
.awAnh figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.awAnh figcaption a { text-decoration: none; }
.hopAI .chanHop {padding: 12px 20px 16px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--vien); }
.nutCauHinh { font-size: 12.5px; }

@media (max-width: 860px) {
	.xuongThan { grid-template-columns: minmax(0, 1fr); }
	.dai { position: static; max-height: none; }
	.dsTrang { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: 360px; }
}
@media (max-width: 520px) {
	.toDe { padding: 26px 16px 32px; font-size: 15px; }
	.toDe .pa.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.toDe .hinhPhai { float: none; max-width: 100%; margin: 6px 0; display: block; }
	.nguonAI { grid-template-columns: minmax(0, 1fr); }
	.manKQ { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .vongQuay { animation-duration: 3s; } .the .to, .thanhTD i { transition: none; } }
.cdHang select { font: inherit; font-size: 13px; color: var(--chu); background: var(--mat); border: 1px solid var(--vien); border-radius: 6px; padding: 5px 8px; max-width: 100%; }
.the .ghi { font-size: 11px; }
.hangTD { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dongHo { font-size: 12.5px; color: var(--phu); font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-block; min-width: 6.5em; height: 1.4em; line-height: 1.4em; text-align: right; overflow: hidden; contain: strict; }
.tongKet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--vien); border-radius: 8px; overflow: hidden; background: var(--code); }
.tongKet > div { padding: 10px 14px; display: grid; gap: 2px; min-width: 0; }
.tongKet > div + div { border-left: 1px solid var(--vien); }
.tongKet b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tongKet span { font-size: 12px; color: var(--phu); }
.tongKet .xau b { color: var(--do); }
.tongKet .tot b { color: var(--xanh); }
.meoCT { margin: 0; font-size: 12.5px; color: var(--phu); line-height: 1.55; }
.meoCT b { color: var(--chu); font-weight: 600; }
.meoCT kbd { font-family: var(--f-ui); font-size: 11.5px; border: 1px solid var(--vien); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--mat); color: var(--chu); white-space: nowrap; }
@media (max-width: 520px) { .tongKet { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tongKet > div:nth-child(3) { border-left: 0; } .tongKet > div:nth-child(n+3) { border-top: 1px solid var(--vien); } }
.huongDan { border: 1px solid var(--vang); border-radius: 10px; background: var(--vangnhat); }
.huongDan summary { list-style: none; cursor: pointer; padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 13.5px; }
.huongDan summary::-webkit-details-marker { display: none; }
.huongDan summary small { font-weight: 500; font-size: 12px; color: var(--vang); }
.huongDan summary small::after { content: " ▾"; }
.huongDan[open] summary small::after { content: " ▴"; }
.huongDan summary:focus-visible { outline: 2px solid var(--vang); outline-offset: 2px; border-radius: 10px; }
.buocDai { list-style: none; counter-reset: b; margin: 0; padding: 2px 14px 4px; display: grid; gap: 12px; }
.buocDai li { counter-increment: b; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.buocDai li::before { content: counter(b); width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #F4F2EC; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.buocDai b { font-size: 13.5px; }
.buocDai p { margin: 2px 0 0; font-size: 12.5px; color: var(--phu); line-height: 1.6; }
.nutMo { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 7px 13px; border-radius: 7px; background: var(--vang); color: #1B2A41; font-weight: 600; font-size: 13px; text-decoration: none; }
.nutMo:hover { filter: brightness(1.06); }
.nutMo:focus-visible { outline: 2px solid var(--chu); outline-offset: 2px; }
.giaNut { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 5px; border: 1px solid var(--vien); background: var(--mat); color: var(--chu); white-space: nowrap; }
.giaNut.xanh { background: #1A73E8; border-color: #1A73E8; color: #fff; }
.giaNut.vang { background: var(--vang); border-color: var(--vang); color: #1B2A41; }
.giaKhoa { display: inline-flex; gap: 6px; align-items: center; font-family: var(--f-code); font-size: 11.5px; padding: 1px 8px; border-radius: 5px; border: 1px dashed var(--vang); background: var(--mat); color: var(--chu); white-space: nowrap; }
.giaKhoa i { font-style: normal; color: var(--phu); }
.huongDan kbd, .buocDai kbd { font-family: var(--f-ui); font-size: 11px; border: 1px solid var(--vien); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--mat); color: var(--chu); }
.luuY { margin: 4px 14px 12px; font-size: 12px; color: var(--phu); line-height: 1.55; border-top: 1px dashed var(--vang); padding-top: 9px; }
/* ---------- LaTeX → Word ---------- */
#tabTexWord .dai { overflow-y: auto; }
.nut.rong { margin: 0 12px; justify-content: center; }
.hinhKem { margin: 14px 12px 12px; padding-top: 12px; border-top: 1px solid var(--vien); display: grid; gap: 10px; font-size: 13px; }
.hinhKem h3 { margin: 0; font-size: 13px; font-weight: 600; }
.hinhKem .ttHinh { margin: 0; color: var(--phu); }
.buocHinh { display: grid; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--code); }
.buocHinh p { margin: 0; line-height: 1.5; }
.buocHinh ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.5; color: var(--phu); }
.buocHinh ol .nut { color: var(--chu); }
.buocHinh label.nut { cursor: pointer; width: fit-content; }
.dsAnh { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-family: var(--f-ma, ui-monospace, monospace); font-size: 12px; }
.dsAnh li { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.dsAnh li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--xanh); }
.dsAnh li.thieu { color: var(--do); }
.dsAnh li.thieu::before { background: var(--do); }
#maTW { min-height: 460px; }
#maTW.keo { outline: 2px dashed var(--vang); outline-offset: -4px; }
.toDe .hoTenTS { margin: -6px 0 18px; }
.toDe h3.deMoi { text-align: center; font-size: 17px; margin-top: 30px; }
.toDe table.bangDS { width: 100%; margin: 6px 0 0; }
.toDe table.bangDS th { border: 1px solid currentColor; padding: 3px 8px; font-family: var(--f-ui); font-size: 12.5px; background: color-mix(in srgb, var(--mucCau) 10%, transparent); }
.toDe table.bangDS td { text-align: center; }
.toDe table.bangDS td:first-child { text-align: left; }
.toDe table.bangDS td + td { width: 56px; }
/* --- LaTeX → Word: tự biên dịch hình --- */
.buocHinh .ttBD { margin: 0; font-size: .92em; color: var(--phu); line-height: 1.5; }
.buocHinh .ttBD.ok { color: var(--xanh); }
.buocHinh .ttBD.loi { color: var(--do); }
.thanhBD[hidden] { display: none; }
.thanhBD { height: 5px; border-radius: 99px; background: var(--vien); overflow: hidden; }
.thanhBD > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--vang); transition: width .3s ease; }
.dsLoiHinh { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dsLoiHinh:empty { display: none; }
.dsLoiHinh li { font-size: .88em; line-height: 1.45; padding: 6px 9px; border-radius: 6px; background: var(--mat); border-left: 3px solid var(--do); word-break: break-word; }
.buocHinh #bdLaiTW { width: fit-content; }
.tongKet .chiTiet { grid-column: 1 / -1; margin: 0; padding: 7px 14px; border-top: 1px solid var(--vien); font-size: 12px; color: var(--phu); font-variant-numeric: tabular-nums; }
/* --- LaTeX → Word: thông tin tiêu đề đầu đề --- */
.dauDe { border: 1px solid var(--vien); border-radius: 8px; padding: 10px 14px 12px; margin: 0; background: var(--code); display: grid; gap: 10px; min-width: 0; }
.dauDe[hidden] { display: none; }
.dauDe legend { padding: 0 6px; font-weight: 600; font-size: 13.5px; }
.dauDe legend small { font-weight: 400; color: var(--phu); }
.dauDeLuoi { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 14px; }
.cotDD { display: grid; gap: 8px; align-content: start; min-width: 0; }
.nhanCot { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--phu); }
.dauDe label { display: grid; gap: 4px; font-size: 13px; min-width: 0; }
.dauDe label small { color: var(--phu); font-weight: 400; }
.dauDe input, .dauDe textarea { font: inherit; font-size: 13.5px; width: 100%; box-sizing: border-box; border: 1px solid var(--vien); border-radius: 6px; padding: 6px 9px; background: var(--mat); color: var(--chu); resize: vertical; min-width: 0; }
.dauDe input:focus, .dauDe textarea:focus { outline: 2px solid var(--vang); outline-offset: -1px; border-color: transparent; }
.hangDD { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: end; }
.hangDD .maDe { width: 200px; }
@media (max-width: 720px) { .dauDeLuoi { grid-template-columns: minmax(0, 1fr); } .hangDD .maDe { width: 100%; } }
.toDe .dauDeXem { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 12px; text-align: center; line-height: 1.4; margin: 0 0 14px; }
.toDe .dauDeXem b, .toDe .dauDeXem i { display: block; }
.toDe .hangMaDe { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; }
.toDe .hangMaDe .oMaDe { border: 1.5px solid currentColor; padding: 6px 18px; font-weight: 700; white-space: nowrap; }
.toDe .hangMaDe .oMaDe span { color: #C00000; }
.dauDe textarea { height: 4.2em; min-height: 3em; max-height: 9em; flex: none; }
/* --- Word → LaTeX --- */
#tabWordTex .hinhKem { display: grid; gap: 10px; }
#tabWordTex .hinhKem label { font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#tabWordTex .hinhKem select { font: inherit; }
.ttKho { margin: 0; font-size: 12.5px; color: var(--phu); line-height: 1.5; }
.ttKho b { color: var(--chu); }
.nutChu { background: none; border: 0; padding: 0; font: inherit; color: var(--vang); text-decoration: underline; cursor: pointer; }
.nhomNut { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.tongKet .tkTG b { font-size: 15px; color: var(--xanh); }
#tabWordTex .hinhKem label.bat { flex-wrap: nowrap; align-items: flex-start; }
#tabWordTex .hinhKem label.bat input { margin-top: 3px; flex: none; }
.dsHinhWL { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; padding: 12px; }
.dsHinhWL > .trong { color: var(--phu); margin: 8px; }
.theHinh { border: 1px solid var(--vien); border-radius: 8px; background: var(--mat); display: grid; gap: 8px; padding: 10px 12px; min-width: 0; }
.theHinh header { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; }
.theHinh header b { margin-right: auto; }
.nhanCach, .nhanLoai, .theHinh .diem, .theHinh .tg { font-size: 11.5px; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--vien); color: var(--phu); white-space: nowrap; }
.nhanCach.vector, .nhanCach.khuhoi, .nhanCach.ai { color: var(--xanh); border-color: currentColor; }
.nhanCach.vet { color: var(--vang); border-color: currentColor; }
.nhanCach.bo { color: var(--phu); border-style: dashed; }
.nhanCach.loi { color: var(--do); border-color: currentColor; }
.haiAnh { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.haiAnh figure { margin: 0; display: grid; gap: 4px; min-width: 0; }
.haiAnh img { width: 100%; height: 150px; object-fit: contain; background: #fff; border: 1px solid var(--vien); border-radius: 6px; }
.haiAnh figcaption { font-size: 11.5px; color: var(--phu); text-align: center; }
.khongAnh { height: 150px; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 12.5px; color: var(--phu); border: 1px dashed var(--vien); border-radius: 6px; }
.theHinh .ghiChu { margin: 0; font-size: 12px; color: var(--phu); }
.theHinh details summary { cursor: pointer; font-size: 12.5px; color: var(--phu); }
.maHinh { width: 100%; min-height: 140px; resize: vertical; font-family: var(--f-code); font-size: 12px; border: 1px solid var(--vien); border-radius: 6px; background: var(--code); color: var(--chu); padding: 8px; margin-top: 6px; white-space: pre; }
.theHinh .hangNut { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.ttSua { font-size: 12px; color: var(--phu); }
.ttSua.loi { color: var(--do); }
.hopHoi { border: 1px solid var(--vien); border-radius: 12px; padding: 0; width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--mat); color: var(--chu); box-shadow: var(--bong); }
.hopHoi::backdrop { background: var(--toi); }
.hopHoi form { display: grid; gap: 12px; padding: 18px 20px; max-height: calc(100vh - 48px); overflow: auto; box-sizing: border-box; }
.hopHoi h3 { margin: 0; font-size: 17px; }
.moTaHoi { margin: 0; font-size: 13.5px; color: var(--phu); line-height: 1.55; }
.moTaHoi b { color: var(--chu); }
.nutNhanh { display: flex; flex-wrap: wrap; gap: 8px; }
.luoiTT { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.theTT { border: 1px solid var(--vien); border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; background: var(--code); }
.theTT img { width: 100%; height: 160px; object-fit: contain; background: #fff; border-bottom: 1px solid var(--vien); }
.ttTT { display: grid; gap: 6px; padding: 10px 12px; font-size: 13px; align-content: start; }
.goiY { font-size: 12px; line-height: 1.45; }
.goiY.can { color: var(--xanh); }
.goiY.bo { color: var(--vang); }
.ngCanh { font-size: 12px; color: var(--phu); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chonTT { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.chonTT label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-weight: 500; }
.chonTT label.tat { opacity: .45; cursor: not-allowed; }
.chanHoi { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; bottom: -18px; background: var(--mat); padding: 10px 0 0; border-top: 1px solid var(--vien); }
.chanHoi span { font-size: 13px; color: var(--phu); }
.theHinh .diem.dc { color: var(--xanh); border-color: currentColor; }
/* kho hình TikZ */
.khoTikz { padding: 12px; display: grid; gap: 12px; }
.moTaKT { margin: 0; font-size: 13px; color: var(--phu); line-height: 1.5; }
.hangKT { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hangKT input[type="search"], .hangKT input[type="text"] { flex: 1 1 220px; min-width: 0; padding: 7px 10px; border: 1px solid var(--vien); border-radius: 6px; background: var(--mat); color: inherit; font: inherit; font-size: 13.5px; }
.hangKT select { padding: 6px 8px; border: 1px solid var(--vien); border-radius: 6px; background: var(--mat); color: inherit; font: inherit; font-size: 13px; }
.ttKT { font-size: 12.5px; color: var(--phu); }
.themKT { border: 1px dashed var(--vien); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; }
.themKT[open] { gap: 10px; }
.themKT summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.themKT summary small { font-weight: 400; color: var(--phu); }
.themKT textarea { width: 100%; height: 160px; min-height: 100px; flex: none; box-sizing: border-box; font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 8px 10px; border: 1px solid var(--vien); border-radius: 6px; background: var(--mat); color: inherit; resize: vertical; margin-top: 8px; }
.themKT .hangNut { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.luoiKT { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.luoiKT > .trong { color: var(--phu); margin: 4px; }
.theKT { border: 1px solid var(--vien); border-radius: 8px; background: var(--mat); display: grid; gap: 6px; padding: 8px; min-width: 0; align-content: start; }
.anhKT { min-height: 120px; display: grid; place-items: center; background: #fff; border: 1px solid var(--vien); border-radius: 6px; padding: 8px; }
.anhKT img { max-width: 100%; height: auto; max-height: 360px; object-fit: contain; display: block; }
.khoAnh { padding: 0; }
#tabKhoAnh .luoiKT { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.choKT, .loiKT { font-size: 12px; color: #6b7280; }
.loiKT { color: #b45309; }
.ttTheKT { display: grid; gap: 6px; min-width: 0; }
.ttTheKT .nhanLoai { justify-self: start; }
.ttTheKT .nhanLoai + .nhanLoai { margin-top: -2px; }
.deKT { margin: 0; font-size: 12px; color: var(--phu); line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.theKT .hangNut { display: flex; flex-wrap: wrap; gap: 6px; }
.theKT .hangNut .nut { padding: 4px 9px; font-size: 12px; }
.theKT textarea.maHinh { width: 100%; min-height: 120px; box-sizing: border-box; }
.nhanCach.khotikz { color: var(--xanh); border-color: currentColor; }
.themKT.keo { border-color: var(--xanh); background: color-mix(in srgb, var(--xanh) 8%, transparent); }
.ttKT.loi { color: var(--do); }
.moTaKT.nho { font-size: 12px; }
.theHinh .ungVien summary { cursor: pointer; font-size: 12.5px; color: var(--phu); }
.dsUV { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 8px; }
.dsUV figure { margin: 0; display: grid; gap: 4px; border: 1px solid var(--vien); border-radius: 6px; padding: 4px; background: var(--mat); }
.dsUV figure.dangChon { border-color: var(--xanh); box-shadow: 0 0 0 1px var(--xanh); }
.dsUV img { width: 100%; height: 90px; object-fit: contain; background: #fff; border-radius: 4px; }
.dsUV figcaption { font-size: 11px; color: var(--phu); line-height: 1.35; }
.dsUV .nut { padding: 3px 8px; font-size: 11.5px; }
.nhanCach.vecto { color: var(--xanh); border-color: currentColor; }

/* Vẽ hình TikZ */
.vhKhung { display: grid; grid-template-columns: minmax(200px, 260px) minmax(260px, 1fr) minmax(300px, 1.2fr); gap: 12px; align-items: start; }
@media (max-width: 1000px) { .vhKhung { grid-template-columns: 1fr; } }
.vhMenu { border: 1px solid var(--vien); border-radius: 8px; background: var(--mat); padding: 6px; max-height: 78vh; overflow: auto; }
.vhMenu details { margin: 2px 0; } .vhMenu summary { font-weight: 600; cursor: pointer; padding: 6px 4px; }
.vhMuc { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 5px 8px 5px 18px; border-radius: 6px; cursor: pointer; color: inherit; font: inherit; font-size: 13px; }
.vhMuc:hover { background: var(--nen, rgba(0,0,0,.05)); } .vhMuc.dangChon { color: #4f46e5; font-weight: 600; }
.vhForm { padding: 12px; display: grid; gap: 8px; } .vhForm h3 { margin: 0; font-size: 15px; } .vhMoTa { margin: 0; font-size: 12px; color: var(--phu); }
.vhTruong { display: grid; gap: 8px; } .vhTruong label { display: grid; gap: 3px; font-size: 13px; } .vhTruong label.bat { display: flex; gap: 6px; align-items: center; }
.vhTruong input[type=text], .vhTruong input[type=number], .vhTruong select, .vhTruong textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 5px 7px; }
.vhTruong textarea { font-family: "JetBrains Mono", monospace; font-size: 12px; }
.vhGoiY { display: flex; flex-wrap: wrap; gap: 4px; } .vhGoiY .nutChu { font-size: 11px; padding: 2px 6px; border: 1px dashed var(--vien); border-radius: 5px; }
.vhKetQua { padding: 12px; display: grid; gap: 8px; }
.vhAnh { min-height: 220px; display: grid; place-items: center; background: #fff; border: 1px solid var(--vien); border-radius: 8px; padding: 10px; }
.vhAnh img { max-width: 100%; height: auto; max-height: 520px; }
.vhMa { min-height: 220px; font-size: 13px; }

.vhDung { display: grid; gap: 6px; border: 1px dashed var(--vien); border-radius: 8px; padding: 8px; }
.vhDungThem { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .vhDungThem select { max-width: 100%; }
.vhDungThem #vhDO { display: flex; flex-wrap: wrap; gap: 4px; } .vhDungThem #vhDO input { width: 92px; padding: 4px 6px; font: inherit; font-size: 12px; }
.vhDDs { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13px; } .vhDDs li { display: flex; justify-content: space-between; gap: 6px; padding: 3px 6px; background: var(--mat); border-radius: 5px; } .vhDDs li.trong { color: var(--phu); background: none; }
.vhCay { display: grid; gap: 6px; } .vhNhanh { border-left: 3px solid var(--vien); padding-left: 8px; display: grid; gap: 4px; } .vhCay input { width: 110px; padding: 4px 6px; font: inherit; font-size: 12px; } .vhCon { padding-left: 14px; }
.vhtKhung { display: grid; grid-template-columns: minmax(380px, 1.4fr) minmax(300px, 1fr); gap: 12px; align-items: start; } @media (max-width: 1000px) { .vhtKhung { grid-template-columns: 1fr; } }

.vhtTrai { display: grid; gap: 8px; } .vhtTrai textarea { width: 100%; box-sizing: border-box; min-height: 110px; font-family: "JetBrains Mono", monospace; font-size: 12px; }

.vtLog { max-height: 420px; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--vien); border-radius: 8px; padding: 8px; background: var(--mat); }
.vtTin { padding: 6px 10px; border-radius: 8px; font-size: 13px; line-height: 1.45; max-width: 92%; flex: none; height: auto; white-space: pre-wrap; overflow-wrap: anywhere; } .vtTin.ban { align-self: flex-end; background: #e0e7ff; color: #1e1b4b; } .vtTin.ai { align-self: flex-start; background: #fff; color: #1f2937; border: 1px solid var(--vien); }
.vtTin img { max-width: 220px; max-height: 160px; display: block; }
.vtDan { min-height: 90px; border: 2px dashed var(--vien); border-radius: 8px; display: grid; place-items: center; color: var(--phu); font-size: 13px; cursor: text; padding: 6px; background: #fff; } .vtDan:focus { outline: 2px solid #6366f1; } .vtDan img { max-width: 100%; max-height: 220px; }
#vtYeu { width: 100%; box-sizing: border-box; font: inherit; padding: 6px 8px; min-height: 0; height: 56px; resize: vertical; }
.vtTuy { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; } .vtTuy label { display: flex; gap: 6px; align-items: center; } .vtTuy input[type=number] { width: 70px; }

.vtKho .dsUV { display: flex; flex-wrap: wrap; gap: 6px; } .vtKho figure { margin: 0; width: 120px; display: grid; gap: 3px; } .vtKho img { width: 100%; height: 90px; object-fit: contain; background: #fff; border: 1px solid var(--vien); border-radius: 6px; }
#vhtTen, #vhTenKho { flex: 1; min-width: 120px; padding: 5px 7px; font: inherit; font-size: 13px; }

#vtTimKho { flex: 1; min-width: 160px; padding: 5px 8px; font: inherit; font-size: 13px; } .vtKho .anhKho { height: 90px; display: grid; place-items: center; background: #fff; border: 1px solid var(--vien); border-radius: 6px; font-size: 12px; color: var(--phu); } .vtKho .anhKho img { max-width: 100%; max-height: 88px; }
/* ===== Vẽ hình TikZ từ ảnh (v13) ===== */
.vt3 { --vt-ac: var(--vang, #c9a24a); --vt-acNhat: var(--vangnhat, rgba(201,162,74,.14)); --vt-mat: var(--mat, #fff); --vt-vien: var(--vien, #d9dee7); --vt-chu: var(--chu, #16202e); --vt-phu: var(--phu, #667085); --vt-nen2: var(--code, #f6f7f9); display: grid; gap: 18px; }
.vt3Dau { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vt3Ten h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--vt-chu); }
.vt3Ten p { margin: 4px 0 0; color: var(--vt-phu); font-size: 13.5px; max-width: 640px; line-height: 1.5; }
.vt3Che { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--vt-nen2); border: 1px solid var(--vt-vien); }
.vt3Che button { border: 0; background: none; color: var(--vt-phu); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.vt3Che button[aria-selected="true"] { background: var(--vt-ac); color: #1b1408; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.vt3Che button:focus-visible { outline: 2px solid var(--vt-ac); outline-offset: 2px; }
.vt3Luoi { display: grid; grid-template-columns: minmax(320px, 5fr) minmax(360px, 7fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .vt3Luoi { grid-template-columns: 1fr; } }
.vt3The { background: var(--vt-mat); border: 1px solid var(--vt-vien); border-radius: 16px; padding: 18px; display: grid; gap: 14px; box-shadow: var(--bong, 0 8px 24px -12px rgba(27,42,65,.18)); min-width: 0; }
.vt3TheDau { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--vt-chu); }
.vt3So { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--vt-acNhat); color: var(--vt-ac); flex: none; }
.vt3NutPhu { margin-left: auto; border: 0; background: none; color: var(--vt-ac); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.vt3NutPhu:hover { background: var(--vt-acNhat); }
.vt3Chip { margin-left: auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--vt-acNhat); color: var(--vt-ac); white-space: nowrap; }
.vt3Chip.tot { background: rgba(34,160,90,.14); color: #1f9d55; } .vt3Chip.vua { background: rgba(214,150,30,.15); color: #c47f0a; }
.vt3Tha { position: relative; min-height: 220px; border: 1.5px dashed var(--vt-vien); border-radius: 12px; display: grid; place-items: center; background: var(--vt-nen2); cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.vt3Tha:hover, .vt3Tha.keo { border-color: var(--vt-ac); background: var(--vt-acNhat); }
.vt3Tha:focus-visible { outline: 2px solid var(--vt-ac); outline-offset: 2px; }
.vt3Tha.coAnh { border-style: solid; background: #fff; cursor: default; }
.vt3Tha img { max-width: 100%; max-height: 340px; display: block; }
.vt3ThaTrong { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px; color: var(--vt-phu); font-size: 13px; }
.vt3ThaTrong svg { width: 40px; height: 40px; color: var(--vt-ac); margin-bottom: 4px; }
.vt3ThaTrong b { color: var(--vt-chu); font-size: 14.5px; font-weight: 600; }
.vt3ThaTrong u { color: var(--vt-ac); text-underline-offset: 3px; }
.vt3Hang { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vt3Truong { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--vt-phu); }
.vt3Truong span { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 36px; border: 1px solid var(--vt-vien); border-radius: 10px; background: var(--vt-nen2); color: var(--vt-chu); }
.vt3Truong input { width: 52px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--vt-chu); text-align: right; outline: none; }
.vt3Cong { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vt-chu); cursor: pointer; user-select: none; }
.vt3Cong input { position: absolute; opacity: 0; pointer-events: none; }
.vt3Cong i { width: 36px; height: 20px; border-radius: 999px; background: var(--vt-vien); position: relative; transition: background .15s; flex: none; }
.vt3Cong i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.vt3Cong input:checked + i { background: var(--vt-ac); } .vt3Cong input:checked + i::after { transform: translateX(16px); }
.vt3Cong input:focus-visible + i { outline: 2px solid var(--vt-ac); outline-offset: 2px; }
.vt3NutChinh { width: 100%; height: 46px; border: 0; border-radius: 12px; background: var(--vt-ac); color: #1b1408; font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: filter .15s, transform .05s; }
.vt3NutChinh svg { width: 20px; height: 20px; }
.vt3NutChinh:hover:not(:disabled) { filter: brightness(1.06); } .vt3NutChinh:active:not(:disabled) { transform: translateY(1px); }
.vt3NutChinh:disabled { opacity: .45; cursor: not-allowed; }
.vt3NutChinh.nho { width: auto; height: 38px; padding: 0 18px; font-size: 13.5px; border-radius: 10px; }
.vt3Nut { height: 38px; padding: 0 14px; border: 1px solid var(--vt-vien); border-radius: 10px; background: var(--vt-mat); color: var(--vt-chu); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.vt3Nut:hover:not(:disabled) { border-color: var(--vt-ac); background: var(--vt-acNhat); }
.vt3Nut:disabled { opacity: .45; cursor: not-allowed; }
.vt3NutChinh:focus-visible, .vt3Nut:focus-visible, .vt3Lien:focus-visible { outline: 2px solid var(--vt-ac); outline-offset: 2px; }
.vt3Buoc { margin: 0; padding: 0; list-style: none; counter-reset: b; display: grid; gap: 12px; }
.vt3Buoc li { counter-increment: b; display: grid; grid-template-columns: 26px 1fr; gap: 4px 10px; align-items: start; font-size: 13px; color: var(--vt-phu); }
.vt3Buoc li::before { content: counter(b); width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--vt-ac); color: var(--vt-ac); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.vt3Buoc li > div:first-of-type { display: grid; gap: 2px; } .vt3Buoc b { color: var(--vt-chu); font-weight: 600; }
.vt3NutDoi { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
#vtKhuNgoai { display: grid; gap: 12px; } #vtKhuNgoai[hidden] { display: none; }
#vtDanKQ { width: 100%; box-sizing: border-box; min-height: 110px; resize: vertical; border: 1px solid var(--vt-vien); border-radius: 10px; background: var(--vt-nen2); color: var(--vt-chu); font-family: var(--f-code, "JetBrains Mono", monospace); font-size: 12px; padding: 10px 12px; }
#vtDanKQ:focus { outline: 2px solid var(--vt-ac); outline-offset: -1px; }
.vt3Nho { margin: 0; font-size: 12.5px; color: var(--vt-phu); line-height: 1.6; }
.vt3Lien { border: 0; background: none; padding: 0; font: inherit; color: var(--vt-ac); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.vt3Tien { border-radius: 12px; background: var(--vt-nen2); border: 1px solid var(--vt-vien); padding: 14px 14px 10px; display: grid; gap: 8px; }
.vt3Tien ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.vt3Tien li { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; color: var(--vt-phu); text-align: center; position: relative; }
.vt3Tien li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--vt-vien); background: var(--vt-mat); position: relative; z-index: 1; }
.vt3Tien li:not(:first-child)::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--vt-vien); }
.vt3Tien li.xong i, .vt3Tien li.dang i { border-color: var(--vt-ac); background: var(--vt-ac); }
.vt3Tien li.xong:not(:first-child)::before, .vt3Tien li.dang:not(:first-child)::before { background: var(--vt-ac); }
.vt3Tien li.dang { color: var(--vt-chu); font-weight: 600; } .vt3Tien li.dang i { box-shadow: 0 0 0 4px var(--vt-acNhat); animation: vt3Nhip 1.2s ease-in-out infinite; }
.vt3Tien li.xong { color: var(--vt-chu); }
@keyframes vt3Nhip { 50% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .vt3Tien li.dang i { animation: none; } }
.vt3Tien p { margin: 0; font-size: 12.5px; color: var(--vt-phu); text-align: center; min-height: 1.4em; }
.vt3Tien p.loi { color: var(--mucDung, #c0392b); }
.vt3Khung { position: relative; min-height: 340px; border-radius: 12px; border: 1px solid var(--vt-vien); background: #fff; display: grid; place-items: center; overflow: hidden; background-image: linear-gradient(45deg, #f4f5f7 25%, transparent 25%), linear-gradient(-45deg, #f4f5f7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f4f5f7 75%), linear-gradient(-45deg, transparent 75%, #f4f5f7 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.vt3Khung #vhtHinh { width: 100%; height: 100%; display: grid; place-items: center; padding: 18px; box-sizing: border-box; }
.vt3Khung #vhtHinh img { max-width: 100%; max-height: 520px; display: block; background: #fff; }
.vt3Rong { color: #98a2b3; font-size: 13px; gap: 8px; } .vt3Rong svg { width: 42px; height: 42px; opacity: .6; } .vt3Rong.dangVe { color: #667085; }
#vtGocChong { position: absolute; pointer-events: none; opacity: 0; object-fit: fill; }
.vt3Truot { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--vt-phu); }
.vt3Truot input { flex: 1; accent-color: var(--vt-ac); }
.vt3Sua { display: flex; gap: 8px; flex-wrap: wrap; }
.vt3Sua input { flex: 1 1 220px; min-width: 0; height: 38px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--vt-vien); border-radius: 10px; background: var(--vt-nen2); color: var(--vt-chu); font: inherit; font-size: 13px; }
.vt3Sua input:focus { outline: 2px solid var(--vt-ac); outline-offset: -1px; }
.vt3Xuat { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.vt3Ma { border-top: 1px solid var(--vt-vien); padding-top: 10px; }
.vt3Ma summary { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--vt-chu); list-style: none; padding: 4px 0; }
.vt3Ma summary::-webkit-details-marker { display: none; }
.vt3Ma summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--vt-phu); border-bottom: 2px solid var(--vt-phu); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.vt3Ma[open] summary::before { transform: rotate(45deg); }
.vt3TT { font-weight: 400; font-size: 12px; color: var(--vt-phu); }
.vt3Ma textarea { width: 100%; box-sizing: border-box; min-height: 240px; margin: 10px 0; resize: vertical; border: 1px solid var(--vt-vien); border-radius: 10px; background: var(--vt-nen2); color: var(--vt-chu); font-family: var(--f-code, "JetBrains Mono", monospace); font-size: 12.5px; line-height: 1.55; padding: 12px; tab-size: 4; white-space: pre; }
.vt3Ma .vt3Hang input { flex: 1 1 200px; min-width: 0; height: 38px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--vt-vien); border-radius: 10px; background: var(--vt-nen2); color: var(--vt-chu); font: inherit; font-size: 13px; }
@media (max-width: 560px) { .vt3The { padding: 14px; border-radius: 14px; } .vt3Tien li { font-size: 10.5px; } .vt3Cong { margin-left: 0; } .vt3Che { width: 100%; } .vt3Che button { flex: 1; } }
.vt3Quay { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(27,20,8,.25); border-top-color: #1b1408; animation: vt3Xoay .8s linear infinite; }
@keyframes vt3Xoay { to { transform: rotate(360deg); } }
.vt3 .vt3Sua input[type=text], .vt3 .vt3Ma .vt3Hang input[type=text] { height: 38px; padding: 0 12px; margin: 0; line-height: normal; }
.vt3 .vt3Truong input[type=number] { height: auto; padding: 0; margin: 0; border: 0; box-shadow: none; }
.vt3 .vt3Sua input[type=text], .vt3 .vt3Ma .vt3Hang input[type=text] { height: 38px !important; min-height: 0 !important; padding: 0 12px !important; box-sizing: border-box !important; }
.vt3Khung #vhtHinh.vt3Rong { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.vt3 #vtDanKQ { height: 150px !important; min-height: 110px !important; max-height: 320px; }
/* ===== Vẽ tùy ý (v14) ===== */
.vhDauMoi { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; --vt-ac: var(--vang, #c9a24a); --vt-acNhat: var(--vangnhat, rgba(201,162,74,.14)); --vt-vien: var(--vien, #d9dee7); --vt-chu: var(--chu, #16202e); --vt-phu: var(--phu, #667085); --vt-nen2: var(--code, #f6f7f9); }
.tuy { --vt-ac: var(--vang, #c9a24a); --vt-acNhat: var(--vangnhat, rgba(201,162,74,.14)); --vt-mat: var(--mat, #fff); --vt-vien: var(--vien, #d9dee7); --vt-chu: var(--chu, #16202e); --vt-phu: var(--phu, #667085); --vt-nen2: var(--code, #f6f7f9); display: grid; gap: 12px; }
.tuy[hidden] { display: none; }
.tuyThanh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--vt-mat); border: 1px solid var(--vt-vien); border-radius: 14px; padding: 8px 10px; }
.tuyVao { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--vt-nen2); }
.tuyVao button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--vt-phu); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.tuyVao button[aria-selected="true"] { background: var(--vt-mat); color: var(--vt-chu); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.tuyNhom { display: flex; align-items: center; gap: 4px; }
.tuyVach { width: 1px; height: 22px; background: var(--vt-vien); margin: 0 6px; }
.tuyIco { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--vt-phu); display: grid; place-items: center; cursor: pointer; }
.tuyIco svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tuyIco:hover { background: var(--vt-nen2); color: var(--vt-chu); }
.tuyIco.bat { color: var(--vt-ac); background: var(--vt-acNhat); }
.tuyIco:focus-visible, .tuyVao button:focus-visible, .tuyCong button:focus-visible { outline: 2px solid var(--vt-ac); outline-offset: 1px; }
.tuyMo { display: inline-flex; align-items: center; gap: 6px; color: var(--vt-phu); padding: 0 6px; } .tuyMo[hidden] { display: none; }
.tuyMo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; } .tuyMo input { width: 90px; accent-color: var(--vt-ac); }
.tuyDai { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--vt-mat); border: 1px solid var(--vt-vien); border-radius: 14px; padding: 10px 12px; }
.tuyDai[hidden] { display: none; }
.tuyGoiY { font-size: 12.5px; color: var(--vt-phu); margin: 0; } .tuyGoiY.loi { color: #c0392b; }
#tuyDaiDe textarea { flex: 1 1 420px; min-height: 56px; resize: vertical; border: 1px solid var(--vt-vien); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13.5px; background: var(--vt-nen2); color: var(--vt-chu); }
#tuyDaiDe textarea:focus { outline: 2px solid var(--vt-ac); outline-offset: -1px; }
.tuyDeNut { display: flex; flex-direction: column; gap: 8px; align-items: stretch; } .tuyDeNut .vt3Cong { margin-left: 0; }
#tuyDaiDe .tuyGoiY { flex-basis: 100%; }
.tuyChinh { display: grid; grid-template-columns: 74px minmax(0, 1fr) 320px; gap: 12px; align-items: stretch; }
@media (max-width: 1100px) { .tuyChinh { grid-template-columns: 64px minmax(0, 1fr); } .tuyBen { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 680px) { .tuyChinh { grid-template-columns: 1fr; } .tuyCong { flex-direction: row !important; overflow-x: auto; } .tuyCong button { min-width: 58px; } .tuyBen { grid-template-columns: 1fr; } }
.tuyCong { display: flex; flex-direction: column; gap: 2px; background: var(--vt-mat); border: 1px solid var(--vt-vien); border-radius: 14px; padding: 6px; }
.tuyCong button { border: 0; background: none; border-radius: 10px; padding: 7px 2px 5px; display: grid; justify-items: center; gap: 3px; color: var(--vt-phu); font: inherit; font-size: 10.5px; cursor: pointer; }
.tuyCong button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tuyCong button:hover { background: var(--vt-nen2); color: var(--vt-chu); }
.tuyCong button[aria-pressed="true"] { background: var(--vt-ac); color: #1b1408; }
.tuyBan { position: relative; min-height: 560px; border: 1px solid var(--vt-vien); border-radius: 14px; overflow: hidden; background: #fff; }
#tuySvg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; user-select: none; outline: none; }
#tuySvg[data-cu="chon"] { cursor: default; }
.tuyLuoi .l2 { stroke: #eef1f6; stroke-width: 1; } .tuyLuoi .l1 { stroke: #d9dfe9; stroke-width: 1; } .tuyLuoi .l0 { stroke: #b9c2d0; stroke-width: 1.2; }
.tuyHinh { cursor: pointer; } .tuyHinh.dangChon { filter: drop-shadow(0 0 2px #c9a24a) drop-shadow(0 0 2px #c9a24a); }
.tuyDiem { fill: #fff; stroke: #98a2b3; stroke-width: 1.4; cursor: grab; } .tuyDiem.coTen { stroke: #475467; }
.tuyDiem:hover { stroke: #c9a24a; stroke-width: 2.2; } .tuyDiem.dangChon { fill: #c9a24a; stroke: #7a5a12; }
.tuyNhan { font: italic 15px "Latin Modern Roman", "Times New Roman", serif; fill: #111; pointer-events: none; }
.tuyChu { font: 14px "Latin Modern Roman", "Times New Roman", serif; cursor: move; } .tuyChu.dangChon { fill: #a67c1c !important; }
.tuyNhanTranh { font-size: 11px; fill: #a67c1c; pointer-events: none; }
.tuyNhap { fill: none; stroke: #c9a24a; stroke-width: 1.6; stroke-dasharray: 5 4; pointer-events: none; }
.tuyBatDinh circle { fill: none; stroke: #e0890b; stroke-width: 2; } .tuyBatDinh text { font-size: 11px; fill: #b86e00; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.tuyToaDo { position: absolute; right: 10px; bottom: 8px; font: 12px var(--f-code, monospace); color: #667085; background: rgba(255,255,255,.85); padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.tuyNhacCu { position: absolute; left: 10px; top: 8px; right: 10px; font-size: 12px; color: #475467; background: rgba(255,255,255,.88); padding: 5px 10px; border-radius: 8px; pointer-events: none; width: fit-content; max-width: calc(100% - 20px); }
.tuyGo { position: absolute; transform: translate(-50%, -50%); width: 220px; height: 34px; border: 2px solid #c9a24a; border-radius: 8px; padding: 0 10px; font: 14px var(--f-code, monospace); background: #fff; color: #111; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.tuyBen { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tuyThe { background: var(--vt-mat); border: 1px solid var(--vt-vien); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.tuyThe h4 { margin: 0; font-size: 13.5px; color: var(--vt-chu); }
.tuyHang { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 8px; font-size: 12.5px; color: var(--vt-phu); }
.tuyHang > :not(span) { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.tuyHang input[type=text], .tuyHang input[type=number], .tuyHang select { height: 32px !important; min-width: 0; flex: 1; box-sizing: border-box; padding: 0 8px !important; border: 1px solid var(--vt-vien); border-radius: 8px; background: var(--vt-nen2); color: var(--vt-chu); font: inherit; font-size: 13px; margin: 0; }
.tuyHang input[type=number] { max-width: 92px; } .tuyHang input[type=range] { accent-color: var(--vt-ac); width: 100%; }
.tuyHang { grid-template-columns: 84px minmax(0, 1fr); } .tuyHang > input, .tuyHang > select { width: 100%; }
.tuyDoan { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--vt-nen2); border: 1px solid var(--vt-vien); }
.tuyDoan button { border: 0; background: none; font: inherit; font-size: 12px; padding: 4px 9px; border-radius: 6px; color: var(--vt-phu); cursor: pointer; }
.tuyDoan button.dang { background: var(--vt-mat); color: var(--vt-chu); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tuyMau { display: flex; gap: 5px; flex-wrap: wrap; }
.tuyMau button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--vt-mat); background: var(--m); box-shadow: 0 0 0 1px var(--vt-vien); cursor: pointer; padding: 0; }
.tuyMau button.dang { box-shadow: 0 0 0 2px var(--vt-ac); }
.tuyMau button.khong { background: linear-gradient(135deg, transparent 45%, #d92d20 45%, #d92d20 55%, transparent 55%), #fff; }
.tuyHangNut { display: flex; justify-content: flex-end; }
.tuyMaDau { display: flex; align-items: center; justify-content: space-between; } .tuyMaDau span { font-size: 12px; color: var(--vt-phu); }
.tuyMa { width: 100%; box-sizing: border-box; min-height: 230px; resize: vertical; border: 1px solid var(--vt-vien); border-radius: 10px; background: var(--vt-nen2); color: var(--vt-chu); font: 11.5px/1.5 var(--f-code, "JetBrains Mono", monospace); padding: 10px; white-space: pre; }
.tuyXuat { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tuyHop { border: 0; border-radius: 16px; padding: 16px 18px; width: min(720px, 92vw); background: var(--mat, #fff); color: var(--chu, #16202e); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.tuyHop::backdrop { background: rgba(16,24,40,.45); }
.tuyHopDau { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tuyHopAnh { display: grid; place-items: center; min-height: 200px; background: #fff; border: 1px solid var(--vien, #d9dee7); border-radius: 12px; padding: 14px; margin-bottom: 12px; } .tuyHopAnh img { max-width: 100%; max-height: 60vh; }
#tuyQuyChuan { width: 100%; box-sizing: border-box; border: 1px solid var(--vien, #d9dee7); border-radius: 10px; padding: 10px; font: 12.5px/1.5 var(--f-code, monospace); background: var(--code, #f6f7f9); color: var(--chu, #16202e); margin: 8px 0; resize: vertical; }
.tuyH4 { margin: 18px 0 6px; font-size: 14px; }
.tuy #tuyDe { height: 64px !important; min-height: 48px !important; max-height: 220px; }
.tuyDiem { pointer-events: none; } .tuyHinh, .tuyChu { pointer-events: none; }
.tuyO { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; } .tuyO > input[type=text], .tuyO > select { flex: 1 1 100%; } .tuyO > input[type=range] { flex: 1; }
.tuy, .tuy * { box-sizing: border-box; } .tuy { min-width: 0; max-width: 100%; } .tuyChinh > * { min-width: 0; } .tuyMa { max-width: 100%; }
@media (max-width: 680px) { .tuyBan { min-height: 420px; } .tuyNhom { flex-wrap: wrap; } .tuyMo input { width: 70px; } }
/* ===== v14.1: bảng vẽ dùng chung, tab tùy ý 3 chức năng, tab thực tế 4 bước ===== */
.tuy { display: grid; gap: 12px; }
.tuyBan > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; user-select: none; outline: none; }
.tuyBan > svg[data-cu="chon"] { cursor: default; }
.tuyNhan { pointer-events: none; cursor: move; } .tuyNhan.dangChon { fill: #a67c1c; font-weight: 700; }
.tuyLuoi .lTruc { stroke: #8a94a6; stroke-width: 1.2; } .tuyLuoi .soTruc { font: 10.5px var(--f-code, monospace); fill: #8a94a6; pointer-events: none; } .tuyLuoi .chuTruc { font: italic 13px "Times New Roman", serif; fill: #475467; }
.tuyLuoi { pointer-events: none; }
.tuyChucNang { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tuyChucNang button { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--vt-vien); background: var(--vt-mat); border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--vt-chu); transition: border-color .15s, box-shadow .15s; }
.tuyChucNang button b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--vt-nen2); color: var(--vt-phu); font-size: 14px; }
.tuyChucNang button span { display: grid; gap: 2px; min-width: 0; } .tuyChucNang strong { font-size: 14px; } .tuyChucNang small { font-size: 12px; color: var(--vt-phu); }
.tuyChucNang button:hover { border-color: var(--vt-ac); }
.tuyChucNang button[aria-selected="true"] { border-color: var(--vt-ac); box-shadow: 0 0 0 3px var(--vt-acNhat); } .tuyChucNang button[aria-selected="true"] b { background: var(--vt-ac); color: #1b1408; }
@media (max-width: 680px) { .tuyChucNang { grid-template-columns: 1fr; } }
.tuyDaiDe { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.tuyDaiDe > textarea, .tuyDeDan textarea { width: 100%; min-height: 60px !important; height: 64px !important; resize: vertical; border: 1px solid var(--vt-vien); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13.5px; background: var(--vt-nen2); color: var(--vt-chu); }
.tuyDeDan { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; } .tuyDeDan textarea { min-height: 38px !important; height: 38px !important; font: 12px var(--f-code, monospace); }
.tuyDaiDe > .tuyGoiY { grid-column: 1 / -1; }
@media (max-width: 680px) { .tuyDaiDe { grid-template-columns: 1fr; } }
.tuyThanh > .tuyGoiY { flex: 1 1 260px; text-align: right; }
.tuyMenu { position: absolute; left: 10px; top: 10px; z-index: 5; width: min(420px, calc(100% - 20px)); background: var(--vt-mat); border: 1px solid var(--vt-vien); border-radius: 14px; padding: 10px 12px 12px; box-shadow: 0 16px 40px rgba(16,24,40,.18); }
.tuyMenu[hidden] { display: none; } .tuyMenu h5 { margin: 0 0 8px; font-size: 13px; color: var(--vt-chu); }
.tuyMenuLuoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.tuyMenuLuoi button { text-align: left; border: 0; background: var(--vt-nen2); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 12.5px; color: var(--vt-chu); cursor: pointer; }
.tuyMenuLuoi button:hover { background: var(--vt-acNhat); }
.tuyBao { margin: 0; font-size: 12.5px; color: #8a5a00; background: #fff6e0; border: 1px solid #f1d9a0; border-radius: 8px; padding: 6px 10px; } .tuyBao[hidden] { display: none; }
.tuyMaThe small { font-weight: 400; color: var(--vt-phu); font-size: 11.5px; }
.vt4Buoc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 1000px) { .vt4Buoc { grid-template-columns: 1fr; } }
.vt4Buoc .vt3The { display: flex; flex-direction: column; gap: 10px; }
.vt4Buoc .vt3Tha { min-height: 150px; } .vt4Buoc .vt3Tha img { max-height: 170px; }
.vt4Buoc textarea { width: 100%; box-sizing: border-box; flex: 1; min-height: 96px !important; resize: vertical; border: 1px solid var(--vt-vien, #d9dee7); border-radius: 10px; padding: 8px 10px; font: 12px/1.45 var(--f-code, monospace); background: var(--vt-nen2, #f6f7f9); }
.vt4Buoc input[type=text] { width: 100%; box-sizing: border-box; height: 34px !important; border: 1px solid var(--vt-vien, #d9dee7); border-radius: 10px; padding: 0 10px !important; font: inherit; font-size: 13px; }
.vt4Buoc .vt3NutChinh { width: 100%; justify-content: center; }
.vt3TT.loi { color: #c0392b; }
.vt4Tay { margin-top: 16px; display: grid; gap: 12px; } .vt4Tay .vt3TheDau { flex-wrap: wrap; } .vt4Tay .vt3TheDau .vt3Nho { margin: 0; }
/* v14.2: chọn nhiều, khung biến đổi, kết thúc nét */
.tuyKhung { pointer-events: none; } .tuyKhung .khung { fill: none; stroke: #c9a24a; stroke-width: 1.2; stroke-dasharray: 5 4; } .tuyKhung line { stroke: #c9a24a; stroke-width: 1.2; }
.tuyKhung .tay { fill: #fff; stroke: #a67c1c; stroke-width: 1.5; } .tuyKhung .tayXoay { fill: #c9a24a; stroke: #fff; stroke-width: 1.5; }
.tuyKhung text { font: 600 11px var(--f-code, monospace); fill: #a67c1c; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.tuyQuet { fill: rgba(201,162,74,.08); stroke: #c9a24a; stroke-width: 1; stroke-dasharray: 4 3; pointer-events: none; }
.tuyNhapNet { fill: none; stroke: #111; stroke-width: 1.4; pointer-events: none; }
.tuyDau { fill: rgba(46,125,50,.12); stroke: #2e7d32; stroke-width: 2; pointer-events: none; }
.tuyXong { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; border: 0; border-radius: 999px; padding: 8px 18px; background: #2e7d32; color: #fff; font: 600 13px/1 inherit; box-shadow: 0 6px 16px rgba(0,0,0,.18); cursor: pointer; } .tuyXong[hidden] { display: none; }
.tuyBienDoi { display: grid; gap: 8px; border-top: 1px dashed var(--vt-vien); padding-top: 10px; }
.tuyBienDoi .tuyO input[type=number] { max-width: 80px; }
.tuyNutLuoi { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.tuyNutLuoi button { border: 1px solid var(--vt-vien); background: var(--vt-nen2); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 12px; color: var(--vt-chu); cursor: pointer; text-align: left; } .tuyNutLuoi button:hover { border-color: var(--vt-ac); background: var(--vt-acNhat); }
/* ===== v14.3: thanh nhóm tab, tab Vẽ hình theo mẫu mới ===== */
.tabChinh .nutNhom i { width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; margin-left: 2px; }
.tabChinh .nutNhom[aria-selected="true"] i { transform: rotate(225deg) translateY(-1px); }
.tabCon { display: flex; gap: 6px; padding: 10px 0 2px; overflow-x: auto; scrollbar-width: none; } .tabCon[hidden] { display: none; } .tabCon::-webkit-scrollbar { display: none; }
.tabCon button { font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid var(--vien); background: var(--mat, #fff); color: var(--phu); border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tabCon button:hover { color: var(--chu); border-color: var(--vang); }
.tabCon button[aria-selected="true"] { background: var(--vang, #c9a24a); border-color: var(--vang, #c9a24a); color: #1b1408; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tabCon button small { display: none; }
.vm { --vt-ac: var(--vang, #c9a24a); --vt-acNhat: var(--vangnhat, rgba(201,162,74,.14)); --vt-mat: var(--mat, #fff); --vt-vien: var(--vien, #d9dee7); --vt-chu: var(--chu, #16202e); --vt-phu: var(--phu, #667085); --vt-nen2: var(--code, #f6f7f9); display: grid; gap: 14px; margin-top: 8px; }
.vmDau { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vmTen h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--vt-chu); } .vmTen p { margin: 4px 0 0; color: var(--vt-phu); font-size: 13.5px; }
.vmTim { display: flex; align-items: center; gap: 8px; width: min(380px, 100%); height: 40px; padding: 0 12px; border: 1px solid var(--vt-vien); border-radius: 12px; background: var(--vt-mat); color: var(--vt-phu); }
.vmTim:focus-within { border-color: var(--vt-ac); box-shadow: 0 0 0 3px var(--vt-acNhat); } .vmTim svg { width: 18px; height: 18px; flex: none; }
.vmTim input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--vt-chu); height: 36px !important; padding: 0 !important; box-shadow: none !important; }
.vmNhom { display: flex; gap: 6px; flex-wrap: wrap; }
.vmNhom button { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--vt-vien); background: var(--vt-mat); color: var(--vt-chu); border-radius: 999px; padding: 6px 12px 6px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, background .15s; }
.vmNhom button b { font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; background: var(--vt-nen2); color: var(--vt-phu); padding: 0 5px; }
.vmNhom button:hover { border-color: var(--vt-ac); }
.vmNhom button[aria-pressed="true"] { background: var(--vt-chu); border-color: var(--vt-chu); color: var(--vt-mat); } .vmNhom button[aria-pressed="true"] b { background: rgba(255,255,255,.18); color: inherit; }
.vmThan { display: grid; grid-template-columns: 250px minmax(280px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1180px) { .vmThan { grid-template-columns: 230px minmax(0, 1fr); } .vmXem { grid-column: 1 / -1; } }
@media (max-width: 720px) { .vmThan { grid-template-columns: 1fr; } }
.vmDs { display: grid; gap: 6px; max-height: 640px; overflow: auto; padding: 2px; align-content: start; }
.vmDs .vhMuc { display: grid; gap: 3px; text-align: left; width: 100%; border: 1px solid var(--vt-vien); background: var(--vt-mat); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--vt-chu); transition: border-color .15s, box-shadow .15s; }
.vmDs .vhMuc b { font-size: 13.5px; font-weight: 600; } .vmDs .vhMuc small { font-size: 11.5px; color: var(--vt-phu); line-height: 1.4; }
.vmDs .vhMuc:hover { border-color: var(--vt-ac); }
.vmDs .vhMuc.dangChon { border-color: var(--vt-ac); box-shadow: 0 0 0 3px var(--vt-acNhat); background: var(--vt-mat); }
.vmDs .trong { color: var(--vt-phu); font-size: 13px; padding: 8px; }
.vmForm, .vmXem { background: var(--vt-mat); border: 1px solid var(--vt-vien); border-radius: 16px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.04); min-width: 0; }
.vmFormDau h3 { margin: 2px 0 0; font-size: 16px; color: var(--vt-chu); } .vmFormDau .vhMoTa { margin: 4px 0 0; font-size: 12.5px; color: var(--vt-phu); line-height: 1.5; }
.vmNhan { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--vt-ac); }
.vmForm .vhTruong { gap: 10px; }
.vmForm .vhTruong label { font-size: 12.5px; color: var(--vt-phu); font-weight: 500; }
.vmForm .vhTruong input[type=text], .vmForm .vhTruong input[type=number], .vmForm .vhTruong select { height: 36px !important; border: 1px solid var(--vt-vien); border-radius: 9px; padding: 0 10px !important; font: inherit; font-size: 13.5px; color: var(--vt-chu); background: var(--vt-mat); width: 100%; box-sizing: border-box; }
.vmForm .vhTruong textarea { border: 1px solid var(--vt-vien); border-radius: 9px; padding: 8px 10px; font: 12.5px/1.45 var(--f-code, monospace); background: var(--vt-nen2); width: 100%; box-sizing: border-box; }
.vmForm .vhTruong input:focus, .vmForm .vhTruong select:focus, .vmForm .vhTruong textarea:focus { outline: 0; border-color: var(--vt-ac); box-shadow: 0 0 0 3px var(--vt-acNhat); }
.vmForm .vhTruong label.bat { display: flex; align-items: center; gap: 8px; color: var(--vt-chu); }
.vmFormChan { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-top: 1px solid var(--vt-vien); padding-top: 12px; }
.vmFormChan .vt3Cong { margin-left: 0; }
.vmForm .ttSua { margin: 0; font-size: 12.5px; min-height: 1em; }
.vmXemDau { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vmCo { display: inline-flex; gap: 2px; } .vmCo[hidden] { display: none; } .vmCo .tuyIco { font-size: 12px; font-weight: 700; width: auto; padding: 0 8px; color: var(--vt-phu); }
.vmXem .vhAnh { min-height: 360px; border-radius: 12px; background: #fff; border: 1px solid var(--vt-vien); display: grid; place-items: center; padding: 16px; background-image: radial-gradient(circle, rgba(16,24,40,.07) 1px, transparent 1.2px); background-size: 16px 16px; }
.vmXem .vhAnh[hidden], .vmXem .vhMa[hidden] { display: none; }
.vmXem .vhAnh img { max-width: 100%; max-height: 560px; }
.vmXem .vhAnh .trong { color: var(--vt-phu); font-size: 13px; }
.vmXem .vhMa { min-height: 360px; border-radius: 12px; }
.vmXuat { display: flex; gap: 8px; flex-wrap: wrap; } .vmLuu { display: flex; gap: 8px; } .vmLuu input { flex: 1; min-width: 0; height: 38px !important; border: 1px solid var(--vt-vien); border-radius: 10px; padding: 0 10px !important; font: inherit; font-size: 13px; }
.tuyMenuCu button kbd { font: 600 10px var(--f-code, monospace); color: var(--vt-phu); border: 1px solid var(--vt-vien); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.tuyMenu h5 + .tuyMenuLuoi { margin-bottom: 10px; }
/* ===== v14.4: thanh tab chính có menu thả xuống, biểu tượng; HDSD bóng đèn; thông số gọn ===== */
.tabKhung { position: relative; }
.tabChinh { margin-top: 16px; }
.icoTab { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.tabChinh > button { gap: 9px !important; }
.tabChinh > button[aria-selected="true"] .icoTab { color: var(--vang); opacity: 1; }
.tabChinh .nutNhom em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--vang); padding: 2px 8px; border-radius: 999px; background: var(--vangnhat, rgba(201,162,74,.14)); }
.tabChinh .nutNhom em:empty { display: none; }
.tabChinh .nutNhom em::first-letter { text-transform: uppercase; }
.tabChinh .nutNhom[aria-expanded="true"] i { transform: rotate(225deg) translateY(-1px); }
.tabChinh .nutNhom[aria-expanded="false"] i { transform: rotate(45deg) translateY(-2px); }
.tabMenu { position: absolute; top: calc(100% + 6px); z-index: 60; min-width: 290px; padding: 8px; border-radius: 16px; background: #1b2433; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 48px -12px rgba(10,15,25,.45), 0 2px 6px rgba(10,15,25,.2); display: grid; gap: 2px; animation: hienMenu .16s ease-out; }
.tabMenu[hidden] { display: none; }
@keyframes hienMenu { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tabMenu button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; color: #dfe5ee; font: inherit; font-size: 14px; font-weight: 600; padding: 11px 14px; border-radius: 10px; cursor: pointer; letter-spacing: .01em; }
.tabMenu button .icoTab { width: 19px; height: 19px; color: #c9a24a; opacity: 1; }
.tabMenu button small { display: none; }
.tabMenu button:hover { background: rgba(255,255,255,.07); color: #fff; }
.tabMenu button[aria-selected="true"] { background: linear-gradient(90deg, rgba(201,162,74,.24), rgba(201,162,74,.08)); color: #fff; box-shadow: inset 3px 0 0 #c9a24a; }
.tabMenu button:focus-visible { outline: 2px solid #c9a24a; outline-offset: -2px; }
/* HDSD */
.nutHD { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px; border: 1px solid rgba(201,162,74,.45); background: linear-gradient(180deg, rgba(201,162,74,.18), rgba(201,162,74,.08)); color: #a67c1c; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em; cursor: pointer; flex: none; transition: box-shadow .15s; }
.nutHD svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nutHD:hover, .nutHD[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(201,162,74,.18); }
.vmForm, .tuy { position: relative; }
.hdsd { position: absolute; z-index: 40; right: 12px; top: 58px; width: min(420px, calc(100% - 24px)); max-height: 70vh; overflow: auto; background: var(--vt-mat, #fff); color: var(--vt-chu); border: 1px solid var(--vt-vien); border-radius: 16px; box-shadow: 0 24px 50px -16px rgba(16,24,40,.35); padding: 6px 4px 10px; animation: hienMenu .16s ease-out; }
.hdsd[hidden] { display: none; }
.hdsdDau { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 6px 16px; } .hdsdDau b { font-size: 14px; }
.hdsdDs { margin: 0; padding: 0 14px 0 34px; display: grid; gap: 10px; font-size: 13px; line-height: 1.5; }
.hdsdDs li::marker { color: var(--vt-ac); font-weight: 700; }
.hdsdDs p { margin: 0; } .hdsdDs b { color: var(--vt-chu); }
.hdsdDs code { display: block; margin-top: 4px; white-space: pre-wrap; word-break: break-word; font: 12px/1.45 var(--f-code, monospace); background: var(--vt-nen2); border: 1px solid var(--vt-vien); border-radius: 8px; padding: 5px 8px; color: var(--vt-chu); }
/* HDSD video: danh sách theo nhóm, bỏ đánh số, có tiêu đề nhóm */
.hdsdTim { padding: 8px 14px 4px; } .hdsdTim input { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 8px 11px; border: 1px solid var(--vt-vien); border-radius: 9px; background: var(--vt-nen2); color: var(--vt-chu); } .hdsdTim input:focus { outline: none; border-color: var(--vt-ac); }
.hdsdDs .hdsdTrong { color: var(--vt-phu); font-size: 13px; padding: 16px 2px; list-style: none; }
#vdHDDs { list-style: none; padding: 0 14px; }
/* 💡 Hướng dẫn kịch bản: thẻ nhóm thu gọn, không tràn ngang */
.hdsd { width: min(600px, calc(100% - 24px)) !important; overflow-x: hidden !important; overflow-y: auto !important; }
#vdHDDs { display: grid !important; gap: 8px; margin: 0 !important; padding: 4px 12px 14px !important; min-width: 0; }
#vdHDDs .hdNhom { list-style: none; min-width: 0; border: 1px solid var(--vt-vien); border-left: 3px solid var(--hd); border-radius: 12px; background: rgba(255,255,255,.025); overflow: hidden; }
#vdHDDs summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; list-style: none; font-size: 13.5px; user-select: none; }
#vdHDDs summary::-webkit-details-marker { display: none; }
#vdHDDs summary::after { content: "▸"; margin-left: auto; color: var(--hd); transition: transform .15s; }
#vdHDDs details[open] > summary::after { transform: rotate(90deg); }
#vdHDDs summary b { color: var(--hd); font-weight: 800; } #vdHDDs summary:hover { background: rgba(255,255,255,.04); }
#vdHDDs .hdDem { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--vt-phu); }
#vdHDDs .hdThan { display: grid; gap: 12px; padding: 4px 12px 12px; min-width: 0; }
#vdHDDs .hdMuc { min-width: 0; } #vdHDDs .hdMuc p { margin: 0 0 6px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; word-break: normal; }
#vdHDDs .hdMuc p code { white-space: normal !important; overflow-wrap: anywhere; }
#vdHDDs .hdVD { position: relative; min-width: 0; }
#vdHDDs .hdVD pre { margin: 0; padding: 8px 70px 8px 10px; max-width: 100%; box-sizing: border-box; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.5 var(--f-code, monospace); background: rgba(2,6,18,.6); border: 1px solid var(--vt-vien); border-radius: 8px; color: var(--vt-chu); }
#vdHDDs .hdChep { position: absolute; top: 5px; right: 5px; font: 600 11px/1 system-ui, sans-serif; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--vt-vien); background: rgba(94,235,255,.08); color: var(--vt-chu); cursor: pointer; }
#vdHDDs .hdChep:hover { border-color: var(--hd); } #vdHDDs .hdChep.da { color: #34d399; border-color: #34d399; }
#vdHDDs li.hdsdNhom { margin: 12px 0 2px; padding-top: 11px; border-top: 1px solid var(--vt-vien); font-weight: 800; font-size: 13px; color: var(--vt-ac); }
#vdHDDs li.hdsdNhom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
#vdHDDs p code { display: inline; margin: 0; padding: 1px 5px; background: var(--vt-nen2); border: 1px solid var(--vt-vien); border-radius: 5px; font: 12px var(--f-code, monospace); white-space: nowrap; }
.tuyThanh .hdsd { top: 54px; }
.tuyThanh { position: relative; }
.tuyThanh > .tuyGoiY:empty { display: none; }
.tuyThanh > .nutHD { margin-left: auto; }
/* theo mẫu: thông số gọn */
.vmFormDau { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.vmForm .vhTruong { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 10px !important; align-items: end; }
.vmForm .vhTruong > * { grid-column: span 3; min-width: 0; }
.vmForm .vhTruong > .o1 { grid-column: span 1; } .vmForm .vhTruong > .o6 { grid-column: 1 / -1; }
.vmForm .vhTruong > .dauHang { grid-column-start: 1; }
.vmForm .vhTruong > .o1.dauHang { grid-column: 1 / span 1; } .vmForm .vhTruong > .o3.dauHang { grid-column: 1 / span 3; }
.vmForm .vhTruong label { display: grid; gap: 4px; font-size: 12px; color: var(--vt-phu); font-weight: 600; }
.vmForm .vhTruong label > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vmForm .vhTruong label.he > span { text-align: center; font-style: italic; font-family: "Times New Roman", serif; font-size: 15px; color: var(--vt-chu); font-weight: 400; }
.vmForm .vhTruong label.he input { text-align: center; padding: 0 4px !important; }
.vmForm .vhTruong input[type=text], .vmForm .vhTruong input[type=number], .vmForm .vhTruong select { height: 34px !important; font-size: 13.5px; }
.vmForm .vhTruong label.bat { display: flex !important; align-items: center; gap: 8px; font-size: 12.5px; color: var(--vt-chu); font-weight: 500; align-self: center; }
.vmForm .vhTruong label.bat > span { white-space: normal; }
.vmForm .vhTruong label.bat input { width: 16px; height: 16px; accent-color: var(--vt-ac); flex: none; }
.vmIco { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vmNhom button .vmIco { margin-left: -2px; }
.vmDs .vhMuc { grid-template-columns: 30px 1fr; align-items: center; column-gap: 10px; }
.vmDs .vhMuc .vmIco { width: 30px; height: 30px; padding: 6px; box-sizing: border-box; border-radius: 9px; background: var(--vt-nen2); color: var(--vt-ac); grid-row: span 2; }
.vmDs .vhMuc.dangChon .vmIco { background: var(--vt-ac); color: #1b1408; }
.vmDs .vhMuc small { grid-column: 2; }
/* v14.5: phân số, công thức không gãy, kiểu nét */
.phanSo { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .82em; line-height: 1.12; margin: 0 2px; }
.phanSo > span:first-child { border-bottom: 1.2px solid currentColor; padding: 0 3px 1px; }
.phanSo > span:last-child { padding: 1px 3px 0; }
.ctNguyen { white-space: nowrap; display: inline-block; }
.vmTat { font-size: .78em; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; background: var(--vt-acNhat); color: var(--vt-ac); vertical-align: 1px; }
.vmFormDau h3 { line-height: 1.35; }
.vhDungKieu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.vhDungKieu select { height: 32px !important; width: auto !important; border: 1px solid var(--vt-vien); border-radius: 8px; padding: 0 8px !important; font: inherit; font-size: 12.5px; background: var(--vt-mat); color: var(--vt-chu); }
.vhDungKieu .vt3NutChinh { margin-left: auto; height: 32px; }
.vhNetChung { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 10px; border-top: 1px dashed var(--vt-vien); }
.vhNetChung > span { font-size: 12px; font-weight: 600; color: var(--vt-phu); }
.vmForm .tuyDoan button { color: var(--vt-phu); } .vmForm .tuyDoan button.dang { color: var(--vt-chu); }
.vmForm .tuyMau button, .vhDungKieu .tuyMau button { width: 20px; height: 20px; cursor: pointer; }
/* ===== v16: Tạo video — bố cục thẻ bước + xem trước dính ===== */
.vd { --vt-ac: var(--vang, #c9a24a); --vt-acNhat: var(--vangnhat, rgba(201,162,74,.14)); --vt-mat: var(--mat, #fff); --vt-vien: var(--vien, #d9dee7); --vt-chu: var(--chu, #16202e); --vt-phu: var(--phu, #667085); --vt-nen2: var(--code, #f6f7f9); display: grid; gap: 16px; margin-top: 8px; }
.vdDau { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.vdDauTen { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vdDauIco { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #f2d27a, #c9a24a 55%, #a7802f); box-shadow: 0 6px 16px -6px rgba(201,162,74,.7); }
.vdDauIco svg { width: 24px; height: 24px; fill: none; stroke: #1b1408; stroke-width: 2; stroke-linejoin: round; }
.vdDau h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--vt-chu); letter-spacing: -.01em; }
.vdDau p { margin: 2px 0 0; font-size: 13px; color: var(--vt-phu); }
.vdDau .hdsd { top: 54px; right: 0; width: min(560px, 100%); }
.vdThan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); gap: 18px; align-items: start; }
.vdThan:has(.vdManHinh.ngang) { grid-template-columns: minmax(0, 1fr) minmax(360px, 620px); }
@media (max-width: 1000px) { .vdThan, .vdThan:has(.vdManHinh.ngang) { grid-template-columns: 1fr; } }
.vdBen { min-width: 0; background: var(--vt-mat); border: 1px solid var(--vt-vien); border-radius: 20px; box-shadow: 0 1px 2px rgba(16,24,40,.04); overflow: visible; }
/* thẻ bước */
.vdThe4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px; margin: 10px 10px 0; background: var(--vt-nen2); border-radius: 14px; }
.vdThe4 button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--vt-phu); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; min-width: 0; position: relative; transition: background .15s, color .15s; }
.vdThe4 button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdThe4 svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vdThe4 button:hover { color: var(--vt-chu); }
.vdThe4 button[aria-selected="true"] { background: var(--vt-mat); color: var(--vt-chu); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.vdThe4 button[aria-selected="true"] svg { stroke: var(--vt-ac); }
.vdThe4 i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--vt-acNhat); color: var(--vt-ac); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vdThe4 i:empty { display: none; }
@media (max-width: 640px) { .vdThe4 button span { display: none; } }
.vdPanel { padding: 14px 16px 16px; display: grid; gap: 14px; position: relative; } .vdPanel[hidden] { display: none; }
/* Kịch bản: ô soạn lên trên, hộp dán đề/prompt AI xuống dưới */
.vdPanel[data-panel="kb"] > .vdCC { order: 1; }
.vdPanel[data-panel="kb"] > .vdChenMenu, .vdPanel[data-panel="kb"] > .vdStkMenu { order: 2; }
.vdPanel[data-panel="kb"] > .vdSoan { order: 3; }
.vdPanel[data-panel="kb"] > .vdSoanChan { order: 4; }
.vdPanel[data-panel="kb"] > .vdAIHop { order: 5; }
.vdMuc { display: grid; gap: 10px; } .vdMuc + .vdMuc { padding-top: 14px; border-top: 1px dashed var(--vt-vien); }
.vdMuc > b, .vdMucDau > b { font-size: 13.5px; color: var(--vt-chu); } .vdMuc > b small { font-weight: 500; color: var(--vt-phu); font-size: 12px; }
.vdMucDau { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vdGhi { margin: 0; font-size: 12.5px; color: var(--vt-phu); line-height: 1.55; }
.vd code { font-family: var(--f-code, monospace); font-size: .92em; background: var(--vt-nen2); padding: 1px 5px; border-radius: 5px; }
.vdO { height: 38px; border: 1px solid var(--vt-vien); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 13.5px; background: var(--vt-mat); color: var(--vt-chu); width: 100%; box-sizing: border-box; }
.vdO:focus { outline: 0; border-color: var(--vt-ac); box-shadow: 0 0 0 3px var(--vt-acNhat); }
/* nút nhỏ, nhóm chọn */
.vdNutNho { height: 34px; padding: 0 12px; border: 1px solid var(--vt-vien); border-radius: 9px; background: var(--vt-mat); color: var(--vt-chu); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; justify-self: start; }
.vdNutNho:hover, .vdNutNho[aria-expanded="true"] { border-color: var(--vt-ac); background: var(--vt-acNhat); }
.vdSeg { display: inline-flex; padding: 3px; gap: 2px; background: var(--vt-nen2); border-radius: 10px; flex-wrap: wrap; }
.vdSeg button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--vt-phu); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.vdSeg button[aria-pressed="true"] { background: var(--vt-mat); color: var(--vt-chu); box-shadow: 0 1px 3px rgba(16,24,40,.14); }
.vdChip { display: flex; flex-wrap: wrap; gap: 6px; }
.vdChip button { height: 30px; padding: 0 12px; border: 1px solid var(--vt-vien); border-radius: 99px; background: var(--vt-mat); color: var(--vt-chu); font: inherit; font-size: 12.5px; cursor: pointer; } .vdChip button:hover { border-color: var(--vt-ac); background: var(--vt-acNhat); }
.vdCong { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--vt-chu); cursor: pointer; user-select: none; position: relative; }
.vdCongGhi { font-weight: 400; font-size: 12px; color: var(--vt-phu); } .vdCongGhi code { font-size: 11px; padding: 0 4px; background: var(--vt-nen2); border: 1px solid var(--vt-vien); border-radius: 4px; font-family: var(--f-code, monospace); }
.vdCong input { position: absolute; opacity: 0; pointer-events: none; }
.vdCong i { width: 38px; height: 22px; border-radius: 999px; background: var(--vt-vien); position: relative; transition: background .15s; flex: none; }
.vdCong i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.vdCong input:checked + i { background: var(--vt-ac); } .vdCong input:checked + i::after { transform: translateX(16px); }
.vdCong input:focus-visible + i { outline: 2px solid var(--vt-ac); outline-offset: 2px; }
.vdBat { display: flex !important; flex-wrap: wrap; gap: 12px 24px; }
.vdLuoi2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
/* Phím Casio (KCasio) */
.kcPhim { display: inline-block; vertical-align: middle; line-height: 0; margin: 0 .06em; position: relative; top: -.06em; }
.kcPhim svg { display: block; }
.vdTo .t-ck { color: #ff7ab8 !important; font-weight: 700; }
.vdCK { margin-top: 8px; border: 1px dashed var(--vt-vien); border-radius: 12px; padding: 8px 12px; display: grid; gap: 8px; }
.vdCKDau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.vdCKBan { display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: linear-gradient(#1c2028, #121419); border: 1px solid #2b313b; overflow-x: auto; }
.vdCKHang { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vdCKHang.so { gap: 8px; } .vdCKNhom { font-size: 10.5px; color: #8a94a6; letter-spacing: .4px; text-transform: uppercase; margin-top: 2px; }
.vdCKPhim { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; border-radius: 10px; transition: transform .08s; }
.vdCKPhim:hover { transform: translateY(-1px); filter: brightness(1.12); } .vdCKPhim:active { transform: translateY(2px); }
.vdCH { margin-top: 10px; border: 1px dashed var(--vt-vien); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.vdCH.keo { border-color: var(--vt-ac); background: rgba(79,179,255,.06); }
.vdCHDau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; } .vdCHDau b { font-size: 13px; }
.vdCHGoi { flex: 1; min-width: 200px; font-size: 12px; color: var(--vt-phu); } .vdCHGoi code, .vdCHHD code { padding: 1px 5px; border-radius: 5px; background: var(--vt-nen2); border: 1px solid var(--vt-vien); font: 11.5px var(--f-code, monospace); }
.vdCHDs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.vdCHTrong { font-size: 12px; color: var(--vt-phu); padding: 6px 0; }
.vdCHMuc { flex: 0 0 auto; width: 132px; display: grid; gap: 5px; padding: 6px; border: 1px solid var(--vt-vien); border-radius: 10px; background: var(--vt-nen2); }
.vdCHMuc img { width: 100%; height: 74px; object-fit: contain; background: #fff; border-radius: 6px; }
.vdCHMuc b { font: 700 12px var(--f-code, monospace); color: var(--vt-ac); text-align: center; }
.vdCHMuc.thieu { border-color: #f59e0b; } .vdCHMuc .vdCHNut { display: flex; gap: 4px; } .vdCHMuc .vdCHNut button { flex: 1; padding: 3px 0; font-size: 11px; }
.vdCHHD summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--vt-ac); }
.vdCHHD .vdCHBang { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--vt-chu); } .vdCHHD ol { margin: 6px 0 0 18px; padding: 0; } .vdCHHD li { margin: 3px 0; }
.vdCHHD pre { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: var(--vt-nen2); border: 1px solid var(--vt-vien); font: 12px/1.5 var(--f-code, monospace); white-space: pre-wrap; }
.vdLuoi2 label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--vt-phu); min-width: 0; }
.vdLuoi2 label > span { display: flex; justify-content: space-between; } .vdLuoi2 output { color: var(--vt-chu); font-weight: 700; }
.vdLuoi2 input[type=range], .vdDieuKhien input[type=range] { accent-color: var(--vt-ac); width: 100%; }
.vdNhanO { display: block; font-size: 12.5px; font-weight: 600; color: var(--vt-phu); margin-bottom: 6px; }
@media (max-width: 560px) { .vdLuoi2 { grid-template-columns: 1fr; } }
/* kịch bản */
.vdCC { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.vdCCPhai { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vdVach { width: 1px; height: 22px; background: var(--vt-vien); margin: 0 2px; }
.vdNutAI { height: 36px; padding: 0 14px 0 12px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 700; color: #fff; cursor: pointer; background: linear-gradient(120deg, #6d5dfc, #b05cf6 55%, #f0679a); box-shadow: 0 6px 16px -8px rgba(124,92,250,.8); }
.vdNutAI svg { width: 17px; height: 17px; fill: #fff; } .vdNutAI:hover { filter: brightness(1.07); } .vdNutAI[aria-expanded="true"] { outline: 2px solid rgba(124,92,250,.35); outline-offset: 2px; }
.vdAIHop { display: grid; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid rgba(124,92,250,.35); background: linear-gradient(180deg, rgba(124,92,250,.07), transparent); } .vdAIHop[hidden] { display: none; }
.vdAIHop textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--vt-vien); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13px; background: var(--vt-mat); color: var(--vt-chu); resize: vertical; }
.vdAIChon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .vdAIChon label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--vt-phu); min-width: 0; }
.vdAIChon select { height: 34px; border: 1px solid var(--vt-vien); border-radius: 9px; padding: 0 8px; font: inherit; font-size: 13px; background: var(--vt-mat); color: var(--vt-chu); }
.vdAINut { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .vdAIChon { grid-template-columns: 1fr; } }
.vdChenMenu { position: absolute; z-index: 30; right: 16px; top: 58px; width: min(380px, calc(100% - 32px)); box-sizing: border-box; max-height: 460px; overflow: auto; background: var(--vt-mat); border: 1px solid var(--vt-vien); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(16,24,40,.3); padding: 8px; } .vdChenMenu[hidden] { display: none; }
.vdChenTim { position: sticky; top: -8px; z-index: 2; margin: -8px -8px 6px; padding: 8px; background: var(--vt-mat); border-bottom: 1px solid var(--vt-vien); }
.vdChenTim input { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 8px 11px; border: 1px solid var(--vt-vien); border-radius: 9px; background: var(--vt-nen2); color: var(--vt-chu); } .vdChenTim input:focus { outline: none; border-color: var(--vt-ac); }
.vdChenNhom { font-size: 11.5px; font-weight: 800; color: var(--vt-ac); letter-spacing: .02em; margin: 10px 4px 5px; } .vdChenNhom:first-of-type { margin-top: 2px; }
.vdChenLuoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; }
.vdChenLuoi button { text-align: left; border: 1px solid var(--vt-vien); background: var(--vt-nen2); font: inherit; font-size: 12.5px; color: var(--vt-chu); padding: 8px 10px; border-radius: 9px; cursor: pointer; line-height: 1.25; } .vdChenLuoi button:hover { background: var(--vt-acNhat); border-color: var(--vt-ac); }
.vdChenTrong { padding: 18px 10px; text-align: center; color: var(--vt-phu); font-size: 12.5px; }
@media (max-width: 420px) { .vdChenLuoi { grid-template-columns: 1fr; } }
.vdStkMenu { position: absolute; z-index: 30; right: 16px; top: 58px; width: min(420px, calc(100% - 32px)); box-sizing: border-box; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px; border: 1px solid var(--vt-vien); border-radius: 14px; background: var(--vt-mat); box-shadow: 0 18px 40px -12px rgba(16,24,40,.3); } .vdStkMenu[hidden] { display: none; }
.vdStkMenu button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 1px solid transparent; border-radius: 10px; background: #1d2433; color: #fff; cursor: pointer; font: inherit; }
.vdStkMenu button:hover, .vdStkMenu button:focus-visible { border-color: #f5b301; outline: none; }
.vdStkMenu canvas { width: 52px; height: 52px; } .vdStkMenu img { width: 52px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); } .vdStkMenu b { font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; } .vdStkMenu code { font-size: 10.5px; opacity: .7; background: none; color: inherit; }
.vdStkMenu { grid-template-columns: repeat(4, 1fr); max-height: 60vh; overflow: auto; }
@media (max-width: 560px) { .vdStkMenu { grid-template-columns: repeat(3, 1fr); } }
.vdSoan { position: relative; border: 1px solid var(--vt-vien); border-radius: 14px; background: var(--vt-nen2); height: 54vh; min-height: 420px; resize: vertical; overflow: hidden; }
.vdSoan:focus-within { border-color: var(--vt-ac); box-shadow: 0 0 0 3px var(--vt-acNhat); }
.vdSoan .vdTo, #vdKB { position: absolute; inset: 0; margin: 0; box-sizing: border-box; padding: 14px 16px; font: 13px/1.65 var(--f-code, "JetBrains Mono", Consolas, monospace); white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; tab-size: 2; letter-spacing: 0; overflow: auto; border: 0; }
.vdSoan .vdTo { color: var(--vt-chu); pointer-events: none; overflow: hidden; scrollbar-gutter: stable; }
#vdKB { width: 100%; height: 100%; min-height: 0 !important; resize: none; background: transparent; color: transparent; caret-color: var(--vt-chu); outline: 0; scrollbar-gutter: stable; }
#vdKB::placeholder { color: var(--vt-phu); opacity: .8; } #vdKB::selection { background: rgba(201,162,74,.35); color: transparent; }
.vdTo .t-k { color: #c47a00; font-weight: 700; } .vdTo .t-p { color: #8b5cf6; font-weight: 700; } .vdTo .t-loi { color: #15803d; } .vdTo .t-m { color: #1d6fd8; } .vdTo .t-c { color: #e0522d; } .vdTo .t-s { color: var(--vt-phu); font-weight: 700; } .vdTo .t-cm { color: var(--vt-phu); font-style: italic; }
.vdTo .t-ng { color: #b45309; font-weight: 700; background: rgba(201,162,74,.16); border-radius: 4px; box-shadow: 0 0 0 2px rgba(201,162,74,.16); }
:root[data-theme="dark"] .vdTo .t-k { color: #f5c046; } :root[data-theme="dark"] .vdTo .t-loi { color: #6fd39a; } :root[data-theme="dark"] .vdTo .t-m { color: #79b8ff; } :root[data-theme="dark"] .vdTo .t-p { color: #c4a7ff; } :root[data-theme="dark"] .vdTo .t-c { color: #ff8a65; } :root[data-theme="dark"] .vdTo .t-ng { color: #f5c046; }
.vdSoanChan { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--vt-phu); margin-top: -6px; } .vdSoanChan span:first-child { font-weight: 700; font-family: var(--f-code, monospace); }
@media (max-width: 640px) { .vdSoanChan span:last-child { display: none; } }
/* giọng đọc */
.vdGiongDs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.vdGiongThe { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--vt-vien); border-radius: 12px; cursor: pointer; background: var(--vt-mat); transition: border-color .15s, background .15s, box-shadow .15s; }
.vdGiongThe:hover { border-color: var(--vt-ac); } .vdGiongThe:focus-visible { outline: 2px solid var(--vt-ac); outline-offset: 2px; }
.vdGiongThe[aria-checked="true"] { border-color: var(--vt-ac); background: var(--vt-acNhat); box-shadow: inset 0 0 0 1px var(--vt-ac); }
.vdGiongThe b { font-size: 13.5px; color: var(--vt-chu); align-self: end; } .vdGiongThe span { font-size: 12px; color: var(--vt-phu); align-self: start; grid-column: 2; }
.vdNghe { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--vt-nen2); color: var(--vt-chu); display: grid; place-items: center; cursor: pointer; padding: 0; }
.vdNghe svg { width: 15px; height: 15px; fill: currentColor; } .vdNghe:hover, .vdNghe.dang { background: var(--vt-ac); color: #1b1408; }
.vdXoay { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: vdXoay .7s linear infinite; } @keyframes vdXoay { to { transform: rotate(360deg); } }
/* nhạc nền */
.vdTha { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed var(--vt-vien); border-radius: 16px; text-align: center; cursor: pointer; background: var(--vt-nen2); transition: border-color .15s, background .15s; position: relative; }
.vdTha:hover, .vdTha.keo { border-color: var(--vt-ac); background: var(--vt-acNhat); } .vdTha.co { padding: 12px 16px; }
.vdTha input { position: absolute; inset: 0; opacity: 0; cursor: pointer; } .vdTha svg { width: 28px; height: 28px; fill: none; stroke: var(--vt-ac); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vdTha b { font-size: 14px; color: var(--vt-chu); } .vdTha span { font-size: 12px; color: var(--vt-phu); } .vdTha.co svg, .vdTha.co span { display: none; }
.vdSong { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--vt-vien); border-radius: 14px; } .vdSong[hidden] { display: none; }
.vdSongDau { display: flex; align-items: center; gap: 10px; } .vdSongDau b { font-size: 13px; color: var(--vt-chu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .vdSongDau span { font-size: 12px; color: var(--vt-phu); white-space: nowrap; flex: 1; }
#vdSong { width: 100%; height: 60px; display: block; border-radius: 8px; background: var(--vt-nen2); --song: #c9a24a; }
/* hiệu ứng */
.vdKhoDs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vdKhoDs button, .vdChuyenDs button { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--vt-vien); border-radius: 14px; background: var(--vt-mat); color: var(--vt-chu); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.vdKhoDs button:hover, .vdChuyenDs button:hover { border-color: var(--vt-ac); }
.vdKhoDs button[aria-pressed="true"], .vdChuyenDs button[aria-pressed="true"] { border-color: var(--vt-ac); background: var(--vt-acNhat); box-shadow: inset 0 0 0 1px var(--vt-ac); }
.vdKhoDs b { font-size: 13.5px; } .vdKhoDs span { font-size: 12px; color: var(--vt-phu); }
.vdKhoDs i { display: block; border: 2px solid currentColor; border-radius: 6px; opacity: .75; margin-bottom: 2px; } .vdKhoDs .khoDoc { width: 22px; height: 38px; } .vdKhoDs .khoNgang { width: 52px; height: 30px; margin-top: 4px; margin-bottom: 6px; }
.vdChuyenDs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } @media (max-width: 560px) { .vdChuyenDs { grid-template-columns: repeat(2, 1fr); } }
.vdChuyenDs b { font-size: 12.5px; } .vdChuyenDs code { font-size: 11px; color: var(--vt-phu); }
.vdMini { width: 54px; height: 36px; border-radius: 6px; background: #121823; position: relative; overflow: hidden; perspective: 120px; }
.vdMini i { position: absolute; inset: 5px; border-radius: 3px; background: linear-gradient(135deg, #f2d27a, #c9a24a); }
.vdMini i + i { background: linear-gradient(135deg, #79b8ff, #4f7cff); }
.vdChuyenDs button:hover .vdMini i, .vdChuyenDs button[aria-pressed="true"] .vdMini i { animation-duration: 1.8s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.c-mo i:first-child { animation-name: mRa; } .c-mo i + i { animation-name: mVao; }
.c-truot i:first-child { animation-name: tRa; } .c-truot i + i { animation-name: tVao; }
.c-day i:first-child { animation-name: dRa; } .c-day i + i { animation-name: dVao; }
.c-phong i:first-child { animation-name: pRa; } .c-phong i + i { animation-name: pVao; }
.c-lat i:first-child { animation-name: lRa; } .c-lat i + i { animation-name: lVao; }
.c-quet i:first-child { animation-name: qRa; } .c-quet i + i { animation-name: qVao; }
.c-xoay i:first-child { animation-name: xRa; } .c-xoay i + i { animation-name: xVao; }
.c-ngaunhien i:first-child { animation-name: pRa; } .c-ngaunhien i + i { animation-name: xVao; }
.vdMini i + i { opacity: 0; }
@keyframes mRa { 0%,35% { opacity: 1 } 55%,100% { opacity: 0 } } @keyframes mVao { 0%,45% { opacity: 0 } 65%,100% { opacity: 1 } }
@keyframes tRa { 0%,35% { transform: none } 60%,100% { transform: translateX(-120%) } } @keyframes tVao { 0%,35% { opacity: 1; transform: translateX(120%) } 60%,100% { opacity: 1; transform: none } }
@keyframes dRa { 0%,35% { transform: none; opacity: 1 } 60%,100% { transform: translateY(-80%); opacity: 0 } } @keyframes dVao { 0%,40% { opacity: 0; transform: translateY(80%) } 65%,100% { opacity: 1; transform: none } }
@keyframes pRa { 0%,35% { transform: none; opacity: 1 } 60%,100% { transform: scale(1.4); opacity: 0 } } @keyframes pVao { 0%,40% { opacity: 0; transform: scale(.7) } 65%,100% { opacity: 1; transform: none } }
@keyframes lRa { 0%,30% { transform: rotateY(0) } 50%,100% { transform: rotateY(90deg) } } @keyframes lVao { 0%,50% { opacity: 1; transform: rotateY(-90deg) } 70%,100% { opacity: 1; transform: none } }
@keyframes qRa { 0%,35% { clip-path: inset(0 0 0 0) } 65%,100% { clip-path: inset(0 0 0 100%) } } @keyframes qVao { 0%,35% { opacity: 1; clip-path: inset(0 100% 0 0) } 65%,100% { opacity: 1; clip-path: inset(0 0 0 0) } }
@keyframes xRa { 0%,35% { transform: none; opacity: 1 } 60%,100% { transform: rotate(25deg) scale(.7); opacity: 0 } } @keyframes xVao { 0%,40% { opacity: 0; transform: rotate(-25deg) scale(.7) } 65%,100% { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .vdMini i { animation: none !important; } }
.vdMau { display: flex; gap: 10px; } .vdMau button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--vt-mat); background: var(--m); box-shadow: 0 0 0 1px var(--vt-vien); cursor: pointer; }
.vdMau button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--vt-ac); }
/* xem trước */
.vdXem { position: sticky; top: 12px; display: grid; gap: 10px; background: var(--vt-mat); border: 1px solid var(--vt-vien); border-radius: 20px; padding: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.vdManHinh { border-radius: 16px; overflow: hidden; background: #05070b; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 12px 30px -16px rgba(0,0,0,.6); }
.vdManHinh canvas { width: 100%; height: auto; max-height: 68vh; aspect-ratio: 9 / 16; object-fit: contain; display: block; cursor: pointer; } .vdManHinh.ngang canvas { aspect-ratio: 16 / 9; }
.vdDieuKhien { display: flex; align-items: center; gap: 10px; }
.vdPhat { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--vt-ac); color: #1b1408; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(201,162,74,.35); } .vdPhat svg { width: 18px; height: 18px; fill: currentColor; }
.vdDieuKhien input[type=range] { flex: 1; }
.vdGio { font: 600 12px var(--f-code, monospace); color: var(--vt-phu); white-space: nowrap; }
.vdCanhDs { display: flex; flex-wrap: wrap; gap: 5px; } .vdCanhDs:empty { display: none; }
.vdCanhDs button { min-width: 30px; height: 26px; border-radius: 7px; border: 1px solid var(--vt-vien); background: var(--vt-nen2); color: var(--vt-phu); font: 600 12px inherit; cursor: pointer; } .vdCanhDs button.dang { background: var(--vt-ac); border-color: var(--vt-ac); color: #1b1408; }
.vdTomTat { display: flex; flex-wrap: wrap; gap: 6px; } .vdTomTat:empty { display: none; }
.vdTomTat span { font-size: 12px; padding: 4px 9px; border-radius: 99px; background: var(--vt-nen2); color: var(--vt-chu); white-space: nowrap; }
.vdNut { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; } .vdNut button { height: 44px; justify-content: center; display: inline-flex; align-items: center; gap: 7px; }
.vdNut svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vdTien { height: 6px; border-radius: 99px; background: var(--vt-nen2); overflow: hidden; } .vdTien[hidden] { display: none; } .vdTien i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c9a24a, #f2d27a); transition: width .2s; }
.vdTT { margin: 0; font-size: 12.5px; color: var(--vt-phu); line-height: 1.5; } .vdTT.loi { color: #d92d20; }
.vdTai { justify-content: center; text-decoration: none; } .vdTai[hidden] { display: none; }
/* v16.1 — nguồn giọng từ file */
.vdNguonDau { padding: 10px 12px; border-radius: 14px; background: var(--vt-nen2); }
.vdNguonFile, .vdNguonAI { display: grid; gap: 14px; } .vdNguonFile[hidden], .vdNguonAI[hidden] { display: none; }
.vdBuocNho { margin: 0; padding: 0; list-style: none; counter-reset: b; display: grid; gap: 8px; }
.vdBuocNho li { counter-increment: b; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: baseline; font-size: 13px; color: var(--vt-phu); line-height: 1.6; }
.vdBuocNho li::before { content: counter(b); width: 22px; height: 22px; border-radius: 50%; background: var(--vt-acNhat); color: var(--vt-ac); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.vdBuocNho b { color: var(--vt-chu); } .vdBuocNho .vdNutNho { height: 28px; padding: 0 10px; font-size: 12.5px; vertical-align: middle; }
.vdSongDau .vdNutNho { height: 30px; font-size: 12px; padding: 0 10px; }
#vdLoiSong { width: 100%; height: 60px; display: block; border-radius: 8px; background: var(--vt-nen2); }
.vdLoiDs { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; max-height: 340px; overflow: auto; }
.vdLoiDs li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px 64px; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--vt-nen2); }
.vdLoiDs .vdNghe { grid-row: auto; width: 30px; height: 30px; }
.vdLoiChu { font-size: 12.5px; color: var(--vt-chu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vdLoiGio { font: 600 12px var(--f-code, monospace); color: var(--vt-phu); text-align: right; }
.vdLoiDoi { display: flex; gap: 4px; justify-content: flex-end; }
.vdLoiDoi button { width: 28px; height: 26px; border: 1px solid var(--vt-vien); border-radius: 7px; background: var(--vt-mat); color: var(--vt-chu); font-size: 11px; cursor: pointer; } .vdLoiDoi button:hover { border-color: var(--vt-ac); background: var(--vt-acNhat); }
.vdChiPhi { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--vt-acNhat); font-size: 12.5px; color: var(--vt-chu); } .vdChiPhi:empty { display: none; }
.vdManHinh.keo { outline: 3px dashed var(--vt-ac); outline-offset: -6px; }
#vdLoiBao.loi { color: #d97706; font-weight: 600; }
.vdNutLoi { border-color: var(--vt-ac); }
.vdLoiDs li.nghi { box-shadow: inset 3px 0 0 #d97706; } .vdLoiDs li.nghi .vdLoiChu::before { content: "⚠ "; color: #d97706; }
/* v16.4 — khoá riêng cho giọng đọc */
.vdKhoa { border: 1px solid var(--vt-vien); border-radius: 14px; padding: 10px 12px; display: grid; gap: 10px; background: var(--vt-mat); }
.vdKhoa.rieng { border-color: rgba(34,197,94,.55); background: linear-gradient(180deg, rgba(34,197,94,.07), transparent); }
.vdKhoa.loi { border-color: rgba(217,119,6,.6); }
.vdKhoaDau { display: flex; align-items: center; gap: 10px; }
.vdKhoaIco { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--vt-nen2); }
.vdKhoaIco svg { width: 18px; height: 18px; fill: none; stroke: var(--vt-phu); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vdKhoa.rieng .vdKhoaIco { background: rgba(34,197,94,.15); } .vdKhoa.rieng .vdKhoaIco svg { stroke: #16a34a; }
.vdKhoaTen { display: grid; gap: 1px; min-width: 0; flex: 1; } .vdKhoaTen b { font-size: 13.5px; color: var(--vt-chu); }
.vdKhoaTen span { font-size: 12px; color: var(--vt-phu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vdKhoa.rieng .vdKhoaTen span { color: #16a34a; font-weight: 600; } .vdKhoa.loi .vdKhoaTen span { color: #d97706; font-weight: 600; white-space: normal; }
.vdKhoaThan { display: grid; gap: 8px; } .vdKhoaThan[hidden] { display: none; }
.vdKhoaO { position: relative; } .vdKhoaO .vdO { padding-right: 44px; font-family: var(--f-code, monospace); font-size: 12.5px; }
.vdNutIco { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--vt-phu); cursor: pointer; display: grid; place-items: center; }
.vdNutIco svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; } .vdNutIco:hover, .vdNutIco.bat { color: var(--vt-ac); background: var(--vt-acNhat); }
.vdKhoaNut { display: flex; gap: 8px; flex-wrap: wrap; }
/* v16.6 — giọng trên máy (TDK Giọng) */
.vdNguonMay { display: grid; gap: 14px; } .vdNguonMay[hidden] { display: none; }
.vdMayCai { border: 1px dashed var(--vt-vien); border-radius: 14px; padding: 10px 14px; }
.vdMayCai summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--vt-chu); }
.vdMayCai[open] summary { margin-bottom: 10px; }
.vdGiongThe.toi { border-style: solid; background: linear-gradient(135deg, rgba(124,92,250,.10), transparent 70%); }
.vdGiongThe.toi span { color: #7c5cfa; font-weight: 600; } .vdGiongThe span a { color: var(--vt-phu); font-weight: 500; }
.vdTaoGiong { border: 1px solid rgba(124,92,250,.45); border-radius: 16px; padding: 14px; display: grid; gap: 12px; background: linear-gradient(180deg, rgba(124,92,250,.07), transparent); } .vdTaoGiong[hidden] { display: none; }
.vdTaoDau { display: flex; align-items: center; justify-content: space-between; } .vdTaoDau b { font-size: 15px; color: var(--vt-chu); }
.vdCauThu { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.vdCauThu li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 54px 34px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--vt-mat); border: 1px solid var(--vt-vien); }
.vdCauThu li.co { border-color: rgba(34,197,94,.5); }
.vdCauChu { font-size: 13px; color: var(--vt-chu); line-height: 1.45; } .vdCauGio { font: 600 12px var(--f-code, monospace); color: var(--vt-phu); text-align: right; }
.vdGhiAm { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #e5484d; background: var(--vt-mat); cursor: pointer; display: grid; place-items: center; padding: 0; }
.vdGhiAm i { width: 16px; height: 16px; border-radius: 50%; background: #e5484d; transition: border-radius .15s, width .15s, height .15s; }
.vdGhiAm.dang { background: rgba(229,72,77,.12); animation: vdNhip 1s ease-in-out infinite; } .vdGhiAm.dang i { border-radius: 3px; width: 14px; height: 14px; }
@keyframes vdNhip { 50% { box-shadow: 0 0 0 6px rgba(229,72,77,.18); } }
.vdCauThu .vdNghe:disabled { opacity: .35; cursor: default; }
.vdTaoChan { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; } .vdTenGiong { display: grid; gap: 4px; flex: 1; min-width: 160px; font-size: 12px; font-weight: 600; color: var(--vt-phu); }
.vdCauThu .vdNghe { grid-row: auto; width: 32px; height: 32px; }

.vdAIBuoc { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: b; }
.vdAIBuoc li { counter-increment: b; font-size: 12px; line-height: 1.35; padding: 8px 10px 8px 34px; border-radius: 10px; background: var(--vt-mat); border: 1px solid var(--vt-vien); position: relative; color: var(--vt-phu, inherit); }
.vdAIBuoc li::before { content: counter(b); position: absolute; left: 9px; top: 8px; width: 18px; height: 18px; border-radius: 50%; background: #7c5cfa; color: #fff; font-weight: 800; font-size: 11px; display: grid; place-items: center; }
.vdDeHop { position: relative; display: grid; gap: 8px; } .vdDeHop.keo textarea { outline: 2px dashed #7c5cfa; }
.vdAnhDe { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 1px solid var(--vt-vien); background: var(--vt-mat); } .vdAnhDe[hidden] { display: none; }
.vdAnhDe img { max-height: 90px; max-width: 60%; border-radius: 6px; object-fit: contain; background: #fff; } .vdAnhDe .gtXoa { margin-left: auto; }
.vdAINut { display: flex; flex-wrap: wrap; gap: 8px; } .vdAINut a.vt3Nut { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 720px) { .vdAIBuoc { grid-template-columns: 1fr; } }
.vdAnhDe .gtXoa { opacity: 1; font-size: 18px; }

/* ===== Chung cho các tab mới (mô-đun) ===== */
.manTab { --vt-ac: var(--vang, #c9a24a); --vt-acNhat: var(--vangnhat, rgba(201,162,74,.14)); --vt-mat: var(--mat, #fff); --vt-vien: var(--vien, #d9dee7); --vt-chu: var(--chu, #16202e); --vt-phu: var(--phu, #667085); --vt-nen2: var(--code, #f6f7f9); }
.manTab .mdDau { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; flex-wrap: wrap; position: relative; }
.mdDauTen { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mdDauIco { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #f2d27a, #c9a24a 55%, #a7802f); box-shadow: 0 6px 16px -6px rgba(201,162,74,.7); }
.mdDauIco svg { width: 24px; height: 24px; fill: none; stroke: #1b1408; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mdDau h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--chu, #16202e); letter-spacing: -.01em; }
.mdDau p { margin: 2px 0 0; font-size: 13px; color: var(--phu, #667085); }
.mdDauNut { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mdThe { background: var(--mat, #fff); border: 1px solid var(--vien, #d9dee7); border-radius: 18px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); min-width: 0; }
.mdNhan { font-size: 12px; font-weight: 700; color: var(--phu, #667085); text-transform: uppercase; letter-spacing: .04em; }
.mdO { height: 36px; border: 1px solid var(--vien, #d9dee7); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 13.5px; background: var(--mat, #fff); color: var(--chu, #16202e); box-sizing: border-box; min-width: 0; }
.mdO:focus { outline: 0; border-color: var(--vang, #c9a24a); box-shadow: 0 0 0 3px rgba(201,162,74,.18); }
textarea.mdO { height: auto; padding: 10px 12px; resize: vertical; font-family: var(--f-code, monospace); font-size: 12.5px; line-height: 1.55; }
.mdTrong { padding: 28px 12px; text-align: center; color: var(--phu, #667085); font-size: 13px; }
.mdChip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--code, #f6f7f9); color: var(--chu, #16202e); white-space: nowrap; }
/* cổng kiểm render tab Chuẩn hoá */
.kiemRa{margin-top:10px;font-size:13px;line-height:1.5}
.kiemRa .ds.kiemDs{margin-top:8px}
.kiemRa .ds.kiemDs li{display:flex;gap:10px;align-items:baseline}
.kiemRa .ds.kiemDs .ma{color:var(--do,#ff6b6b);font-weight:700;flex:none}

/* ===== Gọi tên học sinh ===== */
.gt { --gt-ac: #f5b301; }
.gtIco { background: linear-gradient(135deg, #ffd166, #ff8a5b); }
.gtThan { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .gtThan { grid-template-columns: 1fr; } }
.gtBen { background: var(--mat, #fff); border: 1px solid var(--vien, #d9dee7); border-radius: 18px; padding: 14px; display: grid; gap: 10px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.gtLop { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; position: relative; }
.gtLop select { height: 36px; border: 1px solid var(--vien, #d9dee7); border-radius: 10px; padding: 0 8px; font: inherit; font-weight: 700; background: var(--mat, #fff); color: var(--chu, #16202e); min-width: 0; }
.gtIcoNut { width: 36px; height: 36px; border: 1px solid var(--vien, #d9dee7); border-radius: 10px; background: var(--mat, #fff); color: var(--chu, #16202e); cursor: pointer; font-size: 18px; line-height: 1; }
.gtMenu { position: absolute; right: 0; top: 42px; z-index: 20; width: 270px; background: var(--mat, #fff); border: 1px solid var(--vien, #d9dee7); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px -12px rgba(16,24,40,.3); display: grid; gap: 2px; } .gtMenu[hidden] { display: none; }
.gtMenu button { text-align: left; border: 0; background: none; font: inherit; font-size: 13px; color: var(--chu, #16202e); padding: 8px 10px; border-radius: 8px; cursor: pointer; } .gtMenu button:hover { background: rgba(201,162,74,.14); } .gtMenu .nguyHiem { color: #d92d20; }
.gtNap { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gtNutTep { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 34px; border: 1px solid var(--vien, #d9dee7); border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--chu, #16202e); background: var(--mat, #fff); }
.gtNutTep input { position: absolute; inset: 0; opacity: 0; cursor: pointer; } .gtNutTep:hover { border-color: #c9a24a; background: rgba(201,162,74,.12); }
.gtNap .vdNutNho { justify-self: stretch; }
.gtDan { display: grid; gap: 6px; } .gtDan[hidden] { display: none; }
.gtDan textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--vien, #d9dee7); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; background: var(--mat, #fff); color: var(--chu, #16202e); resize: vertical; }
.gtDanNut { display: flex; gap: 6px; }
.gtDsDau { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--chu, #16202e); } .gtDsDau span { font-size: 12px; color: var(--phu, #667085); }
.gtTim input { width: 100%; box-sizing: border-box; height: 34px; border: 1px solid var(--vien, #d9dee7); border-radius: 9px; padding: 0 10px; font: inherit; font-size: 13px; background: var(--mat, #fff); color: var(--chu, #16202e); }
.gtDs { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; max-height: 52vh; overflow: auto; }
.gtDs li { display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; align-items: center; gap: 6px; padding: 3px 4px 3px 0; border-radius: 9px; counter-increment: gt; }
.gtDs li:hover { background: var(--code, #f6f7f9); } .gtDs li.trong { display: block; padding: 16px; text-align: center; color: var(--phu, #667085); font-size: 13px; }
.gtTen { text-align: left; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--chu, #16202e); padding: 5px 8px; border-radius: 8px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gtTen::before { content: counter(gt) ". "; color: var(--phu, #667085); font-size: 11.5px; }
.gtDs li.goi .gtTen { color: var(--phu, #667085); } .gtDs li.goi .gtTen::after { content: " ✓"; color: #16a34a; }
.gtDs li.vang .gtTen { text-decoration: line-through; opacity: .5; } .gtDs li.vang .gtTen::after { content: " · vắng"; text-decoration: none; color: #d92d20; font-size: 11px; }
.gtDiem { display: inline-flex; align-items: center; gap: 2px; } .gtDiem b { min-width: 22px; text-align: center; font-size: 13px; color: #c47a00; }
.gtDiem button { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--vien, #d9dee7); background: var(--mat, #fff); color: var(--chu, #16202e); cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.gtXoa { width: 22px; height: 22px; border: 0; background: none; color: var(--phu, #667085); cursor: pointer; opacity: 0; border-radius: 6px; } .gtDs li:hover .gtXoa { opacity: 1; } .gtXoa:hover { color: #d92d20; background: rgba(217,45,32,.08); }
.gtSan { display: grid; gap: 12px; min-width: 0; }
.gtTroChoi { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; } @media (max-width: 1200px) { .gtTroChoi { grid-template-columns: repeat(4, 1fr); } }
.gtTroChoi button { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--vien, #d9dee7); border-radius: 14px; background: var(--mat, #fff); color: var(--chu, #16202e); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform .12s, border-color .12s; }
.gtTroChoi button span { font-size: 26px; line-height: 1.2; } .gtTroChoi button:hover { transform: translateY(-2px); border-color: #c9a24a; }
.gtTroChoi button[aria-checked="true"] { border-color: #c9a24a; background: linear-gradient(180deg, rgba(245,179,1,.18), rgba(245,179,1,.05)); box-shadow: inset 0 0 0 1px #c9a24a; }
.gtSanKhau { position: relative; border-radius: 20px; overflow: hidden; background: #070912; box-shadow: 0 20px 50px -24px rgba(0,0,0,.7); aspect-ratio: 16 / 9; }
.gtSanKhau canvas { width: 100%; height: 100%; display: block; }
.gtSanKhau:fullscreen { border-radius: 0; display: grid; place-items: center; background: #070912; } .gtSanKhau:fullscreen canvas { width: 100vw; height: 100vh; object-fit: contain; }
.gtChieuChan { display: none; } .gtSanKhau:fullscreen .gtChieuChan { display: block; position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); } .gtSanKhau.dangChay .gtChieuChan { opacity: 0; pointer-events: none; }
.gtKetQua { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(7,9,18,.25), rgba(7,9,18,.75)); animation: gtHien .35s ease-out; } .gtKetQua[hidden] { display: none; }
@keyframes gtHien { from { opacity: 0; transform: scale(.96); } }
.gtKQThe { text-align: center; padding: 3% 5%; border-radius: 28px; background: rgba(12,15,30,.94); backdrop-filter: blur(6px); border: 2px solid rgba(245,179,1,.6); box-shadow: 0 0 80px rgba(245,179,1,.25); max-width: 88%; }
.gtKQNhan { display: block; font-size: clamp(14px, 2vw, 26px); color: #ffe08a; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gtKQTen { font-size: clamp(30px, 6.2vw, 96px); font-weight: 900; color: #fff; line-height: 1.15; margin: 6px 0 14px; text-shadow: 0 4px 30px rgba(245,179,1,.45); display: grid; gap: 4px; }
.gtKQTen.nhieu { font-size: clamp(22px, 3.6vw, 56px); }
.gtKQNut { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gtKQB { height: clamp(34px, 3.6vw, 48px); padding: 0 clamp(10px, 1.4vw, 20px); border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 700; font-size: clamp(12px, 1.2vw, 16px); cursor: pointer; } .gtKQB:hover { background: rgba(255,255,255,.16); }
.gtKQB.chinh { background: #f5b301; color: #1b1408; border-color: #f5b301; }
.gtDongHo { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; } .gtDongHo[hidden] { display: none; }
.gtDongHo b { font: 900 clamp(36px, 5vw, 72px) var(--f-code, monospace); color: #7ee0ff; } .gtDongHo.gap b { color: #ff6b6b; animation: gtNhay .5s infinite alternate; } .gtDongHo span { font-size: 14px; opacity: .7; }
.gtDongHo button { height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; cursor: pointer; } @keyframes gtNhay { to { opacity: .45; } }
.gtDieuKhien { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gtBatDau { height: 50px; padding: 0 30px; border: 0; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 800; color: #1b1408; cursor: pointer; background: linear-gradient(135deg, #ffe08a, #f5b301 60%, #e09b00); box-shadow: 0 10px 24px -10px rgba(245,179,1,.9); transition: transform .12s; }
.gtBatDau:hover { transform: translateY(-1px); } .gtBatDau:disabled { opacity: .5; cursor: default; transform: none; }
.gtTuyChon { display: grid; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--phu, #667085); } .gtTuyChon select { height: 34px; border: 1px solid var(--vien, #d9dee7); border-radius: 9px; padding: 0 8px; font: inherit; font-size: 13px; background: var(--mat, #fff); color: var(--chu, #16202e); }
.gtLichSu { background: var(--mat, #fff); border: 1px solid var(--vien, #d9dee7); border-radius: 16px; padding: 10px 14px; } .gtLichSu b { font-size: 13px; color: var(--chu, #16202e); }
.gtLichSu ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-height: 90px; overflow: auto; }
.gtLichSu li { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: var(--code, #f6f7f9); color: var(--chu, #16202e); } .gtLichSu li span { color: var(--phu, #667085); margin-right: 6px; font-size: 11.5px; } .gtLichSu li.trong { background: none; color: var(--phu, #667085); }

.gtNhac { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 99px; border: 1px solid var(--vien, #d9dee7); background: var(--mat, #fff); font-size: 13px; } .gtNhac[hidden] { display: none; }
.gtNhacTen { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .gtNhacChon { cursor: pointer; } .gtNhacTuO { display: inline-flex; align-items: center; gap: 4px; color: var(--phu, #667085); } .gtNhacTuO[hidden], .gtNhac .gtXoa[hidden] { display: none; } .gtNhacTuO input { width: 64px; height: 30px; border-radius: 8px; border: 1px solid var(--vien, #d9dee7); padding: 0 6px; background: transparent; color: inherit; } .gtNhac .gtXoa { opacity: 1; }

#gtThoiLuongTu { width: 64px; height: 32px; margin-left: 4px; border-radius: 8px; border: 1px solid var(--vien, #d9dee7); padding: 0 6px; background: transparent; color: inherit; } #gtThoiLuongTu[hidden] { display: none; }
.gtTLHop { display: flex; align-items: center; }

.gtHopLop { position: absolute; z-index: 50; pointer-events: none; }
.gtHopNut { position: absolute; pointer-events: auto; background: transparent; border: 0; border-radius: 18px; cursor: pointer; padding: 0; margin: 0; -webkit-tap-highlight-color: transparent; }
.gtHopNut:focus-visible { outline: 3px solid rgba(255,224,138,.8); outline-offset: 2px; }

/* ===== Tab Game Chinh phục ===== */
.cpIco svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* 3 chế độ */
.cpCheDo{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0 4px}
@media(max-width:620px){.cpCheDo{grid-template-columns:1fr}}
.cpCheNut{display:flex;flex-direction:column;gap:3px;text-align:left;padding:12px 14px;border:1.5px solid var(--vien);border-radius:13px;background:var(--mat,#fff);color:var(--chu);cursor:pointer;font:inherit;transition:border-color .15s,background .15s}
.cpCheNut:hover{border-color:var(--vang)}
.cpCheNut.on{border-color:var(--vang);background:rgba(245,166,35,.1)}
.cpCheNut b{font-size:14.5px}.cpCheNut small{font-size:11.5px;color:var(--phu);line-height:1.3}
.cpMode{margin-top:14px}
.cpMDHop{max-width:560px;border:1px solid var(--vien);border-radius:14px;background:var(--mat,#fff);padding:16px 18px}
.cpMDHop>b{display:block;font-size:15px;margin-bottom:6px}
.cpMDHop .cpO{margin:12px 0 8px}
.cpMDAdmin{margin-top:12px;padding:10px 12px;border-radius:10px;background:rgba(245,166,35,.1);border:1px solid rgba(245,166,35,.3);color:var(--chu)}
.cpMDAdmin code{background:rgba(0,0,0,.18);padding:1px 5px;border-radius:5px;font-size:12px}
/* Luyện tập: ẩn xây nhanh */
#cpModeEdit.luyen .cpChiXay{display:none}
.cpThan{display:grid;grid-template-columns:1fr 300px;gap:18px;align-items:start;margin-top:14px}
@media(max-width:820px){.cpThan{grid-template-columns:1fr}}
.cpO{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.cpO>span{font-size:12.5px;font-weight:600;color:var(--phu)}
.cpHang2{display:flex;gap:12px}.cpHang2 .cpO{flex:1}@media(max-width:560px){.cpHang2{flex-direction:column;gap:0}}
.cpO input,.cpO textarea,.cpAi select,.cpNHLoc input,.cpNHLoc select{font:inherit;font-size:14px;border:1px solid var(--vien);border-radius:8px;background:var(--mat,#fff);color:var(--chu);padding:9px 11px;width:100%}
.cpO textarea{resize:vertical;font-family:var(--f-code,monospace);font-size:12.5px;line-height:1.5;white-space:pre;tab-size:4}
.cpO input:focus,.cpO textarea:focus{outline:none;border-color:var(--vang)}
/* nạp file .tex */
.cpNapDe{border:1.5px solid var(--vang);border-radius:12px;background:rgba(245,166,35,.06);padding:12px 13px;margin:4px 0 14px}
.cpNapDau{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;margin-bottom:9px}
.cpNapDau b{font-size:14px}.cpNapDau code{background:rgba(0,0,0,.18);padding:1px 5px;border-radius:5px;font-family:var(--f-code,monospace);font-size:12px}
.cpNapHang{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:8px}
.cpTep{flex:1;min-width:180px;display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:600;color:var(--phu)}
.cpTep i{font-weight:400;font-style:italic}
.cpTep input[type=file]{font:inherit;font-size:12px;border:1px dashed var(--vien);border-radius:8px;background:var(--mat,#fff);padding:7px;width:100%;cursor:pointer}
.cpTep em{font-style:normal;font-size:11.5px;color:var(--phu)}
.cpAiDau{display:flex;align-items:center;justify-content:space-between;margin:6px 0 8px}
.cpGhi{font-size:12px;color:var(--phu)}
/* thẻ ải */
.cpAi{border:1px solid var(--vien);border-radius:12px;background:var(--mat,#fff);padding:12px 13px;margin-bottom:12px}
.cpAiTop{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:9px}
.cpAiSo{width:26px;height:26px;flex:none;border-radius:8px;background:var(--vang);color:#1b1408;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:13px}
.cpAiTen{flex:1;min-width:120px}
.cpAiTop select{width:auto;min-width:92px}
.cpAiGio{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--chu);white-space:nowrap}
.cpAiGio input{width:56px;text-align:right;font:inherit;font-size:13px;border:1px solid var(--vien);border-radius:7px;background:var(--mat,#fff);color:var(--chu);padding:5px 6px}
.cpAiGio small{color:var(--phu);font-size:11.5px}
.cpAiBoss{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--chu);white-space:nowrap}
.cpAiBoss select{min-width:64px}
.cpXoaAi{margin-left:auto;border:0;background:none;color:var(--do,#e03131);font-size:20px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:6px}
.cpXoaAi:hover{background:rgba(224,49,49,.12)}
.cpAiNap{display:flex;gap:8px;align-items:center;margin:8px 0 6px;flex-wrap:wrap}
.cpAiNap .vdNutNho{flex:none}
.cpAiTrangThai{font-size:12px;font-weight:600}
.cpAiTrangThai.ok{color:var(--luc,#2f9e44)}
.cpAiTrangThai.loi{color:var(--do,#e03131)}
.cpThemAi{width:100%;border:1.5px dashed var(--vien);background:none;color:var(--phu);border-radius:12px;padding:12px;font:inherit;font-weight:700;cursor:pointer}
.cpThemAi:hover{border-color:var(--vang);color:var(--chu)}
/* panel phải */
.cpHop{border:1px solid var(--vien);border-radius:14px;background:var(--mat,#fff);padding:14px;position:sticky;top:12px}
.cpHop b{display:block;margin-bottom:4px}
.cpHop .vt3NutChinh{width:100%;margin-top:8px}
.cpKetQua{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.cpKqNut{display:flex;gap:8px}
.cpKqNut .vdNutNho{flex:1}
.cpQR{display:flex;justify-content:center;padding:6px 0 2px}
.cpQR img{width:180px;height:180px;border-radius:10px;border:1px solid var(--vien);background:#fff}
.cpMaTo{font:800 30px/1.1 ui-monospace,Consolas,monospace;letter-spacing:5px;text-align:center;color:var(--vang)}
/* phòng của tôi & kết quả */
.cpKQ{margin-top:22px;padding-top:16px;border-top:1px solid var(--vien)}
.cpKQDau{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-bottom:10px}
.cpPhong{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;border:1px solid var(--vien);border-radius:12px;background:var(--mat,#fff);padding:11px 13px;margin-bottom:8px}
.cpPhongTen{min-width:0;flex:1 1 220px}.cpPhongTen b{display:block;overflow-wrap:anywhere}
.cpPhongTen code{font-family:ui-monospace,Consolas,monospace;font-weight:800;color:var(--vang)}
.cpPhongTen i{font-style:normal;font-weight:700}.cpPhongTen i.mo{color:var(--luc,#2f9e44)}.cpPhongTen i.dong{color:var(--do,#e03131)}
.cpPhongNut{display:flex;flex-wrap:wrap;gap:6px}
.cpKQHop{border:1.5px solid var(--vang);border-radius:14px;padding:13px;margin-top:12px}
.cpKQLoc{padding:0 0 10px}.cpKQLoc select{width:auto;max-width:100%}.cpKQLoc select[hidden]{display:none}
.cpKQBang{overflow-x:auto;-webkit-overflow-scrolling:touch}
.cpKQBang table{width:100%;border-collapse:collapse;font-size:13px}
.cpKQBang th,.cpKQBang td{padding:8px 10px;border-bottom:1px solid var(--vien);text-align:center;white-space:nowrap}
.cpKQBang th{color:var(--phu);font-weight:700}.cpKQBang .t{text-align:left;font-weight:600}
/* modal ngân hàng */
.cpModal{position:fixed;inset:0;z-index:200;background:rgba(10,15,25,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.cpModal[hidden]{display:none}
.cpModalHop{width:100%;max-width:640px;max-height:86vh;display:flex;flex-direction:column;background:var(--nen2,#161d2e);border:1px solid var(--vien);border-radius:16px;overflow:hidden}
.cpModalDau,.cpModalChan{display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--the,#1b2436)}
.cpModalDau{justify-content:space-between;border-bottom:1px solid var(--vien)}
.cpModalChan{justify-content:space-between;border-top:1px solid var(--vien)}
.cpNHLoc{display:flex;gap:8px;align-items:center;padding:10px 16px;flex-wrap:wrap}
.cpNHLoc input[type=search]{flex:1;min-width:120px}
.cpNHDs{flex:1;overflow:auto;padding:4px 16px 8px}
.cpNHCau{display:flex;gap:10px;align-items:flex-start;padding:9px 4px;border-bottom:1px solid var(--vien);cursor:pointer}
.cpNHCau:hover{background:rgba(255,255,255,.03)}
.cpNHCau input{margin-top:3px;flex:none}
.cpNHCau .tt{font-size:13px;color:var(--chu);line-height:1.45}
.cpNHCau .nh{font-size:11px;color:var(--phu);margin-top:2px}
.cpNHCau .nh b{color:var(--vang)}
.cpNHTrong{padding:24px;text-align:center;color:var(--phu)}
.gtXoa{border:0;background:none;color:var(--phu);font-size:22px;line-height:1;cursor:pointer}
.gtXoa:hover{color:var(--do,#e03131)}

/* ===== Tab Thi Online ===== */
.toIco{background:linear-gradient(135deg,#8affc9,#2fcf8f)!important}
.toIco svg{stroke:#063!important}
#tabThiOnline .to2{display:flex;flex-direction:column;gap:16px}
#tabThiOnline .toLuoi{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px 14px;margin:6px 0 10px}
#tabThiOnline .toF{display:flex;flex-direction:column;gap:5px;min-width:0}
#tabThiOnline .toF.toFull{grid-column:1/-1}
#tabThiOnline .toThang{display:flex;flex-direction:column;gap:8px;padding:14px 0;border-top:1px solid var(--vien,#2c3850);margin-top:8px}
#tabThiOnline .toThangLuoi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media(max-width:720px){#tabThiOnline .toThangLuoi{grid-template-columns:1fr 1fr}}
#toTKLop .bocBang{overflow-x:auto}
#tabThiOnline .toNhom2{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:14px 0;border-top:1px solid var(--vien,#2c3850);margin-top:8px}
#tabThiOnline .toNhom2 .vdCong{display:flex;margin:7px 0}
@media(max-width:720px){#tabThiOnline .toNhom2{grid-template-columns:1fr}}
#tabThiOnline .toFormDay{display:flex;align-items:center;gap:14px;justify-content:flex-end;margin-top:14px}
#tabThiOnline .toFormDay .vdGhi{margin-right:auto}
#tabThiOnline .toForm[hidden]{display:none}
#tabThiOnline .toTim{width:220px;max-width:40vw}
/* danh sách phòng */
#tabThiOnline .toDs{display:flex;flex-direction:column;gap:10px;margin-top:12px}
#tabThiOnline .toPhong{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:14px 16px;border:1px solid var(--vien,#2c3850);border-radius:14px;background:var(--mat2,#0e1626)}
#tabThiOnline .toPhong .tt{width:46px;height:46px;flex:none;border-radius:12px;display:grid;place-items:center;font:800 11px "Be Vietnam Pro";background:rgba(47,207,143,.14);color:var(--luc,#2fcf8f);text-align:center;line-height:1.1}
#tabThiOnline .toPhong .ten{font-size:15px;font-weight:700}
#tabThiOnline .toPhong .meta{font-size:12px;color:var(--phu,#9aa7c2);margin-top:3px;display:flex;gap:10px;flex-wrap:wrap}
#tabThiOnline .toPhong .meta b{color:var(--vang,#f5b301);font-family:ui-monospace,monospace}
#tabThiOnline .toTT{font-size:11px;font-weight:800;padding:3px 10px;border-radius:99px}
#tabThiOnline .toTT.mo{background:rgba(47,207,143,.16);color:var(--luc,#2fcf8f)}
#tabThiOnline .toTT.dong{background:rgba(255,107,107,.14);color:var(--do,#ff6b6b)}
#tabThiOnline .toTT.cho{background:rgba(245,179,1,.14);color:var(--vang,#f5b301)}
#tabThiOnline .toPhongNut{display:flex;gap:7px}
#tabThiOnline .toXoa{color:var(--do,#ff6b6b)!important}
#tabThiOnline .toKQ{margin-top:12px;padding:12px 15px;border-radius:12px;font-size:13.5px;font-weight:600;line-height:1.5;word-break:break-all}
#tabThiOnline .toKQ[hidden]{display:none}
#tabThiOnline .toKQ.ok{background:rgba(47,207,143,.14);border:1px solid rgba(47,207,143,.4);color:var(--luc,#2fcf8f)}
#tabThiOnline .toKQ.loi{background:rgba(255,107,107,.12);border:1px solid rgba(255,107,107,.4);color:var(--do,#ff6b6b)}

/* ===== Màn làm bài học sinh (overlay) — theo thiết kế đã duyệt ===== */
#thiOverlay{position:fixed;inset:0;z-index:99999;background:#0a1322;color:#e8eefc;font-family:"Be Vietnam Pro",system-ui,sans-serif;overflow-y:auto;overscroll-behavior:contain}
#thiOverlay *{box-sizing:border-box}
#thiOverlay.khoaChon .thiGiay{user-select:none}
/* ---- thanh trên ---- */
.thiTop{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 22px;background:#0a1322;position:sticky;top:0;z-index:8}
.thiTop .logo{width:48px;height:48px;border-radius:13px;flex:none;display:grid;place-items:center;font:900 26px "Archivo Black","Be Vietnam Pro";background:linear-gradient(135deg,#ffc53d,#f08c00);color:#17233a;overflow:hidden}
.thiTop .logo img{width:100%;height:100%;object-fit:cover}
.thiTop .th{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.thiTop .th b{font-size:18px;font-weight:800;color:#f5b301;letter-spacing:.4px}
.thiTop .th span{font-size:12.5px;color:#b9cbe6;font-weight:600}
.thiTok{display:inline-flex;align-items:center;gap:7px;background:#13203a;border:1px solid #263c5e;color:#dbe8ff;font-size:13px;font-weight:700;padding:7px 14px;border-radius:99px}
.thiTop .phai{margin-left:auto;display:flex;align-items:center;gap:12px}
.thiDongHo{display:flex;align-items:center;gap:8px;font:800 21px ui-monospace,monospace;background:#1a1526;border:1px solid #5a3a3a;color:#ffd36b;padding:8px 16px;border-radius:12px}
.thiDongHo.gap{color:#ffb347;border-color:#7a5420}
.thiDongHo.nguy{color:#ff8080;border-color:#8a2a2a;animation:thiNhay 1s steps(2) infinite}
@keyframes thiNhay{50%{opacity:.45}}
.thiChipHS{display:flex;align-items:center;gap:9px;background:#13203a;border:1px solid #263c5e;padding:7px 9px 7px 14px;border-radius:12px;font-size:13.5px;font-weight:700;color:#eaf2ff}
.thiChipHS i{font-style:normal;font-size:11.5px;color:#8fa8c9;font-weight:600}
.thiChipHS .av{width:28px;height:28px;border-radius:50%;background:#2f6fed;color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px}
/* ---- bố cục trang ---- */
.thiTrang{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;max-width:1500px;margin:0 auto;padding:4px 22px 60px;align-items:start}
@media(max-width:1080px){.thiTrang{grid-template-columns:1fr}}
/* ---- tờ giấy đề ---- */
.thiGiay{background:#fff;color:#1f2937;border-radius:18px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.thiBanner{background:linear-gradient(120deg,#13263f,#1b3557);padding:20px 26px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.thiBanner h1{margin:0;font-size:23px;font-weight:800;color:#fff;letter-spacing:.3px;text-transform:uppercase;flex:1 1 100%}
.thiBanner .pill{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;padding:7px 14px;border-radius:99px;background:#22364f;color:#cfe0f7}
.thiBanner .pill.vang{background:#f5b301;color:#16233a}
.thiBanner .maDe{margin-left:auto;background:#22364f;color:#cfe0f7;font-size:13px;font-weight:700;padding:7px 14px;border-radius:99px;font-family:ui-monospace,monospace}
.thiRuot{padding:26px 30px 32px}
@media(max-width:620px){.thiRuot{padding:18px 16px 24px}.thiBanner{padding:16px 18px}.thiBanner h1{font-size:19px}}
/* ---- đề mục Phần ---- */
.thiPhan{display:flex;align-items:center;gap:14px;border-radius:12px;padding:13px 18px;margin:26px 0 18px;color:#fff}
.thiPhan:first-child{margin-top:4px}
.thiPhan .stt{width:30px;height:30px;flex:none;border-radius:9px;background:rgba(255,255,255,.26);display:grid;place-items:center;font-weight:800;font-size:15px}
.thiPhan .ten{font-size:18px;font-weight:800;letter-spacing:.6px;font-family:"Archivo Black","Be Vietnam Pro",sans-serif;text-transform:uppercase}
.thiPhan .ghi{font-size:12.5px;font-weight:600;opacity:.92;border-left:1px solid rgba(255,255,255,.45);padding-left:14px;margin-left:4px}
@media(max-width:620px){.thiPhan{flex-wrap:wrap}.thiPhan .ghi{border:none;padding:0;margin:0;flex:1 1 100%}}
.thiPhan.xanh{background:linear-gradient(100deg,#2f6fed,#4f8ff7)}
.thiPhan.luc{background:linear-gradient(100deg,#139a66,#2fcf8f)}
.thiPhan.cam{background:linear-gradient(100deg,#e08700,#f5b301)}
.thiPhan.tim{background:linear-gradient(100deg,#6d5ae6,#8b7cf0)}
/* ---- câu hỏi ---- */
.thiCau{padding:18px 0 20px;border-bottom:1px solid #eef1f6}
.thiCau:last-child{border-bottom:none}
.thiCau .thiDe{font-size:16px;line-height:1.65;color:#17233a}
.thiCau .thiDe .nhanCau{font-weight:800;color:#9b1c31;margin-right:5px}
.thiCau .thiDe .cau{margin:0}
.thiCau .thiDe img{max-width:100%}
.thiCau .thiDe .giua{text-align:center;margin:10px 0}
/* ẩn danh sách đáp án gốc của engine (đã dựng lại bản tương tác) */
.thiCau .thiDe .pa,.thiCau .thiDe .ds,.thiCau .thiDe .bangDS,.thiCau .thiDe .dapSo{display:none}
/* ---- đáp án trắc nghiệm ---- */
.thiPA{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
@media(max-width:620px){.thiPA{grid-template-columns:1fr}}
.thiPA .o{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1.6px solid #e3e8f0;border-radius:13px;cursor:pointer;background:#fff;transition:.13s;font-size:15.5px;line-height:1.5;position:relative}
.thiPA .o:hover{border-color:#f5b301;background:#fffdf4}
.thiPA .o .ky{width:30px;height:30px;flex:none;border-radius:9px;display:grid;place-items:center;font-weight:800;font-size:14px;background:#f1f4f9;color:#44546b}
.thiPA .o .noi{flex:1;min-width:0}
.thiPA .o .tick{opacity:0;color:#e0940a;font-weight:800;font-size:17px;flex:none}
.thiPA .o.chon{border-color:#f5b301;background:#fffbeb;box-shadow:0 0 0 3px rgba(245,179,1,.16)}
.thiPA .o.chon .ky{background:#f5b301;color:#fff}
.thiPA .o.chon .tick{opacity:1}
/* ---- đúng / sai ---- */
.thiDSKhoi{margin-top:14px}
.thiDSKhoi .row{display:flex;align-items:center;gap:14px;padding:13px 2px;border-bottom:1px dashed #dfe5ee}
.thiDSKhoi .row:last-child{border-bottom:none}
.thiDSKhoi .nd{flex:1;min-width:0;font-size:15.5px;line-height:1.55;color:#17233a}
.thiDSKhoi .nd b{color:#44546b;margin-right:5px}
.thiDSKhoi .ds2{display:flex;gap:0;flex:none;background:#f1f4f9;border-radius:10px;padding:3px}
.thiDSKhoi .ds2 button{padding:8px 20px;border:none;border-radius:8px;background:transparent;font-weight:800;font-size:13.5px;cursor:pointer;color:#68788f;font-family:inherit}
.thiDSKhoi .ds2 button.chonD{background:#2fcf8f;color:#fff;box-shadow:0 2px 6px rgba(47,207,143,.4)}
.thiDSKhoi .ds2 button.chonS{background:#f2607a;color:#fff;box-shadow:0 2px 6px rgba(242,96,122,.4)}
/* ---- trả lời ngắn (OTP) ---- */
.thiTln{margin-top:16px;display:flex;justify-content:flex-end}
.thiOtp{display:flex;gap:10px}
.thiOtp input{width:52px;height:60px;text-align:center;font:800 25px ui-monospace,"Times New Roman",monospace;border:2px solid #f3c35a;border-radius:12px;background:#fffdf4;color:#17233a;caret-color:#f5b301}
.thiOtp input:focus{outline:none;border-color:#f5b301;box-shadow:0 0 0 3px rgba(245,179,1,.2)}
@media(max-width:620px){.thiOtp input{width:46px;height:54px;font-size:22px}}
/* ---- thanh bên ---- */
.thiBen{position:sticky;top:76px;display:flex;flex-direction:column;gap:14px}
@media(max-width:1080px){.thiBen{position:static}}
.thiThe{background:#111d30;border:1px solid #1f3552;border-radius:15px;padding:16px 17px}
.thiThe .dong1{display:flex;justify-content:space-between;align-items:center;font-size:13.5px;color:#b9cbe6;font-weight:600}
.thiThe .dong1 b{color:#fff;font-size:15px;font-weight:800}
.thiThanh{height:7px;border-radius:99px;background:#1d2d47;margin:9px 0 15px;overflow:hidden}
.thiThanh i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#f5b301,#ff7a00);transition:width .25s}
.thiThe .nhan{font-size:11.5px;font-weight:800;letter-spacing:.9px;color:#8fa8c9;margin-bottom:10px}
.thiBi{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}
.thiBi button{aspect-ratio:1;border-radius:9px;border:1.5px solid #2a4064;background:#16243a;color:#9fb6d4;font-weight:800;font-size:12.5px;cursor:pointer;font-family:inherit}
.thiBi button:hover{border-color:#f5b301}
.thiBi button.xong{border-color:#f5b301;color:#f5b301;background:#2a2112}
.thiBi button.dangXem{background:#f5b301;border-color:#f5b301;color:#17233a}
.thiChu{display:flex;gap:13px;flex-wrap:wrap;margin-top:12px;font-size:11.5px;color:#8fa8c9}
.thiChu span{display:inline-flex;align-items:center;gap:5px}
.thiChu i{width:9px;height:9px;border-radius:3px;display:inline-block;border:1.5px solid #2a4064}
.thiChu i.a{background:#f5b301;border-color:#f5b301}.thiChu i.b{border-color:#f5b301}
.thiNopTo{width:100%;padding:15px;border:none;border-radius:14px;font-size:16px;font-weight:800;cursor:pointer;background:linear-gradient(135deg,#ffc53d,#f0a000);color:#17233a;font-family:inherit;box-shadow:0 8px 22px rgba(240,160,0,.3)}
.thiNopTo:hover{filter:brightness(1.05)}
.thiGiamSat{display:flex;gap:11px;background:#111d30;border:1px solid #1f3552;border-radius:14px;padding:13px 15px;font-size:12.5px;line-height:1.55;color:#a8bfdd}
.thiGiamSat b{color:#dbe8ff}
.thiGiamSat svg{width:17px;height:17px;flex:none;stroke:#6f8fb8;fill:none;stroke-width:1.8;margin-top:1px}
.thiCuoi{text-align:center;font-size:12px;color:#6f86a6;font-weight:700;letter-spacing:.3px;padding:4px 0 10px}
/* ---- watermark & cảnh báo ---- */
.thiWM{position:fixed;inset:0;z-index:6;pointer-events:none;overflow:hidden;opacity:.07;user-select:none}
.thiWM div{position:absolute;white-space:nowrap;font:800 20px "Be Vietnam Pro";transform:rotate(-30deg);color:#8aa0bd}
.thiCanh{position:fixed;top:16px;left:50%;transform:translateX(-50%);z-index:30;background:#5a1a24;border:1px solid #a33;color:#ffd0d6;padding:12px 22px;border-radius:12px;font-size:14px;font-weight:700;box-shadow:0 12px 34px rgba(0,0,0,.55)}
.thiBoc{max-width:900px;margin:0 auto;padding:10px 18px 60px}
/* ---- đăng nhập ---- */
.thiDN{max-width:470px;margin:6vh auto 0;background:#111d30;border:1px solid #1f3552;border-radius:20px;padding:28px 26px;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.thiDN h1{font-size:21px;margin:0 0 4px;text-align:center;color:#fff}
.thiDN .mon{text-align:center;color:#9fc0ea;font-weight:700;font-size:13px}
.thiDN .ttin{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:16px 0 20px;padding:13px;background:#0d1828;border-radius:12px;font-size:13px;color:#cfe0f7}
.thiDN .ttin b{color:#f5b301}
.thiDN label{display:block;margin-bottom:13px}
.thiDN .lb{font-size:12.5px;font-weight:700;color:#aecbf0;margin-bottom:6px;display:block}
.thiDN input{width:100%;padding:12px 14px;border-radius:11px;border:1px solid #2a4d78;background:#0b1727;color:#fff;font-size:15px;font-family:inherit}
.thiDN input:focus{outline:none;border-color:#f5b301}
.thiDN .hang2{display:flex;gap:10px}.thiDN .hang2 label{flex:1;min-width:0}
.thiDN .vao{width:100%;margin-top:6px;padding:14px;border:none;border-radius:12px;font-size:15.5px;font-weight:800;cursor:pointer;background:linear-gradient(135deg,#ffc53d,#f0a000);color:#17233a;font-family:inherit}
.thiDN .vao:disabled{opacity:.45;cursor:not-allowed}
.thiDN .canhBao{background:#2a1520;border:1px solid #5a2535;color:#ff9db0;padding:13px 15px;border-radius:12px;font-size:13.5px;text-align:center}
/* ---- kết quả ---- */
.thiKQ{max-width:540px;margin:6vh auto 0;text-align:center}
.thiKQ .vong{width:158px;height:158px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#f5b301 var(--p,0%),#1d2d47 0);position:relative}
.thiKQ .vong::after{content:"";position:absolute;inset:13px;border-radius:50%;background:#0a1322}
.thiKQ .vong .so{position:relative;z-index:1;font:900 42px "Be Vietnam Pro";color:#f5b301}
.thiKQ h1{font-size:23px;margin:8px 0;color:#fff}
.thiKQ .tk{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:16px 0}
.thiKQ .tk span{background:#111d30;border:1px solid #1f3552;padding:9px 15px;border-radius:11px;font-size:13px;color:#cfe0f7}
.thiKQ .tk b{color:#f5b301}
.thiKQ .xong{margin-top:10px;padding:13px 28px;border:none;border-radius:12px;font-weight:800;background:#1f3552;color:#cfe0f7;cursor:pointer;font-family:inherit}
/* ---- nạp file .tex + danh sách file ---- */
#tabThiOnline .toNap{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px}
#tabThiOnline .toNap .vdGhi{margin:0}
#tabThiOnline .toSoanKeo{border-color:var(--vang,#f5b301)!important;background:rgba(245,179,1,.07)!important}
#tabThiOnline .toDsFile{margin-top:12px;display:flex;flex-direction:column;gap:8px}
#tabThiOnline .toDsFile[hidden]{display:none}
#tabThiOnline .toTep{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--vien,#2c3850);border-radius:11px;background:var(--mat2,#0e1626);font-size:13px}
#tabThiOnline .toTep .ten{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
#tabThiOnline .toTep .sc{color:var(--luc,#2fcf8f);font-weight:700;flex:none}
#tabThiOnline .toTep .bo{color:var(--do,#ff6b6b);cursor:pointer;background:none;border:none;font-size:16px;line-height:1;flex:none;font-family:inherit}
/* ---- lớp xem trước đề ---- */
#toXemLop{position:fixed;inset:0;z-index:99998;background:#0a1322;overflow-y:auto;display:none}
#toXemLop.mo{display:block}
#toXemLop .thanh{position:sticky;top:0;z-index:9;display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 22px;background:#0d1828;border-bottom:1px solid #1f3552}
#toXemLop .thanh b{font-size:15px;color:#fff}
#toXemLop .thanh .vdGhi{margin:0;color:#9fc0ea}
#toXemLop .dong{margin-left:auto;display:flex;align-items:center;gap:9px}
#toXemLop .bt{padding:8px 15px;border-radius:10px;border:1px solid #2a4d78;background:#13203a;color:#dbe8ff;font-weight:700;font-size:13px;cursor:pointer;font-family:inherit}
#toXemLop .bt.on{background:#f5b301;border-color:#f5b301;color:#17233a}
#toXemLop .bt.dong{background:#5a2535;border-color:#7a3545;color:#ffd0d6}
#toXemLop .ruot{max-width:1000px;margin:0 auto;padding:18px}
/* ===== b2.0: bảng, căn giữa, font đề ===== */
.thiDe,.thiCau .thiDe{font-family:"Source Serif 4",Charter,Georgia,"Times New Roman",serif;font-size:17px;line-height:1.7;color:#16233a}
.thiDe .katex{font-size:1.08em}
.thiCau .thiDe .nhanCau{font-family:"Be Vietnam Pro",sans-serif;font-weight:800;color:#9b1c31;font-size:16px}
.thiDe .giua,.thiCau .thiDe .giua{text-align:center;margin:12px 0}
.thiDe .boc{overflow-x:auto;margin:12px 0;-webkit-overflow-scrolling:touch}
.thiDe table{border-collapse:collapse;margin:10px auto;font-size:16px;background:#fff}
.thiDe table td,.thiDe table th{border:1px solid #b9c4d4;padding:7px 16px;text-align:center;vertical-align:middle}
.thiDe table th{background:#f2f5fa;font-weight:700}
.thiDe table tr td:first-child{text-align:left;font-weight:600;background:#fafbfd}
.thiPA .o .noi,.thiDSKhoi .nd{font-family:"Source Serif 4",Charter,Georgia,serif;font-size:16.5px}
.thiDSKhoi .nd b{font-family:"Be Vietnam Pro",sans-serif}
/* đang tải đề */
.thiTai{display:flex;flex-direction:column;align-items:center;gap:14px;padding:70px 20px;color:#9fc0ea;font-size:14.5px;font-weight:600}
.thiTai .quay{width:38px;height:38px;border:3px solid #22395a;border-top-color:#f5b301;border-radius:50%;animation:thiQuay .8s linear infinite}
@keyframes thiQuay{to{transform:rotate(360deg)}}
.thiAn{display:none!important}
/* ===== xem lại đáp án & lời giải ===== */
.thiXemLai{max-width:1000px;margin:0 auto;padding:6px 18px 70px}
.thiXemLai .dauTr{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 16px}
.thiXemLai .dauTr b{font-size:17px;color:#fff}
.thiXemLai .ve{margin-left:auto;padding:10px 20px;border:none;border-radius:11px;font-weight:800;background:#1f3552;color:#cfe0f7;cursor:pointer;font-family:inherit}
.thiKQCau{display:flex;align-items:center;gap:10px;margin:0 0 10px;flex-wrap:wrap}
.thiKQCau .n{font:800 12.5px "Be Vietnam Pro";background:#102a43;color:#fff;padding:4px 12px;border-radius:99px}
.thiKQCau .tt{font:800 12.5px "Be Vietnam Pro";padding:4px 12px;border-radius:99px}
.thiKQCau .tt.d{background:#e6f9f0;color:#13794f}
.thiKQCau .tt.s{background:#fdeaed;color:#b3293c}
.thiKQCau .tt.p{background:#fff5e0;color:#9a6700}
.thiKQCau .ban{font-size:12.5px;color:#5a7290;font-weight:700}
/* ===== bảng thống kê (GV) ===== */
#toTKLop{position:fixed;inset:0;z-index:99998;background:rgba(6,12,22,.82);display:none;align-items:flex-start;justify-content:center;padding:28px 16px;overflow-y:auto}
#toTKLop.mo{display:flex}
#toTKLop .hop{width:100%;max-width:1080px;background:var(--mat,#0b1220);border:1px solid var(--vien,#2c3850);border-radius:18px;overflow:hidden;box-shadow:0 26px 70px rgba(0,0,0,.6)}
#toTKLop .dau{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 20px;border-bottom:1px solid var(--vien,#2c3850);background:var(--mat2,#0e1626)}
#toTKLop .dau b{font-size:16px}
#toTKLop .dau .ma{font-family:ui-monospace,monospace;color:var(--vang,#f5b301);font-weight:700}
#toTKLop .dau .nut{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
#toTKLop .ô,#toTKLop .thongKe{padding:16px 20px}
#toTKLop .tk4{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:16px 20px 4px}
@media(max-width:700px){#toTKLop .tk4{grid-template-columns:repeat(2,1fr)}}
#toTKLop .tk4 div{background:var(--mat2,#0e1626);border:1px solid var(--vien,#2c3850);border-radius:12px;padding:11px 13px}
#toTKLop .tk4 span{display:block;font-size:11.5px;color:var(--phu,#9aa7c2);font-weight:700;letter-spacing:.4px}
#toTKLop .tk4 b{font-size:20px;color:var(--vang,#f5b301)}
#toTKLop .bocBang{padding:10px 20px 20px;overflow-x:auto}
#toTKLop table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:720px}
#toTKLop th{text-align:left;padding:10px 12px;background:var(--mat2,#0e1626);color:var(--phu,#9aa7c2);font-size:11.5px;font-weight:800;letter-spacing:.5px;border-bottom:1px solid var(--vien,#2c3850);white-space:nowrap;cursor:pointer;user-select:none}
#toTKLop th.on{color:var(--vang,#f5b301)}
#toTKLop td{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.05)}
#toTKLop tbody tr:hover{background:rgba(255,255,255,.03)}
#toTKLop .hang{font-weight:800;color:var(--phu,#9aa7c2)}
#toTKLop .hang.top1{color:#f5b301}#toTKLop .hang.top2{color:#c6d4e8}#toTKLop .hang.top3{color:#d79a5b}
#toTKLop .dm{font-weight:800;color:var(--luc,#2fcf8f)}
#toTKLop .vp{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:99px;background:rgba(255,107,107,.14);color:var(--do,#ff6b6b)}
#toTKLop .sach{font-size:11.5px;color:var(--phu,#9aa7c2)}
/* K-Exam: danh sách học sinh + nhãn */
#toTKLop .hop > .vdGhi{padding:12px 20px 0}
#toTKLop .toTim{width:220px;max-width:60vw}
#toTKLop .toTenDN{display:block;font-size:11.5px;color:var(--phu,#9aa7c2);font-family:ui-monospace,monospace}
#toTKLop .toMk{font-family:ui-monospace,monospace;font-size:13px;background:rgba(245,179,1,.12);color:var(--vang,#f5b301);padding:2px 8px;border-radius:6px}
#toTKLop .toMoi{font-size:10.5px;font-weight:800;padding:2px 7px;border-radius:99px;background:rgba(47,207,143,.16);color:var(--luc,#2fcf8f);vertical-align:middle}
#toTKLop .toHSNut{white-space:nowrap;text-align:right}
#toTKLop .toHSNut .vdNutNho{margin-left:6px}
.toSoMoi{display:inline-block;min-width:18px;padding:1px 6px;margin-left:4px;border-radius:99px;background:var(--do,#ff6b6b);color:#fff;font-size:11px;line-height:16px;text-align:center}
.toSoMoi[hidden]{display:none}
.toKETag{color:var(--luc,#2fcf8f);font-weight:700}
.toKEChon .vdCong{margin-top:6px}
/* xem lại: hiện đáp án + lời giải (engine) */
.thiAn{position:absolute!important;left:-99999px!important;top:0!important;width:860px!important}
.thiCau.thiXL .thiDe .pa{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
@media(max-width:620px){.thiCau.thiXL .thiDe .pa{grid-template-columns:1fr}}
.thiCau.thiXL .thiDe .pa > div{padding:11px 14px;border:1.6px solid #e3e8f0;border-radius:12px;background:#fff}
.thiCau.thiXL .thiDe .pa > div.dung{border-color:#2fcf8f;background:#eafaf1;font-weight:600}
.thiCau.thiXL .thiDe .ds{display:block!important;margin-top:10px}
.thiCau.thiXL .thiDe .ds > div{padding:9px 2px;border-bottom:1px dashed #dfe5ee}
.thiCau.thiXL .thiDe .ds > div.dung{color:#13794f;font-weight:600}
.thiCau.thiXL .thiDe .dapSo{display:block!important;margin-top:12px;font-weight:700;color:#13794f;background:#eafaf1;border-radius:10px;padding:9px 14px}
.thiCau.thiXL .thiDe .lg{display:block;margin-top:12px;background:#f6f8fc;border:1px solid #e3e8f0;border-radius:12px;padding:10px 14px}
.thiCau.thiXL .thiDe .lg summary{cursor:pointer;font-weight:800;color:#2f6fed;font-family:"Be Vietnam Pro",sans-serif;font-size:14px}
.thiCau.thiXL .thiDe .lg[open] summary{margin-bottom:8px}
.thiCau.thiXL{background:#fff;color:#16233a;border-radius:16px;padding:18px 22px;margin-bottom:14px;border:none}
/* b2.1: bảng/căn giữa áp cho CẢ nội dung đáp án đã chép ra ngoài .thiDe */
.thiDe .giua,.thiPA .o .noi .giua,.thiDSKhoi .nd .giua{text-align:center;margin:10px 0}
.thiPA .o .noi .boc,.thiDSKhoi .nd .boc{overflow-x:auto;margin:10px 0}
.thiPA .o .noi table,.thiDSKhoi .nd table{border-collapse:collapse;margin:8px auto;font-size:15px;background:#fff;font-family:"Source Serif 4",Charter,Georgia,serif}
.thiPA .o .noi table td,.thiPA .o .noi table th,.thiDSKhoi .nd table td,.thiDSKhoi .nd table th{border:1px solid #b9c4d4;padding:6px 13px;text-align:center}
.thiDSKhoi .nd table tr td:first-child,.thiPA .o .noi table tr td:first-child{text-align:left;font-weight:600;background:#fafbfd}
.thiDSKhoi .row{align-items:flex-start}
.thiDSKhoi .ds2{margin-top:2px}
/* panel đổi số */
#tabThiOnline .toDoi{margin-top:12px;border:1px solid var(--vien,#2c3850);border-radius:13px;padding:13px 15px;background:var(--mat2,#0e1626)}
#tabThiOnline .toDoi[hidden]{display:none}
#tabThiOnline .toDoi .tieu{font-weight:800;font-size:13.5px;margin-bottom:5px;color:var(--vang,#f5b301)}
#tabThiOnline .toDoi .vdGhi{margin:0 0 10px}
#tabThiOnline .toDoi .nut{display:flex;gap:8px;flex-wrap:wrap}
#tabThiOnline .toDoiTT{margin-top:10px;font-size:12.5px;font-weight:700}
#tabThiOnline .toDoiTT.ok{color:var(--luc,#2fcf8f)}
#tabThiOnline .toDoiTT.loi{color:var(--do,#ff6b6b)}
/* b2.3 */
#tabThiOnline #toSoan{height:12cm;min-height:12cm;max-height:12cm;resize:none;overflow:auto}
#tabThiOnline .toTuyChon{font-style:normal;font-weight:600;opacity:.6;text-transform:none;letter-spacing:0;margin-left:4px}
#tabThiOnline .toTH{margin-top:12px;padding:14px 15px;border:1px solid var(--vien,#2c3850);border-radius:13px;background:var(--mat2,#0e1626)}
#tabThiOnline .toTHLuoi{display:flex;gap:14px;align-items:stretch}
#tabThiOnline .toLogo{width:92px;height:92px;flex:none;border-radius:20px;border:1.5px dashed var(--vien,#3a4a68);display:grid;place-items:center;cursor:pointer;overflow:hidden;background:rgba(255,255,255,.03);transition:.15s}
#tabThiOnline .toLogo:hover{border-color:var(--vang,#f5b301)}
#tabThiOnline .toLogo img{width:100%;height:100%;object-fit:cover}
#tabThiOnline .toLogo .goi{font-size:12px;font-weight:700;text-align:center;color:var(--phu,#9aa7c2);line-height:1.4}
#tabThiOnline .toTHO{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}
#tabThiOnline .toTHNut{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
@media(max-width:620px){#tabThiOnline .toTHLuoi{flex-direction:column}}
/* logo mặc định KMath.edu */
.thiTop .logo.mac{background:none;padding:0;box-shadow:0 6px 18px rgba(240,140,0,.35)}
.thiTop .logo.mac svg{width:100%;height:100%;display:block}
.thiTop .th .kmw{font:900 21px/1.05 "Be Vietnam Pro",sans-serif;color:#fff;letter-spacing:-.3px}
.thiTop .th .kmw i{font-style:normal;color:#f5b301}
.thiTop .th .kms{display:inline-flex;align-items:center;gap:7px;font-size:10.5px;font-weight:800;letter-spacing:2.2px;color:#8fb0d8;margin-top:4px}
.thiTop .th .kms em{width:7px;height:7px;border-radius:50%;background:#2fcf8f;box-shadow:0 0 0 0 rgba(47,207,143,.6);animation:kmSong 2s infinite}
@keyframes kmSong{0%{box-shadow:0 0 0 0 rgba(47,207,143,.55)}70%{box-shadow:0 0 0 7px rgba(47,207,143,0)}100%{box-shadow:0 0 0 0 rgba(47,207,143,0)}}
.thiDN .loiMa{color:#ff8fa3;font-size:12.5px;font-weight:700;margin:-6px 0 10px;min-height:16px}
/* b2.4: logo web (TĐK MATH) + cụm thương hiệu dưới thanh bên */
.thiTop .logo.web,.thiWebDuoi .logo.web{background:#fff;padding:3px}
.thiTop .logo.web img,.thiWebDuoi .logo.web img{object-fit:contain}
.thiWebDuoi{display:flex;align-items:center;gap:12px;justify-content:center;padding:14px 10px 6px}
.thiWebDuoi .logo{width:40px;height:40px;border-radius:11px;flex:none;overflow:hidden;display:grid;place-items:center}
.thiWebDuoi .logo img{width:100%;height:100%}
.thiWebDuoi .th{display:flex;flex-direction:column;line-height:1.2}
.thiWebDuoi .kmw{font:900 17px/1.05 "Be Vietnam Pro",sans-serif;color:#fff;letter-spacing:-.3px}
.thiWebDuoi .kmw i{font-style:normal;color:#f5b301}
.thiWebDuoi .kms{display:inline-flex;align-items:center;gap:6px;font-size:9.5px;font-weight:800;letter-spacing:2px;color:#8fb0d8;margin-top:3px}
.thiWebDuoi .kms em{width:6px;height:6px;border-radius:50%;background:#2fcf8f;animation:kmSong 2s infinite}
#toXemLop .bt.da.on{background:#2fcf8f;border-color:#2fcf8f;color:#0a1a12}
/* nhãn Đúng/Sai khi xem đáp án */
.thiCau.thiXL .thiDe .ds > div{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}
.thiCau.thiXL .thiDe .ds .dS{flex:none;margin-left:auto;font:800 12px "Be Vietnam Pro",sans-serif;padding:4px 12px;border-radius:99px;background:#e6f9f0;color:#13794f}
.thiCau.thiXL .thiDe .ds .dS.sai{background:#fdeaed;color:#b3293c}

/* ===== Gán ID ===== */
.giThan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; } @media (max-width: 1000px) { .giThan { grid-template-columns: 1fr; } }
.giVao { display: grid; gap: 10px; position: sticky; top: 12px; }
.giThanh { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .giThanh b { font-size: 14px; color: var(--chu); }
.giThanhNut { display: flex; gap: 6px; flex-wrap: wrap; } .giThanhNut .gtNutTep { padding: 0 12px; }
.giMa { width: 100%; min-height: 46vh; resize: vertical; }
.giChon { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .giO { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--phu); font-weight: 600; }
.giNut { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .giNutTo { height: 42px !important; justify-content: center; justify-self: stretch !important; }
.vdTT.loi, .vdGhi.loi { color: #d92d20; }
.giRa { display: grid; gap: 10px; }
.giLoc { display: flex; gap: 4px; flex-wrap: wrap; } .giLoc button { height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--vien); background: var(--mat); color: var(--chu); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.giLoc button i { font-style: normal; color: var(--phu); margin-left: 2px; } .giLoc button[aria-pressed="true"] { background: var(--chu); color: var(--mat); border-color: var(--chu); } .giLoc button[aria-pressed="true"] i { color: inherit; opacity: .7; }
.giDs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 70vh; overflow: auto; }
.giCau { border: 1px solid var(--vien); border-radius: 12px; padding: 8px 10px; background: var(--mat); } .giCau.xem { border-color: rgba(217,119,6,.55); background: linear-gradient(90deg, rgba(245,179,1,.08), transparent 40%); }
.giCauDau { display: grid; grid-template-columns: 26px auto 132px auto minmax(0, 1fr) 118px 30px; gap: 6px; align-items: center; }
@media (max-width: 700px) { .giCauDau { grid-template-columns: 26px auto 1fr auto; } .giChonC, .giChonM { grid-column: span 2; } }
.giSo { font: 700 12px var(--f-code, monospace); color: var(--phu); text-align: right; }
.giLoai.tn { background: rgba(77,171,247,.16); color: #1c6fb8; } .giLoai.ds { background: rgba(132,94,247,.16); color: #6741d9; } .giLoai.tln { background: rgba(32,201,151,.16); color: #0b7a5a; } .giLoai.tl { background: rgba(255,146,43,.16); color: #b8530a; }
.giID { height: 30px; border: 1px solid var(--vien); border-radius: 8px; padding: 0 8px; font: 700 13px var(--f-code, monospace); color: var(--chu); background: var(--code, #f6f7f9); min-width: 0; } .giID.sai { border-color: #d92d20; } .giID:focus { outline: 0; border-color: var(--vang); }
.giNguon { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; white-space: nowrap; } .giNguon.cu { background: rgba(34,197,94,.14); color: #15803d; } .giNguon.tk { background: rgba(245,179,1,.18); color: #a16207; } .giNguon.ai { background: rgba(124,92,250,.14); color: #6d28d9; } .giNguon.aiYeu { background: rgba(217,119,6,.16); color: #b45309; } .giNguon.tay { background: rgba(77,171,247,.16); color: #1c6fb8; } .giNguon.chua { background: rgba(217,45,32,.1); color: #d92d20; }
.giChonC, .giChonM { height: 30px; border: 1px solid var(--vien); border-radius: 8px; padding: 0 4px; font: inherit; font-size: 12px; background: var(--mat); color: var(--chu); min-width: 0; }
.giMo { width: 30px; height: 30px; border: 1px solid var(--vien); border-radius: 8px; background: var(--mat); color: var(--chu); cursor: pointer; } .giMo[aria-expanded="true"] { transform: rotate(180deg); }
.giTom { font-size: 12.5px; color: var(--phu); margin: 6px 0 0 32px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .giTom b { color: var(--chu); font-weight: 600; }
.giXem { margin: 8px 0 2px; padding: 18px 22px !important; max-width: none !important; font-size: 14px; } .giXem[hidden] { display: none; }
.giXuat { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px dashed var(--vien); padding-top: 10px; }
.giCT { display: grid; gap: 12px; margin-bottom: 16px; } .giCT[hidden] { display: none; }
.giCTDau { display: flex; justify-content: space-between; align-items: center; } .giCTDau b { font-size: 15px; color: var(--chu); }
.giCTLuoi { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; } @media (max-width: 900px) { .giCTLuoi { grid-template-columns: 1fr; } }
.giCTCot { display: grid; gap: 8px; align-content: start; } .giCTCot label { display: grid; gap: 4px; } .giCTCot .mdO { width: 100%; }
.giCTCayDau { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .giCTCayDau .mdNhan { flex: 1; } .giCTCayDau .gtNutTep { padding: 0 10px; height: 30px; }
.giCTNut { display: flex; justify-content: flex-end; }

.giCheDo { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; box-sizing: border-box; margin: 0 0 14px; padding: 4px; border-radius: 14px; }
.giCheDo button { height: auto !important; padding: 10px 14px !important; border-radius: 11px !important; display: grid; gap: 2px; text-align: left; white-space: normal !important; } .giCheDo button b { font-size: 14px; color: var(--vt-chu); } .giCheDo button span { font-size: 11.5px; font-weight: 600; color: var(--vt-phu); }
.giCheDo button[aria-selected="true"] { background: var(--vt-mat); box-shadow: 0 1px 3px rgba(16,24,40,.14), inset 0 -2px 0 var(--vt-ac); }
.gi[data-che="tay"] .giChiTu { display: none !important; }
.giCayHang { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; padding: 10px 0 4px; }
.giCap.k-lop { order: 1; } .giCap.k-mon { order: 2; } .giCap.k-muc { order: 3; } .giNhuTren { order: 4; } .giCap.k-chuong { order: 5; grid-column: span 2; } .giCap.k-bai { order: 6; grid-column: span 2; } .giCap.k-dang { order: 7; grid-column: 1 / -1; }
.giCap { display: grid; gap: 2px; min-width: 0; } .giCap span { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--phu); } .giCap .mdO { height: 32px; font-size: 12.5px; padding: 0 6px; min-width: 0; width: 100%; text-overflow: ellipsis; }
.giSua { border: 1px solid var(--vien); background: none; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; color: var(--phu); } .giSua[aria-expanded="true"] { background: var(--vt-acNhat); color: var(--chu); } .gi[data-che="tay"] .giSua { display: none; }
.giNhuTren { height: 32px !important; white-space: nowrap; }
@media (max-width: 760px) { .giCayHang { grid-template-columns: 1fr 1fr; } .giCap.k-chuong, .giCap.k-bai { grid-column: 1 / -1; } }

/* ===== Bàn gán ID 2 cột (17.9) ===== */
.giThan { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.giMa { min-height: calc(100vh - 330px); font: 12.5px/1.6 var(--f-code, ui-monospace, monospace); tab-size: 4; }
.gi[data-che="tay"] .giMa { min-height: calc(100vh - 250px); }
.giTrucTiep { margin-left: 8px; font: 700 10.5px/1 var(--f-ui, inherit); letter-spacing: .04em; padding: 4px 8px; border-radius: 99px; background: rgba(34,197,94,.13); color: #15803d; vertical-align: 1px; }
.giRa { gap: 10px; }
.giThanhRa { align-items: center; }
.giDemHop { display: grid; gap: 6px; min-width: 200px; flex: 1; }
.giTienDo { height: 5px; border-radius: 99px; background: var(--vien); overflow: hidden; max-width: 320px; } .giTienDo i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #16a34a); transition: width .35s ease; }
.giXemChe { display: inline-flex !important; padding: 3px; border-radius: 11px; } .giXemChe button { height: 30px !important; padding: 0 12px !important; font-size: 12.5px !important; border-radius: 8px !important; }
.giXemChe button[aria-selected="true"] { background: var(--vt-mat); box-shadow: 0 1px 3px rgba(16,24,40,.14); }
/* bảng chọn */
.giBo { position: sticky; top: 8px; z-index: 6; display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--vien); border-radius: 14px; background: var(--mat); box-shadow: 0 10px 28px -14px rgba(16,24,40,.28), 0 0 0 3px var(--vt-acNhat, rgba(245,179,1,.12)); } .giBo[hidden] { display: none; }
.giBoDau { display: flex; align-items: center; gap: 8px; min-width: 0; } .giBoDau b { font-size: 15px; color: var(--chu); white-space: nowrap; } .giBoDau b small { font-weight: 600; color: var(--phu); font-size: 12px; }
.giDi { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--vien); background: var(--mat); color: var(--chu); font-size: 17px; line-height: 1; cursor: pointer; } .giDi:disabled { opacity: .35; cursor: default; } .giDi:not(:disabled):hover { border-color: var(--chu); }
.giBoID { font: 700 13px var(--f-code, monospace); padding: 4px 9px; border-radius: 8px; background: var(--code, #f6f7f9); color: var(--chu); white-space: nowrap; } .giBoID.rong { color: #d92d20; font-weight: 600; background: rgba(217,45,32,.07); }
.giBoTom { flex: 1; min-width: 0; font-size: 12px; color: var(--phu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.giTimHop { position: relative; } .giTim { width: 100%; height: 38px; font-size: 13.5px; }
.giTimKQ { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 320px; overflow: auto; padding: 6px; border: 1px solid var(--vien); border-radius: 12px; background: var(--mat); box-shadow: 0 16px 40px -12px rgba(16,24,40,.35); display: grid; gap: 2px; } .giTimKQ[hidden] { display: none; }
.giTimKQ button { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: start; text-align: left; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--chu); font: inherit; font-size: 13px; cursor: pointer; } .giTimKQ button:hover, .giTimKQ button.dau { background: var(--vt-acNhat, rgba(245,179,1,.14)); }
.giTimKQ code { font: 700 12px var(--f-code, monospace); color: var(--phu); padding-top: 1px; } .giTimKQ small { display: block; font-size: 11px; color: var(--phu); margin-top: 1px; }
.giGoiY { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .giGoiY > span { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--phu); margin-right: 2px; }
.giGoiY button { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 10px; border: 1px solid var(--vien); border-radius: 99px; background: var(--mat); color: var(--chu); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.giGoiY button code { font: 700 11.5px var(--f-code, monospace); color: var(--phu); } .giGoiY button.dau { border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.08); } .giGoiY button:hover { border-color: var(--chu); }
.giBo .giCayHang { grid-template-columns: 86px 124px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.6fr); padding: 0; gap: 6px; }
.giBo .giCap.k-lop, .giBo .giCap.k-mon, .giBo .giCap.k-chuong, .giBo .giCap.k-bai, .giBo .giCap.k-dang { order: 0; grid-column: auto; }
@media (max-width: 1250px) { .giBo .giCayHang { grid-template-columns: 1fr 1fr; } .giBo .giCap.k-chuong, .giBo .giCap.k-bai, .giBo .giCap.k-dang { grid-column: 1 / -1; } }
.giBoDuoi { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.giMucNut { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; } .giMucNut > span { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--phu); margin-right: 4px; }
.giMucNut button { height: 30px; padding: 0 10px; border: 1px solid var(--vien); border-radius: 8px; background: var(--mat); color: var(--phu); font: inherit; font-size: 12px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; } .giMucNut button b { color: var(--chu); font-family: var(--f-code, monospace); }
.giMucNut button[aria-pressed="true"] { background: var(--chu); border-color: var(--chu); color: var(--mat); } .giMucNut button[aria-pressed="true"] b { color: var(--mat); }
.giBoNut { display: flex; gap: 6px; flex-wrap: wrap; }
/* trang đề như PDF */
.giKhung { max-height: calc(100vh - 360px); min-height: 320px; overflow: auto; border-radius: 14px; background: #e9ecf1; padding: 18px; }
.giTrang { max-width: 780px !important; margin: 0 auto !important; padding: 34px 40px !important; background: #fff !important; color: #111 !important; border-radius: 4px !important; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px -10px rgba(0,0,0,.25) !important; font-size: 15px; }
.giTrang[hidden], .giDs[hidden] { display: none !important; }
.giTrang .giC { position: relative; cursor: pointer; border-radius: 8px; padding: 30px 10px 8px 12px; margin: 0 -12px 6px; border-left: 3px solid transparent; transition: background .15s, border-color .15s; min-height: 46px; }
.giTrang .giC:hover { background: rgba(245,179,1,.06); }
.giTrang .giC.xem { border-left-color: rgba(217,119,6,.65); }
.giTrang .giC.chon { background: rgba(245,179,1,.11); border-left-color: #f5b301; box-shadow: inset 0 0 0 1px rgba(245,179,1,.45); }
.giTrang .giC.an { display: none; }
.giTrang .giC .cau { padding: 0 !important; margin: 0 !important; } .giTrang .giC .nhanCau { display: none; }
.giChip u { text-decoration: none; font: 700 11px var(--f-ui, system-ui); color: var(--phu); padding-right: 4px; margin-right: 2px; border-right: 1px solid currentColor; opacity: .7; }
.giTaiO { color: #98a1b3; font-size: 13px; } .giLoiO { color: #b45309; font-size: 13px; margin: 0; }
.giChip { position: absolute; top: 6px; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid; border-radius: 6px; font: 700 11.5px var(--f-code, monospace); cursor: pointer; background: #fff; }
.giChip i { font: 700 10px var(--f-ui, system-ui); font-style: normal; opacity: .8; }
.giChip.cu, .giChip.tay { color: #15803d; border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.07); } .giChip.tk, .giChip.ai { color: #a16207; border-color: rgba(245,179,1,.6); background: rgba(245,179,1,.1); } .giChip.aiYeu { color: #b45309; border-color: rgba(217,119,6,.6); } .giChip.chua { color: #d92d20; border-color: rgba(217,45,32,.4); background: rgba(217,45,32,.05); border-style: dashed; }
.giDs { max-height: none; } .giCau { cursor: pointer; } .giCau.chon { border-color: #f5b301; box-shadow: 0 0 0 2px rgba(245,179,1,.25); }
.giCauDau { grid-template-columns: 26px auto 132px auto minmax(0, 1fr); } .giTenD { font-size: 12px; color: var(--phu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.giTom { margin-left: 32px; }
.giPhim { margin-left: auto; font-size: 11.5px; color: var(--phu); display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; } .giPhim kbd { font: 600 10.5px var(--f-code, monospace); padding: 1px 5px; border: 1px solid var(--vien); border-bottom-width: 2px; border-radius: 4px; background: var(--mat); color: var(--chu); }
@media (max-width: 1000px) { .giKhung { max-height: none; } .giMa { min-height: 40vh !important; } .giPhim { display: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .giKhung { background: #1d2230; } }
:root[data-theme="dark"] .giKhung { background: #1d2230; }
.giTuNH { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(77,171,247,.45); background: linear-gradient(90deg, rgba(77,171,247,.12), rgba(77,171,247,.03)); } .giTuNH[hidden] { display: none; }
.giTuNH > div { flex: 1; min-width: 0; display: grid; gap: 2px; } .giTuNH b { font-size: 13.5px; color: var(--chu); } .giTuNH small { font-size: 12px; color: var(--phu); } .giTuNHIco { font-size: 20px; }
.giTuNH #giBoNH { width: 30px; padding: 0 !important; justify-content: center; }
.giLGCong { font-size: 12.5px; font-weight: 600; color: var(--chu); margin-left: auto; margin-right: 8px; }
.giTrang .loigiai, .giTrang .lg, .giTrang [class*="loiGiai"] { border-top: 1px dashed #c9ced8; margin-top: 8px; padding-top: 6px; }

/* ===== Tab Ngân hàng — 2 cột ===== */
.nh{--nhR:14px}
/* Tổng quát */
.nhTongQuat{display:grid;grid-template-columns:1.5fr repeat(3,1fr) auto;gap:11px;margin:4px 0 16px}
@media(max-width:980px){.nhTongQuat{grid-template-columns:1fr 1fr}}
.nhTQThe{position:relative;display:flex;align-items:center;gap:13px;padding:13px 16px;border:1px solid var(--vien,#2c3850);border-radius:15px;background:var(--mat,#fff);text-align:left;font:inherit;color:var(--chu);cursor:pointer;overflow:hidden;transition:border-color .14s,box-shadow .14s,transform .1s}
.nhTQThe:hover{transform:translateY(-1px)}
.nhTQThe:active{transform:translateY(0)}
.nhTQThe em{position:absolute;left:0;bottom:0;height:3px;width:var(--w,0);background:var(--lc,#f5b301);border-radius:0 3px 0 0;opacity:.85}
/* thẻ Tổng */
.nhTQThe.tong{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;cursor:default;background:linear-gradient(135deg,rgba(245,179,1,.16),rgba(245,179,1,.02));border-color:rgba(245,179,1,.42)}
.nhTQThe.tong .nhTQIco{position:absolute;right:14px;top:12px;font-size:20px;opacity:.45}
.nhTQThe.tong .nhTQT{font-size:12px;font-weight:700;color:var(--phu,#9aa7c2)}
.nhTQThe.tong b{font-size:34px;font-weight:800;line-height:1.05;letter-spacing:-.02em;font-variant-numeric:tabular-nums;background:linear-gradient(135deg,#f5b301,#ff8a5b);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.nhTQThe.tong i{font-style:normal;font-size:11px;color:var(--phu,#9aa7c2)}
/* thẻ Lớp — badge màu riêng */
.nhTQHuy{flex:none;width:84px;height:84px;border-radius:19px;display:grid;place-items:center;position:relative;color:#fff;background:linear-gradient(150deg,var(--lc),var(--lc2));box-shadow:0 10px 22px -9px var(--lc),inset 0 1px 0 rgba(255,255,255,.25)}
.nhTQHuy::after{content:"";position:absolute;inset:0;border-radius:19px;border:1.5px solid rgba(255,255,255,.18)}
.nhTQHuy>span,.nhTQHuy{font-family:"Archivo Black","Be Vietnam Pro",system-ui,sans-serif;font-weight:900;font-size:48px;line-height:.9;letter-spacing:-.02em;text-shadow:0 2px 10px rgba(0,0,0,.22)}
.nhTQLT{display:flex;flex-direction:column;gap:1px;min-width:0}
.nhTQNhan{font-size:12px;font-weight:700;color:var(--phu,#9aa7c2)}
.nhTQThe.lop b{font-size:29px;font-weight:800;line-height:1.1;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:#fff}
.nhTQThe.lop i{font-style:normal;font-size:11px;color:var(--phu,#9aa7c2)}
.nhTQThe.l10{--lc:#4f9dff;--lc2:#2f6fd0;--lcbg:rgba(79,157,255,.13)}
.nhTQThe.l11{--lc:#35c08a;--lc2:#1f9e6e;--lcbg:rgba(53,192,138,.13)}
.nhTQThe.l12{--lc:#f6a723;--lc2:#d7860a;--lcbg:rgba(246,167,35,.13)}
.nhTQThe.lop:hover{border-color:var(--lc)}
.nhTQThe.lop.on{border-color:var(--lc);box-shadow:inset 0 0 0 1.5px var(--lc),0 8px 20px -10px var(--lc);background:var(--lcbg)}
.nhTQTick{position:absolute;right:11px;top:11px;width:20px;height:20px;border-radius:50%;background:var(--lc);color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center}
.nhTQNut{display:flex;align-items:center;justify-content:center}

/* Thanh lọc */
.nhLocBar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:10px}
.nhLocBar2{padding-top:11px;border-top:1px solid var(--vien,#2c3850);margin-bottom:14px}
.nhLocNhan{font-size:10.5px;font-weight:700;color:var(--phu,#9aa7c2);text-transform:uppercase;letter-spacing:.05em}
.nhLocDay{flex:1}
/* nút Đồng bộ Game ở thanh trên */
.nhDongBoNut{background:linear-gradient(135deg,#8ec5ff,#4f7cff)!important;border-color:#3f6fe0!important;color:#06173f!important;font-weight:700;font-family:var(--f-ui,"Be Vietnam Pro",system-ui,sans-serif)}
.nhDongBoNut:hover{filter:brightness(1.05)}
/* dropdown */
.nhDD{position:relative}
.nhDDNut{height:48px;padding:0 15px;border-radius:13px;border:1.5px solid var(--vien2,#3a465c);background:linear-gradient(180deg,var(--mat,#fff),var(--code,rgba(128,128,128,.05)));color:var(--chu);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:11px;white-space:nowrap;max-width:320px}
.nhDDNut:hover{border-color:var(--vang,#f5b301);filter:brightness(1.04)}
.nhDDNut.on{border-color:var(--vang,#f5b301);background:var(--vangnhat,rgba(245,179,1,.14))}
.nhDDNut .lb{font-size:10px;font-weight:700;color:var(--phu,#9aa7c2);text-transform:uppercase;letter-spacing:.07em}
.nhDDNut.on .lb{color:var(--vang,#f5b301)}
.nhDDNut .vl{max-width:210px;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.nhDDNut .ca{color:var(--phu,#9aa7c2);font-size:9px;transition:transform .15s;margin-left:auto;padding-left:4px}
/* dropdown Loại/Mức */
.nhDDPanelLoc{min-width:240px}
.nhDDItem .nhDot{width:11px;height:11px;border-radius:50%;flex:none}
.nhDD.mo .nhDDNut .ca{transform:rotate(180deg)}
.nhDDPanel{position:absolute;top:calc(100% + 6px);left:0;min-width:270px;max-width:420px;max-height:380px;overflow:auto;background:var(--mat,#fff);border:1px solid var(--vien,#2c3850);border-radius:13px;box-shadow:var(--bong,0 18px 44px -14px rgba(0,0,0,.6));padding:6px;display:none;z-index:60}
.nhDD.mo .nhDDPanel{display:block}
.nhDDItem{width:100%;text-align:left;border:0;background:none;color:var(--chu);font:inherit;font-size:13px;padding:9px 11px;border-radius:9px;cursor:pointer;display:flex;align-items:center;gap:9px}
.nhDDItem:hover{background:var(--code,rgba(128,128,128,.1))}
.nhDDItem.chon{background:var(--vangnhat,rgba(245,179,1,.14));color:var(--vang,#f5b301);font-weight:700}
.nhDDItem .tk{width:13px;flex:none;color:var(--vang,#f5b301);font-weight:800}
.nhDDItem.chon .tk::after{content:"✓"}
.nhDDItem .sl{margin-left:auto;font:700 11px ui-monospace,monospace;color:var(--phu,#9aa7c2);background:var(--code,rgba(128,128,128,.12));padding:1px 8px;border-radius:99px}
.nhTim{display:flex;align-items:center;gap:8px;height:38px;padding:0 13px;border:1px solid var(--vien,#2c3850);border-radius:11px;background:var(--code,rgba(128,128,128,.08));flex:1;min-width:180px}
.nhTim svg{width:16px;height:16px;fill:none;stroke:var(--phu,#9aa7c2);stroke-width:2;flex:none}
.nhTim input{flex:1;border:0;background:none;color:var(--chu);font:inherit;font-size:13.5px;outline:0}
.nhBoLocNut{color:var(--vang,#f5b301)}

/* 2 cột */
.nhThan2{display:grid;grid-template-columns:minmax(320px,375px) minmax(0,1fr);gap:14px;align-items:start}
@media(max-width:980px){.nhThan2{grid-template-columns:1fr}}
.nhThan2 .mdThe{background:var(--mat,#fff);border:1px solid var(--vien,#2c3850);border-radius:16px;padding:0}
.nhGiua{display:flex;flex-direction:column;padding:12px;position:sticky;top:10px;max-height:calc(100vh - 20px)}
.nhDsDau{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:0 2px 10px;border-bottom:1px solid var(--vien,#2c3850)}
.nhDsDau b{font-size:12.5px}
.nhChonNut{display:flex;gap:5px;flex-wrap:wrap}
.nhChonNut .vdNutNho{height:27px;padding:0 9px;font-size:11px}
.nhDs{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:7px;overflow:auto}
.nhCau{display:grid;grid-template-columns:18px 1fr;gap:8px;padding:10px 11px;border:1px solid var(--vien,#2c3850);border-radius:12px;background:var(--code,rgba(128,128,128,.05));cursor:pointer;transition:border-color .12s}
.nhCau:hover{border-color:var(--vang,#f5b301)}
.nhCau.dang{border-color:var(--vang,#f5b301);box-shadow:inset 3px 0 0 var(--vang,#f5b301)}
.nhCau input{margin-top:3px;accent-color:var(--vang,#f5b301)}
.nhCauDau{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.nhID{font:700 11px ui-monospace,monospace;color:var(--vang,#f5b301);background:var(--code,rgba(128,128,128,.12));padding:2px 7px;border-radius:6px}
.nhTom{font-size:12px;color:var(--phu,#9aa7c2);line-height:1.5;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nhMucNhan,.nhHinhNhan,.nhMauNhan{font-size:10px;font-weight:700;padding:2px 7px;border-radius:99px;background:var(--vangnhat,rgba(245,179,1,.13));color:var(--vang,#f5b301)}
.nhHinhNhan{background:rgba(106,168,255,.14);color:var(--xanh,#6aa8ff)}
.nhThem{align-self:center;margin-top:8px}

/* chi tiết */
.nhXem{position:sticky;top:10px;display:flex;flex-direction:column;max-height:calc(100vh - 20px);overflow:hidden}
.nhXemDau{display:flex;align-items:center;gap:9px;padding:13px 15px;border-bottom:1px solid var(--vien,#2c3850)}
.nhXemDau b{font-size:13px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nhXemNut{display:flex;gap:6px;flex:none}
.nhSegHang{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px 0}
.nhSeg{display:inline-flex;background:var(--code,rgba(128,128,128,.1));border:1px solid var(--vien,#2c3850);border-radius:11px;padding:3px}
.nhSeg button{border:0;background:none;color:var(--phu,#9aa7c2);font:inherit;font-size:12.5px;font-weight:600;padding:7px 14px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.nhSeg button.dang{background:var(--mat,#fff);color:var(--chu);box-shadow:0 1px 3px rgba(0,0,0,.25)}
.nhLGCong{font-size:12px}
.nhXemThan{flex:1;overflow:auto;padding:15px}
.nhGiay.toDe{max-width:820px;margin:0 auto}
.nhGiay .nhDuong{font-family:system-ui,sans-serif;font-size:11px;color:#9a7b2e;letter-spacing:.02em;margin:0 0 14px;font-weight:700}
.nhMa{background:var(--code,#0c1320);border:1px solid var(--vien,#2c3850);border-radius:12px;padding:18px 20px;font:13px/1.65 ui-monospace,"SF Mono",monospace;color:var(--chu);white-space:pre-wrap;word-break:break-word;max-width:900px;margin:0 auto;overflow:auto}
.nhMa .cmd{color:var(--vang,#f5b301)}.nhMa .env{color:#f28ab2}
/* sửa: 2 cột — trái mã nguồn (cao xuống), phải xem trước trực tiếp */
.nhSuaHop{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:stretch}
@media(max-width:1080px){.nhSuaHop{grid-template-columns:1fr}}
.nhSuaHop[hidden],.nhMa[hidden],.nhGiay[hidden]{display:none}
.nhSuaMaHop,.nhSuaCot{display:flex;flex-direction:column;gap:10px;min-width:0;height:calc(100vh - 208px);min-height:430px}
.nhSuaDau{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 3px;flex:none}
.nhSuaTit{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:var(--chu)}
.nhSuaTit svg{width:15px;height:15px;fill:none;stroke:var(--vang,#f5b301);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nhSuaGhi{font-size:11px;color:var(--phu,#9aa7c2)}
.nhSuaMa{width:100%;flex:1;min-height:0;resize:none;background:linear-gradient(180deg,var(--code,#0c1320),rgba(128,128,128,.04));border:1px solid var(--vien,#2c3850);border-radius:14px;padding:16px 18px;color:var(--chu);font:13.5px/1.75 ui-monospace,"SF Mono",monospace;outline:0;white-space:pre;overflow:auto;tab-size:2}
.nhSuaMa:focus{border-color:var(--vang,#f5b301);box-shadow:0 0 0 3px var(--vangnhat,rgba(245,179,1,.13))}
.nhSuaXem{flex:1;min-height:0;overflow:auto;border:1px solid var(--vien,#2c3850);border-radius:14px}
.nhSuaHop .giNut{display:flex;gap:8px;flex-wrap:wrap;align-items:center;flex:none}
.nhSuaHuyNut{margin-left:auto}
/* chuẩn hoá + cổng kiểm render */
.nhLoiNhan{font-size:10px;font-weight:800;padding:2px 7px;border-radius:99px;background:rgba(255,107,107,.16);color:#ff6b6b}
.nhCoLoi{font-size:12px}
.nhSuaNut{flex-wrap:wrap;align-items:center}
.nhKiemTT{font-size:12px;font-weight:600;line-height:1.4;flex:1;min-width:140px}
.nhKiemTT.ok{color:var(--luc,#35c08a)}
.nhKiemTT.loi{color:var(--do,#ff6b6b)}
#nhChuan{background:var(--vangnhat,rgba(245,179,1,.12));border-color:rgba(245,179,1,.35);color:var(--vang,#f5b301);font-weight:700}

/* ===== Tạo đề thi ===== */
.tdIco { background: linear-gradient(135deg, #b9f6ca, #20c997); } .tdIco svg { stroke: #053d2c; }
.tdThan { display: grid; grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; } @media (max-width: 1050px) { .tdThan { grid-template-columns: 1fr; } }
.tdTrai { display: grid; gap: 12px; }
.tdKhoi summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; } .tdKhoi summary::-webkit-details-marker { display: none; } .tdKhoi summary b { font-size: 14.5px; color: var(--chu); } .tdKhoi summary span { font-size: 12px; color: var(--phu); }
.tdKhoi[open] summary { margin-bottom: 12px; }
.tdLuoi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .tdLuoi label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--phu); min-width: 0; } .tdLuoi label.o2, .tdLuoi label:has(textarea) { grid-column: 1 / -1; } .tdLuoi .mdO { width: 100%; }
.tdLuoi textarea.mdO { font-family: inherit; font-size: 13px; }
.tdMau { margin-bottom: 10px; width: 100%; } .tdMau button { flex: 1; }
.tdPhan { border: 1px solid var(--vien); border-radius: 14px; padding: 10px; margin-bottom: 10px; display: grid; gap: 6px; background: var(--code, #f6f7f9); }
.tdPhanDau { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; gap: 8px; align-items: center; } .tdPhanDau select { font-weight: 700; } .tdPhanDau b { font-size: 13px; color: var(--chu); white-space: nowrap; }
.tdDong { display: grid; grid-template-columns: minmax(0, 1fr) 106px 64px 50px 24px; gap: 6px; align-items: center; } .tdDong .mdO { height: 32px; font-size: 12.5px; padding: 0 6px; background: var(--mat); }
.tdCo { font-size: 12px; color: var(--phu); white-space: nowrap; } .tdCo.thieu { color: #d92d20; font-weight: 700; }
.tdThemDong { justify-self: start; border: 0; background: none; color: #a16207; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 2px 0; } .tdThemDong:hover { text-decoration: underline; }
.tdXoaPhan, .tdDong .gtXoa { opacity: .7; } .tdThemPhan, .tdGio { justify-self: start; }
.tdBat { margin-top: 10px; display: grid !important; gap: 8px; }
.tdTao { width: 100%; height: 54px; font-size: 17px; }
.tdPhai { position: sticky; top: 12px; display: grid; gap: 10px; background: var(--mat); border: 1px solid var(--vien); border-radius: 18px; padding: 12px; }
.tdPhaiDau { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; } .tdChonMa { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--phu); } .tdChonMa select { height: 32px; }
.tdXem { max-height: calc(100vh - 190px); overflow: auto; border-radius: 10px; background: var(--code, #f6f7f9); padding: 14px; } .tdXem[hidden] { display: none; }
.tdGiay { font-size: 14.5px; }
.tdDsCau { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .tdDsPhan > b { font-size: 13px; color: var(--chu); } .tdDsPhan ol { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 4px; }
.tdDsPhan li { font-size: 12.5px; color: var(--phu); } .tdDsPhan li { display: list-item; } .tdDsPhan li > * { vertical-align: middle; } .tdDsPhan code { font-size: 11.5px; margin-right: 6px; color: var(--chu); } .tdDsPhan span { display: inline-block; max-width: calc(100% - 200px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tdDsPhan .vdNutNho { height: 24px; font-size: 11.5px; padding: 0 8px; margin-left: 6px; } .tdDsPhan .gtXoa { opacity: 1; }
.tdDA { display: grid; gap: 10px; } .tdDAMa { background: var(--mat); border: 1px solid var(--vien); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; } .tdDAMa > b { font-size: 14px; color: var(--chu); }
.tdDAPhan { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .tdDAPhan i { font-style: normal; font-weight: 700; font-size: 12px; color: var(--phu); width: 62px; } .tdDAPhan span { font: 700 12.5px var(--f-code, monospace); padding: 2px 8px; border-radius: 8px; background: var(--code, #f6f7f9); color: var(--chu); } .tdDAPhan em { font-style: normal; color: var(--phu); margin-right: 3px; font-weight: 500; }
.tdXuat { display: flex; gap: 8px; flex-wrap: wrap; }
/* --- Tuỳ chọn xuất (gói xuất bản) --- */
.tdDoiSo { grid-column: 1 / -1; padding: 8px 10px; border-radius: 10px; background: var(--vt-acNhat); font-weight: 700; } .tdDoiSo small { font-weight: 600; color: var(--phu); }
.txLuoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 2px; max-height: calc(100vh - 260px); overflow: auto; }
.txKhoi { display: grid; gap: 10px; align-content: start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--vien); background: linear-gradient(180deg, var(--mat), var(--code)); position: relative; overflow: hidden; }
.txKhoi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #f2d27a, #c9a24a 60%, #a7802f); }
.txKhoi h3 { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--vt-ac); }
.txKhoi .vdGhi { margin: 0; font-size: 11.5px; line-height: 1.5; }
.txChips { display: flex; flex-wrap: wrap; gap: 6px 14px; } .txChips .vdCong { font-size: 13px; } .txChips small { color: var(--phu); font-weight: 500; }
.txChon { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; } .txChon small { font-weight: 500; color: var(--phu); } .txChon .mdO { height: 38px; }
.txDiem { display: grid; gap: 0; border: 1px solid var(--vien); border-radius: 12px; overflow: hidden; font-size: 12.5px; }
.txDiemDau, .txDiemDong, .txDiemTong { display: grid; grid-template-columns: 1.6fr .8fr 1fr 1fr; gap: 8px; align-items: center; padding: 7px 12px; }
.txDiemDau { background: var(--code); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--phu); }
.txDiemDong { border-top: 1px solid var(--vien); } .txDiemDong .mdO { height: 30px; width: 80px; text-align: center; font-weight: 700; } .txDiemDong span:last-child { color: var(--phu); }
.txDiemTong { border-top: 1px solid var(--vien); background: var(--vt-acNhat); font-weight: 800; } .txDiemTong b { grid-column: 3; font-size: 15px; }
.tdXuat { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .tdBo { height: 42px !important; padding: 0 20px !important; font-size: 14.5px !important; }
@media (max-width: 1100px) { .txLuoi { grid-template-columns: 1fr; } }
.txKhoi:last-child { grid-column: 1 / -1; } .txKhoi:last-child .txDiem { max-width: 620px; }
/* --- khung tiêu đề trực quan --- */
.tdTD { background: #fff; color: #111; border-radius: 10px; padding: 16px 14px 14px; box-shadow: inset 0 0 0 1px #e4e7ec, 0 6px 18px -12px rgba(16,24,40,.35); font-family: "Times New Roman", Times, serif; }
.tdTD textarea, .tdTD input { font: inherit; color: inherit; background: transparent; border: 1px dashed transparent; border-radius: 6px; width: 100%; box-sizing: border-box; text-align: center; padding: 2px 4px; resize: none; line-height: 1.35; transition: border-color .15s, background .15s; }
.tdTD textarea:hover, .tdTD input:hover { border-color: #c9a24a; } .tdTD textarea:focus, .tdTD input:focus { outline: none; border-color: #c9a24a; background: #fffbea; }
.tdTDTren { display: grid; grid-template-columns: 36% 1fr; gap: 10px; align-items: start; }
.tdTDTrai, .tdTDPhai { display: grid; gap: 4px; } .tdTDTrai textarea { font-weight: 700; font-size: 13px; } .tdTDTrai input { font-style: italic; font-size: 12.5px; }
.tdTDPhai textarea { font-weight: 700; font-size: 13px; } .tdTDPhai input:first-of-type { font-weight: 700; font-size: 13px; } .tdTDPhai input:last-of-type { font-style: italic; font-size: 12.5px; }
.tdTDDuoi { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 14px; font-size: 12.5px; line-height: 1.7; } .tdCham { display: inline-block; width: 150px; border-bottom: 1px dotted #555; }
.tdTDMa { border: 1px solid #111; padding: 3px 14px; font-weight: 700; font-size: 13px; white-space: nowrap; }
/* --- cấu trúc theo dạng --- */
.tdMauHang { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) auto auto; gap: 6px; align-items: center; } .tdMauHang .mdO { height: 34px; font-size: 12.5px; } .tdMauHang .gtXoa { opacity: 1; } .tdGoiY { margin: 0; font-size: 11.5px; }
#tdMoRong[aria-pressed="true"] { background: var(--vt-acNhat); }
.tdThan.rong { grid-template-columns: 1fr; } .tdThan.rong .tdPhai { position: static; }
.tdSoPhan { font-size: 13px; padding: 2px 10px; border-radius: 99px; background: rgba(34,197,94,.14); color: #15803d; white-space: nowrap; } .tdSoPhan.lech { background: rgba(245,158,11,.16); color: #b45309; }
.tdLoc { display: grid; grid-template-columns: 80px 110px minmax(0, 1fr) minmax(0, 1fr) 100px; gap: 6px; align-items: end; } .tdLoc label { display: grid; gap: 2px; min-width: 0; } .tdLoc label > span { font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--phu); } .tdLoc .mdO { height: 32px; font-size: 12px; padding: 0 6px; background: var(--mat); min-width: 0; width: 100%; } .tdChiChon { grid-column: 1 / -1; font-size: 12px; }
.tdBang { border: 1px solid var(--vien); border-radius: 12px; overflow: hidden; background: var(--mat); max-height: 380px; overflow-y: auto; }
.tdBangDau, .tdBangDong { display: grid; grid-template-columns: minmax(0, 1fr) repeat(var(--cot), 66px); gap: 4px; align-items: center; padding: 6px 10px; }
.tdBangDau { position: sticky; top: 0; z-index: 1; background: var(--code); font-size: 11px; font-weight: 800; color: var(--phu); text-transform: uppercase; letter-spacing: .05em; } .tdBangDau span:not(:first-child) { text-align: center; }
.tdBangDong { border-top: 1px solid var(--vien); font-size: 12.5px; } .tdBangDong:hover { background: var(--vt-acNhat); }
.tdTenDang { line-height: 1.35; } .tdTenDang code { font-size: 11px; font-weight: 700; color: var(--vt-ac); margin-right: 4px; }
.tdO { display: flex; align-items: center; gap: 2px; justify-content: center; } .tdO.trong { color: var(--phu); opacity: .5; }
.tdO input { width: 36px; height: 28px; border-radius: 7px; border: 1px solid var(--vien); background: var(--code); color: inherit; text-align: center; font: inherit; font-weight: 700; padding: 0; -moz-appearance: textfield; } .tdO input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tdO.co input { border-color: var(--vt-ac); background: var(--vt-acNhat); } .tdO i { font-style: normal; font-size: 11px; color: var(--phu); }
/* --- đổi câu trong bản xem trước --- */
.tdCoDoi { position: relative; } .tdDoiCau { position: absolute; top: 2px; right: 0; z-index: 2; border: 1px solid #d0d5dd; background: #fff; color: #344054; border-radius: 99px; font: 600 12px "Be Vietnam Pro", sans-serif; padding: 3px 10px; cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 2px 6px rgba(16,24,40,.12); }
.tdCoDoi:hover .tdDoiCau, .tdDoiCau:focus { opacity: 1; } .tdDoiCau:hover { background: #fff7e0; border-color: #c9a24a; }
@media print { .tdDoiCau { display: none; } }
.tdTD textarea { min-height: 0 !important; height: auto !important; overflow: hidden; white-space: pre-wrap; font-size: 12px !important; } .tdTD input { height: auto !important; min-height: 0 !important; }
.tdTDTrai textarea, .tdTDPhai textarea { field-sizing: content; } .tdTDPhai input:first-of-type { font-size: 12.5px; } .tdTDPhai input:last-of-type, .tdTDTrai input { font-size: 11.5px; }
.tdMauHang { display: flex !important; flex-wrap: wrap; } .tdMauHang #tdMauCT { flex: 1 1 220px; } .tdMauHang #tdMauTen { flex: 1 1 200px; }
.tdLoc { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .tdLoc label.rong { grid-column: 1 / -1; } .tdChiChon { grid-column: 1 / -1; justify-self: end; display: inline-flex !important; align-items: center; gap: 8px; }
.tdO input::placeholder { color: var(--phu); opacity: .45; } .tdBangDong { padding-top: 5px; padding-bottom: 5px; }
.tdThan.rong .tdLoc { grid-template-columns: 90px 140px 130px minmax(0, 1fr) minmax(0, 1fr) auto !important; } .tdThan.rong .tdLoc label.rong { grid-column: auto; } .tdThan.rong .tdChiChon { grid-column: auto; }

/* ===== Đề tương tự ===== */
.ttIco { background: linear-gradient(135deg, #ffc9de, #f06595); } .ttIco svg { stroke: #4a0a24; }
.ttThan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; } @media (max-width: 1000px) { .ttThan { grid-template-columns: 1fr; } }
.ttTrai { display: grid; gap: 10px; } .ttGoc { width: 100%; }
.ttMau { display: grid; gap: 10px; border-top: 1px dashed var(--vien); padding-top: 12px; } .ttMau[hidden] { display: none; } .ttMau label { display: grid; gap: 4px; } .ttMau label[hidden] { display: none; } .ttMau .mdO { width: 100%; }
.ttHai { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ttKiem { font-size: 12.5px; font-weight: 700; } .ttKiem.ok { color: #15803d; } .ttKiem.loi { color: #d92d20; }
.ttSinh { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; } .ttSinh .giO input { width: 80px; } .ttSinh .gtBatDau { height: 44px; font-size: 15px; }
.ttPhai { position: sticky; top: 12px; display: grid; gap: 10px; } .ttGiay { max-height: calc(100vh - 160px); overflow: auto; padding: 22px 26px !important; max-width: none !important; font-size: 14.5px; }
.ttDAChip { font-family: var(--f-ui, sans-serif); font-size: 12.5px; margin: 4px 0 0; color: #15803d; } .ttDAChip b { background: rgba(34,197,94,.12); padding: 1px 8px; border-radius: 6px; }
/* --- chế độ (đổi số) --- */
.ttCheDo { display: grid !important; grid-template-columns: repeat(3, 1fr); width: 100%; box-sizing: border-box; margin: 0 0 14px; padding: 4px; border-radius: 14px; }
.ttCheDo button { height: auto !important; padding: 10px 14px !important; border-radius: 11px !important; display: grid; gap: 2px; text-align: left; white-space: normal !important; }
.ttCheDo button b { font-size: 14px; color: var(--vt-chu); } .ttCheDo button span { font-size: 11.5px; font-weight: 600; color: var(--vt-phu); }
.ttCheDo button[aria-selected="true"] { background: var(--vt-mat); box-shadow: 0 1px 3px rgba(16,24,40,.14), inset 0 -2px 0 var(--vt-ac); }
.ttThan[hidden] { display: none; } .ttMot { grid-template-columns: 1fr !important; }
.ttBuoc { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--vien); background: linear-gradient(180deg, var(--vt-acNhat), transparent 70%); } .ttBuoc[hidden] { display: none; }
.ttBuocDau { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .ttBuocDau b { font-size: 13.5px; }
.ttSoDs { display: flex; flex-wrap: wrap; gap: 8px; max-height: 260px; overflow: auto; padding: 2px; }
.ttSo { display: grid; gap: 4px; border-radius: 12px; border: 1px solid var(--vien); background: var(--mat); transition: border-color .15s, box-shadow .15s; }
.ttSo.mu { border-style: dashed; } .ttSo.chon { border-color: var(--vt-ac); box-shadow: 0 0 0 3px var(--vt-acNhat); }
.ttSoNut { display: flex; align-items: center; gap: 2px; padding: 6px 10px; border: 0; background: none; cursor: pointer; font: inherit; color: var(--chu); border-radius: 12px; max-width: 280px; }
.ttSoNut b { font-family: var(--f-code, monospace); font-size: 15px; padding: 1px 6px; border-radius: 6px; background: var(--code); } .ttSo.chon .ttSoNut b { background: var(--vt-ac); color: #1b1408; }
.ttNgu { font-style: normal; font-family: var(--f-code, monospace); font-size: 11px; color: var(--phu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.ttSoNut em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--phu); margin-left: 4px; }
.ttTen { margin-left: 6px; font-weight: 800; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: #1b1408; color: #f5d27a; }
.ttKhoang { display: flex; align-items: center; gap: 4px; padding: 0 8px 8px; font-size: 11px; color: var(--phu); } .ttKhoang .mdO { width: 52px; height: 28px; padding: 0 6px; font-size: 12.5px; text-align: center; }
.ttDAO { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; } .ttDAO[hidden] { display: none; } .ttDAN { font-weight: 800; font-size: 13.5px; } .ttDAO .mdO { font-family: var(--f-code, monospace); height: 40px; font-size: 14px; }
.ttChen { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; } .ttChen button { border: 0; cursor: pointer; font-family: var(--f-code, monospace); }
.ttYDs { display: grid; gap: 6px; } .ttYDs label { display: grid; grid-template-columns: 22px 1fr 150px; gap: 8px; align-items: center; font-size: 12.5px; } .ttYDs label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--phu); } .ttYDs .mdO { font-family: var(--f-code, monospace); height: 32px; }
.ttGhiHam code { font-size: 11px; }
.ttNangCao { border: 1px solid var(--vien); border-radius: 12px; padding: 0 12px; } .ttNangCao > summary { cursor: pointer; padding: 10px 0; font-weight: 700; font-size: 13px; color: var(--phu); } .ttNangCao[open] { padding-bottom: 12px; } .ttNangCao .ttMau { border-top: 0; padding-top: 0; }
#ttLuuMau { height: 44px; padding: 0 14px; }
/* --- ② Gemini --- */
.ttGemDs { display: grid; gap: 8px; max-height: 46vh; overflow: auto; }
.ttGemDong { display: grid; grid-template-columns: auto auto 1fr auto auto; grid-template-areas: "b l p n1 n2" "i i i i i"; gap: 4px 8px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--vien); border-left-width: 4px; }
.ttGemDong.ok { border-left-color: #22c55e; } .ttGemDong.loi { border-left-color: #f04438; } .ttGemDong.giu { border-left-color: #98a2b3; }
.ttGemDong p { grid-area: p; margin: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ttGemDong i { grid-area: i; font-style: normal; font-size: 12px; font-weight: 700; color: var(--phu); } .ttGemDong.ok i { color: #15803d; } .ttGemDong.loi i { color: #d92d20; }
.ttGemSo input { width: 60px; } .ttGemSo { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
/* --- ③ Kho --- */
.ttTim { width: 260px; } .ttKhoDs { display: grid; gap: 6px; margin-top: 10px; }
.ttKhoDong { display: grid; grid-template-columns: 26px auto auto 1fr auto auto auto 26px; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--vien); }
.ttKhoDong p { margin: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ttKhoDong i { font-style: normal; font-family: var(--f-code, monospace); font-size: 11.5px; color: var(--phu); } .ttKhoDong code { font-size: 11.5px; }
.ttKhoTT { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; } .ttKhoTT.ok { background: rgba(34,197,94,.15); color: #15803d; } .ttKhoTT.loi { background: rgba(240,68,56,.14); color: #d92d20; }
.ttKhoDong .gtXoa, .ttAnhDe .gtXoa { opacity: 1; }
@media (max-width: 760px) { .ttCheDo { grid-template-columns: 1fr; } .ttKhoDong { grid-template-columns: 26px 1fr auto; } .ttKhoDong p, .ttKhoDong i, .ttKhoDong .mdChip { display: none; } .ttYDs label { grid-template-columns: 22px 1fr; } .ttYDs label span { display: none; } }
/* badge phân tầng hình (đổi số an toàn / khoá) */
.ttTang{font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:99px;margin-left:4px;white-space:nowrap}
.ttTang.an{background:rgba(62,207,142,.15);color:var(--luc,#2bbd7e)}
.ttTang.khoa{background:rgba(242,177,75,.16);color:var(--cam,#d98a1a)}
.ttTang.canh{background:rgba(240,115,138,.15);color:var(--do,#e03131)}
/* ③ Kho mẫu — 2 cột có bộ lọc tầng */
.ttKho2{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px;align-items:start}
@media(max-width:820px){.ttKho2{grid-template-columns:1fr}}
.ttKhoLoc{padding:15px;position:sticky;top:12px}
.ttKhoRib{margin-bottom:14px}
.ttRibBar{height:14px;border-radius:8px;background:var(--mat2,#1b2740);border:1px solid var(--vien);overflow:hidden}
.ttRibBar i{display:block;height:100%;background:linear-gradient(90deg,#2bbd7e,#3ecf8e)}
.ttRibTx{font-size:12px;color:var(--phu);margin-top:7px}.ttRibTx b{color:var(--chu)}
.ttKhoLocDau{font-size:11px;font-weight:800;letter-spacing:.05em;color:var(--phu);text-transform:uppercase;margin-bottom:10px}
.ttKhoChips{display:flex;flex-direction:column;gap:7px}
.ttKhoChip{text-align:left;height:38px;padding:0 13px;border-radius:11px;border:1px solid var(--vien);background:var(--mat,#151e30);color:var(--chu);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.ttKhoChip:hover{border-color:var(--vien2,#33425c)}
.ttKhoChip.on{background:rgba(231,189,99,.14);border-color:var(--vang,#e7bd63);color:var(--vang2,#f3d389);font-weight:800}
.ttKhoChinh{padding:14px}

/* ===== Tab Văn Phòng — K-Word ===== */
.kwIco{background:linear-gradient(135deg,#8ec5ff,#4f7cff)!important}
.kwIco svg{stroke:#07163a!important}
.kw .kwCham{color:var(--vang,#f5b301)}
.kwVer{margin-left:auto;font-size:11.5px;color:var(--phu,#9aa7c2);border:1px solid var(--vien,#2c3850);padding:5px 11px;border-radius:99px}
/* nạp file */
.kwFileZone{display:flex;align-items:center;gap:13px;padding:16px;border:1.5px dashed var(--vien2,#3a465c);border-radius:16px;background:var(--mat,#fff);margin:4px 0 16px;transition:border-color .15s,background .15s}
.kwFileZone.keo{border-color:var(--vang,#f5b301);background:var(--vangnhat,rgba(245,179,1,.08))}
.kwFIco{width:44px;height:44px;border-radius:12px;background:rgba(79,157,255,.13);display:grid;place-items:center;flex:none}
.kwFIco svg{width:23px;height:23px;fill:none;stroke:var(--xanh,#4f9dff);stroke-width:1.8}
.kwFTx{flex:1;min-width:0}
.kwFTx b{font-size:14px}.kwFTx>span{display:block;color:var(--phu,#9aa7c2);font-size:12px;margin-top:1px}
.kwFTep{color:var(--luc,#35c08a)!important;font-weight:600;margin-top:6px!important}
.kwNapNut{flex:none}
/* chips */
.kwChips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}
.kwChip{height:40px;padding:0 15px;border-radius:12px;border:1px solid var(--vien,#2c3850);background:var(--mat,#fff);color:var(--phu,#9aa7c2);font:inherit;font-size:13px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.kwChip:hover{border-color:var(--vien2,#3a465c);color:var(--chu)}
.kwChip.on{background:var(--vang,#f5b301);border-color:#e0a800;color:#1b1408;font-weight:800}
.kwChip .ic{font-size:15px}
/* bố cục */
.kwThan{display:grid;grid-template-columns:minmax(0,1fr) 336px;gap:16px;align-items:start}
@media(max-width:1000px){.kwThan{grid-template-columns:1fr}}
.kwCot{min-width:0}
.kwPanel{background:var(--mat,#fff);border:1px solid var(--vien,#2c3850);border-radius:16px;padding:18px}
.kwPanel[hidden]{display:none}
.kwNhom{margin-bottom:18px}.kwNhom:last-child{margin-bottom:0}
.kwNhomDau{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:var(--vang,#f5b301);margin-bottom:12px;padding-bottom:9px;border-bottom:1px solid var(--vien,#2c3850)}
.kwRow{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px 14px}
.kwF{display:flex;flex-direction:column;gap:5px;min-width:0}
.kwF label{font-size:11.5px;font-weight:600;color:var(--phu,#9aa7c2)}
.kwF input,.kwF select,.kwF textarea{border:1px solid var(--vien,#2c3850);border-radius:10px;background:var(--code,rgba(128,128,128,.08));color:var(--chu);font:inherit;font-size:13.5px;padding:9px 11px;outline:0;width:100%}
.kwF input[type=color]{padding:3px;height:40px;cursor:pointer}
.kwF input:focus,.kwF select:focus,.kwF textarea:focus{border-color:var(--vang,#f5b301)}
.kwF textarea{resize:vertical;font-size:13px;line-height:1.5}
.kwF.kwFull{grid-column:1/-1}
.kwTog{display:inline-flex;align-items:center;gap:9px;font-size:13px;cursor:pointer;color:var(--chu)}
.kwTog input{appearance:none;width:38px;height:22px;border-radius:99px;background:var(--vien,#2c3850);position:relative;cursor:pointer;flex:none;transition:background .15s}
.kwTog input:checked{background:var(--vang,#f5b301)}
.kwTog input::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s}
.kwTog input:checked::after{transform:translateX(16px)}
.kwTog i{display:none}
.kwTog .kwEg{color:var(--phu,#9aa7c2)}
.kwTogHead{font-weight:700;margin-bottom:4px}
.kwTogHang{display:flex;flex-wrap:wrap;gap:16px;margin-top:6px}
.kwHint{font-size:11.5px;color:var(--phu,#9aa7c2);margin-top:11px;line-height:1.5}
.kwCanh{padding:11px 13px;border-radius:11px;background:var(--vangnhat,rgba(245,179,1,.09));border:1px solid rgba(245,179,1,.28);font-size:12px;color:var(--vang,#f5b301);margin-top:12px}
/* quốc hiệu preview */
.kwQh{padding:14px;border:1px dashed var(--vien2,#3a465c);border-radius:12px;background:var(--code,rgba(128,128,128,.06));text-align:center;font-family:"Times New Roman",serif;margin-top:6px}
.kwQh .q1{font-weight:700;font-size:14px}.kwQh .q2{font-weight:700;font-size:15px;margin:3px 0 2px}.kwQh .q3{width:150px;border-bottom:1px solid var(--chu);margin:4px auto 0}
.kwHd{display:flex;flex-direction:column;gap:7px}.kwHd div{font-size:12.5px}.kwHd b{color:var(--vang,#f5b301);margin-right:6px}
/* xem trước A4 */
.kwXem{position:sticky;top:12px}
.kwXemDau{font-size:12px;font-weight:700;color:var(--phu,#9aa7c2);margin-bottom:10px;text-align:center;letter-spacing:.04em}
.kwA4{aspect-ratio:1/1.414;background:#f7f5ef;border-radius:8px;box-shadow:0 14px 34px -14px rgba(0,0,0,.6);color:#222;font-family:"Times New Roman",Georgia,serif;position:relative;overflow:hidden;font-size:9px;line-height:1.5}
.kwA4 .mg{position:absolute;inset:9% 8%;border:1px dashed #c9bfa3}
.kwA4 .pg{position:absolute;left:0;right:0;bottom:4.5%;text-align:center;font-size:9px;color:#333}
.kwA4 .bd{position:absolute;inset:0;padding:13% 12% 9%}
.kwA4 h5{margin:0 0 5px;font-size:11px;text-align:center;text-transform:uppercase;font-weight:800}
.kwA4 p{margin:0 0 5px;text-align:justify}
.kwCov{text-align:center;height:100%;display:flex;flex-direction:column;align-items:center;padding:9% 10%;position:relative}
.kwCovKhung{position:absolute;inset:6%;pointer-events:none}
.kwCov .cq{font-weight:700;font-size:9px}.kwCov .cu{font-size:8.5px;margin-bottom:auto}
.kwCov .big{font-size:14px;font-weight:800;text-transform:uppercase;margin:10% 0 6%;line-height:1.3}
.kwCov .sub{font-size:9px}.kwCov .ft{margin-top:auto;font-size:8.5px;line-height:1.6}
/* xem trước THẬT: chồng các trang */
.kwA4.that{aspect-ratio:auto;background:none;box-shadow:none;max-height:calc(100vh - 150px);overflow:auto;padding:2px;display:flex;flex-direction:column;gap:12px}
.kwPg{position:relative;background:#f7f5ef;color:#1a1a1a;border-radius:6px;box-shadow:0 10px 26px -14px rgba(0,0,0,.6);aspect-ratio:1/1.414;padding:9% 8%;font-family:"Times New Roman",Georgia,serif;overflow:hidden;flex:none}
.kwPgKhung{position:absolute;inset:6%;pointer-events:none;border-radius:2px}
.kwPgND{font-size:9px;line-height:1.55;text-align:justify;height:100%;overflow:hidden}
.kwPgSo{position:absolute;left:0;right:0;bottom:4%;text-align:center;font-size:8.5px;color:#333}
.kwPgND .kd-p{margin:0 0 4px}
.kwPgND .kd-h1{font-weight:700;text-transform:uppercase;font-size:10px;margin:7px 0 4px}
.kwPgND .kd-h2{font-weight:700;font-size:10px;margin:6px 0 3px}
.kwPgND .kd-h3{font-weight:700;font-style:italic;margin:5px 0 3px}
.kwPgND .kd-h4{font-style:italic;margin:5px 0 3px}
.kwPgND .kd-bdr{border-bottom:1px solid #000;display:inline-block;padding-bottom:1px}
.kwPgND .kd-tbl{border-collapse:collapse;width:100%;margin:4px 0}
.kwPgND .kd-tbl td{border:1px solid #666;padding:2px 3px;vertical-align:top}
.kwLogoHang{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.kwLogoNut{flex:none}.kwLogoNut input{display:none}
.kwLogoTen{font-size:12px;color:var(--phu,#9aa7c2)}
.kwLogoCo{font-size:12px;color:var(--phu,#9aa7c2);display:inline-flex;align-items:center;gap:6px;margin-left:auto}
.kwLogoCo input{width:70px;border:1px solid var(--vien,#2c3850);border-radius:8px;background:var(--code,rgba(128,128,128,.08));color:var(--chu);padding:7px 9px;font:inherit;font-size:13px}
.kwPgND .kd-logo{display:block;max-width:40%;max-height:70px;margin:4px auto;object-fit:contain}
.kwPgND .kd-anh{display:inline-block;color:#888;font-size:8px;border:1px dashed #bbb;padding:1px 4px;border-radius:3px}
.kwBtns{margin-top:14px}
.kwBtns .vt3NutChinh{width:100%;height:44px;justify-content:center}
.kwBtnCot{display:flex;flex-direction:column;gap:9px}
.kwBtnCot button{width:100%;justify-content:center;height:42px}
#kwTrangThai{text-align:center;margin-top:9px}

/* ===== style.css part 2 (id="kcCongCss") — extracted verbatim from index.html ===== */
/* ===== KMath — CỔNG ĐĂNG NHẬP VŨ TRỤ (chỉ áp cho #manDangNhap) ===== */
#manDangNhap.kc{position:fixed;inset:0;z-index:9000;overflow-y:auto;background:#020617;color:#F1F5F9;font-family:"Be Vietnam Pro",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
#manDangNhap.kc[hidden]{display:none}
.kc *,.kc *::before,.kc *::after{box-sizing:border-box}
.kc a{color:inherit;text-decoration:none}
.kc .kcNenBo{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.kc .kcVuTru{position:absolute;inset:0;background:radial-gradient(ellipse 45% 40% at 20% 30%,rgba(76,29,149,.28),transparent 70%),radial-gradient(ellipse 50% 45% at 85% 75%,rgba(14,116,144,.25),transparent 70%),radial-gradient(ellipse 70% 60% at 50% 50%,#0A1A3F 0%,#050C24 55%,#020617 100%)}
.kc #kcLopNen{position:absolute;inset:0;transition:transform .6s cubic-bezier(.2,.7,.2,1);will-change:transform}
.kc .kcAnh{position:absolute;inset:7% 5%;background:url("nen-vutru-4k.jpg") center/cover;-webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 58%,transparent 100%);mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 58%,transparent 100%);animation:kcTroi 60s ease-in-out infinite alternate}
@keyframes kcTroi{from{transform:scale(.98)}to{transform:scale(1.01)}}
.kc .kcPhu{position:absolute;inset:0;background:radial-gradient(ellipse 50% 48% at 33% 50%,rgba(2,6,23,.58) 0%,rgba(2,6,23,.18) 75%,rgba(2,6,23,0) 100%),linear-gradient(90deg,rgba(2,6,23,.3) 0%,rgba(2,6,23,.05) 45%,rgba(2,6,23,.55) 100%),linear-gradient(180deg,rgba(2,6,23,.6) 0%,rgba(2,6,23,0) 16%,rgba(2,6,23,0) 78%,rgba(2,6,23,.8) 100%)}
.kc .kcSau{position:absolute;inset:0;backdrop-filter:blur(2px) brightness(.75);-webkit-backdrop-filter:blur(2px) brightness(.75);-webkit-mask-image:radial-gradient(ellipse 70% 68% at 50% 50%,transparent 70%,#000 100%);mask-image:radial-gradient(ellipse 70% 68% at 50% 50%,transparent 70%,#000 100%)}
.kc #kcSao{position:absolute;inset:0;width:100%;height:100%}
.kc .kcKhung{position:relative;z-index:1;min-height:100%;display:flex;flex-direction:column}
.kc .kcKinh{background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.03) 60%),rgba(8,15,38,.38);backdrop-filter:blur(28px) saturate(170%);-webkit-backdrop-filter:blur(28px) saturate(170%);border:1px solid rgba(255,255,255,.16);box-shadow:0 40px 90px -24px rgba(0,0,0,.8),0 0 0 1px rgba(94,235,255,.05),inset 0 1px 0 rgba(255,255,255,.22)}
/* header */
.kc .kcDau{position:sticky;top:0;z-index:5;padding:12px 12px 0}
.kc .kcThanh{max-width:1500px;margin:0 auto;display:flex;align-items:center;gap:12px;border-radius:16px;padding:8px 12px}
.kc .kcThuongHieuNho{display:flex;align-items:center;gap:8px;padding-right:8px;flex-shrink:0;cursor:pointer;background:none;border:0;color:inherit;font:inherit}
.kc .kcThuongHieuNho img{width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 0 4px rgba(255,0,40,.95)) drop-shadow(0 0 12px rgba(220,0,30,.7))}
.kc .kcThuongHieuNho span{font:800 24px/1 "Exo 2",sans-serif;letter-spacing:.02em}
.kc .kcThuongHieuNho img{width:46px;height:46px}
.kc .kcThuongHieuNho .kcThChu{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:-4px}
.kc .kcThuongHieuNho .kcThPhu{font:700 9px/1 "Exo 2",sans-serif;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;color:#E9FDFF;text-shadow:0 0 6px rgba(94,235,255,.8),0 0 14px rgba(56,189,248,.45);transition:text-shadow .3s}
.kc .kcThuongHieuNho:hover .kcThPhu{text-shadow:0 0 8px rgba(94,235,255,1),0 0 20px rgba(56,189,248,.8)}
@media (max-width:1100px){.kc .kcThuongHieuNho .kcThPhu{font-size:7.5px;letter-spacing:.1em}}
@media (max-width:640px){.kc .kcThuongHieuNho .kcThPhu{display:none}.kc .kcThuongHieuNho .kcThChu{margin-top:0}}
.kc .kcTabs{display:flex;flex:1;gap:4px;overflow-x:auto;margin-left:4px}
.kc .kcTab{position:relative;white-space:nowrap;border-radius:12px;padding:10px 16px;font:500 16px/1.2 "Be Vietnam Pro",sans-serif;color:#E2E8F0;background:transparent;border:0;cursor:pointer;transition:color .3s,text-shadow .3s,background-color .3s}
.kc .kcTab:hover{color:#fff;background:rgba(255,255,255,.06);text-shadow:0 0 10px rgba(186,230,253,.9),0 0 22px rgba(94,235,255,.5)}
.kc .kcTab::after{content:"";position:absolute;left:16px;right:16px;bottom:3px;height:2px;border-radius:2px;background:linear-gradient(90deg,#22D3EE,#5EEBFF,#38BDF8);box-shadow:0 0 8px #5EEBFF,0 0 18px rgba(94,235,255,.7);transform:scaleX(0);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.kc .kcTab:hover::after,.kc .kcTab.on::after{transform:scaleX(1)}
.kc .kcTab.on{color:#CFFAFE;text-shadow:0 0 10px rgba(94,235,255,.95),0 0 26px rgba(56,189,248,.6)}
.kc .kcNutDN{margin-left:auto;border-radius:12px;border:1px solid rgba(103,232,249,.4);background:rgba(103,232,249,.1);padding:10px 16px;font:600 14px "Be Vietnam Pro",sans-serif;color:#CFFAFE;cursor:pointer;transition:.2s}
.kc .kcNutDN:hover{background:rgba(103,232,249,.2);box-shadow:0 0 24px -4px rgba(94,235,255,.8)}
.kc .kcMenu{display:none;margin-left:auto;width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.05);color:#fff;place-items:center;cursor:pointer}
.kc .kcMenuDT{max-width:1500px;margin:8px auto 0;border-radius:16px;padding:8px;display:none;grid-template-columns:1fr 1fr;gap:4px}
.kc .kcMenuDT.mo{display:grid}
.kc .kcMenuDT button{text-align:left;border:0;background:none;color:#E2E8F0;font:16px "Be Vietnam Pro",sans-serif;padding:12px 16px;border-radius:12px;cursor:pointer}
.kc .kcMenuDT button:hover,.kc .kcMenuDT button.on{background:rgba(255,255,255,.1);color:#A5F3FC}
/* bố cục 70/30 */
.kc .kcChinh{flex:1;width:100%;max-width:1500px;margin:0 auto;padding:24px;display:grid;grid-template-columns:7fr 3fr;align-items:center;gap:24px}
.kc .kcTrai{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 120px)}
.kc .kcCot{display:flex;flex-direction:column;align-items:center}
.kc .kcKhoi{position:relative;display:flex;flex-direction:row;align-items:center;gap:12px;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.kc .kcKhoi:hover{transform:scale(1.025)}
.kc .kcLogoHop{position:relative;display:grid;place-items:center;flex-shrink:0;width:176px;height:176px}
.kc .kcQuang{position:absolute;inset:8px;border-radius:50%;background:rgba(185,28,28,.35);filter:blur(40px);opacity:.45;transition:opacity .5s,transform .5s;pointer-events:none}
.kc .kcKhoi:hover .kcQuang{opacity:1;transform:scale(1.25)}
.kc .kcLogo{position:relative;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 4px rgba(255,0,40,.95)) drop-shadow(0 0 14px rgba(230,0,30,.85)) drop-shadow(0 0 40px rgba(200,0,25,.6));animation:kcTho 4s ease-in-out infinite}
@keyframes kcTho{0%,100%{filter:drop-shadow(0 0 4px rgba(255,0,40,.95)) drop-shadow(0 0 14px rgba(230,0,30,.85)) drop-shadow(0 0 40px rgba(200,0,25,.6))}50%{filter:drop-shadow(0 0 6px rgba(255,0,40,1)) drop-shadow(0 0 22px rgba(230,0,30,1)) drop-shadow(0 0 60px rgba(200,0,25,.75))}}
.kc .kcKhoi:hover .kcLogo{animation:none;filter:drop-shadow(0 0 6px rgba(255,0,40,1)) drop-shadow(0 0 24px rgba(235,0,30,1)) drop-shadow(0 0 70px rgba(210,0,25,.9)) drop-shadow(0 0 130px rgba(190,0,20,.6))}
.kc .kcDo{color:#E8001C;text-shadow:0 0 4px rgba(255,0,40,.9),0 0 14px rgba(230,0,30,.85),0 0 34px rgba(200,0,25,.7),0 0 70px rgba(180,0,20,.5);animation:kcChuTho 4s ease-in-out infinite}
@keyframes kcChuTho{0%,100%{text-shadow:0 0 4px rgba(255,0,40,.9),0 0 14px rgba(230,0,30,.85),0 0 34px rgba(200,0,25,.7),0 0 70px rgba(180,0,20,.5)}50%{text-shadow:0 0 6px rgba(255,0,40,1),0 0 20px rgba(230,0,30,1),0 0 48px rgba(200,0,25,.85),0 0 100px rgba(180,0,20,.6)}}
.kc .kcKhoi:hover .kcDo{animation:none;color:#F5001E;text-shadow:0 0 6px rgba(255,0,40,1),0 0 22px rgba(235,0,30,1),0 0 56px rgba(210,0,25,.95),0 0 120px rgba(190,0,20,.7)}
.kc .kcTen{margin:0;font:900 8.5rem/.9 "Exo 2",sans-serif;letter-spacing:-.02em}
.kc .kcSlogan{margin:12px 0 0;padding-left:4px;font:700 24px/1.2 "Exo 2",sans-serif;text-transform:uppercase;letter-spacing:.2em;color:#E9FDFF;text-shadow:0 0 1px #fff,0 0 8px rgba(94,235,255,.85),0 0 22px rgba(56,189,248,.6),0 0 44px rgba(56,189,248,.3)}
.kc .kcHat{position:absolute;inset:0;pointer-events:none}
.kc .kcH{position:absolute;left:0;top:0;width:4px;height:4px;border-radius:50%;pointer-events:none;background:radial-gradient(circle,#FFE5E8 0%,#FF3050 40%,rgba(230,0,30,0) 75%);box-shadow:0 0 6px 1px rgba(235,0,30,.9);animation:kcHatBay var(--t,1s) ease-out forwards}
.kc .kcH.tia{width:10px;height:10px;background:none;box-shadow:none}
.kc .kcH.tia::before,.kc .kcH.tia::after{content:"";position:absolute;left:50%;top:50%;background:#FFD6DC;box-shadow:0 0 6px #E8001C;border-radius:1px;transform:translate(-50%,-50%)}
.kc .kcH.tia::before{width:100%;height:1.5px}.kc .kcH.tia::after{width:1.5px;height:100%}
@keyframes kcHatBay{0%{opacity:0;transform:translate(var(--x0),var(--y0)) scale(.3)}15%{opacity:1}100%{opacity:0;transform:translate(var(--x1),var(--y1)) scale(var(--s,1))}}
.kc .kcTacGia{margin-top:56px;display:inline-flex;flex-direction:column;align-items:center}
.kc .kcVach{margin-bottom:12px;height:1px;width:100%;background:linear-gradient(90deg,transparent,#F1F5F9,transparent);opacity:.5}
.kc .kcTenTG{font:700 24px/1.2 "Exo 2",sans-serif;letter-spacing:.22em;background:linear-gradient(100deg,#C9D4E2 0%,#fff 20%,#E5ECF4 40%,#fff 50%,#BFD0E4 60%,#F4F8FC 80%,#C9D4E2 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:kcBac 5s linear infinite,kcTGSang 3s ease-in-out infinite}
@keyframes kcBac{from{background-position:100% 0}to{background-position:-150% 0}}
@keyframes kcTGSang{0%,100%{filter:drop-shadow(0 0 4px rgba(255,255,255,.7)) drop-shadow(0 0 14px rgba(170,215,255,.55)) drop-shadow(0 0 30px rgba(94,235,255,.25))}50%{filter:drop-shadow(0 0 6px rgba(255,255,255,.95)) drop-shadow(0 0 22px rgba(170,215,255,.85)) drop-shadow(0 0 48px rgba(94,235,255,.45))}}
.kc .kcZalo{margin-top:16px;display:inline-flex;align-items:center;gap:12px;border-radius:12px;border:2px solid rgba(103,232,249,.55);background:rgba(2,6,23,.45);backdrop-filter:blur(12px);padding:6px 16px 6px 6px;font:700 18px "Exo 2",sans-serif;letter-spacing:.12em;color:#fff;box-shadow:0 0 16px -6px rgba(94,235,255,.8);transition:.25s}
.kc .kcZalo:hover{border-color:#A5F3FC;background:rgba(34,211,238,.1);box-shadow:0 0 26px -4px rgba(94,235,255,1)}
.kc .kcZalo i{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;border:1px solid rgba(165,243,252,.6);background:linear-gradient(135deg,rgba(34,211,238,.35),rgba(2,132,199,.3));color:#CFFAFE;box-shadow:inset 0 0 10px rgba(94,235,255,.35)}
/* form */
.kc .kcPhai{display:flex;align-items:center;justify-content:center}
.kc .kcThe{position:relative;width:100%;max-width:448px;border-radius:24px;padding:32px}
.kc .kcThe::before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1px;pointer-events:none;background:linear-gradient(135deg,rgba(94,235,255,.7),rgba(167,139,250,.15) 40%,rgba(255,59,59,.55));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
.kc .kcChe{display:grid;grid-template-columns:1fr 1fr;border-radius:16px;background:rgba(2,6,23,.4);padding:4px;margin-bottom:24px}
.kc .kcChe button{border:0;border-radius:12px;padding:10px;font:600 14px "Be Vietnam Pro",sans-serif;color:#94A3B8;background:none;cursor:pointer;transition:.2s}
.kc .kcChe button:hover{color:#fff}
.kc .kcChe button[aria-selected="true"]{background:rgba(255,255,255,.15);color:#fff;box-shadow:0 0 20px -6px rgba(94,235,255,.7)}
.kc .kcThe h2{margin:0;font:700 24px "Exo 2",sans-serif;color:#fff}
.kc .kcMoTa{margin:4px 0 0;font-size:14px;color:#CBD5E1}
.kc form{margin-top:28px;display:flex;flex-direction:column;gap:20px}
.kc label.kcNhan{display:block;margin-bottom:8px;font-size:14px;font-weight:500;color:#E2E8F0}
.kc .kcDong{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.kc .kcDong label.kcNhan{margin:0}
.kc .kcLink{border:0;background:none;padding:0;font:500 12px "Be Vietnam Pro",sans-serif;color:#A5F3FC;cursor:pointer}
.kc .kcLink:hover{color:#fff}
.kc .kcO{position:relative}
.kc .kcO svg.kcIco{position:absolute;left:18px;top:50%;transform:translateY(-50%);color:#94A3B8;pointer-events:none}
.kc input.kcIn{width:100%;height:56px;border-radius:12px;border:1px solid rgba(255,255,255,.15);background:rgba(2,6,23,.55);padding:0 20px 0 48px;font:16px "Be Vietnam Pro",sans-serif;color:#fff;outline:none;transition:.2s}
.kc input.kcIn.khongIco{padding-left:20px}
.kc input.kcIn::placeholder{color:#64748B}
.kc input.kcIn:focus{border-color:rgba(103,232,249,.7);box-shadow:0 0 0 4px rgba(94,235,255,.15)}
.kc .kcHienMk{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:8px;background:none;color:#94A3B8;cursor:pointer}
.kc .kcHienMk:hover{background:rgba(255,255,255,.1);color:#fff}
.kc .kcNutChinh{position:relative;overflow:hidden;height:56px;width:100%;border:0;border-radius:12px;color:#fff;font:700 16px "Exo 2",sans-serif;text-transform:uppercase;letter-spacing:.15em;cursor:pointer;background:linear-gradient(100deg,#6B0000 0%,#B30000 35%,#FF2A1F 75%,#FF5A3C 100%);background-size:160% 100%;background-position:0 0;transition:background-position .5s,box-shadow .3s,transform .2s;box-shadow:0 8px 24px -10px rgba(255,40,20,.7),inset 0 1px 0 rgba(255,255,255,.25)}
.kc .kcNutChinh:hover,.kc .kcNutChinh:focus-visible,.kc .kcNutChinh:active{background-position:100% 0;outline:none;box-shadow:0 10px 15px -3px rgba(239,68,68,.5),0 4px 6px -4px rgba(239,68,68,.5),0 0 0 1px rgba(255,140,110,.7),0 0 24px rgba(255,60,30,.85),0 0 70px -4px rgba(255,60,30,.9),inset 0 1px 0 rgba(255,255,255,.4)}
.kc .kcNutChinh:hover{transform:translateY(-2px)}
.kc .kcNutChinh::after{content:"";position:absolute;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg);transition:left .7s}
.kc .kcNutChinh:hover::after{left:120%}
.kc .kcNutChinh:disabled{opacity:.6;cursor:wait}
.kc .kcHoac{display:flex;align-items:center;gap:12px;font-size:12px;color:#94A3B8}
.kc .kcHoac::before,.kc .kcHoac::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.15)}
.kc .kcGoogle{display:flex;align-items:center;justify-content:center;gap:12px;height:56px;width:100%;border:0;border-radius:12px;background:#fff;color:#1E293B;font:600 16px "Be Vietnam Pro",sans-serif;cursor:pointer;transition:.2s}
.kc .kcGoogle:hover{background:#F1F5F9;box-shadow:0 0 30px -6px rgba(255,255,255,.7)}
.kc .kcGoogle svg{width:20px;height:20px}
.kc .kcBao{min-height:20px;margin:0;text-align:center;font-size:14px;color:#A5F3FC}
.kc .kcBao.loi{color:#FCA5A5}
.kc .kcDuoi{margin:8px 0 0;text-align:center;font-size:14px;color:#CBD5E1}
.kc .kcDuoi .kcLink{font-size:14px;font-weight:600}
.kc .kcChan{position:relative;z-index:1;padding:0 16px 20px;text-align:center;font-size:12px;color:#94A3B8}
.kc .kcAn{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.kc .kcVao{animation:kcLen .9s cubic-bezier(.2,.7,.2,1) both}
@keyframes kcLen{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media (max-width:1279px){.kc .kcTen{font-size:6rem}.kc .kcLogoHop{width:144px;height:144px}.kc .kcSlogan{font-size:18px}}
@media (max-width:1023px){.kc .kcTabs,.kc .kcNutDN{display:none}.kc .kcMenu{display:grid}.kc .kcChinh{grid-template-columns:1fr;gap:40px;padding:40px 16px}.kc .kcTrai{min-height:0}}
@media (max-width:639px){.kc .kcTen{font-size:3.75rem}.kc .kcLogoHop{width:96px;height:96px}.kc .kcSlogan{font-size:11px;margin-top:8px}.kc .kcTacGia{margin-top:40px}.kc .kcTenTG{font-size:18px}.kc .kcZalo{font-size:16px}.kc .kcThe{padding:24px}.kc .kcMenuDT{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.kc .kcAnh,.kc .kcLogo,.kc .kcDo,.kc .kcTenTG,.kc .kcVao,.kc .kcH{animation:none!important}.kc .kcH{display:none}}

/* ===== style.css part 3 (id="kmMasterCss") — extracted verbatim from index.html ===== */
/* =====================================================================
   KMath — MASTER LAYOUT "VŨ TRỤ" (áp cho mọi Tab sau khi đăng nhập)
   1) Bảng màu  2) Nền  3) Header  4) Thành phần dùng chung
   ===================================================================== */
/* 1) BẢNG MÀU — ghi đè biến của web, mọi công cụ tự đổi theo */
:root,:root[data-theme="dark"],:root[data-theme="light"]{
  --f-ui:"Be Vietnam Pro",system-ui,sans-serif;--f-code:"JetBrains Mono",Consolas,monospace;
  --nen:#050C24;--mat:rgba(10,18,42,.62);--mat2:rgba(16,26,56,.72);--chu:#E2E8F0;--phu:#94A3B8;
  --vien:rgba(148,163,184,.20);--vien2:rgba(148,163,184,.32);--navy:#050C24;
  --vang:#5EEBFF;--vangnhat:rgba(94,235,255,.12);--code:rgba(2,6,18,.72);
  --xanh:#6EE7B7;--xanhnhat:rgba(16,185,129,.15);--do:#FCA5A5;--donhat:rgba(239,68,68,.15);
  --giay:#1F2631;--giayChu:#E6E2D8;--mucCau:#93A9FF;--mucDung:#F0938B;
  --bong:0 1px 2px rgba(0,0,0,.3),0 18px 40px -20px rgba(0,0,0,.8);
  --km-cyan:#5EEBFF;--km-do:#E8001C;color-scheme:dark}
body{background:transparent!important;color:var(--chu);font-family:var(--f-ui)}

/* 2) NỀN: ảnh vũ trụ + kính mờ + phủ tối */
.kmNen{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse 70% 60% at 50% 50%,#0A1A3F 0%,#050C24 55%,#020617 100%)}
.kmNen__anh{position:absolute;inset:4% 3%;background:url("nen-vutru-4k.jpg") center/cover;-webkit-mask-image:radial-gradient(ellipse 52% 52% at 50% 50%,#000 55%,transparent 100%);mask-image:radial-gradient(ellipse 52% 52% at 50% 50%,#000 55%,transparent 100%)}
.kmNen__mo{position:absolute;inset:0;backdrop-filter:blur(10px) saturate(130%);-webkit-backdrop-filter:blur(10px) saturate(130%)}
.kmNen__phu{position:absolute;inset:0;background:linear-gradient(180deg,rgba(2,6,23,.82) 0%,rgba(2,6,23,.64) 30%,rgba(2,6,23,.70) 100%),radial-gradient(ellipse 80% 70% at 50% 40%,transparent 40%,rgba(2,6,23,.6) 100%)}
.kmNen canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.55}

/* 3) HEADER kính mờ dính trên cùng: logo · tab · tài khoản */
header.dau{position:relative;z-index:70;background:none!important;padding:12px clamp(10px,2vw,24px) 0}
header.dau>.khung{max-width:1560px;display:flex!important;flex-wrap:nowrap;align-items:center!important;gap:12px!important;padding:8px 10px 8px 14px!important;border-radius:16px;
  background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.02)),rgba(6,12,32,.6);border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(22px) saturate(160%);-webkit-backdrop-filter:blur(22px) saturate(160%);box-shadow:0 24px 60px -28px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.12)}
header.dau .vach{display:none}
.kmLogoDau{display:flex;align-items:center;gap:8px;flex-shrink:0;padding-right:6px;cursor:default}
.kmLogoDau img{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 0 4px rgba(255,0,40,.95)) drop-shadow(0 0 12px rgba(220,0,30,.7));transition:filter .3s}
.kmLogoDau .kmLogoChu{display:flex;flex-direction:column;align-items:flex-start;line-height:1;margin-top:-4px}
.kmLogoDau .ten{margin:0;font:800 24px/1 "Exo 2",sans-serif!important;color:var(--km-do)!important;text-shadow:0 0 4px rgba(255,0,40,.9),0 0 14px rgba(230,0,30,.85),0 0 32px rgba(200,0,25,.6);transition:text-shadow .3s}
.kmLogoDau .ten b{color:inherit!important;font-weight:inherit}
.kmLogoDau .mota{margin:5px 0 0!important;font:700 9.5px/1 "Exo 2",sans-serif!important;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;color:#E9FDFF!important;text-shadow:0 0 6px rgba(94,235,255,.8),0 0 14px rgba(56,189,248,.45);transition:text-shadow .3s}
.kmLogoDau:hover .mota{text-shadow:0 0 8px rgba(94,235,255,1),0 0 20px rgba(56,189,248,.8)}
.kmLogoDau:hover img{filter:drop-shadow(0 0 6px rgba(255,0,40,1)) drop-shadow(0 0 20px rgba(235,0,30,1)) drop-shadow(0 0 40px rgba(210,0,25,.8))}
.kmLogoDau:hover .ten{text-shadow:0 0 6px rgba(255,0,40,1),0 0 20px rgba(235,0,30,1),0 0 48px rgba(210,0,25,.9)}
header.dau .tabKhung{flex:1;min-width:0;display:flex;justify-content:center}
body:has(#manCongCu[hidden]) header.dau .tabKhung{display:none}
header.dau .tabChinh{margin:0!important;border:0!important;justify-content:flex-start;max-width:100%}
.tabChinh>button{position:relative;border:0!important;border-radius:12px;padding:10px 13px!important;color:#CBD5E1!important;font-weight:500!important;font-size:14.5px!important;transition:color .25s,background-color .25s,text-shadow .25s,box-shadow .25s}
.tabChinh>button small{color:#94A3B8!important}
.tabChinh>button::after{content:"";position:absolute;left:13px;right:13px;bottom:3px;height:2px;border-radius:2px;background:linear-gradient(90deg,#22D3EE,#5EEBFF);box-shadow:0 0 8px #5EEBFF,0 0 18px rgba(94,235,255,.7);transform:scaleX(0);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.tabChinh>button:hover{color:#fff!important;background:rgba(94,235,255,.07);text-shadow:0 0 8px rgba(186,230,253,1),0 0 20px rgba(94,235,255,.75);box-shadow:inset 0 0 0 1px rgba(94,235,255,.25),0 0 22px -6px rgba(94,235,255,.8)}
.tabChinh>button:hover::after{transform:scaleX(.5)}
.tabChinh>button[aria-selected="true"]{color:#ECFEFF!important;background:rgba(94,235,255,.08);text-shadow:0 0 10px rgba(94,235,255,.95),0 0 24px rgba(56,189,248,.55)}
.tabChinh>button[aria-selected="true"]::after{transform:scaleX(1)}
.tabChinh>button:hover .icoTab,.tabChinh>button[aria-selected="true"] .icoTab{color:var(--km-cyan)!important;opacity:1;filter:drop-shadow(0 0 6px var(--km-cyan))}
.tabMenu{background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.02)),rgba(6,12,32,.92)!important;border:1px solid rgba(94,235,255,.22)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:0 30px 60px -20px rgba(0,0,0,.9),0 0 30px -12px rgba(94,235,255,.5)!important}
.tabMenu button .icoTab{color:var(--km-cyan)!important}
.tabMenu button:hover{background:rgba(94,235,255,.08)!important;text-shadow:0 0 10px rgba(94,235,255,.8);box-shadow:inset 0 0 0 1px rgba(94,235,255,.25)}
.tabMenu button[aria-selected="true"]{background:linear-gradient(90deg,rgba(94,235,255,.2),rgba(94,235,255,.05))!important;box-shadow:inset 3px 0 0 var(--km-cyan)!important}
.taiKhoan{flex-shrink:0;margin-left:0!important;gap:8px!important;color:#CBD5E1!important}
.taiKhoan img{width:28px!important;height:28px!important;box-shadow:0 0 0 2px rgba(94,235,255,.35)}
.taiKhoan #emailNd{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.taiKhoan .nut{height:36px;padding:0 12px!important;border-radius:10px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.12)!important;color:#CBD5E1!important}
.taiKhoan #nutThoat:hover{color:#FCA5A5!important;border-color:rgba(248,113,113,.55)!important;box-shadow:0 0 16px -4px rgba(248,113,113,.7)!important}

/* 4) THÀNH PHẦN DÙNG CHUNG */
.khung{max-width:1560px!important}
/* Panel kính */
.oCode,.bang,.cdO,.manHinh,.cuon{border-radius:16px!important;border:1px solid rgba(255,255,255,.12)!important;background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.015) 60%),var(--mat)!important;box-shadow:0 24px 60px -30px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.1);transition:border-color .35s,box-shadow .35s}
.oCode:hover,.bang:hover,.cdO:hover{border-color:rgba(94,235,255,.28)!important;box-shadow:0 24px 60px -30px rgba(0,0,0,.9),0 0 40px -18px rgba(94,235,255,.6),inset 0 1px 0 rgba(255,255,255,.1)}
/* Nút */
.nut{border-radius:10px!important;background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.14)!important;color:var(--chu)!important;transition:transform .2s cubic-bezier(.3,1.6,.5,1),box-shadow .25s,border-color .25s,background-color .25s,text-shadow .25s}
.nut:hover{transform:translateY(-2px);color:#fff!important;border-color:rgba(94,235,255,.7)!important;background:rgba(94,235,255,.10)!important;text-shadow:0 0 10px rgba(94,235,255,.9);box-shadow:0 0 0 1px rgba(94,235,255,.25),0 0 26px -4px rgba(94,235,255,.9)}
.nut:active{transform:translateY(0) scale(.97)}
.nut.chinh,.vt3NutChinh{position:relative;overflow:hidden;border:0!important;color:#fff!important;background:linear-gradient(100deg,#8B0000,#E8001C 45%,#FF5A3C 100%)!important;background-size:170% 100%!important;background-position:0 0!important;
  box-shadow:0 8px 22px -10px rgba(255,40,20,.8),inset 0 1px 0 rgba(255,255,255,.25)!important;transition:background-position .5s,transform .2s cubic-bezier(.3,1.6,.5,1),box-shadow .3s!important}
.nut.chinh:hover,.vt3NutChinh:hover{background-position:100% 0!important;transform:translateY(-2px);text-shadow:none;filter:none;box-shadow:0 10px 15px -3px rgba(239,68,68,.5),0 0 24px rgba(255,60,30,.75),0 0 60px -6px rgba(255,60,30,.8)!important}
/* Ô nhập kiểu console */
input[type=text],input[type=number],input[type=email],input[type=search],input[type=password],input[type=url],input:not([type]),select,textarea{
  background:rgba(2,6,18,.72)!important;color:#C7D7E4!important;border:1px solid rgba(148,163,184,.22)!important;border-radius:10px!important;box-shadow:inset 0 2px 10px rgba(0,0,0,.5);caret-color:var(--km-cyan);transition:border-color .2s,box-shadow .2s}
textarea{color:#CFE7F2!important}
/* Ô kịch bản video: chữ + nền trong suốt để lớp tô màu cú pháp (#vdKBTo) phía sau hiện ra */
#vdKB{background:transparent!important;color:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;caret-color:#5EEBFF!important}
#vdKB::selection{color:transparent!important;background:rgba(94,235,255,.28)!important}
input::placeholder,textarea::placeholder{color:#55657A!important}
input:focus,select:focus,textarea:focus{outline:none!important;border-color:rgba(94,235,255,.6)!important;box-shadow:inset 0 2px 10px rgba(0,0,0,.5),0 0 0 3px rgba(94,235,255,.12),0 0 24px -8px rgba(94,235,255,.7)!important}
#manDangNhap input.kcIn{border-radius:12px!important}
/* Tab con trong từng công cụ: rê vào thì sáng */
#manCongCu [role="tab"]:not(.tabChinh>button):not(.tabMenu button){transition:color .2s,text-shadow .2s,box-shadow .2s,background-color .2s}
#manCongCu [role="tab"]:not(.tabChinh>button):not(.tabMenu button):hover{color:#fff!important;text-shadow:0 0 10px rgba(94,235,255,.85);box-shadow:inset 0 0 0 1px rgba(94,235,255,.3),0 0 20px -6px rgba(94,235,255,.85)}
.nutHD:hover{box-shadow:0 0 0 1px rgba(250,204,21,.5),0 0 22px -4px rgba(250,204,21,.8)!important}
.toast{background:rgba(6,12,32,.92)!important;color:#E2E8F0!important;border:1px solid rgba(94,235,255,.3);box-shadow:0 0 24px -6px rgba(94,235,255,.6);backdrop-filter:blur(12px)}
::selection{background:rgba(94,235,255,.3)}
*{scrollbar-color:rgba(94,235,255,.35) transparent}
/* Màn hình hẹp */
#manCongCu{padding-top:16px}
@media (max-width:1900px){.taiKhoan #emailNd{display:none}}
@media (max-width:1560px) and (min-width:1101px){.kmLogoDau .mota{font-size:8px!important;letter-spacing:.1em}}
@media (max-width:1560px){.tabChinh>button{padding:10px 10px!important;font-size:14px!important}.tabChinh>button small{display:none}}
@media (max-width:1100px){header.dau>.khung{flex-wrap:wrap}header.dau .tabKhung{order:3;flex-basis:100%;justify-content:flex-start}.taiKhoan{margin-left:auto!important}.taiKhoan #emailNd{display:none}}
@media (prefers-reduced-motion:reduce){.nut,.tabChinh>button{transition:none!important}}

/* ===== Menu nổi / dropdown: nền tối ĐẶC, không trong suốt ===== */
.nhDDPanel,.gtMenu,.nhMenuDs,.tuyMenu,.vdChenMenu,.vdStkMenu,.giTimKQ,.hdsd,.the .chon,.tabMenu,dialog,[role="menu"],[role="listbox"]{
  background:#0F172A!important;background-image:none!important;color:#E2E8F0!important;opacity:1!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  border:1px solid rgba(94,235,255,.28)!important;box-shadow:0 24px 60px -12px rgba(0,0,0,.95),0 0 0 1px rgba(0,0,0,.6),0 0 28px -10px rgba(94,235,255,.45)!important}
.nhDDPanel,.gtMenu,.nhMenuDs,.tuyMenu,.vdChenMenu,.vdStkMenu,.giTimKQ,.tabMenu{z-index:1000!important}
.nhDD.mo{z-index:1001!important;position:relative}
.nhLocBar:has(.nhDD.mo),.nhLocBar2:has(.nhDD.mo){position:relative;z-index:1001}
.nhDDItem:hover,.gtMenu button:hover,.nhMenuDs button:hover{background:rgba(94,235,255,.12)!important;color:#fff!important}
.nhDDItem.chon{background:rgba(94,235,255,.18)!important;color:#ECFEFF!important}
select{background-color:#0F172A!important}
select option,select optgroup{background:#0F172A!important;color:#E2E8F0!important}

/* Khung dính (sticky) phải có nền ĐẶC để không lộ nội dung cuộn phía dưới */
.giBo,.chanHoi,.vdChenTim,.gtBen,.cpHop,.tdPhai{background:#0D1631!important;background-image:none!important}
.tdBangDau{background:#081026!important}

/* ===== style.css part 4 (id="kpadoCss") — extracted verbatim from index.html ===== */
/* ===== K-Pado ===== */
.kp{display:flex;flex-direction:column;gap:14px}
.kp .kpIco{background:linear-gradient(135deg,#E8001C,#7C3AED)!important;color:#fff}
.kp .kpIco svg{fill:none;stroke:currentColor;stroke-width:1.6}
.kpNhan{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 9px;border-radius:999px;margin-left:8px;vertical-align:middle;color:#FDE68A;background:rgba(250,204,21,.12);border:1px solid rgba(250,204,21,.35)}
.kpLuot{font:600 13px var(--f-code,monospace);padding:7px 12px;border-radius:999px;border:1px solid rgba(94,235,255,.35);color:#CFFAFE;background:rgba(94,235,255,.08);white-space:nowrap}
.kpLuot.het{border-color:rgba(248,113,113,.5);color:#FCA5A5;background:rgba(239,68,68,.1)}
.kpChe{align-self:flex-start}
.kpLuoi{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:16px;align-items:start}
.kpVao,.kpRa{display:flex;flex-direction:column;gap:12px;padding:18px!important}
.kpVao [data-o]:not([hidden]){display:flex;flex-direction:column;gap:10px}
.kpChe button[aria-selected="true"]{color:#ECFEFF!important;background:rgba(94,235,255,.12)!important;box-shadow:inset 0 0 0 1px rgba(94,235,255,.35),0 0 18px -6px rgba(94,235,255,.8)}
.kpNhanO{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--phu)}
.kpO{width:100%;min-height:260px;resize:vertical;font:14px/1.7 var(--f-code,monospace);white-space:pre-wrap}
.kpKQ{min-height:420px;white-space:pre}
.kpHang{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.kpHang input[type=text]{flex:1 1 160px}
.kpPhu{font-size:12px;color:var(--phu)}
.kpTha{display:grid;place-items:center;min-height:220px;padding:14px;border-radius:14px;border:2px dashed rgba(94,235,255,.35);background:rgba(2,6,18,.5);cursor:pointer;text-align:center;color:var(--phu);transition:.2s}
.kpTha:hover,.kpTha.keo{border-color:#5EEBFF;box-shadow:0 0 26px -8px rgba(94,235,255,.8);color:#fff}
.kpTha img{max-width:100%;max-height:320px;border-radius:8px;background:#fff}
.kpCongTac{display:flex;flex-wrap:wrap;gap:10px 18px}
.kpVDC{color:#FCD34D}
.kpChay{height:52px;font-size:16px!important;letter-spacing:.04em}
.kpChay.dang{pointer-events:none;opacity:.75}
.kpChay.dang::before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;vertical-align:-2px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:kpXoay .8s linear infinite}
@keyframes kpXoay{to{transform:rotate(360deg)}}
.kpTT{margin:0;min-height:20px;font-size:13px;color:var(--phu)}
.kpTT.loi{color:#FCA5A5}
.kpRaDau{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.kpBC{font-size:12.5px;color:var(--phu)}
.kpBC b{color:#6EE7B7}
.kpTrang{min-height:420px;max-height:70vh;overflow:auto;border-radius:12px;background:var(--giay,#fff);color:var(--giayChu,#111);padding:18px 22px}
.kpTrang.kpPdf{background:#525659;padding:0;display:flex;flex-direction:column;max-height:76vh}
.kpPdfThanh{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px;background:#323639;border-bottom:1px solid #1f2224}
.kpPdfThanh .vdNutNho{min-width:34px}.kpZoom{min-width:86px;text-align:center;color:#e8eaed;font:600 13px/1 system-ui}
.kpPdfVung{flex:1;overflow:auto;padding:18px 12px}
.kpGiay{width:794px;min-height:1123px;margin:0 auto;background:#fff;color:#111;padding:60px 64px;box-shadow:0 2px 12px rgba(0,0,0,.45);box-sizing:border-box}
.kpIDNhan{display:inline-block;margin:0 0 6px;padding:2px 9px;border-radius:5px;background:#E8F0FE;color:#1A56DB;border:1px solid #9DB8F2;font:700 12.5px/1.5 ui-monospace,Consolas,monospace;letter-spacing:.3px}
.kpIDNhan.chua{background:#FEF3C7;color:#92400E;border-color:#FCD34D}
.kpGiay article.cau>.kpIDNhan{display:block;width:max-content}
.kpTrong{margin:150px 0;text-align:center;color:var(--phu);font-size:14px}
.kpNutRa{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:1000px){.kpLuoi{grid-template-columns:1fr}}

/* ===== style.css part 5 (block 5) — extracted verbatim from index.html ===== */
.nhieuFile{margin:12px 0;padding:12px 14px;border:1px dashed var(--vien,#c9d2e0);border-radius:12px}
				.nhieuFile .nfDau{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;justify-content:space-between}
				.nhieuFile .nfDau span{font-size:13px;opacity:.8}
				.nhieuFile .nfNut{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
				.nhieuFile .nfDs{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px}
				.nhieuFile .nfDong{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:7px 10px;border-radius:9px;background:rgba(127,127,127,.08)}
				.nhieuFile .nfDong .ma{font-weight:700;margin-right:auto;word-break:break-all}
				.nhieuFile .nfNut2{display:flex;gap:6px}

/* ===== Vẽ hình theo mẫu — ô nhập trực quan (24/11/2026): Trục số, Bảng xét dấu, ẩn/hiện ô theo lựa chọn ===== */
.vmForm .vhTruong [hidden]{display:none!important}
.vmForm .vhTruong > .vhKhoi{display:block;min-width:0}
.tsKhoi,.xdKhoi{display:grid;gap:10px}
.tsDau{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tsDau > b{font-size:12.5px;font-weight:700;color:var(--vt-chu);letter-spacing:.2px}
.vmForm .tsNutNho{height:30px;padding:0 11px;font-size:12.5px;border-radius:8px}
.tsDsTap{display:grid;gap:8px}
.tsThe{display:grid;gap:7px;padding:10px 11px;border:1px solid var(--vt-vien);border-radius:12px;background:var(--vt-acNhat,rgba(94,235,255,.06))}
.tsTheDau{display:flex;align-items:center;gap:8px;min-width:0}
.vmForm .vhTruong input.tsTen{width:46px!important;height:30px!important;padding:0 6px!important;text-align:center;font-family:"Times New Roman",serif;font-style:italic;font-weight:700;font-size:16px!important}
.tsBang{color:var(--vt-phu);font-weight:700}
.tsXem{flex:1;min-width:0;font-size:15px;color:var(--vt-chu);overflow-x:auto;white-space:nowrap}
.tsXem.loi,.tsKQ.loi{color:#FCA5A5;font-size:12.5px}
.tsKhoang{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.vmForm .vhTruong .tsKhoang select{width:auto!important;min-width:132px;flex:0 0 auto}
.tsBieu{display:inline-flex;align-items:center;gap:4px;flex:1 1 230px;min-width:0}
.tsNgoac,.tsCham{font-family:"Times New Roman",serif;font-size:21px;font-weight:400;color:var(--vt-ac);line-height:1;user-select:none}
.tsCham{font-size:17px;color:var(--vt-phu)}
.tsO{display:inline-flex;align-items:center;gap:3px;flex:1 1 0;min-width:0}
.vmForm .vhTruong .tsO input{min-width:52px;height:32px!important;text-align:center;font-family:"JetBrains Mono",Consolas,monospace;font-size:13px!important}
.vmForm .vhTruong .tsO input:disabled{opacity:1;color:var(--vt-ac)!important;font-family:"Times New Roman",serif;font-size:16px!important}
.tsVC{flex:none;height:28px;min-width:34px;padding:0 6px;border:1px solid var(--vt-vien);border-radius:8px;background:none;color:var(--vt-phu);font:600 12.5px/1 "Times New Roman",serif;cursor:pointer;white-space:nowrap}
.tsVC:hover{border-color:var(--vt-ac);color:var(--vt-chu)}
.tsVC[aria-pressed="true"]{color:#ECFEFF;background:var(--vt-acNhat);border-color:var(--vt-ac);box-shadow:0 0 14px -6px var(--vt-ac)}
.tsXoa{flex:none;width:26px;height:26px;border:0;border-radius:7px;background:none;color:var(--vt-phu);font-size:13px;cursor:pointer;display:grid;place-items:center}
.tsXoa:hover{color:#FCA5A5;background:rgba(248,113,113,.12)}
.tsHop{font-family:"Times New Roman",serif;font-size:16px;color:var(--vt-phu);padding-left:6px}
.tsThem{justify-self:start;height:26px;padding:0 10px;border:1px dashed var(--vt-vien);border-radius:8px;background:none;color:var(--vt-phu);font:inherit;font-size:12px;cursor:pointer}
.tsThem:hover{border-color:var(--vt-ac);color:var(--vt-chu)}
.tsPhep{display:grid;gap:8px;padding:10px 11px;border:1px solid var(--vt-vien);border-radius:12px}
.tsPhepHang{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tsPhepHang label{display:flex!important;align-items:center;gap:8px}
.vmForm .vhTruong .tsPhepHang select{width:auto!important;min-width:70px;font-family:"Times New Roman",serif;font-style:italic;font-size:15px!important}
.tsC{font-family:"Times New Roman",serif;font-size:19px;color:var(--vt-chu);margin-right:-6px}
.vmForm .vhTruong .tsPhepHang select.tsChiSo{min-width:58px;height:28px!important;font-size:13px!important;align-self:flex-end}
.tsOp button{min-width:34px;font-family:"Times New Roman",serif!important;font-size:16px!important}
.vmForm .vhTruong label.tsBat{display:flex!important;align-items:center;gap:8px;font-size:12.5px;color:var(--vt-chu);font-weight:500}
.tsBat input{width:16px;height:16px;accent-color:var(--vt-ac)}
.tsKQ{margin:0;font-size:15px;color:var(--vt-chu);padding:6px 10px;border-radius:9px;background:var(--vt-nen2);min-height:1.4em;overflow-x:auto}
/* bảng xét dấu (bố cục dọc: hàng = mốc / khoảng, cột = biểu thức) */
.xdCuon{overflow-x:auto;border:1px solid var(--vt-vien);border-radius:12px;padding:4px 6px}
.xdBang{border-collapse:collapse;width:100%}
.xdBang th,.xdBang td{padding:4px 4px;text-align:center;vertical-align:middle}
.xdBang thead th{border-bottom:1px solid var(--vt-vien);font-weight:400;vertical-align:bottom;padding-bottom:7px}
.xdBang tbody th{border-right:1px solid var(--vt-vien);padding-right:8px;font-weight:400}
.xdCotX{border-right:1px solid var(--vt-vien);font-family:"Times New Roman",serif;font-size:17px;color:var(--vt-chu)}
.xdCotThem{width:30px}
.xdHangKhe th,.xdHangKhe td{padding-top:1px;padding-bottom:1px}
.xdO{display:flex;align-items:center;gap:4px;justify-content:flex-start}
.vmForm .vhTruong .xdO input{width:86px!important;height:32px!important;padding:0 4px!important;text-align:center;font-family:"JetBrains Mono",Consolas,monospace;font-size:13px!important}
.vmForm .vhTruong .xdO input:disabled{opacity:1;color:var(--vt-ac)!important;font-family:"Times New Roman",serif;font-size:16px!important}
.vmForm .vhTruong .xdO input.sai{border-color:#F87171!important}
.xdO .tsXoa{width:22px;height:22px;font-size:11px}
.xdXem{font-size:13px;color:var(--vt-chu);margin-top:2px;text-align:left;padding-left:4px}
.xdXem:empty{display:none}
.xdThem{width:24px;height:24px;border:1px dashed var(--vt-vien);border-radius:50%;background:none;color:var(--vt-phu);font-size:13px;line-height:1;cursor:pointer;padding:0}
.xdThem:hover{border-color:var(--vt-ac);color:var(--vt-ac);border-style:solid}
.vmForm .vhTruong .xdTen input{width:84px!important;height:30px!important;padding:0 6px!important;font-family:"Times New Roman",serif;font-style:italic;font-size:15px!important;text-align:center}
.xdNutDong{display:flex;gap:2px;justify-content:center;margin-top:4px}
.xdNutDong .tsVC{height:22px;font:600 11px/1 var(--f-ui,sans-serif);padding:0 6px}
.xdNutDong .tsXoa{width:22px;height:22px;font-size:11px}
.xdDau{width:40px;height:28px;border:1px solid var(--vt-vien);border-radius:8px;background:var(--vt-nen2);color:var(--vt-chu);font:600 17px/1 "Times New Roman",serif;cursor:pointer;padding:0}
.xdDau:hover:not(:disabled){border-color:var(--vt-ac);box-shadow:0 0 12px -5px var(--vt-ac)}
.xdDau.trong{color:var(--vt-phu);opacity:.55}
.xdDau:disabled{border-style:dashed;opacity:.3;cursor:default}
.xdDauMoc{width:28px;height:28px;border-radius:50%}
.xdChan{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.xdGoi{font-size:11.5px;color:var(--vt-phu);line-height:1.45}
/* ô nút chọn (segmented) và ô xếp 3 trên một hàng — 24/11/2026 (lần 3) */
#vhTruong [hidden],#vhTruong > label[hidden],#vhTruong > div[hidden]{display:none!important}
.vmForm .vhTruong > .o2{grid-column:span 2}
.vmForm .vhTruong > .o2.dauHang{grid-column:1 / span 2}
.vmForm .vhTruong > .vhNutChon{display:grid;gap:5px;min-width:0}
.vmForm .vhTruong > .vhNutChon > span{font-size:12.5px;color:var(--vt-phu);font-weight:500}
.vmForm .vhTruong > .vhNutChon .tuyDoan{display:flex;flex-wrap:wrap;gap:3px;justify-self:start;max-width:100%}
.vmForm .vhTruong > .vhNutChon .tuyDoan button{white-space:nowrap}
/* bảng kí hiệu + danh sách hàm (miền giới hạn) + bảng điểm (đồ thị qua điểm) */
.dtKhoi{display:grid;gap:9px}
.khBan{display:flex;flex-wrap:wrap;gap:4px;padding:7px;border:1px solid var(--vt-vien);border-radius:11px;background:var(--vt-nen2)}
.khBan button{min-width:34px;height:28px;padding:0 7px;border:1px solid var(--vt-vien);border-radius:7px;background:none;color:var(--vt-chu);font:600 13px/1 "Times New Roman",serif;cursor:pointer}
.khBan button:hover{border-color:var(--vt-ac);color:var(--vt-ac);box-shadow:0 0 10px -5px var(--vt-ac)}
.dtDs{display:grid;gap:7px}
.dtDong{display:grid;grid-template-columns:auto minmax(0,1fr) 74px 26px;gap:6px;align-items:center;padding:7px 8px;border:1px solid var(--vt-vien);border-radius:11px}
.dtTen{font-family:"Times New Roman",serif;font-size:15px;color:var(--vt-chu);white-space:nowrap}
.vmForm .vhTruong .dtDong input{height:32px!important}
.vmForm .vhTruong .dtDong input.dtHam{font-family:"JetBrains Mono",Consolas,monospace;font-size:13px!important}
.vmForm .vhTruong .dtDong input.dtNhan{font-family:"Times New Roman",serif;font-style:italic;text-align:center}
.dtXem{grid-column:1 / -1;font-size:14px;color:var(--vt-chu);min-height:0;overflow-x:auto}
.dtXem:empty{display:none}
.dtXem .loi{color:#FCA5A5;font-size:12px}
.dtGhi{font-size:12px;color:var(--vt-phu)}
.ddBang{display:grid;gap:5px}
.ddDau,.ddDong{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto 26px;gap:6px;align-items:center}
.ddDau span{font-size:11.5px;color:var(--vt-phu);text-align:center;font-family:"Times New Roman",serif;font-style:italic}
.ddDau span:nth-child(3){font-family:inherit;font-style:normal}
.vmForm .vhTruong .ddDong input{height:32px!important;text-align:center;font-family:"JetBrains Mono",Consolas,monospace;font-size:13px!important}
.ddLoai button{padding:0 8px;font-size:12px}
.dtMien{display:flex;flex-direction:column;gap:5px}
.dtMien:empty{display:none}
.dtMienNut{display:flex;align-items:center;gap:8px;text-align:left;padding:6px 9px;border:1px solid var(--vt-vien);border-radius:9px;background:none;color:var(--vt-phu);font:inherit;font-size:12px;cursor:pointer}
.dtMienNut b{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:var(--vt-nen2);color:var(--vt-phu);font-size:11.5px;flex:none}
.dtMienNut[aria-pressed="true"]{color:var(--vt-chu);border-color:var(--vt-ac);background:var(--vt-acNhat)}
.dtMienNut[aria-pressed="true"] b{background:var(--vt-ac);color:#04121f}
/* bảng biến thiên nhập trực quan */
.btBan{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px}
.btBan .dtGhi{flex:1 1 100%}
.btBang td{vertical-align:middle}
.btBang .btCotD{width:40px}
.btGt{display:flex;align-items:center;gap:4px;min-width:0}
.btGt input{flex:1 1 0;min-width:0;width:100%}
.btGt.hai input{text-align:center}
.btVach{flex:none;font-weight:700;color:var(--vt-ac);font-size:15px;line-height:1}
.btMui{color:var(--vt-phu);font-size:15px;text-align:center}
/* ===== \immini: chữ trái – hình phải, hẹp màn hình xếp dọc (dùng chung mọi bản xem đề) ===== */
.immini{display:flex;gap:18px;align-items:flex-start;margin:6px 0}
.immini .imChu{flex:1 1 auto;min-width:0}
.immini .imHinh{flex:0 0 auto;max-width:42%;text-align:center}
.immini .imHinh img{max-width:100%;height:auto}
@media(max-width:640px){.immini{flex-direction:column;gap:10px}.immini .imHinh{max-width:100%;align-self:center}}
/* ===== xem lại bài thi: bảng tổng, thẻ so sánh đáp án, hộp lời giải ===== */
.xlTong{background:#0f1c30;border:1px solid #22395a;border-radius:16px;padding:16px 18px;margin:0 0 18px;display:grid;grid-template-columns:auto 1fr;gap:12px 22px;align-items:start;color:#cfe0f7}
.xlDiem{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:96px;padding:10px 12px;border-radius:14px;background:linear-gradient(140deg,#16325a,#0f2240);border:1px solid #2a4a78}
.xlDiem b{font:900 30px/1 "Be Vietnam Pro",sans-serif;color:#f5b301}
.xlDiem span{font-size:11.5px;color:#9fc0ea;margin-top:4px;font-weight:700}
.xlBan{display:flex;flex-direction:column;gap:10px;min-width:0}
.xlNhom{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.xlNhomTen{font:800 12px "Be Vietnam Pro",sans-serif;padding:4px 11px;border-radius:99px;color:#fff;min-width:96px;text-align:center}
.xlNhomTen.xanh{background:#2f6fed}.xlNhomTen.luc{background:#139a66}.xlNhomTen.cam{background:#d17c00}.xlNhomTen.tim{background:#6d5ae6}
.xlChip{display:flex;flex-wrap:wrap;gap:6px}
.xlChip button{width:32px;height:32px;border-radius:9px;border:1.5px solid transparent;font:800 13px "Be Vietnam Pro",sans-serif;cursor:pointer;color:#fff;background:#3a4a63;transition:transform .12s}
.xlChip button:hover{transform:translateY(-1px)}
.xlChip button.d{background:#139a66}.xlChip button.s{background:#c8384c}.xlChip button.p{background:#d79a00}.xlChip button.chua{background:transparent;border-color:#4a5d7a;color:#9fb3cf}.xlChip button.tay{background:#6d5ae6}
.xlLoc{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12.5px;border-top:1px solid #22395a;padding-top:10px}
.xlChu{display:flex;align-items:center;gap:6px;color:#9fb3cf;font-weight:600}
.xlChu i{width:11px;height:11px;border-radius:3px;display:inline-block;margin-left:8px}
.xlChu i:first-child{margin-left:0}
.xlChu i.d{background:#139a66}.xlChu i.p{background:#d79a00}.xlChu i.s{background:#c8384c}.xlChu i.chua{border:1.5px solid #4a5d7a}
.xlLoc label{display:flex;align-items:center;gap:7px;font-weight:700;color:#cfe0f7;cursor:pointer}
.xlLoc input{accent-color:#f5b301;width:16px;height:16px}
@media(max-width:620px){.xlTong{grid-template-columns:1fr}.xlDiem{flex-direction:row;gap:8px;justify-content:flex-start}}
#thiXLDs.chiSai .thiXL.kq-d{display:none}
.thiCau.thiXL{border-left:5px solid #c9d3e2;scroll-margin-top:14px}
.thiCau.thiXL.kq-d{border-left-color:#2fcf8f}.thiCau.thiXL.kq-s{border-left-color:#e5485f}.thiCau.thiXL.kq-p{border-left-color:#f5b301}.thiCau.thiXL.kq-chua{border-left-color:#9aa7bd}.thiCau.thiXL.kq-tay{border-left-color:#8b7cf0}
.thiKQCau .tt.c{background:#eef1f6;color:#56657d}
.thiKQCau .xlD{margin-left:auto;font:800 13px "Be Vietnam Pro",sans-serif;color:#16233a;background:#f2f5fa;padding:4px 12px;border-radius:99px}
/* đánh dấu lựa chọn của thí sinh ngay trên đề */
.thiCau.thiXL .thiDe .pa > div{position:relative}
.thiCau.thiXL .thiDe .pa > div.hsSai{border-color:#e5485f;background:#fdeef0}
.thiCau.thiXL .thiDe .pa > div.hsChon:not(.hsSai){box-shadow:0 0 0 2px #2fcf8f inset}
.thiCau.thiXL .thiDe .hsNhan{display:inline-block;margin-left:10px;font:800 11px "Be Vietnam Pro",sans-serif;padding:3px 9px;border-radius:99px;background:#102a43;color:#fff;vertical-align:middle;white-space:nowrap}
.thiCau.thiXL .thiDe .pa > div.hsSai .hsNhan{background:#c8384c}
.thiCau.thiXL .thiDe .pa > div.dung .hsNhan{background:#139a66}
.thiCau.thiXL .thiDe .ds .hsNhan{margin-left:8px;flex:none}
.thiCau.thiXL .thiDe .ds .hsNhan.d{background:#e6f9f0;color:#13794f}
.thiCau.thiXL .thiDe .ds .hsNhan.s{background:#fdeaed;color:#b3293c}
.thiCau.thiXL .thiDe .ds .hsNhan.chua{background:#eef1f6;color:#56657d}
.thiCau.thiXL .thiDe .ds .dS{margin-left:auto}
/* hộp so sánh: bài làm ↔ đáp án */
.xlSoSanh{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;margin-top:14px;padding-top:14px;border-top:1px dashed #dfe5ee;font-family:"Be Vietnam Pro",sans-serif}
.xlO{display:flex;flex-direction:column;gap:2px;min-width:130px;padding:9px 16px;border-radius:12px;border:1.5px solid #e3e8f0;background:#f8fafd}
.xlO > span{font-size:11.5px;font-weight:700;color:#5a7290;text-transform:uppercase;letter-spacing:.4px}
.xlO b{font-size:19px;color:#16233a;font-family:"Source Serif 4",Georgia,serif}
.xlO.d{border-color:#2fcf8f;background:#eafaf1}.xlO.d b{color:#13794f}
.xlO.s{border-color:#e5485f;background:#fdeef0}.xlO.s b{color:#b3293c}
.xlO.chua b{color:#8a97ab}
.xlO.dung{border-color:#2fcf8f;background:#fff}.xlO.dung b{color:#13794f}
.xlBangDS{border-collapse:separate;border-spacing:4px;font-size:13.5px}
.xlBangDS th{font-weight:800;color:#5a7290;padding:2px 8px;text-align:right;white-space:nowrap}
.xlBangDS tr:first-child th{text-align:center}
.xlBangDS td{width:38px;height:32px;text-align:center;border-radius:8px;font-weight:800;background:#f2f5fa;color:#16233a}
.xlBangDS td.d{background:#e6f9f0;color:#13794f}.xlBangDS td.s{background:#fdeaed;color:#b3293c}.xlBangDS td.chua{color:#8a97ab}
.xlBangDS td.dung{background:#fff;border:1.5px solid #2fcf8f;color:#13794f}
.xlGhi{align-self:center;font-size:13px;font-weight:700;color:#5a7290}
.xlLG{margin-top:14px;padding:14px 18px;border-radius:14px;background:#f4f8ff;border:1px solid #d6e3fb;border-left:4px solid #2f6fed;font-family:"Source Serif 4",Charter,Georgia,serif;font-size:16.5px;line-height:1.7;color:#16233a}
.xlLGTen{font:800 13px "Be Vietnam Pro",sans-serif;color:#2f6fed;text-transform:uppercase;letter-spacing:.6px;margin-bottom:6px}
.xlLG .giua{text-align:center;margin:10px 0}
.xlLG .hienThi{display:block;text-align:center;margin:8px 0;overflow-x:auto}
@media(max-width:620px){.thiCau.thiXL{padding:16px 14px}.xlO{min-width:0;flex:1 1 40%}}

/* ===== Tab Trộn đề thi (#tabTronDe) — 24/11/2026 ===== */
.trdIco { background: linear-gradient(135deg, #b4f1ff, #3fb7e8); } .trdIco svg { stroke: #062b3d; }
#tabTronDe .trdTha { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px; border: 1.5px dashed var(--vien, #c9d3e0); border-radius: 14px; background: var(--mat2, rgba(16,26,56,.72)); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
#tabTronDe .trdTha:hover, #tabTronDe .trdTha.keo { border-color: var(--vang, #5EEBFF); background: rgba(94,235,255,.07); }
#tabTronDe .trdTha.co { padding: 12px 16px; }
#tabTronDe .trdTha svg { width: 30px; height: 30px; fill: none; stroke: var(--vang, #5EEBFF); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#tabTronDe .trdTha b { font-size: 14px; color: var(--chu); } #tabTronDe .trdTha span { font-size: 12.5px; color: var(--phu); line-height: 1.5; max-width: 520px; }
#tabTronDe .trdChonDe { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--phu); } #tabTronDe .trdChonDe select { flex: 1; min-width: 0; }
#tabTronDe .trdHuy { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
#tabTronDe .trdBadge { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--chu); background: rgba(148,163,184,.14); border: 1px solid var(--vien); }
#tabTronDe .trdBadge b { font-size: 15px; } #tabTronDe .trdBadge.t-tn b { color: #7dd3fc; } #tabTronDe .trdBadge.t-ds b { color: #6EE7B7; } #tabTronDe .trdBadge.t-tln b { color: #fdba74; } #tabTronDe .trdBadge.t-tl b { color: #c4b5fd; } #tabTronDe .trdBadge.tong { border-color: var(--vang, #5EEBFF); }
#tabTronDe .trdPhanDs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#tabTronDe .trdPhanTen { font-size: 12px; font-weight: 700; color: var(--phu); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tabTronDe .trdCauDs { display: flex; flex-wrap: wrap; gap: 4px; }
#tabTronDe .trdC { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 7px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--chu); background: rgba(148,163,184,.12); border: 1px solid var(--vien); cursor: default; }
#tabTronDe .trdC i { font-style: normal; font-weight: 800; color: var(--xanh, #6EE7B7); }
#tabTronDe .trdC.khoa { border-color: rgba(253,186,116,.55); } #tabTronDe .trdC.khoa::after { content: "🔒"; font-size: 10px; }
#tabTronDe .trdC.thieu i { color: var(--do, #FCA5A5); }
#tabTronDe .trdCB { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; line-height: 1.5; }
#tabTronDe .trdCB li { padding: 7px 10px; border-radius: 9px; border: 1px solid var(--vien); background: rgba(148,163,184,.08); color: var(--chu); }
#tabTronDe .trdCB li.loi { border-color: rgba(252,165,165,.6); background: rgba(252,165,165,.10); } #tabTronDe .trdCB li.canh { color: var(--phu); } #tabTronDe .trdCB li.khoa { border-color: rgba(253,186,116,.45); }
#tabTronDe .trdNhom { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--vien); } #tabTronDe .trdNhom:first-of-type { border-top: 0; padding-top: 0; }
#tabTronDe .trdNhom.mo { opacity: .45; }
#tabTronDe .trdNhan { font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--vang, #5EEBFF); }
#tabTronDe .trdHang { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 13px; color: var(--phu); } #tabTronDe .trdHang > span { min-width: 132px; }
#tabTronDe .trdSo { width: 74px; }
#tabTronDe .trdMaDs { display: flex; flex-wrap: wrap; gap: 6px; }
#tabTronDe .trdMa { display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 8px; border-radius: 10px; border: 1px solid var(--vien); background: var(--mat2); }
#tabTronDe .trdMa small { font-size: 10.5px; color: var(--phu); font-weight: 700; }
#tabTronDe .trdMa input { width: 58px; height: 28px; border: 0; border-radius: 7px; background: rgba(148,163,184,.12); color: var(--chu); font: 700 15px var(--f-code, monospace); letter-spacing: .12em; text-align: center; outline: none; }
#tabTronDe .trdMa input:focus { box-shadow: 0 0 0 2px var(--vang, #5EEBFF); }
#tabTronDe .trdMa.sai { border-color: rgba(252,165,165,.8); } #tabTronDe .trdMa.sai input { color: var(--do, #FCA5A5); }
#tabTronDe .trdLoi { color: var(--do, #FCA5A5) !important; }
#tabTronDe .trdMaXem { display: flex; flex-wrap: wrap; gap: 5px; }
#tabTronDe .trdMaXem button { height: 30px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--vien); background: none; color: var(--phu); font: 700 13px var(--f-code, monospace); letter-spacing: .08em; cursor: pointer; }
#tabTronDe .trdMaXem button[aria-selected="true"] { background: var(--vang, #5EEBFF); border-color: var(--vang, #5EEBFF); color: #062b3d; }
#tabTronDe .trdMaXem button.hong { border-color: rgba(252,165,165,.8); color: var(--do, #FCA5A5); }
#tabTronDe .trdXT > div { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
#tabTronDe .trdXTOk { border: 1px solid rgba(110,231,183,.5); background: rgba(110,231,183,.10); color: var(--chu); }
#tabTronDe .trdXTOk svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--xanh, #6EE7B7); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#tabTronDe .trdXTHong { display: block !important; border: 1px solid rgba(252,165,165,.6); background: rgba(252,165,165,.10); color: var(--chu); } #tabTronDe .trdXTHong ul { margin: 6px 0 0; padding-left: 18px; }
#tabTronDe .trdBang { display: grid; gap: 14px; max-height: 62vh; overflow: auto; }
#tabTronDe .trdPhanXem table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
#tabTronDe .trdPhanXem th { position: sticky; top: 0; background: var(--mat2); color: var(--phu); font-weight: 700; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--vien); white-space: nowrap; }
#tabTronDe .trdPhanXem td { padding: 6px 8px; border-bottom: 1px solid var(--vien); color: var(--chu); vertical-align: top; }
#tabTronDe .trdPhanXem td.da { font-weight: 800; color: var(--xanh, #6EE7B7); white-space: nowrap; } #tabTronDe .trdPhanXem td.da small { font-weight: 600; color: var(--phu); }
#tabTronDe .trdPhanXem td.pa { font-family: var(--f-code, monospace); color: var(--phu); white-space: nowrap; }
#tabTronDe .trdPhanXem td.nd { color: var(--phu); max-width: 360px; }
#tabTronDe .trdGiay { max-height: 66vh; overflow: auto; }
/* Trộn đề thi — ③ Mẫu đề & xuất bản (24/11/2026, bản u) */
#tabTronDe .trdMeta { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
#tabTronDe .trdO { display: grid; gap: 3px; font-size: 12px; color: var(--phu); } #tabTronDe .trdO.an { display: none; } #tabTronDe .trdO .mdO { height: 32px; padding: 0 9px; font-size: 13px; }
#tabTronDe .trdMauTen { min-width: 0 !important; flex: 1; font-size: 12.5px; color: var(--chu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tabTronDe .trdPhieuChon { min-width: 210px; height: 32px; }
#tabTronDe .trdApp { align-items: flex-start; } #tabTronDe .trdApp > span { min-width: 60px !important; padding-top: 5px; } #tabTronDe .trdApp .txChips { display: flex; flex-wrap: wrap; gap: 4px 12px; flex: 1; }
#tabTronDe #trdTexHop { display: grid; gap: 8px; } #tabTronDe #trdTexHop[hidden] { display: none; }
#tabTronDe .trdGiay { max-height: 70vh; overflow: auto; }


/* Đợt B: cầu nối pdflatex */
.ptCauNoi { align-items: center; gap: 6px; flex-wrap: wrap; }
.ptUrlCau { flex: 1 1 180px; min-width: 140px; font-family: var(--f-code); font-size: 12px; padding: 4px 6px; }
.ptDen { width: 12px; height: 12px; border-radius: 50%; background: #9aa0a6; display: inline-block; flex: none; }
.ptDen[data-tt="ok"] { background: #1fa34a; box-shadow: 0 0 6px #1fa34a; }
.ptKiemChung { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.ptNhanSach { background: #e6f6ec; color: #11692f; border: 1px solid #1fa34a; border-radius: 6px; padding: 6px 10px; font-weight: 600; }
.ptNhanSach[hidden], .ptDsLoi[hidden] { display: none; }
.ptNhanSach.loi { background: #fdecea; color: #a12622; border-color: #d9534f; }
.ptDsLoi { max-height: 160px; overflow: auto; border-left-color: #d9534f; }
.ptDsLoi li { cursor: pointer; }
#ptTaiZip.sang { box-shadow: 0 0 0 3px rgba(31,163,74,.45); }

/* 20.0: AI web — chế độ 1–3 trang ảnh / lô lớn (1 tệp PDF 10–20 trang); tuỳ chọn TikZ thuần */
.awCheDo { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.awCheDo label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--vien); border-radius: 999px; cursor: pointer; font-size: 13px; background: var(--mat); }
.awCheDo label:has(input:checked) { border-color: currentColor; font-weight: 600; }
.awCheDo label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.awKhoang label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.awKhoang input[type=number] { width: 4.5em; padding: 4px 6px; border: 1px solid var(--vien); border-radius: 6px; background: var(--mat); color: var(--chu); font: inherit; }
.awKhoang select { padding: 4px 6px; border: 1px solid var(--vien); border-radius: 6px; background: var(--mat); color: var(--chu); font: inherit; }
.awGhi { margin: 6px 0 0; font-size: 12.5px; color: var(--phu); }
.awNhip .nut { white-space: normal; text-align: left; }
.chonAI { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.chonAI input { margin-top: 3px; flex: none; }

/* 20.5: cảnh báo AI bỏ sót câu khi dán nhịp (hộp vàng) + gợi ý số trang/nhịp */
.awThieu { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid #e0b100; border-left-width: 4px; border-radius: 8px; background: #fff7d1; color: #5a4300; font-size: 13.5px; }
.awThieu p { margin: 0 0 8px; }
.awThieu[hidden] { display: none; }
.awGoiY { margin-top: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .awThieu { background: #3a3000; color: #ffe08a; border-color: #b38f00; } }
:root[data-theme="dark"] .awThieu { background: #3a3000; color: #ffe08a; border-color: #b38f00; }
/* 20.7: loại tài liệu (Đề thi / Đề cương / Văn bản) — thẻ gạt ngang ở tab PDF/Ảnh → LaTeX và trong hộp AI web */
.loaiTL { display: grid; gap: 6px; margin: 0 0 12px; }
.loaiTLNhan { font-size: 12.5px; font-weight: 600; color: var(--phu); }
.loaiTLHang { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--vien); border-radius: 12px; background: var(--code); }
.loaiThe { position: relative; cursor: pointer; min-width: 0; }
.loaiThe input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.loaiThe > span { display: grid; gap: 1px; padding: 8px 10px; border-radius: 9px; text-align: center; color: var(--phu); border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.loaiThe b { font-size: 13.5px; font-weight: 600; }
.loaiThe small { font-size: 11.5px; line-height: 1.3; opacity: .85; overflow: hidden; text-overflow: ellipsis; }
.loaiThe:hover > span { color: var(--chu); }
.loaiThe input:checked + span { background: var(--mat); color: var(--chu); border-color: var(--vang); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.loaiThe input:checked + span b { font-weight: 700; }
.loaiThe input:focus-visible + span { outline: 2px solid var(--vang); outline-offset: 1px; }
.loaiTLGon { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; }
.loaiTLGon .loaiThe > span { padding: 5px 8px; }
.awBadge { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--vang); color: var(--chu); background: var(--code); }
@media (max-width: 560px) { .loaiThe small { display: none; } .loaiTLGon { grid-template-columns: minmax(0, 1fr); } }
