/* ============================================================
   hcchat.css - TIN NHẮN (HcChat.js, 25/10/2026, _docs/77). Tiền tố hcchat-.
   Khuôn mockup chat.html lần 2 (chủ dự án duyệt): ba cột Danh sách | Khung chat | Thông tin; tin mình nền xanh nhạt bên phải,
   người khác nền trắng bên trái; menu nổi position: fixed; điện thoại từng bước (data-buoc).
   ============================================================ */
.hcchat-cho, .hcchat-loi { padding: 24px; color: #667085; }
.hcchat-loi { color: #d92d20; display: flex; gap: 8px; align-items: center; }
.hcchat { --xanh: #1d4ed8; display: flex; height: calc(100dvh - var(--topbar-h, 52px) - 30px); /* HcChat.datCao đo lại chiều cao thật */ background: #fff;
          border: 1px solid #e4e7ec; border-radius: 10px; overflow: hidden; font-size: 13.5px; color: #101828; }
.hcchat *, .hcchat-menu *, .hcchat-goc *, .hcchat-hop * { box-sizing: border-box; }
.hcchat button { font: inherit; }

/* TAB CHAT (/TinNhan?rieng=1): không menu trái, GIỮ dãy biểu tượng trên cùng (26/10 tối - 🏠 · 🌐 · 💬 · chuông), chat kín phần còn lại */
body.hc-chatrieng .sidebar, body.hc-chatrieng .sidebar-overlay, body.hc-chatrieng .tb-menu, body.hc-chatrieng .tb-fav, body.hc-chatrieng .hc-moitruong { display: none !important; }
body.hc-chatrieng .content { padding: 0; }
body.hc-chatrieng .hcchat { border: 0; border-radius: 0; }

/* ảnh đại diện */
.hcchat-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px;
             position: relative; overflow: hidden; }
.hcchat-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hcchat-av.n { width: 32px; height: 32px; font-size: 12px; }
.hcchat-av.lon { width: 64px; height: 64px; font-size: 24px; margin: 0 auto 8px; display: grid; }
.hcchat-av.nhom { background: #e8efff !important; color: var(--xanh, #1d4ed8); font-size: 20px; }
.hcchat-av.nhom.luat { background: #fff3e0 !important; color: #b54708; }
.hcchat-av.nhom.n { font-size: 16px; }
.hcchat-av.nhom.lon { font-size: 30px; }

/* ===== cột danh sách ===== */
.hcchat-ds { width: 360px; flex: none; border-right: 1px solid #e4e7ec; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.hcchat-ds-dau { padding: 12px 12px 6px; display: flex; gap: 8px; align-items: center; }
.hcchat-tim { flex: 1; height: 34px; border-radius: 17px; background: #f2f4f7; display: flex; align-items: center; gap: 6px; padding: 0 12px; color: #98a2b3; margin: 0; }
.hcchat-tim input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: #101828; }
.hcchat-tron { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f2f4f7; color: #344054; display: grid; place-items: center; font-size: 18px; cursor: pointer; flex: none; }
.hcchat-tron:hover { background: #e8efff; color: var(--xanh); }
.hcchat-loc { display: flex; gap: 4px; padding: 4px 12px 8px; border-bottom: 1px solid #f2f4f7; }
.hcchat-loc button { height: 28px; padding: 0 12px; border-radius: 14px; border: 0; background: none; display: inline-flex; align-items: center; gap: 5px; color: #475467; font-weight: 600; font-size: 13px; cursor: pointer; }
.hcchat-loc button.on { background: #e8efff; color: var(--xanh); }
.hcchat-loc button b { font-size: 11px; background: #ef4444; color: #fff; border-radius: 8px; padding: 0 5px; }
.hcchat-ds-cuon { flex: 1; overflow: auto; padding: 4px 6px; }
.hcchat-ds-khoi { font-size: 11.5px; letter-spacing: .3px; text-transform: uppercase; color: #667085; font-weight: 700; margin: 10px 8px 4px; }
.hcchat-ct { display: flex; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; cursor: pointer; }
.hcchat-ct:hover { background: #f5f7fa; }
.hcchat-ct.on { background: #e8efff; }
.hcchat-ct .g { flex: 1; min-width: 0; }
.hcchat-ct .d1, .hcchat-ct .d2 { display: flex; align-items: center; gap: 6px; }
.hcchat-ct .d2 { margin-top: 2px; }
.hcchat-ct .ten { flex: 1; min-width: 0; font-weight: 400; color: #344054; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat-ct .gio { font-size: 12px; color: #98a2b3; flex: none; }
.hcchat-ct .tom { flex: 1; min-width: 0; color: #667085; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
/* chưa đọc nổi hẳn (anh 27/10: tên luôn đậm thì đọc rồi trông như chưa đọc) */
.hcchat-ct.chua .ten { font-weight: 700; color: #101828; }
.hcchat-ct.chua .gio { color: var(--xanh); font-weight: 600; }
.hcchat-ct.chua .tom { color: #101828; font-weight: 600; }
.hcchat-ct .tom.thu { font-style: italic; }
.hcchat-ct .nh, .hcchat-bm .nh { color: #d92d20; }
.hcchat-ct .dem { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.hcchat-ct .dem.tat { background: #98a2b3; }
.hcchat-ct .bt { color: #98a2b3; font-size: 14px; flex: none; }
.hcchat-rong { padding: 40px 16px; text-align: center; color: #98a2b3; line-height: 1.6; }
.hcchat-rong i { display: block; font-size: 34px; margin-bottom: 6px; }

/* ===== khung chat ===== */
.hcchat-kc { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; position: relative; }
.hcchat-kc.tha::after { content: "Thả tệp vào đây để gửi"; position: absolute; inset: 8px; border: 2px dashed var(--xanh); border-radius: 10px; background: rgba(232,239,255,.85);
                        display: grid; place-items: center; font-weight: 700; color: var(--xanh); z-index: 3; }
.hcchat-chon { margin: auto; text-align: center; color: #667085; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 320px; padding: 24px; }
.hcchat-chon i { font-size: 44px; color: #c7d7fe; } .hcchat-chon b { font-size: 16px; color: #344054; }
.hcchat-kc-dau { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; border-bottom: 1px solid #e4e7ec; }
.hcchat-kc-dau .g { flex: 1; min-width: 0; }
.hcchat-kc-dau .ten { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat-kc-dau .phu { color: #667085; font-size: 12.5px; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat-kc-dau .phai { display: flex; gap: 6px; align-items: center; }
.hcchat-nut-info.on { background: #e8efff; color: var(--xanh); }   /* đang mở bảng thông tin (biểu tượng cũng đổi: expand ⇄ collapse) */
.hcchat-lui { border: 0; background: none; color: var(--xanh); font-size: 24px; width: 34px; height: 40px; display: grid; place-items: center; margin-left: -8px; cursor: pointer; }
.hcchat-nut-bt { width: 36px; height: 36px; border-radius: 8px; border: 0; background: none; color: #475467; display: grid; place-items: center; font-size: 20px; cursor: pointer; flex: none; }
.hcchat-nut-bt:hover, .hcchat-nut-bt.on { background: #e8efff; color: var(--xanh); }
.hcchat-ghim { flex: none; display: flex; align-items: center; gap: 10px; padding: 7px 16px; border-bottom: 1px solid #e4e7ec; background: #fafbfc; font-size: 13px; cursor: pointer; }
.hcchat-ghim i { color: var(--xanh); font-size: 17px; }
.hcchat-ghim .nd { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #344054; }
.hcchat-ghim .so { flex: none; color: #98a2b3; font-size: 12px; }
.hcchat-ghim .mo { flex: none; width: 28px; height: 28px; margin: -4px -8px -4px 0; border-radius: 50%; border: 0; background: none; color: #475467; display: grid; place-items: center; cursor: pointer; }
.hcchat-ghim .mo:hover { background: #e8efff; color: var(--xanh); }
.hcchat-ghim .mo i { color: inherit; font-size: 18px; }
/* danh sách tin ghim (menu nổi rộng bằng thanh) - 🗑 bỏ ghim ngay */
.hcchat-dsghim > div .nd { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hcchat-dsghim > div > i { color: var(--xanh, #1d4ed8) !important; }
.hcchat-dsghim .xoa { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: #98a2b3; display: grid; place-items: center; cursor: pointer; }
.hcchat-dsghim .xoa:hover { background: #fee4e2; color: #d92d20; }
.hcchat-dsghim .xoa i { color: inherit !important; }

.hcchat-tin { flex: 1; min-height: 0; overflow: auto; background: #eef1f5; padding: 12px 16px 8px; display: flex; flex-direction: column; gap: 3px; }
.hcchat-cu { align-self: center; border: 1px solid #d0d5dd; background: #fff; border-radius: 14px; height: 28px; padding: 0 14px; color: #344054; font-size: 12.5px; cursor: pointer; margin-bottom: 6px; }
.hcchat-ngay { align-self: center; margin: 10px 0 8px; }
.hcchat-ngay span { background: rgba(16, 24, 40, .38); color: #fff; font-size: 11.5px; padding: 2px 10px; border-radius: 10px; }
.hcchat-ht { align-self: center; max-width: 80%; text-align: center; font-size: 12px; color: #475467; background: rgba(255,255,255,.7); border-radius: 10px; padding: 3px 12px; margin: 4px 0; }
.hcchat-hang { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; position: relative; align-self: flex-start; }
.hcchat-hang.dau { margin-top: 6px; }
.hcchat-hang.toi { flex-direction: row-reverse; align-self: flex-end; }
.hcchat-hang.co-pu { margin-bottom: 10px; }
.hcchat-hang.nhay .bong { box-shadow: 0 0 0 3px #fdb022; }
.hcchat-hang .cho { width: 32px; flex: none; }
.hcchat-hang .bong { background: #fff; border-radius: 10px; padding: 7px 11px 6px; box-shadow: 0 1px 1px rgba(16,24,40,.06); position: relative; min-width: 60px; max-width: 100%; }
.hcchat-hang.toi .bong { background: #dbe7ff; }
.hcchat-hang .bong.ghim { border-left: 3px solid var(--xanh); }
.hcchat-hang .nguoi { font-size: 12px; font-weight: 600; margin-bottom: 1px; }
.hcchat-hang .nd { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.45; }
.hcchat-hang .nd.thu { color: #98a2b3; font-style: italic; }
.hcchat-hang .nd a { color: var(--xanh); }
.hcchat-hang .gt { font-size: 11px; color: #98a2b3; margin-top: 2px; display: flex; gap: 4px; align-items: center; }
.hcchat-hang.toi .gt { color: #6b7fa8; justify-content: flex-end; }
.hcchat-hang .trich { border-left: 3px solid var(--xanh); background: rgba(29,78,216,.06); padding: 4px 8px; border-radius: 4px; margin-bottom: 5px; font-size: 12.5px; color: #475467; cursor: pointer;
                      max-height: 60px; overflow: hidden; }
.hcchat-hang .trich b { display: block; color: var(--xanh); font-size: 12px; }
.hcchat-nhac { color: var(--xanh); font-weight: 600; }
.hcchat-hang .anh-luoi { display: grid; gap: 3px; margin: 2px 0; }
.hcchat-hang .anh-luoi.so1 { grid-template-columns: minmax(0, 280px); }
.hcchat-hang .anh-luoi.so2, .hcchat-hang .anh-luoi.so4 { grid-template-columns: repeat(2, 150px); }
.hcchat-hang .anh-luoi.so3 { grid-template-columns: repeat(3, 110px); }
.hcchat-hang .anh { display: block; border-radius: 8px; overflow: hidden; background: #e4e7ec; }
.hcchat-hang .anh img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.hcchat-hang .anh-luoi:not(.so1) .anh img { height: 120px; }
.hcchat-hang .anh.tam { opacity: .6; }
.hcchat-hang .anh.don { display: flex; align-items: center; gap: 6px; padding: 12px; color: #98a2b3; font-size: 12px; }
/* ô VIDEO (28/10, _docs/77 mục 31): bìa (hoặc nền xám) + nút ▶ tròn giữa + thời lượng góc dưới phải */
.hcchat-hang .anh.vid { position: relative; background: #1d2939; }
.hcchat-hang .anh.vid .bia { display: block; width: 100%; aspect-ratio: 16 / 9; }
.hcchat-hang .anh-luoi:not(.so1) .anh.vid .bia { aspect-ratio: auto; height: 120px; }
.hcchat-hang .anh.vid .choi { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(16, 24, 40, .6); color: #fff; font-size: 22px; pointer-events: none; }
.hcchat-hang .anh.vid:hover .choi { background: rgba(16, 24, 40, .8); }
.hcchat-hang .anh.vid .tl { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(16, 24, 40, .7);
    color: #fff; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.hcchat-hang .tep, .hcchat-tt .tep { display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 3px 0; color: inherit; text-decoration: none; }
.hcchat .tep .ic { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 22px; flex: none; background: #667085; }
.hcchat .tep .ic.pdf { background: #e5484d; } .hcchat .tep .ic.xls { background: #16a34a; } .hcchat .tep .ic.doc { background: #2563eb; } .hcchat .tep .ic.zip { background: #b54708; }
.hcchat .tep .tt { flex: 1; min-width: 0; }
.hcchat .tep .tt b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat .tep .tt span { color: #667085; font-size: 12px; }
.hcchat-hang .tep .tai { color: var(--xanh); font-size: 20px; }
.hcchat-hang .tien { height: 4px; border-radius: 2px; background: #c7d7fe; margin: 6px 0 2px; overflow: hidden; }
.hcchat-hang .tien b { display: block; height: 100%; background: var(--xanh); }
.hcchat-hang .the { display: flex; gap: 10px; align-items: center; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; padding: 8px 10px; margin: 5px 0 2px;
                    color: inherit; text-decoration: none; min-width: 240px; }
.hcchat-hang .the i { font-size: 20px; color: var(--xanh); }
.hcchat-hang .the b { display: block; font-size: 13px; } .hcchat-hang .the span span { color: #667085; font-size: 12px; word-break: break-all; }
/* THẺ Hệ thống (_docs/77 mục 55): chủ đề đậm · nội dung · dải trạng thái việc · nút mở vừa chữ, dồn phải */
.hcchat-tht { min-width: 240px; max-width: 420px; }
.hcchat-tht .tde { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.hcchat-tht .tde i { font-size: 18px; color: var(--xanh, #1d4ed8); margin-top: 1px; }
.hcchat-tht .tu { color: #667085; font-size: 12.5px; margin: 3px 0 0 26px; }
.hcchat-tht .nd { margin: 5px 0 0 26px; font-size: 13.5px; color: #344054; }
.hcchat-tht .tt { display: flex; width: fit-content; gap: 5px; align-items: center; margin: 7px 0 0 26px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
                  white-space: nowrap; max-width: calc(100% - 26px); box-sizing: border-box; }
.hcchat-tht .tt > i { flex: none; }
.hcchat-tht .tt > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* MỘT dòng (27/11) - dài quá thì "…" */
.hcchat-tht .tt.cho { background: #fff4e5; color: #b54708; }
.hcchat-tht .tt.xong { background: #e7f6ec; color: #067647; }
.hcchat-tht .nut { display: flex; width: fit-content; margin: 8px 0 0 auto; gap: 6px; align-items: center; height: 32px; padding: 0 14px; border-radius: 8px;
                   background: var(--xanh, #1d4ed8); color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; }
.hcchat-tht.xong .tde, .hcchat-tht.xong .nd, .hcchat-tht.xong .tu { opacity: .6; }
/* lịch sử việc của đối tượng + nút làm ngay trên thẻ (26/11/2026, _docs/83 mục 24) */
.hcchat-tht .ls { margin: 7px 0 0 26px; padding-top: 6px; border-top: 1px dashed #d0d5dd; font-size: 12.5px; color: #344054; line-height: 1.5; }
.hcchat-tht .ls span { color: #667085; font-variant-numeric: tabular-nums; }
.hcchat-tht .nuts { display: flex; gap: 8px; justify-content: flex-start; margin: 8px 0 0 26px; }
.hcchat-tht .nuts button { display: inline-flex; gap: 6px; align-items: center; height: 32px; min-width: 96px; padding: 0 14px; border: 0; border-radius: 8px;
                           background: #1d4ed8; color: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.hcchat-tht .nuts button:disabled { opacity: .6; cursor: default; }
/* MỘT KHUÔN cho mọi thẻ Hệ thống (01/12/2026, _docs/77 mục 58): máy tính 560px bằng nhau, điện thoại hết khung; tiêu đề MỘT dòng + nhãn, nút dồn phải */
.hcchat-hang:has(.hcchat-tht) { max-width: 100%; }
.hcchat-hang:has(.hcchat-tht) > .bong { width: 560px; min-width: 0; flex: 0 1 auto; padding: 10px 14px 8px; }
.hcchat-tht { min-width: 0; max-width: none; }
.hcchat-tht.hang .tde { align-items: center; }
.hcchat-tht.hang .tde b { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat-tht .tde .chip { flex: none; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; background: #f2f4f7; color: #475467; }
.hcchat-tht .tde .chip[data-mau="cam"] { background: #fff4e5; color: #b54708; } .hcchat-tht .tde .chip[data-mau="luc"] { background: #e7f6ec; color: #067647; }
.hcchat-tht .tde .chip[data-mau="xanh"] { background: #eaf1ff; color: #1d4ed8; } .hcchat-tht .tde .chip[data-mau="do"] { background: #fef3f2; color: #b42318; }
.hcchat-tht.hang .hcth { margin-top: 7px; gap: 5px; }
/* ô không đủ chỗ đứng cạnh nhau thì xuống hàng riêng (không cắt chữ) */
.hcchat-tht.hang .hcth-h { flex-wrap: wrap; gap: 5px 8px; }
.hcchat-tht.hang .hcth-o { flex: 1 1 45%; min-width: fit-content; max-width: 100%; align-items: flex-start; }
.hcchat-tht.hang .hcth-o.vua { flex: 0 0 auto; }
.hcchat-tht.hang .hcth-o > .ti { margin-top: 1px; }
.hcchat-tht.hang .hcth-c { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.hcchat-tht.hang.tinh .tde { align-items: flex-start; }
.hcchat-tht.hang.tinh .tde b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.hcchat-tht .noibat { display: inline-flex; gap: 10px; align-items: center; margin-top: 8px; background: #f5f8ff; border: 1px solid #c7d7fe; border-radius: 8px; padding: 5px 12px; color: #475467; font-size: 13px; }
.hcchat-tht .noibat b { font-size: 22px; line-height: 1.3; letter-spacing: 5px; color: #1e3a8a; }
.hcchat-tht.hang .ls, .hcchat-tht.hang .nuts { margin-left: 0; }
.hcchat-tht.hang .ls { overflow-wrap: anywhere; }
.hcchat-tht.hang .nuts { justify-content: flex-end; flex-wrap: wrap; }
.hcchat-tht.hang .nuts button { min-width: 84px; justify-content: center; }
.hcchat-tht .nuts button.phu { background: #fff; color: #344054; border: 1px solid #d0d5dd; }
.hcchat-tht .nuts button.nguy { background: #fff; color: #b42318; border: 1px solid #fda29b; }
.hcchat-tht .nuts .xem { display: inline-flex; gap: 6px; align-items: center; justify-content: center; height: 32px; min-width: 84px; padding: 0 14px; box-sizing: border-box; border-radius: 8px;
                         background: #eef4ff; color: #1d4ed8; font-weight: 600; font-size: 13.5px; text-decoration: none; }
@media (max-width: 640px) {
    .hcchat-hang:has(.hcchat-tht) { width: 100%; align-self: stretch; }
    .hcchat-hang:has(.hcchat-tht) > .cho { display: none; }
    .hcchat-hang:has(.hcchat-tht) > .bong { flex: 1 1 auto; width: auto; padding: 10px 12px 8px; }
    .hcchat-tht.hang .nuts button, .hcchat-tht .nuts .xem { height: 36px; }
}
.hcchat-tht.xong .nut { background: #eef2f6; color: #344054; }
.hcchat-hang .goc { position: absolute; bottom: -11px; right: 8px; display: flex; gap: 3px; align-items: center; }
.hcchat-hang .pu { display: flex; gap: 3px; }
/* chip cảm xúc CÙNG CAO 24px với nút tròn Tim / Mắt (anh 27/10, mục 27) */
.hcchat-hang .pu span { background: #fff; border-radius: 12px; padding: 0 7px; font-size: 12px; box-shadow: 0 1px 3px rgba(16,24,40,.18); cursor: pointer; white-space: nowrap;
                        height: 24px; display: inline-flex; align-items: center; gap: 2px; }
.hcchat-hang .pu span.toi { background: #e8efff; }
/* thanh thao tác NỔI cạnh bong bóng, không chiếm chỗ trong dòng (anh 27/10: hiện ra làm bong bóng co lại - giật) */
.hcchat-hang .thao { position: absolute; top: 50%; left: calc(100% + 8px); transform: translateY(-50%); z-index: 2; display: flex; visibility: hidden; opacity: 0;
                     gap: 2px; background: #fff; border-radius: 8px; padding: 2px; box-shadow: 0 2px 8px rgba(16,24,40,.15); }
.hcchat-hang.toi .thao { left: auto; right: calc(100% + 8px); }
.hcchat-hang .thao::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }   /* cầu nối: rê từ bong bóng sang thanh không mất hover */
.hcchat-hang.toi .thao::before { left: auto; right: -10px; }
.hcchat-hang.co-pu .thao { top: calc(50% - 5px); }
.hcchat-hang:hover .thao { visibility: visible; opacity: 1; }
.hcchat-hang .thao button { width: 28px; height: 28px; border-radius: 6px; border: 0; background: none; display: grid; place-items: center; color: #475467; font-size: 16px; cursor: pointer; }
.hcchat-hang .thao button:hover { background: #e8efff; color: var(--xanh); }
.hcchat-tt-gui { align-self: flex-end; font-size: 11.5px; color: #667085; margin: 1px 2px 4px; }
.hcchat-tt-gui .tt-gui { display: inline-flex; gap: 4px; align-items: center; }
.hcchat-tt-gui .xem i { color: var(--xanh); }
.hcchat-tt-gui .loi { color: #d92d20; cursor: pointer; font-weight: 600; }
.hcchat-go { flex: none; min-height: 20px; font-size: 12px; color: #667085; padding: 0 16px; display: flex; align-items: center; gap: 6px; background: #eef1f5; }
.hcchat-go .cham { display: inline-flex; gap: 3px; }
.hcchat-go .cham b { width: 5px; height: 5px; border-radius: 50%; background: #98a2b3; animation: hcchat-cham 1.2s infinite; }
.hcchat-go .cham b:nth-child(2) { animation-delay: .2s; } .hcchat-go .cham b:nth-child(3) { animation-delay: .4s; }
@keyframes hcchat-cham { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* ô soạn */
.hcchat-soan { flex: none; border-top: 1px solid #e4e7ec; background: #fff; padding: 6px 10px 10px; }
.hcchat-soan .tl { display: flex; align-items: center; gap: 8px; padding: 0 2px 6px; }
.hcchat-soan .tl .trich { flex: 1; min-width: 0; border-left: 3px solid var(--xanh); background: #f2f6ff; padding: 4px 10px; border-radius: 4px; font-size: 12.5px; color: #475467;
                          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat-soan .tl .trich b { color: var(--xanh); }
.hcchat-soan .tl button { border: 0; background: none; color: #98a2b3; font-size: 17px; cursor: pointer; }
.hcchat-soan .tep-cho { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 6px; }
.hcchat-soan .tep-cho[hidden] { display: none; }
.hcchat-soan .tc { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; max-width: 260px; border: 1px solid #e4e7ec; border-radius: 8px; padding: 0 4px 0 6px;
                   background: #f9fafb; overflow: hidden; }
.hcchat-soan .tc img { width: 30px; height: 30px; object-fit: cover; border-radius: 4px; }
.hcchat-soan .tc i { font-size: 20px; color: #667085; }
.hcchat-soan .tc .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.hcchat-soan .tc .p { font-size: 11.5px; color: #667085; }
.hcchat-soan .tc.loi { border-color: #fda29b; background: #fef3f2; } .hcchat-soan .tc.loi .p { color: #d92d20; }
.hcchat-soan .tc button { border: 0; background: none; color: #98a2b3; cursor: pointer; font-size: 14px; }
.hcchat-soan .tc .tien { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--xanh); }
.hcchat-soan .dong { display: flex; align-items: flex-end; gap: 4px; }
.hcchat-soan textarea { flex: 1; min-height: 40px; max-height: 160px; resize: none; border: 1px solid #d0d5dd; border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 14px;
                        outline: none; line-height: 1.4; }
.hcchat-soan textarea:focus { border-color: #84a5f5; box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.hcchat-gui { height: 40px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--xanh); color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; }
.hcchat-gui i { font-size: 17px; }

/* ===== bảng thông tin ===== */
.hcchat-tt { width: 320px; flex: none; border-left: 1px solid #e4e7ec; overflow: auto; background: #fff; }
.hcchat-tt[hidden] { display: none; }
.hcchat-tt .tt-dau { text-align: center; padding: 18px 16px 12px; border-bottom: 8px solid #f2f4f7; }
.hcchat-tt .tt-dau > .ten { font-weight: 700; font-size: 16px; }
.hcchat-tt .tt-dau > .phu { color: #667085; font-size: 12.5px; margin-top: 2px; }
.hcchat-tt .tt-nut { display: flex; justify-content: center; gap: 14px; margin-top: 12px; }
.hcchat-tt .tt-nut button { width: 74px; font-size: 12px; color: #475467; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; }
.hcchat-tt .tt-nut span { width: 36px; height: 36px; border-radius: 50%; background: #f2f4f7; display: grid; place-items: center; font-size: 18px; color: #344054; }
.hcchat-tt .tt-luat { margin-top: 12px; text-align: left; border: 1px solid #e4e7ec; border-radius: 8px; padding: 8px 10px; background: #fafbfc; font-size: 12.5px; }
.hcchat-tt .tt-luat .ld { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #344054; margin-bottom: 4px; }
.hcchat-tt .tt-luat .ld button { margin-left: auto; height: 24px; border: 1px solid #d0d5dd; background: #fff; border-radius: 6px; font-size: 12px; padding: 0 10px; color: var(--xanh); cursor: pointer; }
.hcchat-tt .tt-luat .lh { display: flex; gap: 8px; padding: 2px 0; }
.hcchat-tt .tt-luat .lh span { width: 86px; color: #667085; flex: none; } .hcchat-tt .tt-luat .lh i { color: #98a2b3; }
.hcchat-tt .tt-khoi { padding: 12px 16px; border-bottom: 8px solid #f2f4f7; }
.hcchat-tt .tt-khoi.cuoi { border-bottom: 0; }
.hcchat-tt .tt-khoi h4 { margin: 0 0 8px; font-size: 14px; }
.hcchat-tt .tt-khoi .rong { color: #98a2b3; font-size: 12.5px; }
.hcchat-tt .tv { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.hcchat-tt .tv .t { flex: 1; min-width: 0; }
.hcchat-tt .tv .t b { display: block; font-weight: 600; font-size: 13.5px; }
.hcchat-tt .tv .t span { display: block; color: #667085; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat .vai { font-size: 11.5px; color: #b54708; background: #fff3e0; border-radius: 10px; padding: 1px 8px; white-space: nowrap; flex: none; }
.hcchat .nguon, .hcchat-hop .nguon { font-size: 11px; color: #475467; background: #eef1f5; border-radius: 10px; padding: 1px 8px; white-space: nowrap; flex: none; }
.hcchat .nguon.tay, .hcchat-hop .nguon.tay { background: #f3e8ff; color: #7e22ce; }
.hcchat .nguon.tao, .hcchat-hop .nguon.tao { background: #e8efff; color: #1d4ed8; }
.hcchat-tt .tt-anh { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.hcchat-tt .tt-anh a { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #e4e7ec; }
.hcchat-tt .tt-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hcchat-tt .tt-dong { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; color: #344054; cursor: pointer; font-size: 13px; }
.hcchat-tt .tt-dong i { color: var(--xanh); margin-top: 2px; }
.hcchat-tt .tt-roi { border: 0; background: none; color: #d92d20; display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; padding: 6px 0; }

/* ===== menu nổi (cảm xúc · thêm · @nhắc · gợi ý) - dòng phẳng như combo 5S ===== */
.hcchat-menu { position: fixed; z-index: 1080; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.18); padding: 4px; min-width: 180px; font-size: 13.5px; color: #101828;
               max-height: 320px; overflow: auto; }
.hcchat-menu > div { min-height: 32px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.hcchat-menu > div:hover, .hcchat-menu > div.on { background: #f2f4f7; }
.hcchat-menu > div i { font-size: 16px; color: #475467; }
.hcchat-menu > div.do, .hcchat-menu > div.do i { color: #d92d20; }
.hcchat-menu > div small { margin-left: auto; color: #98a2b3; font-size: 12px; padding-left: 12px; }
.hcchat-menu hr { border: 0; border-top: 1px solid #f2f4f7; margin: 3px 0; }
.hcchat-menu .cx { display: flex; gap: 2px; padding: 2px; }
.hcchat-menu .cx:hover { background: none; }
.hcchat-menu .cx span { font-size: 22px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; }
.hcchat-menu .cx span:hover { background: #f2f4f7; transform: scale(1.15); }

/* ===== hộp tin mới góc màn ===== */
.hcchat-goc { position: fixed; right: 20px; bottom: 20px; z-index: 1070; display: flex; flex-direction: column; gap: 10px; width: 360px; max-width: calc(100vw - 32px); }
.hcchat-bm { background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.22); padding: 12px; display: flex; gap: 10px; border-left: 4px solid #1d4ed8;
             animation: hcchat-vao .2s ease-out; }
@keyframes hcchat-vao { from { transform: translateY(12px); opacity: 0; } }
.hcchat-bm .g { flex: 1; min-width: 0; }
.hcchat-bm .d1 { display: flex; align-items: center; gap: 6px; }
.hcchat-bm .d1 b { flex: 1; font-size: 13.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat-bm .d1 span { color: #98a2b3; font-size: 11.5px; }
.hcchat-bm .d1 button { border: 0; background: none; color: #98a2b3; cursor: pointer; font-size: 15px; padding: 0; }
.hcchat-bm .nd { color: #344054; font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcchat-bm .tl { margin-top: 8px; display: flex; gap: 6px; }
.hcchat-bm .tl input { flex: 1; min-width: 0; height: 32px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; outline: none; }
.hcchat-bm .tl button { height: 32px; border: 0; border-radius: 8px; background: #1d4ed8; color: #fff; padding: 0 12px; font-weight: 600; cursor: pointer; }

/* ===== hộp Tạo / Sửa nhóm (khung HcHopChon: .hchc) ===== */
.hcchat-hop { font-size: 13.5px; gap: 10px; }
.hcchat-hop .hchc-khung { flex: none; }
.hcchat-hop .hcchat-hop-duoi { flex: 1; }
.hcchat-hop-luoi { display: grid; grid-template-columns: 130px 1fr; gap: 6px 8px; align-items: start; }
.hcchat-hop-luoi .hc-label { min-height: 32px; display: flex; align-items: center; }
.hcchat-hop-luoi input.hc-ctl { height: 32px; }
.hcchat-chips { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 32px; height: auto !important; padding: 3px 6px !important; cursor: text; }
.hcchat-chips .ds { display: contents; }
.hcchat-chips .chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px 0 8px; border-radius: 6px; background: #eef1f5; font-size: 12.5px; color: #344054; }
.hcchat-chips .chip i { font-size: 12px; color: #98a2b3; cursor: pointer; }
.hcchat-chips input { flex: 1; min-width: 120px; border: 0; outline: none; background: none; font: inherit; font-size: 13px; height: 24px; }
.hcchat-hop-ray { display: flex; gap: 24px; padding: 10px 2px 2px; flex-wrap: wrap; }
.hcchat-ray { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #344054; cursor: pointer; margin: 0; }
.hcchat-ray input { display: none; }
.hcchat-ray b { width: 34px; height: 20px; border-radius: 10px; background: #d0d5dd; position: relative; flex: none; transition: background .15s; }
.hcchat-ray b::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.hcchat-ray input:checked + b { background: #1d4ed8; } .hcchat-ray input:checked + b::after { left: 16px; }
.hcchat-ray input:disabled + b { opacity: .5; }
.hcchat-hop-ds { flex: 1; min-height: 0; overflow: auto; }
.hcchat-hop-ds .mc { height: 40px; border: 1px solid #e4e7ec; border-radius: 8px; display: flex; align-items: center; gap: 10px; padding: 0 10px; margin-bottom: 4px; }
.hcchat-hop-ds .mc .t { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: baseline; white-space: nowrap; overflow: hidden; }
.hcchat-hop-ds .mc .t b { font-weight: 500; }
.hcchat-hop-ds .mc .t span { color: #667085; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.hcchat-hop .hchc-nut.chinh:disabled { opacity: .55; cursor: not-allowed; }

/* ===== điện thoại: từng bước ===== */
@media (max-width: 640px) {
    /* khung chat PHỦ phần màn còn thấy (HcChat.datCao đặt top / height theo visualViewport - bàn phím bật thì co lại) */
    .hcchat.phu { position: fixed; left: 0; right: 0; top: 0; z-index: 1040; margin: 0; border: 0; border-radius: 0; }
    .hcchat-ds, .hcchat-kc, .hcchat-tt { display: none; width: 100%; border: 0; }
    .hcchat[data-buoc="ds"] .hcchat-ds, .hcchat[data-buoc="kc"] .hcchat-kc, .hcchat[data-buoc="tt"] .hcchat-tt { display: flex; }
    .hcchat[data-buoc="tt"] .hcchat-tt { display: block; }
    .hcchat-hang { max-width: 88%; }
    .hcchat-hang .thao { display: none !important; }
    .hcchat-soan textarea, .hcchat-tim input, .hcchat-bm .tl input { font-size: 16px; }
    .hcchat-gui { width: 42px; padding: 0; justify-content: center; }
    .hcchat-goc { right: 8px; left: 8px; bottom: 8px; width: auto; }
    .hcchat-hop-luoi { grid-template-columns: 1fr; }
}

/* ===== 26/10 (anh góp ý): nút Tạo nhóm có chữ sát phải hàng chip (điện thoại) · nút ← to · nút Tải về trong hộp xem ảnh ===== */
.hcchat-loc { align-items: center; }
.hcchat-loc .hcchat-tao { margin-left: auto; height: 30px; padding: 0 12px; border-radius: 15px; border: 0; background: #1d4ed8; color: #fff; font-weight: 600; font-size: 13px;
              display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.hcchat-loc .hcchat-tao i { font-size: 16px; }
.hcchat-xa-tai { width: 36px; height: 36px; border-radius: 8px; display: inline-grid; place-items: center; color: #344054; font-size: 20px; margin-left: auto; margin-right: 4px; text-decoration: none; }
.hcchat-xa-tai:hover { background: #f2f4f7; }
@media (max-width: 640px) {
    .hcchat .hcchat-lui { width: 44px; height: 44px; margin-left: -10px; flex: none; }
    .hcchat .hcchat-lui i { font-size: 30px; }
    .hcchat-ds-dau { padding: 8px 10px 6px 8px; gap: 6px; }
    .hcchat-ds-dau .hcchat-tron { width: 40px; height: 40px; font-size: 21px; }
    .hcchat-loc { padding: 2px 10px 8px; }
}

/* ===== nút gọi điện / Zalo (HcGoi.htmlThang, anh 26/10): danh sách (người) · đầu cuộc 1-1 · cạnh tên người gửi trong nhóm · thành viên ===== */
.hcchat-goi { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.hcchat-goi .hcg-goi + .hcg-goi { margin-left: 0; }
.hcchat-goi.ds { margin-left: 6px; }
.hcchat-goi.ds .hcg-goi, .hcchat-goi.tv .hcg-goi { width: 30px; height: 30px; font-size: 16px; }
.hcchat-goi.dau { margin-right: 4px; }
.hcchat-goi.dau .hcg-goi { width: 36px; height: 36px; font-size: 19px; }
.hcchat-hang .nguoi { display: flex; align-items: center; gap: 8px; }
.hcchat-goi.tin .hcg-goi { width: 24px; height: 24px; font-size: 13px; }
.hcchat-goi.tin .hcg-goi.hcg-zalo { font-size: 8.5px; }
.hcchat-goi .hcg-goi.hcg-zalo { font-size: 10px; }
.hcchat-goi.dau .hcg-goi.hcg-zalo { font-size: 11px; }
.hcchat-goi.tin .hcg-goi.hcg-zalo { font-size: 8px; }

/* ===== điện thoại - anh 26/10 lần 2: ô gõ lên cao (đáy máy bo góc) · Gửi nhỏ · MỘT nút tệp to · giữ tay không bôi đen · tim rỗng kiểu Zalo ===== */
@media (max-width: 640px) {
    .hcchat-soan { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
    .hcchat .hcchat-gui { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
    .hcchat .hcchat-gui i { font-size: 18px; }
    .hcchat-soan .dong { align-items: center; }
    .hcchat-soan .hcchat-nut-bt { width: 40px; height: 40px; }
    .hcchat-soan .hcchat-nut-bt i { font-size: 26px; }
    .hcchat-hang .bong { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
    .hcchat-hang .goc { right: -6px; }
}
/* tim rỗng + mắt ở góc MỌI tin, PC và Mobi (anh 27/10); đã bày tỏ thì chỗ tim là cảm xúc của mình */
.hcchat-hang .tim, .hcchat-hang .mat { width: 24px; height: 24px; border-radius: 50%; border: 0; background: #fff; color: #98a2b3;
                    box-shadow: 0 1px 3px rgba(16,24,40,.22); display: grid; place-items: center; padding: 0; cursor: pointer; }
.hcchat-hang .tim i, .hcchat-hang .mat i { font-size: 14px; }
.hcchat-hang .tim:hover { color: #ef4444; }

/* ===== 26/10 lần 3: máy tính KHÔNG thêm thanh cuộn dọc của web ở màn chat · điện thoại khóa cuộn trang nền (thanh tiêu đề gốc không nháy khi vuốt) ===== */
html.hcchat-mo #main-content { overflow-y: hidden; }
html.hcchat-phu, html.hcchat-phu body { overflow: hidden; overscroll-behavior: none; height: 100%; }
html.hcchat-phu .topbar, html.hcchat-phu .hc-moitruong { visibility: hidden; }
html.hcchat-phu #main-content { overflow: hidden; }
.hcchat-tin, .hcchat-ds-cuon, .hcchat-tt, .hcchat-hop-ds { overscroll-behavior: contain; }

/* ===== 26/10 lần 4: THẺ THÔNG TIN người (bấm ảnh người gửi; nút ⓘ cạnh tên đã bỏ 27/10) ===== */
.hcchat-hang .cho .hcchat-av { cursor: pointer; }
.hcchat-menu > .hcchat-thenguoi { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 16px 12px; min-width: 260px; max-width: 320px;
                                  white-space: normal; text-align: center; cursor: default; }
.hcchat-menu > .hcchat-thenguoi:hover { background: none; }
.hcchat-thenguoi .ten { font-size: 15px; margin-top: 2px; }
.hcchat-thenguoi .cv { color: #344054; font-size: 13px; }
.hcchat-thenguoi .dv { color: #667085; font-size: 12.5px; }
.hcchat-thenguoi .so { color: #475467; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; margin-top: 4px; }
.hcchat-thenguoi .so i { font-size: 15px; color: #475467; }
.hcchat-thenguoi .nut { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.hcchat-thenguoi .nhan { height: 36px; padding: 0 14px; border-radius: 18px; border: 0; background: #1d4ed8; color: #fff; font: inherit; font-weight: 600;
                         display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hcchat-thenguoi .nhan i { font-size: 17px; color: #fff; }
@media (max-width: 640px) {
    .hcchat-goi.tin .hcg-goi { width: 28px; height: 28px; font-size: 15px; }
    .hcchat-goi.tin .hcg-goi.hcg-zalo { font-size: 9px; }
}

/* ===== quyền NHẮN trong nhóm (26/10): nút tròn từng người (bật = bong bóng xanh đặc · tắt = bong bóng gạch chéo xám) + hai nút "tất cả" + ô gõ bị khóa ===== */
.hcchat-quyen { width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed #b4bfcd; background: #fff; color: #98a2b3; display: inline-grid; place-items: center;
                padding: 0; cursor: pointer; flex: none; margin-left: 6px; }
.hcchat-quyen i { font-size: 17px; }
.hcchat-quyen.bat { border: 0; background: #1d4ed8; color: #fff; }
.hcchat-tt .tt-khoi h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hcchat-tt .tt-quyen { margin-left: auto; display: inline-flex; gap: 6px; }
.hcchat-tt .tt-quyen button { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid #d0d5dd; background: #fff; font-size: 12px; font-weight: 600; color: #344054; cursor: pointer; }
.hcchat-tt .tt-quyen button:first-child { border-color: #c7d7fe; color: #1d4ed8; }
.hcchat-soan.khoa { display: flex; align-items: center; gap: 8px; color: #667085; font-size: 13px; padding: 14px 16px; background: #f9fafb; }
.hcchat-soan.khoa i { font-size: 20px; color: #98a2b3; }
@media (max-width: 640px) { .hcchat-soan.khoa { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); } }

/* ===== biểu tượng 💬 ở Cổng thông tin (26/10) ===== */
.cg-chat-vo[hidden] { display: none; }
.cg-tren .cg-chat { position: relative; display: inline-grid; place-items: center; width: 30px; height: 26px; font-size: 19px; }
.cg-chat .tb-thu-so { position: absolute; top: -6px; right: -8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff;
                      font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
.cg-chat .tb-thu-so[hidden] { display: none; }
@media (min-width: 641px) { .hcchat-tt { width: 360px; } }
.hcchat-tt .tv .t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat-tt .tv .nguon, .hcchat-tt .tv .vai { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.hcchat-tt .tv .hcchat-goi.tv { margin-left: 4px; }

/* ===== 26/10 tối (anh): bỏ nút Thông tin đầu khung - bấm ảnh / tên là mở · hộp THÔNG TIN TIN NHẮN (ai đã đọc / chưa đọc / thả tim) ===== */
.hcchat-kc-ai { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }   /* chỉ để nhìn - mở thông tin bằng nút bên phải (27/10) */
.hcchat-tt-gui [data-xem] { cursor: pointer; }
.hcchat-tt-gui [data-xem]:hover { color: var(--xanh); text-decoration: underline dotted; }
.hcchat-hop.hcchat-xem .hchc-khung { flex: 1; gap: 0; }
.hcchat-xem-x { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: #475467; display: grid; place-items: center; font-size: 18px; cursor: pointer; }
.hcchat-xem-x:hover { background: #f2f4f7; }
.hcchat-xem-tin { display: flex; gap: 10px; align-items: flex-start; padding: 0 4px 10px; flex: none; }
.hcchat-xem-tin .g { min-width: 0; flex: 1; }
.hcchat-xem-tin .g > div:first-child { display: flex; gap: 8px; align-items: baseline; }
.hcchat-xem-tin .g span { color: #667085; font-size: 12px; }
.hcchat-xem-tin .nd { color: #344054; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.hcchat-xem-loc { padding: 0 0 8px; border-bottom: 0; flex: none; }
.hcchat-xem-loc button { border: 1px solid #e4e7ec; height: 32px; }
.hcchat-xem-loc button.on { border-color: #b2ccff; }
.hcchat-xem-loc button .so { font-weight: 700; }
.hcchat-xem-ds { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.hcchat-xem-rong { color: #667085; text-align: center; padding: 32px 0; }
/* máy tính: lưới, tiêu đề NỔI BẬT (dải nền màu nhãn, đầu cột dính) */
/* điện thoại: THẺ một người, hộp phủ màn (hchopchon.css) */
.hcchat-xem-the { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border: 1px solid #e4e7ec; border-radius: 8px; margin-bottom: 5px; background: #fff; }
.hcchat-xem-the .g { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hcchat-xem-the .g b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat-xem-the .g span { color: #667085; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat-xem-the .luc { color: #475467; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hcchat-xem-the .bt { font-size: 18px; }
@media (max-width: 640px) {
    .hcchat-xem-loc { overflow-x: auto; flex-wrap: nowrap; }
    .hcchat-xem-loc button { flex: none; height: 34px; }
    .hcchat-xem .hchc-chan .hchc-nut.phu { flex: 1; width: auto; }
}

/* ===== 26/10 tối (anh): @ trên điện thoại gắn TRONG khung soạn (bám bàn phím) · 💬 Nhắn riêng + gọi / Zalo trong hộp Thông tin tin nhắn ===== */
.hcchat-soan { position: relative; }
.hcchat-menu.hcchat-menu-nhac.trong { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 4px); top: auto; min-width: 0; max-height: 210px; overflow-y: auto; z-index: 5; }
.hcchat-menu.trong > div { min-height: 40px; }
.hcchat-menu.trong > div span { overflow: hidden; text-overflow: ellipsis; }
.hcchat-xem .lh { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.hcchat-xem-nhan { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #c7d7fe; background: #eef4ff; color: #1d4ed8; display: inline-grid; place-items: center; padding: 0; cursor: pointer; flex: none; }
.hcchat-xem-nhan:hover { background: #dbe7ff; }
.hcchat-xem-nhan i { font-size: 15px; }
@media (max-width: 640px) { .hcchat-xem-nhan { width: 32px; height: 32px; } .hcchat-xem-nhan i { font-size: 17px; } }

/* ===== 27/10 lần 2 (anh): Actbar PC hiện khi chuột ở BẤT KỲ đâu trong dải chiều cao của Msg · tim/mắt mọi tin · thanh cảm xúc nổi trên tim · Chuyển tiếp ===== */
@media (min-width: 641px) {
    .hcchat-tin { overflow-x: hidden; }
    /* vùng rê chuột trong suốt kéo hết bề ngang Msgpane; đứng ĐẦU hàng nên bong bóng / ảnh đại diện (định vị, đứng sau) vẫn nhận bấm */
    .hcchat-hang::before { content: ""; position: absolute; top: -1px; bottom: -2px; left: -100vw; right: -100vw; }
    .hcchat-hang .cho { position: relative; }
}
.hcchat-hang .tim.co { font-size: 14px; line-height: 1; color: inherit; }
.hcchat-hang .tim.co:hover { transform: scale(1.12); }
.hcchat-hang .goc { gap: 4px; }
.hcchat-cxnoi { padding: 3px; border-radius: 22px; min-width: 0; }
.hcchat-cxnoi .cx span { border-radius: 50%; }
.hcchat-cxnoi .cx span.on { background: #e0eaff; }
.hcchat-hang .ctiep { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #667085; font-style: italic; margin-bottom: 2px; }
.hcchat-hang .ctiep i { font-size: 14px; }
/* hộp Chuyển tiếp: tóm tắt tin · tìm · danh sách thẻ chọn (khuôn danh sách chọn) */
.hcchat-ctiep .hchc-khung { gap: 8px; }
.hcchat-ctiep .hchc-dau { margin-bottom: 2px; }
.hcchat-ctiep-tom { display: flex; align-items: center; gap: 8px; background: #f5f7fa; border-left: 3px solid var(--xanh); border-radius: 6px; padding: 6px 10px; font-size: 13px; color: #475467; flex: none; }
.hcchat-ctiep-tom span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hcchat-ctiep-tom i { color: var(--xanh); font-size: 16px; flex: none; }
.hcchat-ctiep .hchc-tim { flex: none; }
.hcchat-ctiep .hcchat-hop-ds { display: flex; flex-direction: column; gap: 4px; }
.hcchat-ctiep .hchc-the { gap: 10px; }
.hcchat-ctiep .hchc-the .hcchat-av.n { width: 26px; height: 26px; font-size: 11px; }
/* PC (anh 27/10): Chatscr gần phủ kín vùng nội dung - đệm 4px, giữ viền bo · tin tệp: Tải về cùng dòng dung lượng (Mobi giữ nút to mép phải) */
@media (min-width: 641px) {
    html.hcchat-mo #main-content { padding: 4px; }
    .hcchat-hang .tep .tai.dd { display: none; }
    .hcchat-hang .tep .co { display: inline-flex; align-items: center; gap: 8px; }
    .hcchat-hang .tep .tai.pc { font-size: 16px; line-height: 1; display: inline-flex; }
}
@media (max-width: 640px) { .hcchat-hang .tep .tai.pc { display: none; } }

/* ============================================================
   TÌM NGƯỜI · HỘP NHÓM · TÌM TIN (anh 27/10/2026, _docs/77 mục 28; mockup _Ngoai/_Claude/Xem/chat-tim.html lần 7)
   ============================================================ */
/* Chatlist: ô tìm bo 8 (như ô form chung) + hai nút tròn 32 - Tìm tất cả BẬT = nền xanh đặc biểu tượng trắng (tắt = nền trắng viền: khác hẳn) */
.hcchat-tim { border-radius: 8px; }
.hcchat-tn-nut { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #d0d5dd; background: #fff; color: #475467; display: grid; place-items: center;
                 font-size: 17px; cursor: pointer; flex: none; padding: 0; }
.hcchat-tn-nut:hover { border-color: #98a2b3; color: var(--xanh); }
.hcchat-tn-nut.on { background: var(--xanh); border-color: var(--xanh); color: #fff; }
.hcchat-tn-nut.on:hover { background: #1e40af; color: #fff; }
.hcchat-ct mark, .hcchat-luoi mark { background: #fef0c7; color: inherit; border-radius: 3px; padding: 0 1px; font-weight: 600; }
.hcchat-ct .tom .ai { color: #475467; font-weight: 600; }
.hcchat-ct .tom i { color: #98a2b3; font-size: 13px; vertical-align: -1px; }
.hcchat-ds-khoi b { color: var(--xanh); }
.hcchat-ds-them { margin: 6px 8px 10px; text-align: center; color: var(--xanh); font-weight: 600; font-size: 13px; cursor: pointer; }
.hcchat-menu > div small { margin-left: auto; padding-left: 14px; color: #98a2b3; font-size: 12px; }

/* combo CHỌN NHIỀU (khuôn .hc-cbo-menu form chung): ô tick tự vẽ, mục ghi chú bên phải, Bỏ chọn / Xong dính đáy */
.hcchat-cbm { max-height: 360px; }
.hcchat-cbm .o-tick { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #c0c6d0; background: #fff; display: inline-grid; place-items: center; font-size: 12px; color: #fff; }
.hcchat-cbm .hc-cbo-muc > .o-tick { flex: 0 0 18px; }   /* luật chung .hc-cbo-muc > span { flex: 1 } kéo dãn ô tick */
.hcchat-cbm .o-tick.on { background: #1d4ed8; border-color: #1d4ed8; }
.hcchat-cbm .hc-cbo-muc .ly { flex: none; color: #98a2b3; font-size: 12px; font-weight: 400; }
.hcchat-cbm .m-td { padding: 8px 12px 3px; font-size: 11.5px; font-weight: 700; color: #667085; text-transform: uppercase; letter-spacing: .3px; }
.hcchat-cbm .chan { position: sticky; bottom: -4px; background: #fff; border-top: 1px solid #f0f2f5; padding: 6px 4px 4px; display: flex; gap: 6px; justify-content: flex-end; }
.hcchat-cbm .chan[hidden] { display: none; }
.hcchat-cbm .chan button { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid #d0d5dd; background: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: #344054; }
.hcchat-cbm .chan button.chinh { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

/* hộp chung: nút cỡ chuẩn 32, nút "trái" (Nhắn tin / Tìm người / Ở lại) dồn mép trái thanh nút */
.hcchat-tk .hchc-nut { height: 32px; padding: 0 14px; font-size: 13.5px; }
.hcchat-tk .hchc-nut i { font-size: 17px; }
.hcchat-hop .hchc-chan .hcchat-trai { order: -1; margin-right: auto; }
@media (min-width: 641px) { .hcchat-tk .hchc-chan .hchc-nut.chinh { width: auto; min-width: 110px; } .hcchat-tk .hchc-chan .hchc-nut.phu { min-width: 76px; } }
.hcchat-tk .hchc-dau { height: 34px; margin-bottom: 8px; }
.hcchat-tk .hchc-dau .ic { color: var(--xanh); font-size: 19px; }
.hcchat-tk .hchc-dau b { font-size: 15px; white-space: nowrap; }
/* panel trái: CHỈ combo (nhãn nằm trong combo) */
.hcchat-tn .hchc-hai, .hcchat-tt-tin .hchc-hai { grid-template-columns: 280px minmax(0, 1fr); }
.hcchat-tk-trai { min-height: 0; }
.hcchat-tk-dk { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.hcchat-tk-dk .hc-area { display: flex; flex-direction: column; gap: 6px; }
.hcchat-tk-dk .hc-ctl { display: flex; align-items: center; min-width: 0; min-height: 32px; height: 32px; }
.hcchat-tk-dk input.hc-ctl { font: inherit; outline: 0; width: 100%; }
.hcchat-tk-dk .hc-cbo-nut > i:first-child { color: #667085; font-size: 16px; }
.hcchat-tk-dk .hc-ctl.co { border-color: #84adff; background: #f5f8ff; }
.hcchat-tk-dk .hc-ctl.co .hc-cbo-chu { color: #1d3a8a; font-weight: 600; }
.hcchat-tk-dk .hc-ctl.co .hc-cbo-nut > i:first-child { color: var(--xanh); }
.hcchat-tk-dk .so { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--xanh); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.hcchat-tk-bo { margin-top: auto; align-self: flex-start; border: 0; background: none; color: #475467; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
                display: inline-flex; align-items: center; gap: 5px; padding: 0 6px; height: 30px; border-radius: 6px; }
.hcchat-tk-bo:hover { color: #d92d20; background: #fef3f2; }
/* panel phải: LƯỚI DÙNG CHUNG (lớp thật hcg-moi), cao vừa khung */
.hcchat-tk-luoi { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hcchat-luoi { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hcchat-luoi .hcg-tl { flex: none; flex-wrap: nowrap; }
.hcchat-luoi .hc-grid-ln .hc-grid-ln-o { width: 180px; }
.hcchat-luoi .hc-grid-scroll { flex: 1; min-height: 0; max-height: none; overflow: auto; border: 1px solid #d5dbe3; }   /* bỏ max-height chung: lưới cao VỪA khung */
.hcchat-luoi .hc-grid-table thead th { position: sticky; top: 0; z-index: 1; text-align: center; }
.hcchat-luoi .hc-grid-table tbody td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.hcchat-luoi .hc-grid-table td.gc, .hcchat-luoi .hc-grid-table th.gc { text-align: center; padding: 0; text-overflow: clip; }
.hcchat-luoi .hc-grid-table td.stt { color: #667085; }
.hcchat-luoi .hc-grid-table tbody tr.tich > td { color: #6d28d9; }                         /* dòng TÍCH tô CHỮ tím (7.6c) */
.hcchat-luoi .hc-grid-table tbody tr.loai > td:not(.gc) { color: #98a2b3; text-decoration: line-through; text-decoration-color: #f97066; }
.hcchat-luoi .hc-grid-table input[type=checkbox] { width: 15px; height: 15px; vertical-align: middle; cursor: pointer; margin: 0; }
.hcchat-luoi .hcchat-thgui label { display: inline-flex; align-items: center; gap: 5px; margin: 0; cursor: pointer; font-weight: inherit; }
.hcchat-luoi-rong { text-align: center; color: #98a2b3; height: 60px; }
.hcchat-dem { font-size: 13.5px; font-weight: 700; color: #344054; padding: 0 4px; white-space: nowrap; }
.hcchat-dem .l { color: #b42318; cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.hcchat-dau { font-size: 15px; vertical-align: -2px; margin-left: 5px; } .hcchat-dau.tao { color: #1d4ed8; } .hcchat-dau.tay { color: #067647; }
.hcchat-botay { border: 0; background: none; color: #98a2b3; cursor: pointer; font-size: 16px; padding: 0; width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; }
.hcchat-botay:hover { color: #d92d20; background: #fef3f2; }

/* hộp NHÓM: phần 1 thu gọn / mở · ô chip (khối điều kiện xanh, người thêm tay xanh lá) · chế độ Xem khóa */
.hcchat-nhom .hcchat-hop-duoi { display: flex; flex-direction: column; min-height: 0; }
.hcchat-gon-dau { cursor: pointer !important; user-select: none; }
.hcchat-gon-mui { margin-left: auto; color: #667085; font-size: 18px; }
.hcchat-gon-tom { margin-left: 12px; color: #475467; font-weight: 400; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcchat-tk .hcchat-gon-tom b { color: #101828; font-weight: 600; font-size: 13px; }
.hcchat-hop-tren.gon .hchc-dau { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.hcchat-chixem { margin-left: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #475467; background: #f2f4f7; border-radius: 999px; padding: 1px 9px; white-space: nowrap; flex: none; }
.hcchat-nhom-o { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 8px; grid-auto-rows: minmax(32px, auto); }
.hcchat-nhom-o > .hc-label { display: flex; align-items: center; gap: 4px; }
.hcchat-nhom-o > input.hc-ctl { font: inherit; outline: 0; height: 32px; }
.hcchat-nhom-o > .hcchat-chips { padding: 3px 4px 3px 6px !important; }
.hcchat-chips .chip.dk { background: #e8efff; color: #1d3a8a; cursor: pointer; max-width: 100%; min-width: 0; }
.hcchat-chips .chip.dk:hover { background: #dbe5fd; }
.hcchat-chips .chip.dk > i:first-child { color: var(--xanh); font-size: 13px; cursor: pointer; }
.hcchat-chips .chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcchat-chips .chip.ng { background: #ecfdf3; color: #05603a; }
.hcchat-chips .chip.ng i { color: #32d583; }
.hcchat-chips .goi { flex: 1; min-width: 120px; color: #98a2b3; font-size: 13px; cursor: pointer; }
.hcchat-chips.khoa { background: #f8f9fa; border-color: #dde2e8; cursor: default; }
.hcchat-chips.khoa .chip.dk { cursor: default; }
.hcchat-onut { flex: none; margin-left: auto; width: 26px; height: 24px; border: 0; border-radius: 6px; background: none; color: #475467; font-size: 17px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.hcchat-onut:hover { background: #e8efff; color: var(--xanh); }
.hcchat-quaso { color: #d92d20; font-size: 12.5px; font-weight: 600; }
/* hộp hỏi BA nút */
.hcchat-hoi { left: 50% !important; top: 38% !important; transform: translate(-50%, -50%); width: min(470px, calc(100vw - 24px)); height: auto !important; z-index: 1100; }
.hcchat-hoi-nen { position: fixed; inset: 0; z-index: 1099; background: rgba(16, 24, 40, .35); touch-action: none; }
.hcchat-hoi-chu { padding: 4px 4px 6px; color: #344054; line-height: 1.6; }
/* hộp TÌM TIN NHẮN */
.hcchat-tk-ngay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hcchat-tk-ngay input { min-width: 0; }
.hcchat-tk-ghi { color: #667085; font-weight: 500; font-size: 13px; }
.hcchat-tk-ket { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; min-height: 0; }
.hcchat-tk-ket .hcchat-ct { border: 1px solid #e4e7ec; border-radius: 8px; padding: 7px 8px; flex: none; }
.hcchat-tk-ket .hcchat-ct:hover { border-color: #98a2b3; background: #fff; }
.hcchat-tk-them { align-self: center; margin: 6px 0; height: 30px; padding: 0 14px; border-radius: 8px; border: 1px solid #d0d5dd; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--xanh); cursor: pointer; }
/* hộp Chuyển tiếp: dòng "n người từ Tìm người" */
.hcchat-ctiep-ng:empty { display: none; }
.hcchat-ctiep-ng { display: flex; align-items: center; gap: 8px; background: #ecfdf3; border-radius: 6px; padding: 4px 6px 4px 10px; font-size: 13px; color: #05603a; flex: none; }
.hcchat-ctiep-ng span { flex: 1; font-weight: 600; }
.hcchat-ctiep-ng button { border: 0; background: none; color: #05603a; font: inherit; font-weight: 600; cursor: pointer; height: 26px; padding: 0 8px; border-radius: 6px; }
.hcchat-ctiep-ng button:hover { background: #d1fadf; }
/* Infopane: nút Sửa nhóm to ra ngoài · nút Thành viên một dòng */
.hcchat-tt-sua { margin: 14px auto 0; width: 100%; height: 36px; border: 0; border-radius: 8px; background: var(--xanh); color: #fff; font: inherit; font-weight: 600; font-size: 14px;
                 display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.hcchat-tt-sua i { font-size: 18px; }
.hcchat-tt-sua:hover { background: #1e40af; }
.hcchat-tt-tv { width: 100%; height: 40px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; font: inherit; display: flex; align-items: center; gap: 10px; padding: 0 12px; cursor: pointer; color: #101828; }
.hcchat-tt-tv:hover { border-color: #98a2b3; background: #f9fafb; }
.hcchat-tt-tv > i:first-child { color: var(--xanh); font-size: 19px; } .hcchat-tt-tv span { font-weight: 600; } .hcchat-tt-tv b { margin-left: auto; color: #475467; } .hcchat-tt-tv > i:last-child { color: #98a2b3; }
.hcchat-tt .tt-luat .lh span { width: 96px; }
@media (max-width: 640px) {
    .hcchat-tn .hchc-hai, .hcchat-tt-tin .hchc-hai { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .hcchat-tk-dk { max-height: 34vh; }
    .hcchat-luoi .hc-grid-ln .hc-grid-ln-o { width: 120px; font-size: 16px; }
    .hcchat-nhom-o { grid-template-columns: 84px minmax(0, 1fr); }
    .hcchat-tk-dk input.hc-ctl, .hcchat-nhom-o input { font-size: 16px; }
}

/* ảnh chân dung nhỏ trước tên trong lưới người (lưới Thành viên · Tìm người · Thông tin tin nhắn - anh 28/10) */
.hcchat-av.xs { width: 22px; height: 22px; font-size: 9.5px; vertical-align: middle; margin-right: 8px; }
.hcchat-luoi td.ten { overflow: hidden; text-overflow: ellipsis; }
.hcchat-luoi td.lh .lh { display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.hcchat-luoi td.so { font-variant-numeric: tabular-nums; }
.hcchat-luoi td.luc { font-variant-numeric: tabular-nums; text-align: center; }
/* hộp Thông tin tin nhắn máy tính: lưới dùng chung cao vừa khung (lưới tự cuộn) */
@media (min-width: 641px) { .hcchat-xem-ds { display: flex; flex-direction: column; overflow: hidden; } }

/* ===== 28/10 (anh, _docs/77 mục 30): nhãn hộp Nhóm ngắn (Tên · Điều kiện) - cột nhãn hẹp lại · ĐIỆN THOẠI: lưới Thành viên = THẺ ===== */
.hcchat-tvluoi { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.hcchat-tvds { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-top: 6px; }
.hcchat-tvthe { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px 6px 10px; border: 1px solid #e4e7ec; border-radius: 8px;
    margin-bottom: 5px; background: #fff; }
.hcchat-tvthe.dang-xem { background: #eef4ff; border-color: #c7d7fe; }
.hcchat-tvthe.loai .g b { text-decoration: line-through; color: #98a2b3; }
.hcchat-tvthe .g { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hcchat-tvthe .g b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat-tvthe .g span { color: #667085; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcchat-tvthe .ck { display: inline-flex; align-items: center; gap: 2px; flex: none; color: #667085; font-size: 15px; }
.hcchat-tvthe .ck input { width: 18px; height: 18px; margin: 0; }
.hcchat-tvthe .lh { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.hcchat-tvthe .hcchat-xem-nhan { width: 30px; height: 30px; font-size: 17px; }
.hcchat-tvluoi .hcchat-luoi-rong { padding: 24px 8px; text-align: center; color: #98a2b3; }
/* nút Thành viên ở đầu khung chat nhóm (28/10): máy tính nút có chữ, điện thoại nút tròn biểu tượng (lớp hcchat-tron) */
.hcchat-nut-tv:not(.hcchat-tron) { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 8px;
    background: #fff; color: #344054; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.hcchat-nut-tv:not(.hcchat-tron):hover { background: #eef4ff; border-color: #c7d7fe; color: var(--xanh); }
.hcchat-nut-tv i { font-size: 17px; }
/* hai nút tìm nằm TRONG ô tìm, mép phải (28/10, _docs/77 mục 34): nhỏ, không viền; Tìm tất cả BẬT vẫn nền xanh đặc biểu tượng trắng */
.hcchat-tim { padding-right: 3px; }
.hcchat-tim .hcchat-tn-nut { width: 28px; height: 28px; border: 0; background: none; font-size: 17px; }
.hcchat-tim .hcchat-tn-nut:hover { background: #e4e7ec; color: var(--xanh); }
.hcchat-tim .hcchat-tn-nut.on { background: var(--xanh); color: #fff; }
.hcchat-tim .hcchat-tn-nut.on:hover { background: #1e40af; color: #fff; }
@media (max-width: 640px) { .hcchat-tim .hcchat-tn-nut { width: 32px; height: 32px; font-size: 19px; } }
/* ô tìm Chatlist CO được (28/10, _docs/77 mục 36): input search giữ bề rộng tự nhiên ~185 px - hàng đầu điện thoại cần 433 px, che 🏠 🌐 */
.hcchat-tim { min-width: 0; }
.hcchat-tim input { width: 0; }

/* CHỌN NHIỀU TIN để xóa phía tôi (27/11/2026, _docs/77 mục 57): ô tick đầu mỗi tin, thanh dưới thay ô soạn (ô soạn chỉ ẩn - giữ chữ đang gõ) */
.hcchat-tin.chon-nhieu .hcchat-hang { cursor: pointer; padding-left: 34px; max-width: calc(78% + 34px); }
.hcchat-tin.chon-nhieu .hcchat-hang.toi { padding-left: 0; padding-right: 0; }
.hcchat-tin.chon-nhieu .thao, .hcchat-tin.chon-nhieu .goc .tim, .hcchat-tin.chon-nhieu .goc .mat { display: none !important; }
.hcchat-tin.chon-nhieu .hcchat-hang.dachon .bong { box-shadow: 0 0 0 2px #2e90fa; }
.hcchat-tick { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #98a2b3; background: #fff;
    display: flex; align-items: center; justify-content: center; color: transparent; font-size: 15px; }
.hcchat-hang.toi .hcchat-tick { left: auto; right: calc(100% + 8px); }
.hcchat-hang.dachon .hcchat-tick { background: #1570ef; border-color: #1570ef; color: #fff; }
.hcchat-kc.dang-chon .hcchat-soan, .hcchat-kc.dang-chon .hcchat-go { display: none; }
.hcchat-chonbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #e4e7ec; background: #fff; padding: 8px 12px;
    font-size: 13.5px; color: #344054; }
.hcchat-chonbar .nut { display: flex; gap: 8px; }
.hcchat-chonbar button { height: 34px; min-width: 96px; padding: 0 14px; border-radius: 8px; border: 1px solid #d0d5dd; background: #fff; font-weight: 600; color: #344054;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.hcchat-chonbar button.xoa { background: #d92d20; border-color: #d92d20; color: #fff; }
.hcchat-chonbar button:disabled { opacity: .5; cursor: default; }
@media (max-width: 640px) { .hcchat-chonbar { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); } }
