/* =====================================================================
   loi/dk.css — Điều khiển lớp bằng điện thoại (18/11/2026, note 18)
   Phần 1: hộp nối + chip trạng thái trên MÁY LỚP (.dk-…)   ·   Phần 2: trang ĐIỆN THOẠI dk.html (body.dk-dt)
   ===================================================================== */
:root { --dk-nen:#fff8ee; --dk-the:#fff; --dk-chu:#2b2118; --dk-mo:#6f5f50; --dk-cam:#d9580f; --dk-cam-nut:#e8620f; --dk-cam-nhat:#ffe3cf;
  --dk-xanh:#16804f; --dk-do:#c23a1f; --dk-vien:#ecdcc8; }

/* ---------- 1. MÁY LỚP ---------- */
.dk-phu { position:fixed; inset:0; z-index:2147483000; display:none; align-items:center; justify-content:center; background:rgba(20,16,10,.55); padding:16px; font:16px/1.5 system-ui,"Segoe UI",Roboto,Arial,sans-serif; color:var(--dk-chu); }
.dk-phu.hien { display:flex; }
.dk-hop { position:relative; background:var(--dk-the); border-radius:20px; padding:28px 30px 24px; max-width:min(860px,100%); max-height:100%; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.35); }
.dk-hop h2 { margin:0 0 10px; font-size:clamp(20px,2.4vw,30px); line-height:1.25; }
.dk-hop p { margin:0 0 10px; }
.dk-dong { position:absolute; right:10px; top:10px; width:44px; height:44px; border:0; border-radius:50%; background:#f3ebe1; font-size:18px; cursor:pointer; color:var(--dk-chu); }
.dk-qr { display:grid; grid-template-columns:minmax(200px,36vh) 1fr; gap:28px; align-items:center; }
.dk-qr-hinh { background:#fff; border:1px solid var(--dk-vien); border-radius:14px; padding:10px; }
.dk-qr-hinh svg { display:block; width:100%; height:auto; }
.dk-ma { font-size:clamp(34px,5vw,64px); font-weight:800; letter-spacing:.12em; color:var(--dk-cam); line-height:1.1; margin:4px 0 12px; font-variant-numeric:tabular-nums; }
.dk-nho { font-size:14px; color:var(--dk-mo); }
.dk-hang { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 8px; }
.dk-nut { min-height:48px; padding:10px 18px; border-radius:12px; border:1px solid var(--dk-vien); background:#fff; font:inherit; font-weight:700; cursor:pointer; color:var(--dk-chu); }
.dk-nut.cam { background:var(--dk-cam-nut); border-color:var(--dk-cam-nut); color:#fff; }
.dk-nut.do { color:var(--dk-do); border-color:#efc2b6; }
.dk-cho { padding:30px 10px; text-align:center; color:var(--dk-mo); }
.dk-chip { position:fixed; right:12px; bottom:12px; z-index:2147482000; display:flex; gap:6px; font:600 14px/1.2 system-ui,"Segoe UI",Roboto,Arial,sans-serif; }
.dk-chip[hidden] { display:none; }
.dk-chip button { min-height:40px; padding:8px 14px; border-radius:999px; border:0; cursor:pointer; font:inherit; box-shadow:0 4px 14px rgba(0,0,0,.18); background:#fff; color:var(--dk-chu); }
.dk-chip.noi button:first-child { background:#e6f6ee; color:#0e6b45; }
.dk-chip.cho-dt button:first-child, .dk-chip.dang-noi button:first-child { background:#fff4d6; color:#7a5600; }
.dk-chip .dk-tieng { background:var(--dk-cam-nut); color:#fff; }
:fullscreen .dk-chip { opacity:.7; }
.dk-tb { position:fixed; left:50%; bottom:64px; transform:translate(-50%,20px); z-index:2147483100; background:#1f2a3c; color:#fff; padding:10px 18px; border-radius:999px; font:600 15px/1.3 system-ui,"Segoe UI",Roboto,Arial,sans-serif; opacity:0; pointer-events:none; transition:opacity .25s,transform .25s; max-width:calc(100vw - 24px); text-align:center; }
.dk-tb.hien { opacity:1; transform:translate(-50%,0); }
@media (max-width:700px) { .dk-qr { grid-template-columns:1fr; } .dk-qr-hinh { max-width:260px; margin:0 auto; } .dk-hop { padding:22px 18px 18px; } }
@media (prefers-reduced-motion:reduce) { .dk-tb { transition:none; } }

/* ---------- 2. ĐIỆN THOẠI (dk.html) ---------- */
body.dk-dt { margin:0; min-height:100vh; min-height:100dvh; background:var(--dk-nen); color:var(--dk-chu); font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; display:flex; flex-direction:column; -webkit-tap-highlight-color:transparent; }
.dk-dt * { box-sizing:border-box; }
.dk-dt .dt-dau { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:10px; padding:calc(10px + env(safe-area-inset-top)) 14px 10px; background:var(--dk-the); border-bottom:1px solid var(--dk-vien); }
.dk-dt .dt-dau > div { flex:1; min-width:0; }
.dk-dt .dt-dau b { display:block; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dk-dt .dt-dau span { display:block; font-size:13px; color:var(--dk-mo); }
.dk-dt .cham { display:inline-block; width:9px; height:9px; border-radius:50%; background:#b9ab9b; margin-right:7px; vertical-align:1px; }
.dk-dt .dt-dau.noi .cham { background:#1aa267; } .dk-dt .dt-dau.cho .cham { background:#e5a50a; animation:dk-nhay 1s infinite; }
@keyframes dk-nhay { 50% { opacity:.25; } }
.dk-dt .dt-than { flex:1; padding:12px 12px 24px; width:100%; max-width:640px; margin:0 auto; }
.dk-dt .dt-tab { position:sticky; bottom:0; z-index:5; display:grid; background:var(--dk-the); border-top:1px solid var(--dk-vien); padding-bottom:env(safe-area-inset-bottom); }
.dk-dt .dt-tab[hidden] { display:none; }
.dk-dt .dt-tab button { border:0; background:none; padding:8px 2px 10px; font:inherit; font-size:13px; font-weight:700; color:var(--dk-mo); min-height:58px; cursor:pointer; }
.dk-dt .dt-tab button i { display:block; font-style:normal; font-size:22px; line-height:1.2; }
.dk-dt .dt-tab button.chon { color:var(--dk-cam); box-shadow:inset 0 3px 0 var(--dk-cam); }
.dk-dt .nut { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--dk-vien); background:var(--dk-the); color:var(--dk-chu); border-radius:14px; padding:10px 12px; font:inherit; font-weight:700; min-height:48px; cursor:pointer; text-align:center; }
.dk-dt .nut:active { transform:scale(.97); }
.dk-dt .nut:disabled { opacity:.45; cursor:default; transform:none; }
.dk-dt .nut.cam { background:var(--dk-cam-nut); border-color:var(--dk-cam-nut); color:#fff; }
.dk-dt .nut.khen { background:#e8f7ef; border-color:#a9dcc0; color:#0e6b45; }
.dk-dt .nut.to { width:100%; min-height:62px; font-size:18px; }
.dk-dt .nut.to.trai { justify-content:space-between; text-align:left; }
.dk-dt .nut.to small { font-size:13px; color:var(--dk-mo); font-weight:600; }
.dk-dt .nut.nho { min-height:44px; padding:6px 12px; font-size:14px; }
.dk-dt .hang { display:grid; gap:8px; margin-bottom:10px; }
.dk-dt .hang.c2 { grid-template-columns:1fr 1fr; }
.dk-dt .hang.cach { margin-top:10px; }
.dk-dt .muc { font-size:12.5px; font-weight:800; color:var(--dk-mo); text-transform:uppercase; letter-spacing:.04em; margin:12px 0 8px; }
.dk-dt .ghi { font-size:13.5px; color:var(--dk-mo); }
.dk-dt .loi { background:#fde3dc; color:#7d2412; border-radius:12px; padding:10px 12px; font-weight:600; }
.dk-dt .nhac { background:#fff1c9; border:1px solid #e8c766; border-radius:12px; padding:10px 12px; font-size:14px; margin-bottom:10px; }
.dk-dt .chao { text-align:center; padding:20px 6px; }
.dk-dt .chao img { width:120px; height:120px; object-fit:contain; }
.dk-dt .chao h2 { margin:6px 0 8px; font-size:22px; }
.dk-dt .o-ma { display:grid; gap:10px; margin:14px 0; }
.dk-dt .o-ma input { font:800 34px/1.2 system-ui,"Segoe UI",Roboto,Arial,sans-serif; letter-spacing:.14em; text-align:center; padding:12px; border:2px solid var(--dk-vien); border-radius:14px; width:100%; color:var(--dk-chu); background:#fff; }
.dk-dt .o-ma input:focus { outline:3px solid var(--dk-cam-nhat); border-color:var(--dk-cam); }
.dk-dt .xoay { width:38px; height:38px; margin:10px auto; border-radius:50%; border:4px solid var(--dk-cam-nhat); border-top-color:var(--dk-cam); animation:dk-xoay 1s linear infinite; }
@keyframes dk-xoay { to { transform:rotate(360deg); } }
.dk-dt .dt-hs { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.dk-dt .dt-hs button { position:relative; border:1px solid var(--dk-vien); background:var(--dk-the); border-radius:12px; padding:6px 2px; font:inherit; cursor:pointer; min-height:78px; color:var(--dk-chu); }
.dk-dt .dt-hs button img { width:38px; height:38px; border-radius:50%; background:var(--dk-cam-nhat); display:block; margin:0 auto 2px; }
.dk-dt .dt-hs button b { display:block; font-size:12.5px; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dk-dt .dt-hs button span { font-size:12.5px; color:var(--dk-xanh); font-weight:800; }
.dk-dt .dt-hs button span.am { color:var(--dk-do); }
.dk-dt .dt-hs button em { position:absolute; top:2px; right:4px; font-size:10.5px; font-style:normal; color:var(--dk-mo); }
.dk-dt .dt-hs button.vang { opacity:.5; }
.dk-dt .dt-hs button.chon { border:2px solid var(--dk-cam); background:#fff3e8; }
.dk-dt .luoi-tc { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:8px; }
.dk-dt .nut.tc { justify-content:flex-start; text-align:left; min-height:56px; font-size:14px; }
.dk-dt .nut.tc img, .dk-dt .nut.tc .bt { width:30px; height:30px; flex:none; font-size:22px; line-height:30px; text-align:center; }
.dk-dt .nut.tc span { flex:1; line-height:1.2; }
.dk-dt .nut.tc b { font-size:15px; }
.dk-dt .nut.tc.khen b { color:var(--dk-xanh); } .dk-dt .nut.tc.co b { color:var(--dk-do); }
.dk-dt .nut.nhom { justify-content:flex-start; min-height:58px; border-left:6px solid var(--mau,#888); }
.dk-dt .nut.nhom img { width:34px; height:34px; }
.dk-dt .nut.nhom span { flex:1; text-align:left; }
.dk-dt .nut.nhom.chon { border-color:var(--dk-cam); border-left-color:var(--mau,#888); background:#fff3e8; box-shadow:0 0 0 2px var(--dk-cam) inset; }
.dk-dt .goi-kq { background:var(--dk-the); border:1px solid var(--dk-vien); border-radius:16px; min-height:150px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:12px; margin-bottom:10px; text-align:center; }
.dk-dt .goi-kq img { width:84px; height:84px; border-radius:50%; background:var(--dk-cam-nhat); }
.dk-dt .goi-kq b { font-size:26px; } .dk-dt .goi-kq b.nhat { font-size:15px; color:var(--dk-mo); font-weight:600; }
.dk-dt .chip-hs { display:flex; flex-wrap:wrap; gap:6px; }
.dk-dt .chip-hs button { display:inline-flex; align-items:center; gap:4px; min-height:44px; padding:4px 10px 4px 4px; border:1px solid var(--dk-vien); border-radius:999px; background:#fff; font:inherit; font-size:14px; cursor:pointer; color:var(--dk-chu); }
.dk-dt .chip-hs img { width:32px; height:32px; border-radius:50%; background:var(--dk-cam-nhat); }
.dk-dt .chip-hs button.vang { background:#f1ece6; color:var(--dk-mo); text-decoration:line-through; }
.dk-dt .tro-ten { font-size:18px; font-weight:800; margin:6px 0 12px; text-align:center; }
.dk-dt .but { display:grid; grid-template-columns:1fr 1.6fr; gap:10px; margin-bottom:12px; }
.dk-dt .but .nut { flex-direction:column; min-height:40vh; font-size:54px; border-radius:22px; line-height:1; }
.dk-dt .but .nut small { font-size:16px; margin-top:10px; }
.dk-dt .dt-tb { position:fixed; left:50%; bottom:calc(76px + env(safe-area-inset-bottom)); transform:translate(-50%,16px); z-index:9; background:#1f2a3c; color:#fff; padding:10px 16px; border-radius:999px; font-size:14.5px; font-weight:600; opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; max-width:calc(100vw - 24px); text-align:center; }
.dk-dt .dt-tb.hien { opacity:1; transform:translate(-50%,0); }
.dk-dt .dt-tb.tot { background:#0e6b45; } .dk-dt .dt-tb.xau { background:#9b2c16; }
@media (min-width:480px) { .dk-dt .dt-hs { grid-template-columns:repeat(5,1fr); } }
@media (prefers-reduced-motion:reduce) { .dk-dt .xoay, .dk-dt .dt-dau.cho .cham { animation:none; } .dk-dt .dt-tb { transition:none; } }
/* 18/11 chiều: thẻ Chia nhóm · Báo cáo · nút nhạc trên điện thoại */
.dk-dt .hang.c3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.dk-dt .hang.c3 .nut { padding:8px 4px; font-size:14px; }
.dk-dt .nut.trai { justify-content:flex-start; text-align:left; }
.dk-dt .nut.chon { border:2px solid var(--dk-cam); background:#fff3e8; color:var(--dk-cam); }
.dk-dt .buoc { display:grid; grid-template-columns:64px 1fr 64px; gap:8px; align-items:center; margin:4px 0 10px; }
.dk-dt .buoc .nut { font-size:26px; min-height:56px; }
.dk-dt .buoc b { text-align:center; font-size:34px; line-height:1.1; }
.dk-dt .buoc b small { display:block; font-size:13px; color:var(--dk-mo); font-weight:600; }
.dk-dt .buoc.tuan b { font-size:18px; }
.dk-dt .kq-nhom { background:#fff; border:1px solid var(--dk-vien); border-left:6px solid var(--mau,#888); border-radius:12px; padding:8px 12px; margin-bottom:8px; }
.dk-dt .kq-nhom b { display:block; font-size:15px; } .dk-dt .kq-nhom b small { color:var(--dk-mo); font-weight:600; }
.dk-dt .kq-nhom span { font-size:14px; }
.dk-dt .so-lieu { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:6px; }
.dk-dt .so-lieu div { background:#fff; border:1px solid var(--dk-vien); border-radius:12px; padding:8px 10px; text-align:center; }
.dk-dt .so-lieu b { display:block; font-size:24px; } .dk-dt .so-lieu span { font-size:12.5px; color:var(--dk-mo); }
.dk-dt .xanh { color:var(--dk-xanh); } .dk-dt .cam { color:var(--dk-cam); }
.dk-dt .dong-bc { display:flex; justify-content:space-between; align-items:center; padding:6px 4px; border-bottom:1px solid var(--dk-vien); font-size:15px; }
.dk-dt .dong-bc span { display:flex; align-items:center; gap:8px; } .dk-dt .dong-bc img { width:28px; height:28px; border-radius:50%; background:var(--dk-cam-nhat); }
.dk-dt .dt-tab button { font-size:11.5px; padding:8px 1px 10px; overflow:hidden; }
.dk-dt .dt-tab button i { font-size:20px; }
/* 18/11 đợt 2a: nút 📱 nhỏ ở các trang chưa có nút riêng · menu mở trang + phím riêng từng trang trên điện thoại */
.dk-chip.chua button { width:44px; height:44px; min-height:44px; padding:0; font-size:20px; opacity:.85; }
:fullscreen .dk-chip.chua, body.hl-mo-man .dk-chip.chua { display:none; }
.dk-dt .dt-dau .nut.nho + .nut.nho { margin-left:-4px; }
.dk-dt .menu-muc { font-size:12.5px; font-weight:800; color:var(--dk-mo); text-transform:uppercase; letter-spacing:.04em; margin:14px 0 6px; }
.dk-dt .menu-luoi { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.dk-dt .menu-luoi .nut { justify-content:flex-start; text-align:left; min-height:52px; font-size:14.5px; line-height:1.2; }
.dk-dt details.menu-nhom { background:#fff; border:1px solid var(--dk-vien); border-radius:14px; margin-bottom:8px; }
.dk-dt details.menu-nhom summary { min-height:48px; display:flex; align-items:center; padding:0 14px; font-weight:800; cursor:pointer; list-style:none; }
.dk-dt details.menu-nhom summary::-webkit-details-marker { display:none; }
.dk-dt details.menu-nhom summary::after { content:'▾'; margin-left:auto; color:var(--dk-mo); }
.dk-dt details.menu-nhom[open] summary::after { content:'▴'; }
.dk-dt details.menu-nhom .menu-luoi { padding:0 10px 10px; }
.dk-dt .phim-luoi { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.dk-dt .phim-luoi .nut { justify-content:flex-start; text-align:left; font-size:14.5px; min-height:52px; }
.dk-dt .phim-luoi .nut kbd { flex:none; min-width:30px; height:30px; display:inline-grid; place-items:center; border-radius:8px; background:#1E3565; color:#fff; font:800 15px/1 system-ui,sans-serif; }
.dk-dt .but.mot { grid-template-columns:1fr; } .dk-dt .but.mot .nut { min-height:30vh; }

/* ---------- 4. MÀN HÌNH THU NHỎ (đợt 2b · 18/11, note 20) ---------- */
/* máy lớp: vòng sáng ngắn quanh ô vừa được điện thoại bấm (không đụng vào phần tử của trò) */
.dk-gon { position:fixed; z-index:2147481000; pointer-events:none; border-radius:14px; box-shadow:0 0 0 4px #ffb020, 0 0 22px 6px rgba(255,176,32,.65); opacity:0; }
.dk-gon.hien { animation:dk-gon .7s ease-out; }
@keyframes dk-gon { 0% { opacity:1; transform:scale(1.08); } 70% { opacity:.9; transform:scale(1); } 100% { opacity:0; } }
@media (prefers-reduced-motion: reduce) { .dk-gon.hien { animation:none; opacity:1; } }
/* điện thoại: ◀ ▶ gọn lại khi có màn hình thu nhỏ bên dưới */
.dk-dt .but.gon .nut { min-height:92px; font-size:36px; border-radius:18px; }
.dk-dt .but.gon .nut small { font-size:14px; margin-top:4px; }
.dk-dt .mini { background:#1E3565; border-radius:16px; padding:8px; display:flex; flex-direction:column; gap:6px; overflow-x:auto; overscroll-behavior-x:contain; }
/* giữ đúng số ô mỗi hàng như tivi (lưới 10 cột vẫn là 10 cột); hàng quá rộng thì cuộn ngang TRONG khung, trang không cuộn */
.dk-dt .mini-hang { display:flex; flex-wrap:nowrap; gap:6px; min-width:min-content; }
.dk-dt .mini-hang > :first-child { margin-left:auto; } .dk-dt .mini-hang > :last-child { margin-right:auto; }
.dk-dt .mini.rong + .ghi::before { content:"↔ Lưới rộng hơn màn hình — vuốt ngang trong khung xanh. "; font-weight:700; }
.dk-dt .mini .o { flex:var(--g,1) 1 0; min-width:44px; min-height:48px; padding:6px 6px; border-radius:10px; border:2px solid rgba(255,255,255,.25); border-left:6px solid var(--mau,#ffd8b0);
  background:#fff; color:var(--dk-chu); font:700 14px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; cursor:pointer; overflow:hidden; display:flex; align-items:center; justify-content:center; text-align:center; word-break:break-word; }
.dk-dt .mini .o:active { transform:scale(.95); background:var(--dk-cam-nhat); }
.dk-dt .mini .o.s { background:var(--dk-cam-nhat); border-color:var(--dk-cam); box-shadow:0 0 0 2px var(--dk-cam) inset; }
.dk-dt .mini .o.so { color:var(--dk-mo); font-weight:800; }
.dk-dt .mini .o.vua { outline:3px solid #ffb020; outline-offset:1px; }
.dk-dt .mini-rong { color:#dfe7f5; text-align:center; font-size:14px; padding:14px 6px; }
.dk-dt .ds-hl { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.dk-dt .ds-hl .nut { justify-content:flex-start; text-align:left; font-size:14.5px; min-height:52px; border-left:6px solid var(--mau,#ecdcc8); }
.dk-dt .ds-hl .nut kbd { flex:none; min-width:30px; height:30px; display:inline-grid; place-items:center; border-radius:8px; background:#1E3565; color:#fff; font:800 15px/1 system-ui,sans-serif; }
.dk-dt .ds-hl .nut .k0 { flex:none; width:30px; }
/* tấm chạm theo vị trí (hai vòng tròn…) */
.dk-dt .mini .o.vung { position:relative; display:block; width:100%; flex:none; aspect-ratio:calc(1 / var(--tl,.6)); max-height:320px; min-height:120px; padding:0; background:#f3f7ff; border:2px dashed #8fb0ea; border-left-width:2px; }
.dk-dt .mini .o.vung .nh { position:absolute; transform:translate(-50%,-50%); font-size:12.5px; font-weight:800; color:#2b4c8a; background:rgba(255,255,255,.85); border-radius:8px; padding:2px 6px; white-space:nowrap; pointer-events:none; max-width:46%; overflow:hidden; text-overflow:ellipsis; }
.dk-dt .mini .o.vung .goi { position:absolute; left:8px; bottom:6px; font-size:12px; font-weight:700; color:#5b6f94; pointer-events:none; }
.dk-dt .mini .o.vung .cham-dt { position:absolute; width:22px; height:22px; margin:-11px 0 0 -11px; border-radius:50%; background:rgba(255,176,32,.55); box-shadow:0 0 0 3px #ffb020; pointer-events:none; }

/* ---------- ĐÁP ÁN RIÊNG CHO CÔ (VIP · đợt 3, 18/11) — chỉ trang điện thoại ---------- */
.dk-dt .da-khoa { margin:12px 0 4px; padding:10px 12px; border:1px dashed var(--dk-vien); border-radius:12px; font-size:13px; color:var(--dk-mo); background:var(--dk-the); }
.dk-dt .da { margin:12px 0 4px; padding:10px 12px 12px; border:2px solid #7a4fd0; border-radius:14px; background:#f6f1ff; }
.dk-dt .da-dau { display:flex; align-items:center; justify-content:space-between; gap:8px; color:#4b2a92; }
.dk-dt .da .muc { margin:10px 0 6px; }
.dk-dt .da-o { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; padding:8px 10px; margin:6px 0 0; border-radius:10px; background:#fff; border:1px solid #e2d6f7; overflow-wrap:anywhere; }
.dk-dt .da-o span { flex:1 1 60%; min-width:0; font-size:14px; }
.dk-dt .da-o b { flex:0 1 auto; min-width:0; color:var(--dk-xanh); font-size:15px; }
.dk-dt .da-o.dang { border:2px solid #7a4fd0; background:#fffbe6; }
.dk-dt .da-o.dang b { font-size:18px; }
.dk-dt .da-ca { margin-top:10px; }
.dk-dt .da-ca summary { min-height:44px; display:flex; align-items:center; padding:0 4px; font-weight:700; color:#4b2a92; cursor:pointer; }

/* ===== đợt «mọi trang» 18/11: ô nhập chữ trên màn thu nhỏ + tờ gõ chữ từ điện thoại + nút cuộn ===== */
.dk-dt .mini .o.chu { border-style:dashed; justify-content:flex-start; text-align:left; color:var(--dk-mo); background:#f4f8ff; }
.dk-dt .hang.cuon .nut { min-height:52px; flex-direction:column; gap:0; font-size:22px; line-height:1.1; }
.dk-dt .hang.cuon .nut small { font-size:12.5px; font-weight:700; }
.dk-dt .dt-go { position:fixed; left:0; right:0; bottom:0; z-index:20; background:#fff; border-top:3px solid var(--dk-cam); box-shadow:0 -10px 30px rgba(0,0,0,.25); padding:12px 14px calc(12px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:10px; border-radius:18px 18px 0 0; }
.dk-dt .dt-go .go-dau { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.dk-dt .dt-go .go-dau b { font-size:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dk-dt .dt-go input, .dk-dt .dt-go textarea { width:100%; box-sizing:border-box; font:600 20px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; padding:12px 14px; border:2px solid var(--dk-vien); border-radius:14px; background:#fffdf9; color:var(--dk-chu); min-height:56px; resize:none; }
.dk-dt .dt-go input:focus, .dk-dt .dt-go textarea:focus { outline:3px solid var(--dk-cam); border-color:var(--dk-cam); }
.dk-dt .dt-go .hang { margin:0; }
.dk-dt:has(.dt-go) .dt-tb { bottom:calc(230px + env(safe-area-inset-bottom)); }
/* màn thu nhỏ của trang thường (không phải sân trò): ô xếp 3 cột, chữ xuống dòng theo từ — không bẻ từng chữ cái */
.dk-dt .mini.trang { overflow-x:visible; }
.dk-dt .mini.trang .mini-hang { flex-wrap:wrap; min-width:0; }
.dk-dt .mini.trang .mini-hang > :first-child { margin-left:0; } .dk-dt .mini.trang .mini-hang > :last-child { margin-right:0; }
.dk-dt .mini.trang .o { flex:var(--g,1) 1 auto; min-width:min(100%, 96px); word-break:normal; overflow-wrap:anywhere; hyphens:none; }
/* BẢN SAO TRANG (sếp góp ý 18/11): khung tivi viền xanh, nền đúng màu trang trên tivi; chữ, thẻ, nút đúng màu như tivi */
.dk-dt .mini.trang { background:var(--nen-tv,#fff); border:6px solid #1E3565; border-radius:16px; gap:8px; padding:8px; }
.dk-dt .mini.trang .mini-hang { gap:6px; align-items:stretch; }
.dk-dt .mini.trang .o { background:var(--nen-o,#fff); color:var(--chu-o,var(--dk-chu)); border:1.5px solid rgba(0,0,0,.16); border-left-width:1.5px; font-weight:700; }
.dk-dt .mini.trang .o.trong { background:rgba(127,127,127,.09); border-color:rgba(127,127,127,.5); }
.dk-dt .mini.trang .o.s { box-shadow:0 0 0 3px var(--dk-cam); border-color:var(--dk-cam); }
.dk-dt .mini.trang .o.chu { background:#f4f8ff; color:var(--dk-mo); border-style:dashed; }
.dk-dt .mini.trang .o:active { transform:scale(.95); filter:brightness(.92); }
.dk-dt .mini .ch { flex:1 1 auto; min-width:0; align-self:center; font:500 13.5px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; padding:1px 2px; overflow-wrap:anywhere; }
.dk-dt .mini .ch.ca { flex-basis:100%; }
.dk-dt .mini .ch.z1 { font-size:18px; font-weight:800; line-height:1.25; }
.dk-dt .mini .ch.z2 { font-size:15.5px; font-weight:800; line-height:1.3; }
.dk-dt .mini .ch.z4 { font-size:12px; opacity:.85; }
.dk-dt .mini .ch.b { font-weight:800; }
.dk-dt .mini .ch.m { opacity:.5; }
.dk-dt .mini .ch.san { color:#eef3ff; text-align:center; flex:none; }
.dk-dt .mini .kh { flex:var(--g,1) 1 0; min-width:100%; box-sizing:border-box; border-radius:12px; padding:8px; display:flex; flex-direction:column; gap:6px; }
.dk-dt .mini .kh.doi { min-width:calc(50% - 3px); }
.dk-dt .mini .kh.vien { border:1.5px solid rgba(0,0,0,.13); }
.dk-dt .mini .kh.loang { background:rgba(255,255,255,.5); border:1.5px solid rgba(0,0,0,.08); }
.dk-dt .mini .kh.toi .o.trong { border-color:rgba(255,255,255,.4); background:rgba(255,255,255,.06); }
.dk-dt .vt { text-align:center; font-size:12.5px; font-weight:700; color:var(--dk-mo); margin:-2px 0 4px; }
.dk-dt .vt:empty, .dk-dt .hang.cuon.an { display:none; }
.dk-dt .mini .ch.vien { flex:0 1 auto; border-radius:999px; padding:3px 10px; border:1px solid rgba(0,0,0,.1); }
/* kt4dk — kĩ thuật dạy học đợt 4 (18/11/2026, note 23 mục 7): ván Ôn 5 phút · ván Trò chơi hành vi trên điện thoại */
.dk-dt .od-dt-cau { background:#fff; border:1px solid var(--dk-vien); border-radius:14px; padding:12px; margin-bottom:10px; text-align:center; }
.dk-dt .od-dt-cau small { display:block; font-size:13px; color:var(--dk-mo); font-weight:600; }
.dk-dt .od-dt-cau b { display:block; font-size:20px; line-height:1.3; margin:4px 0 0; overflow-wrap:anywhere; }
.dk-dt .od-dt-dap { display:block; margin-top:10px; padding:8px 10px; border-radius:10px; background:#e8f7ef; color:#0e6b45; font-weight:800; font-size:17px; overflow-wrap:anywhere; }
.dk-dt .od-dt-kq { grid-template-columns:repeat(3,minmax(0,1fr)); }
.dk-dt .nut.dg.tot { border-left:6px solid #2e9d63; } .dk-dt .nut.dg.vua { border-left:6px solid #e0a020; } .dk-dt .nut.dg.kem { border-left:6px solid #d0533a; }
.dk-dt .nut.dg.chon { background:#fff3e8; box-shadow:0 0 0 2px var(--dk-cam) inset; }
.dk-dt .hv-dt-doi { display:grid; grid-template-columns:minmax(0,1fr) 56px; gap:8px; margin-bottom:8px; }
.dk-dt .hv-dt-doi .nut { min-height:64px; }
.dk-dt .hv-dt-doi .nut.nhom { font-size:17px; }
.dk-dt .hv-dt-doi .nut.nhom span { overflow-wrap:anywhere; }
.dk-dt .hv-dt-doi .nut.nhom.vuot b { color:#b4501a; }
.dk-dt .hv-dt-doi > .nut:last-child { font-size:22px; padding:0; }
.dk-dt .nut.hoi-lai { background:#c0392b; border-color:#c0392b; color:#fff; }
/* «↩ Về trang trước» (sếp dặn 18/11): tivi về đúng trang vừa mở trò */
.dk-dt .nut.lui-trang { flex-direction:column; gap:0; min-height:56px; width:100%; }
.dk-dt .nut.lui-trang small { font-size:12.5px; font-weight:700; opacity:.8; }

/* ===== M3 (20/11/2026, note 36): MÀN PHỤ CỦA «MÀN LÊN LỚP» trên điện thoại ===== */
.dk-dt .ll-ten { margin:2px 0 8px; font-size:16px; line-height:1.25; overflow-wrap:anywhere; }
.dk-dt .ll-gio { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:10px; }
.dk-dt .ll-o { background:var(--dk-the); border:1px solid var(--dk-vien); border-radius:12px; padding:6px 2px; text-align:center; min-width:0; }
.dk-dt .ll-o small { display:block; font-size:11.5px; color:var(--dk-mo); font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dk-dt .ll-o b { display:block; font-size:15px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.dk-dt .ll-o.xanh b { color:var(--dk-xanh); }
.dk-dt .ll-o.vang { background:#fff1c9; border-color:#e8c766; }
.dk-dt .ll-o.tre { background:#fde3dc; border-color:#f0a999; }
.dk-dt .ll-o.tre b { color:#7d2412; }
.dk-dt .ll-goi-y[hidden] { display:none; }
.dk-dt .ll-an .nut { margin-top:8px; }
.dk-dt .ll-dang { background:var(--dk-the); border:1px solid var(--dk-vien); border-left:6px solid var(--dk-cam); border-radius:14px; padding:10px 12px; margin-bottom:10px; }
.dk-dt .ll-buoc { font-size:12.5px; font-weight:800; color:var(--dk-mo); text-transform:uppercase; letter-spacing:.03em; }
.dk-dt .ll-hd { font-size:13.5px; color:var(--dk-mo); margin-top:4px; }
.dk-dt .ll-hd .ll-so { color:var(--dk-cam); }
.dk-dt .ll-hd-ten { margin:4px 0 6px; font-size:18px; line-height:1.25; overflow-wrap:anywhere; }
.dk-dt .ll-ht { margin:0 0 8px; font-size:14px; overflow-wrap:anywhere; }
.dk-dt .ll-viec { border-top:1px dashed var(--dk-vien); padding-top:8px; }
.dk-dt .ll-viec small { display:block; font-size:12px; color:var(--dk-mo); }
.dk-dt .ll-viec b { font-size:16px; overflow-wrap:anywhere; }
.dk-dt .ll-tt { display:inline-block; margin-left:6px; padding:1px 8px; border-radius:999px; background:var(--dk-cam-nhat); font-size:12px; font-weight:700; vertical-align:2px; }
.dk-dt .ll-gc ul { margin:0 0 10px; padding:0; list-style:none; display:grid; gap:6px; }
.dk-dt .ll-gc li { background:#f3f0ff; border:1px solid #d6cdf7; border-radius:12px; padding:8px 10px; font-size:14.5px; line-height:1.4; overflow-wrap:anywhere; }
.dk-dt .ll-gc li.truoc { background:#e8f7ef; border-color:#a9dcc0; }
.dk-dt .ll-gc li span { font-weight:800; }
.dk-dt .ll-but .nut { min-height:104px; font-size:40px; border-radius:18px; }
.dk-dt .ll-but .nut small { font-size:13.5px; margin-top:6px; line-height:1.25; text-align:center; overflow-wrap:anywhere; }
.dk-dt .ll .hang .nut { flex-wrap:wrap; }
.dk-dt .ll .hang .nut small { flex-basis:100%; text-align:center; font-size:12px; font-weight:600; opacity:.8; }
.dk-dt .ll-dh-hop { text-align:center; background:var(--dk-the); border:1px solid var(--dk-vien); border-radius:14px; padding:12px; margin-bottom:10px; font-size:15px; }
.dk-dt .ll-dh-hop b { display:block; font-size:30px; font-variant-numeric:tabular-nums; }
.dk-dt .ll-ca { margin-top:12px; background:var(--dk-the); border:1px solid var(--dk-vien); border-radius:14px; padding:0 10px 4px; }
.dk-dt .ll-ca summary { min-height:48px; display:flex; align-items:center; font-weight:800; cursor:pointer; }
.dk-dt .ll-ca .ghi { margin:0 0 8px; }
.dk-dt .ll-hd-nut { width:100%; justify-content:flex-start; text-align:left; gap:8px; margin-bottom:6px; min-height:48px; font-size:14px; font-weight:600; }
.dk-dt .ll-hd-nut .ll-so { flex:none; min-width:28px; height:28px; display:inline-grid; place-items:center; border-radius:8px; background:#1E3565; color:#fff; font-size:14px; }
.dk-dt .ll-hd-nut .ll-t { flex:1; min-width:0; overflow-wrap:anywhere; }
.dk-dt .ll-hd-nut small { flex:none; font-size:12.5px; color:var(--dk-mo); }
.dk-dt .ll-hd-nut.chon { border-color:var(--dk-cam); background:#fff3e8; box-shadow:0 0 0 2px var(--dk-cam) inset; }

/* ===== LƯỚI Ô NHỎ trên màn thu nhỏ (Ô chữ — sếp thử 20/11): mỗi hàng một dải bấm được, ô nhỏ chỉ để nhìn ===== */
.dk-dt .mini .mini-luoi { display:flex; flex-direction:column; gap:4px; }
.dk-dt .mini .o.dai { flex:none; width:100%; min-height:44px; justify-content:flex-start; gap:2px; padding:4px 4px 4px calc(4px + var(--lui,0) * (var(--o,20px) + 2px)); border:2px solid transparent; border-left-width:2px; background:rgba(255,255,255,.07); }
.dk-dt .mini .o.dai.s { background:rgba(255,255,255,.2); border-color:#ffb020; box-shadow:none; }
.dk-dt .mini .o.dai .so { flex:none; width:var(--o,20px); height:var(--o,20px); border-radius:50%; background:#f1f6ff; color:#1E3565; font:800 12px/1 system-ui,sans-serif; display:grid; place-items:center; }
.dk-dt .mini .o.dai .oc { flex:none; width:var(--o,20px); height:var(--o,20px); border-radius:4px; background:#fff; color:#1b2440; font:800 12px/1 system-ui,sans-serif; font-style:normal; display:grid; place-items:center; }
.dk-dt .mini .o.dai .oc.k { background:#ffd9b8; }
.dk-dt .mini .o.dai.s .so { background:#ffb020; }

/* ===== Nút «◀ Về Màn lên lớp» / «✕ Về slide» ở đầu màn điện thoại — có ở mọi trang của Club (sếp dặn 20/11) ===== */
.dk-dt .dt-dau { flex-wrap:wrap; }
.dk-dt .dt-dau > .dt-ve { flex:1 0 100%; display:flex; gap:8px; }      /* phải thắng luật «.dt-dau > div { flex:1 }» ở trên: hàng nút nằm riêng một dòng, rộng hết màn */
.dk-dt .dt-dau > .dt-ve .nut { flex:1 1 0; min-height:46px; font-size:14.5px; padding:6px 8px; white-space:nowrap; }
