/* trang/hop-thu.css — MÀN HỘP THƯ. Mọi lớp riêng mang tiền tố "ht-". Bố cục dựa trên .bc .bc-3 của chung.css:
   [.bc-ds = cột lọc + cột danh sách] [.bc-chinh = khung chat] [.bc-phu = thông tin khách].
   ≥ 1320px: hiện cột lọc dọc · < 1320px: cột lọc thành hàng chip + nút mở bảng lọc · ≤ 1180px: cột khách trượt ra · ≤ 760px: 1 cột. */

/* ---------- 1. Khung ---------- */
.ht { --bc-ds: 552px; --bc-phu: 312px; --bc-ds-hep: 330px; --ht-ra: #23201c; --ht-ra-chu: #fbf7ef; --ht-ghi: #fff6d8; --ht-ghi-vien: #ead28a; flex: 1 1 auto; }
.ht > .ht-trai { flex-direction: row; }
.ht-loc { width: 208px; flex: none; display: flex; flex-direction: column; background: var(--nen); border-right: 1px solid var(--vien); min-height: 0; }
.ht-cot { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.ht-chinh { position: relative; }
.ht-chi-gon, .ht-chip, .ht-nut-loc { display: none; }
.ht-lien-ket { color: var(--vang-chu); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; padding: 2px 4px; border-radius: 5px; flex: none; }
.ht-lien-ket:hover { background: rgba(184, 147, 90, .14); }
@media (min-width: 1181px) {
  .ht.ht-an-phu, .ht.ht-khong-mo { grid-template-columns: var(--bc-ds) minmax(0, 1fr); }
  .ht.ht-an-phu > .bc-phu, .ht.ht-khong-mo > .bc-phu { display: none; }
}
@media (max-width: 1319px) {
  .ht { --bc-ds: 344px; }
  .ht-loc { display: none; }
  .ht-chi-gon { display: inline-flex; }
  .ht-chip { display: flex; }
  .ht-nut-loc { display: inline-flex; }
}

/* Thông báo nổi của nền nằm sát đáy, giữa màn → đè đúng lên ô soạn + nút Gửi. Khi đang mở 1 hội thoại thì nhấc lên trên ô soạn. */
body:has(.ht.mo-chinh) .bao-khoi { bottom: 168px; }

/* ---------- 2. Cột lọc (màn rộng) ---------- */
.ht-loc-dau { display: flex; align-items: center; gap: 6px; padding: 14px 8px 6px 16px; flex: none; }
.ht-loc-tieu-de { font-size: 19px; font-weight: 700; letter-spacing: -.015em; flex: 1; min-width: 0; }
.ht-loc-cuon { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 8px 14px; }
.ht-loc-muc { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mo); margin: 14px 8px 6px; }
.ht-loc-ds { display: flex; flex-direction: column; gap: 1px; }
.ht-loc-nut { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 34px; padding: 5px 8px; border-radius: 8px; font-size: 13.5px; color: var(--muc-2); text-align: left; }
.ht-loc-nut > svg { color: var(--mo); }
.ht-loc-nut:hover:not(:disabled) { background: rgba(20, 20, 20, .05); }
.ht-loc-nut:disabled { cursor: default; }
.ht-loc-nut.chon { background: var(--vang-nhat); color: #3d2e12; font-weight: 650; box-shadow: inset 0 0 0 1px #e6d3ad; }
.ht-loc-nut.chon > svg { color: var(--vang-dam); }
.ht-loc-nhan { flex: 1; }
.ht-loc-trong { font-size: 12.5px; color: var(--mo); padding: 4px 8px; line-height: 1.45; }
.ht-loc-them, .ht-bang-loc { display: flex; flex-direction: column; gap: 9px; padding: 0 6px; }
.ht-bang-loc { padding: 0; gap: 14px; }
.ht-loc-truong { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--mo); font-weight: 600; }
.ht-loc-them .o-chon { height: 34px; font-size: 13px; padding-left: 9px; }
.ht-loc-nt { display: flex; gap: 4px; flex-wrap: wrap; }
.ht-nt-nut { width: 31px; height: 31px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--vien-2); background: #fff; opacity: .78; }
.ht-nt-nut:hover { opacity: 1; border-color: #c9bea8; }
.ht-nt-nut.chon { opacity: 1; border-color: var(--vang); background: var(--vang-nhat); box-shadow: 0 0 0 1px var(--vang); }
.ht-xoa-loc { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: 12.5px; font-weight: 650; color: var(--vang-chu); padding: 4px 6px; border-radius: 6px; }
.ht-xoa-loc:hover { background: rgba(184, 147, 90, .14); }
.ht-loc-chan { flex: none; padding: 8px; border-top: 1px solid var(--vien); }
.ht-nut-gia { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 34px; padding: 5px 8px; border-radius: 8px; border: 1px dashed #c9bea8; font-size: 12.5px; font-weight: 600; color: var(--mo); }
.ht-nut-gia:hover { background: #fff; color: var(--muc); }
.ht-chon-xep { display: flex; flex-direction: column; gap: 6px; }
.ht-chon-xep-muc { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--vien-2); border-radius: 10px; cursor: pointer; color: var(--muc); font-weight: 400; }
.ht-chon-xep-muc input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--vang-dam); flex: none; }
.ht-chon-xep-muc span { display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.ht-chon-xep-muc small { color: var(--mo); font-size: 12.5px; }
.ht-chon-xep-muc:has(input:checked) { border-color: var(--vang); background: var(--vang-nhat); }
.ht-bang-loc .ht-nt-nut { width: 44px; height: 44px; }

/* ---------- 3. Cột danh sách ---------- */
.ht-cot-dau { display: flex; align-items: center; gap: 6px; padding: 10px 10px 8px 12px; flex: none; }
.ht-cot-dau > .o-kem { flex: 1 1 auto; }
.ht-cot-dau .o-nhap { height: 38px; background: var(--nen); border-color: var(--vien); }
.ht-cot-dau .o-nhap:focus { background: #fff; }
.ht-nut-loc { position: relative; }
.ht-nut-loc.co-loc { border-color: var(--vang); background: var(--vang-nhat); }
.ht-nut-loc-so { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--vang-dam); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ht-chip { padding: 0 12px 7px; flex: none; }
.ht-chip .chip { height: 30px; padding: 0 11px; font-size: 13px; }
.ht-cot-phu { display: flex; align-items: center; gap: 8px; padding: 3px 8px 6px 14px; border-bottom: 1px solid var(--vien); flex: none; min-height: 30px; }
.ht-phu-chu { flex: 1; font-size: 12.5px; color: var(--mo); font-weight: 600; }
.ht-nut-xep { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--muc-2); padding: 4px 7px; border-radius: 7px; flex: none; }
.ht-nut-xep:hover { background: var(--nen-2); }
.ht-ds-cuon { position: relative; }
.ht-ds { display: flex; flex-direction: column; }
.ht-ds > .trong { min-height: 320px; }
.ht-ds-chan { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px 20px; font-size: 12.5px; color: var(--mo); min-height: 20px; }
.ht-ds-chan:empty { display: none; }

/* 1 dòng hội thoại */
.ht-dong, .ht-kq { display: flex; align-items: flex-start; gap: 11px; padding: 10px 12px 9px 13px; border-bottom: 1px solid #f0e9dc; position: relative; color: inherit; text-decoration: none; min-height: 79px; background: #fff; }
.ht-dong:hover, .ht-kq:hover { background: #fdfaf4; }
.ht-dong:focus-visible, .ht-kq:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--vang); border-radius: 0; }
.ht-dong.chon { background: var(--vang-nhat); }
.ht-dong.chon::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--vang); }
.ht-dong > .anh-dd, .ht-kq > .anh-dd { margin-top: 1px; }
.ht-dong-than { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ht-dong-h1 { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ht-dong-ten { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ht-dong-gio { margin-left: auto; padding-left: 6px; font-size: 12px; color: var(--mo); flex: none; font-variant-numeric: tabular-nums; }
.ht-dong-h2 { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 20px; }
.ht-dong-cau { flex: 1; min-width: 0; font-size: 13.5px; color: var(--mo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-dong-h3 { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 20px; font-size: 11.5px; color: var(--mo); margin-top: 1px; }
.ht-dong-kenh { display: inline-flex; align-items: center; gap: 5px; min-width: 0; flex: 0 1 auto; max-width: 62%; }
.ht-dong-kenh .cham-mau { width: 7px; height: 7px; }
.ht-dong.chua-doc .ht-dong-ten { font-weight: 750; }
.ht-dong.chua-doc .ht-dong-cau { color: var(--muc); font-weight: 600; }
.ht-dong.chua-doc .ht-dong-gio { color: var(--do); font-weight: 650; }
.ht-dong.da-xong:not(.chon) { background: #fcfaf6; }
.ht-dong.da-xong .ht-dong-ten { color: var(--muc-2); font-weight: 500; }
.ht-the { --mau: #756f66; display: inline-block; max-width: 86px; padding: 0 6px; height: 17px; line-height: 17px; border-radius: 5px; font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; background: var(--xam-nen); background: color-mix(in srgb, var(--mau) 14%, #fff); color: var(--muc-2); color: color-mix(in srgb, var(--mau) 66%, #141414); }
.ht-the-them { flex: none; background: var(--xam-nen); color: var(--xam); }
.ht-tt { display: inline-flex; align-items: center; gap: 3px; height: 17px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 650; flex: none; }
.ht-tt-xong { background: var(--tot-nen); color: var(--tot); }
.ht-tt-cho { background: var(--xanh-nen); color: var(--xanh); }
.ht-dau-hieu { display: inline-flex; align-items: center; gap: 3px; flex: none; font-size: 11px; font-weight: 650; }
.ht-dh-qc { color: var(--xanh); width: 19px; height: 19px; border-radius: 50%; background: var(--xanh-nen); justify-content: center; }
.ht-dh-chu-y { color: var(--cam); width: 19px; height: 19px; border-radius: 50%; background: var(--cam-nen); justify-content: center; }
.ht-dh-hen { color: var(--xanh); }
.ht-dong-han { display: inline-flex; flex: none; }
.ht-dong-han:empty { display: none; }
.ht-han { display: inline-flex; align-items: center; gap: 3px; height: 17px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ht-han-cam { background: var(--cam-nen); color: var(--cam); }
.ht-han-khoa { background: var(--do-nen); color: var(--do); }
.ht-dong-pt { width: 19px; height: 19px; border-radius: 50%; background: var(--nen-2); color: var(--muc-2); font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; letter-spacing: 0; box-shadow: inset 0 0 0 1px var(--vien-2); }
.ht-dong-pt.toi { background: var(--muc); color: #ecd3a6; box-shadow: none; }

/* kết quả tìm */
.ht-kq-khoi { display: flex; flex-direction: column; }
.ht-kq-muc { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mo); padding: 12px 14px 6px; background: var(--nen); border-bottom: 1px solid var(--vien); position: sticky; top: 0; z-index: 1; }
.ht-kq { min-height: 70px; }
.ht-kq-doan { font-size: 13.5px; color: var(--muc-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ht-khop { background: #f3dfae; color: inherit; border-radius: 3px; padding: 0 1px; font-weight: 650; }
.ht-kq-ghi { font-size: 12.5px; color: var(--mo); padding: 12px 14px; }

/* ---------- 4. Khung chat ---------- */
.ht-chua-chon { flex: 1; display: flex; align-items: center; justify-content: center; }
.ht-chat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ht-dau { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; background: #fff; border-bottom: 1px solid var(--vien); flex: none; min-height: 58px; }
.ht-dau-khach { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; text-align: left; border-radius: 10px; padding: 3px 6px 3px 3px; margin-left: -3px; }
.ht-dau-khach:hover { background: var(--nen); }
.ht-dau-chu { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ht-dau-ten { font-size: 15.5px; font-weight: 700; letter-spacing: -.005em; line-height: 1.25; }
.ht-dau-phu { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mo); min-width: 0; line-height: 1.2; }
.ht-dau-phu .huy-hieu { height: 18px; font-size: 11px; padding: 0 7px; }
.ht-dau-pt { flex: 0 1 auto; min-width: 0; max-width: 46%; padding-left: 6px; border-left: 1px solid var(--vien-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-dau-phu > .cat-chu { flex: 0 1 auto; min-width: 56px; }
.ht-dau-viec { display: flex; align-items: center; gap: 6px; flex: none; }
.ht-nut-pt { max-width: 190px; padding-left: 6px; }
.ht-nut-pt-ten { min-width: 0; display: none; }
@media (min-width: 1181px) { .ht-an-phu .ht-nut-pt-ten { display: inline; } }
@media (min-width: 1600px) { .ht-nut-pt-ten { display: inline; } }
.ht-dang-hen { color: var(--xanh); border-color: #b9cfe6; background: var(--xanh-nen); }
.ht-dai { flex: none; display: flex; flex-direction: column; }
.ht-dai-muc { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 13px; line-height: 1.4; border-bottom: 1px solid; }
.ht-dai-muc > svg { flex: none; }
.ht-dai-muc > span { flex: 1; min-width: 0; }
.ht-dai-tin { background: var(--xanh-nen); color: #1f4468; border-color: #c9d9ea; }
.ht-dai-cam { background: var(--cam-nen); color: #7a3f00; border-color: #f1d3a4; }
.ht-dai-do { background: var(--do-nen); color: #8a1c15; border-color: #f0c2bd; }

.ht-vung { flex: 1 1 auto; min-height: 0; position: relative; display: flex; flex-direction: column; }
.ht-tin-cuon { padding: 4px 0 12px; position: relative; }
.ht-tin-dau { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 12px 2px; font-size: 12px; color: var(--mo); text-align: center; }
.ht-tin-ds { display: flex; flex-direction: column; }
.ht-tin-trong { padding: 40px 20px; text-align: center; color: var(--mo); font-size: 13.5px; }
.ht-tin-xuong { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; }
.ht-xuong-bong { height: 38px; border-radius: 16px; }
.ht-nut-moi { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--muc); color: #f4dfb8; font-size: 13px; font-weight: 650; box-shadow: var(--bong-to); }
.ht-nut-moi:hover { background: #2a2722; }
.ht-tha { position: absolute; inset: 0; z-index: 4; background: rgba(250, 247, 242, .88); padding: 14px; display: flex; pointer-events: none; }
.ht-tha-o { flex: 1; border: 2px dashed var(--vang); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--vang-chu); font-size: 14px; background: rgba(246, 237, 220, .7); }
.ht-tha-o b { font-size: 16px; }

.ht-ngay { display: flex; align-items: center; justify-content: center; padding: 12px 16px 4px; }
.ht-ngay span { font-size: 11.5px; font-weight: 650; color: var(--mo); background: var(--nen-2); padding: 3px 11px; border-radius: 999px; }
.ht-tin { display: flex; flex-direction: column; align-items: flex-start; padding: 1px 16px; min-width: 0; scroll-margin: 80px; }
.ht-tin.ra { align-items: flex-end; }
.ht-tin.dau { margin-top: 9px; }
.ht-tin-nguoi { font-size: 11.5px; color: var(--mo); font-weight: 600; margin: 0 6px 3px; }
.ht-tin-hang { display: flex; align-items: center; gap: 4px; max-width: min(78%, 620px); min-width: 0; }
.ht-bong { min-width: 0; background: #fff; border: 1px solid var(--vien); border-radius: 17px; padding: 7px 12px 8px; font-size: 14.5px; line-height: 1.45; display: flex; flex-direction: column; gap: 6px; }
.ht-tin.vao .ht-bong { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.ht-tin.vao.dau .ht-bong { border-top-left-radius: 17px; }
.ht-tin.vao.cuoi .ht-bong { border-bottom-left-radius: 17px; }
.ht-tin.ra .ht-bong { background: var(--ht-ra); border-color: var(--ht-ra); color: var(--ht-ra-chu); border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.ht-tin.ra.dau .ht-bong { border-top-right-radius: 17px; }
.ht-tin.ra.cuoi .ht-bong { border-bottom-right-radius: 17px; }
.ht-tin.ra.tu-dong .ht-bong { background: #5d564b; border-color: #5d564b; }
.ht-tin.ra .ht-bong a { color: #ecd3a6; }
.ht-chu { white-space: pre-wrap; overflow-wrap: anywhere; }
.ht-bong-hinh, .ht-tin.ra .ht-bong-hinh { background: transparent; border-color: transparent; padding: 0; }
.ht-thu-hoi, .ht-tin.ra .ht-thu-hoi { flex-direction: row; align-items: center; gap: 6px; font-style: italic; color: var(--mo); background: transparent; border: 1px dashed var(--vien-2); font-size: 13.5px; }
.ht-tin.loi .ht-bong { background: #fff; border-color: #e5a9a3; color: var(--muc); }
.ht-tin.loi .ht-bong a { color: var(--vang-chu); }
.ht-cho .ht-bong { opacity: .78; }
.ht-cho.loi .ht-bong { opacity: 1; }
.ht-trich { display: flex; flex-direction: column; gap: 1px; text-align: left; font-size: 12.5px; line-height: 1.35; padding: 4px 9px; border-left: 3px solid var(--vang); border-radius: 6px; background: rgba(20, 20, 20, .05); color: var(--muc-2); max-width: 100%; min-width: 0; }
.ht-trich span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ht-tin.ra .ht-trich { background: rgba(255, 255, 255, .12); color: #e9e2d6; }
.ht-tin.loi .ht-trich { background: rgba(20, 20, 20, .05); color: var(--muc-2); }
button.ht-trich:hover { filter: brightness(.96); }
.ht-tin-nut { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--mo); flex: none; opacity: 0; transition: opacity .1s; }
.ht-tin:hover .ht-tin-nut, .ht-tin-nut:focus-visible, .ht-tin-nut[aria-expanded="true"] { opacity: 1; }
.ht-tin-nut:hover { background: var(--nen-2); color: var(--muc); }
.ht-tin-ghi { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--mo); margin: 3px 6px 0; min-height: 15px; }
.ht-tin-cu { padding: 0 5px; border-radius: 4px; background: var(--xam-nen); }
.ht-tt-gui { display: inline-flex; align-items: center; gap: 3px; }
.ht-da-xem { color: var(--tot); font-weight: 650; }
.ht-xoay-nho { width: 11px; height: 11px; border-width: 1.5px; }
.ht-tin-loi { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; font-size: 12.5px; color: var(--do); font-weight: 600; margin: 4px 4px 2px; max-width: min(78%, 620px); }
.ht-tin-loi > span { min-width: 0; overflow-wrap: anywhere; text-align: right; line-height: 1.4; }
.ht-tin-loi > span > svg { display: inline-block; vertical-align: -2px; margin-right: 5px; }
.ht-nut-gui-lai { height: 26px; font-size: 12.5px; border-color: #e5a9a3; color: var(--do); }
.ht-noi .ht-bong, .ht-noi.ht-ghi { animation: ht-noi 2.4s ease-out; }
@keyframes ht-noi { 0%, 55% { box-shadow: 0 0 0 3px #e9c877, 0 0 0 7px rgba(233, 200, 119, .35); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* tệp trong tin: ảnh có khung giữ chỗ cố định để dòng tin không nhảy khi ảnh tải xong */
.ht-tep-ds { display: flex; flex-direction: column; gap: 5px; align-items: inherit; min-width: 0; }
.ht-tin.ra .ht-tep-ds { align-items: flex-end; }
.ht-tep-ds.nhieu { flex-direction: row; flex-wrap: wrap; }
.ht-anh { display: block; width: 220px; height: 220px; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--nen-2); border: 1px solid var(--vien); flex: none; cursor: zoom-in; }
.ht-tep-ds.nhieu .ht-anh { width: 132px; height: 132px; }
.ht-tep-ds:not(.nhieu) .ht-anh.ht-anh-tl { height: auto; }      /* ảnh gửi 1 mình, đã tải xong: cao theo tỉ lệ ảnh (đặt aspect-ratio từ JS) */
.ht-anh-img { width: 100%; height: 100%; object-fit: cover; }
.ht-nhan-dan { width: 120px; height: 120px; background: transparent; border-color: transparent; }
.ht-nhan-dan .ht-anh-img { object-fit: contain; }
span.ht-anh { cursor: default; }
.ht-video { display: block; width: 280px; max-width: 100%; height: 200px; border-radius: 14px; background: #111; }
.ht-am { display: block; width: 260px; max-width: 100%; height: 40px; }
.ht-the-tep { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(20, 20, 20, .05); color: inherit; text-decoration: none; min-width: 0; max-width: 300px; }
a.ht-the-tep:hover { background: rgba(20, 20, 20, .09); }
.ht-tin.ra .ht-the-tep { background: rgba(255, 255, 255, .12); }
.ht-tin.ra a.ht-the-tep:hover { background: rgba(255, 255, 255, .2); }
.ht-bong-hinh .ht-the-tep, .ht-tin.ra .ht-bong-hinh .ht-the-tep, .ht-bong-hinh .ht-tep-cho, .ht-tin.ra .ht-bong-hinh .ht-tep-cho { background: #fff; border: 1px solid var(--vien); color: var(--muc); }
.ht-tin.ra .ht-bong-hinh a.ht-the-tep:hover, .ht-bong-hinh a.ht-the-tep:hover { background: #fdfaf4; }
.ht-tin.ra .ht-bong-hinh .ht-the-tep-hinh { color: var(--vang-dam); }
.ht-bong-hinh .ht-tep-cho { color: var(--mo); }
.ht-the-tep-hinh { width: 34px; height: 34px; border-radius: 9px; background: rgba(184, 147, 90, .22); color: var(--vang-dam); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ht-tin.ra .ht-the-tep-hinh { color: #ecd3a6; }
.ht-the-tep-chu { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.ht-the-tep-chu b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.ht-the-tep-chu small { font-size: 11.5px; opacity: .75; }
.ht-tep-cho { display: flex; align-items: center; gap: 8px; width: 220px; max-width: 100%; height: 64px; padding: 0 12px; border-radius: 12px; background: rgba(20, 20, 20, .05); font-size: 12.5px; color: var(--mo); }
.ht-tin.ra .ht-tep-cho { background: rgba(255, 255, 255, .12); color: #d9d2c6; }
.ht-tep-mat { font-style: italic; }

/* ghi chú nội bộ + dòng hệ thống xen giữa dòng tin */
.ht-he-thong { display: flex; justify-content: center; padding: 8px 20px 2px; }
.ht-he-thong > span { display: block; max-width: 520px; font-size: 12px; color: var(--mo); text-align: center; line-height: 1.45; overflow-wrap: anywhere; background: var(--nen-2); padding: 4px 12px; border-radius: 10px; }
.ht-he-thong svg { display: inline-block; vertical-align: -2px; margin-right: 5px; }
.ht-he-thong small { font-size: 11px; opacity: .8; margin-left: 7px; white-space: nowrap; }
.ht-ghi { align-self: stretch; margin: 9px 16px 2px; padding: 8px 12px 9px; background: var(--ht-ghi); border: 1px solid var(--ht-ghi-vien); border-left: 4px solid #d9b33c; border-radius: 10px; scroll-margin: 80px; }
.ht-ghi-dau { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b5512; min-width: 0; flex-wrap: wrap; }
.ht-ghi-dau b { font-weight: 700; }
.ht-ghi-an { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: 11.5px; }
.ht-ghi-xoa { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--mo); flex: none; }
.ht-ghi-xoa:hover { background: rgba(20, 20, 20, .08); color: var(--do); }
.ht-ghi-chu { margin-top: 3px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: #3b3008; }

/* ai đang xem / đang trả lời */
.ht-hien-dien { flex: none; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 3px 18px 4px; font-size: 12px; color: var(--mo); min-height: 22px; }
.ht-hd-go, .ht-hd-xem { display: inline-flex; align-items: center; gap: 6px; }
.ht-hd-go { color: var(--vang-chu); font-weight: 650; }
.ht-cham-go { display: inline-flex; gap: 3px; }
.ht-cham-go i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: ht-go 1.1s ease-in-out infinite; }
.ht-cham-go i:nth-child(2) { animation-delay: .16s; }
.ht-cham-go i:nth-child(3) { animation-delay: .32s; }
@keyframes ht-go { 0%, 70%, 100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-2px); } }

/* ---------- 5. Ô soạn ---------- */
.ht-soan-khoi { flex: none; }
.ht-chi-xem { display: flex; align-items: center; gap: 9px; padding: 12px 16px calc(12px + var(--day-an-toan)); background: var(--nen-2); border-top: 1px solid var(--vien); font-size: 13.5px; color: var(--muc-2); }
.ht-soan { background: #fff; border-top: 1px solid var(--vien); position: relative; padding-bottom: var(--day-an-toan); }
.ht-soan-dau { display: flex; align-items: flex-end; flex-wrap: wrap; column-gap: 10px; padding: 0 12px 0 8px; border-bottom: 1px solid var(--vien); min-width: 0; }
.ht-soan-tab { border-bottom: 0; flex: none; }
.ht-soan-tab .tab { padding: 8px 10px; font-size: 13px; gap: 6px; }
.ht-soan-han { margin-left: auto; display: flex; align-items: flex-start; gap: 6px; padding: 5px 0 7px; font-size: 12px; color: var(--mo); min-width: 0; max-width: 100%; line-height: 1.35; flex: 0 1 auto; }
.ht-soan-han > svg { flex: none; margin-top: 1px; }
.ht-soan-han b { font-weight: 650; white-space: nowrap; color: var(--tot); flex: none; }
.ht-soan-han.ht-shan-cam b, .ht-soan-han.ht-shan-cam > svg { color: var(--cam); }
.ht-soan-han.ht-shan-do b, .ht-soan-han.ht-shan-do > svg { color: var(--do); }
.ht-han-ghi { min-width: 0; overflow-wrap: anywhere; }
.ht-soan-than { display: flex; flex-direction: column; padding: 8px 12px 8px; gap: 6px; }
.ht-o { display: block; width: 100%; border: 0; outline: none; resize: none; background: transparent; font-size: 14.5px; line-height: 1.45; padding: 4px 2px; min-height: 30px; max-height: 200px; overflow-y: auto; color: var(--muc); }
.ht-o::placeholder { color: var(--mo-2); }
.ht-soan-chan { display: flex; align-items: center; gap: 4px; }
.ht-soan-nut { width: 36px; height: 36px; color: var(--muc-2); }
.ht-dem { font-size: 12px; color: var(--mo); font-variant-numeric: tabular-nums; margin-right: 6px; }
.ht-dem.qua { color: var(--do); font-weight: 700; }
.ht-nut-gui { height: 36px; padding: 0 16px; }
.ht-soan-ghi { background: var(--ht-ghi); border-top-color: var(--ht-ghi-vien); box-shadow: inset 0 3px 0 #d9b33c; }
.ht-soan-ghi .ht-soan-dau { border-bottom-color: var(--ht-ghi-vien); }
.ht-soan-ghi .tab.chon { border-bottom-color: #b98d10; }
.ht-soan-ghi .ht-nut-gui { background: #8a6a0c; border-color: #8a6a0c; color: #fff; }
.ht-ghi-bao { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #6b5512; }
.ht-khoa { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px 14px; background: #fdf4f2; }
.ht-khoa-hinh { width: 38px; height: 38px; border-radius: 50%; background: var(--do-nen); color: var(--do); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ht-khoa-chu { min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.45; color: var(--muc-2); }
.ht-khoa-chu > b { font-size: 14.5px; color: var(--muc); }
.ht-khoa-goi { line-height: 1.9; }
.ht-khoa-nhap { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mo); }
.ht-khoa-goi .ht-lien-ket { padding: 0 3px; }
.ht-khoa-so { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; line-height: 1.3; margin: 0 4px; font-weight: 700; color: var(--muc); text-decoration: none; padding: 3px 9px; border-radius: 8px; background: #fff; border: 1px solid var(--vien-2); }
.ht-soan-trich { display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 10px; background: var(--nen); border-left: 3px solid var(--vang); border-radius: 8px; color: var(--muc-2); }
.ht-soan-trich > svg { flex: none; color: var(--vang-dam); }
.ht-soan-trich-chu { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.35; }
.ht-soan-trich-chu small { color: var(--mo); font-size: 11.5px; }
.ht-soan-bo { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--mo); flex: none; }
.ht-soan-bo:hover { background: var(--nen-2); color: var(--muc); }
.ht-soan-tep { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.ht-xt { position: relative; display: flex; align-items: center; gap: 8px; height: 64px; max-width: 220px; padding: 0 30px 0 8px; border: 1px solid var(--vien-2); border-radius: 10px; background: var(--nen); min-width: 0; }
.ht-xt-anh { width: 64px; padding: 0; overflow: visible; }
.ht-xt-anh img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.ht-xt-hinh { width: 34px; height: 34px; border-radius: 8px; background: var(--vang-nhat); color: var(--vang-dam); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ht-xt-chu { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; line-height: 1.3; }
.ht-xt-chu small { color: var(--mo); font-size: 11.5px; }
.ht-xt-cho { position: absolute; inset: 0; border-radius: 9px; background: rgba(255, 255, 255, .72); display: flex; align-items: center; justify-content: center; }
.ht-xt-bo { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--muc); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.ht-xt-bo:hover { background: var(--do); }

/* bảng tin mẫu (gõ "/") */
.ht-mau { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 6px); z-index: 5; max-width: 560px; background: #fff; border: 1px solid var(--vien-2); border-radius: 12px; box-shadow: var(--bong-to); display: flex; flex-direction: column; max-height: min(330px, 46vh); overflow: hidden; }
.ht-mau-dau { display: flex; align-items: center; gap: 7px; padding: 8px 12px 6px; font-size: 12.5px; color: var(--mo); flex: none; }
.ht-mau-dau b { color: var(--muc); }
.ht-mau-dau > svg { color: var(--vang-dam); }
.ht-mau-tim { margin: 0 10px 8px; width: auto; height: 34px; flex: none; }
.ht-mau-ds { overflow-y: auto; padding: 0 6px 6px; display: flex; flex-direction: column; gap: 1px; min-height: 0; }
.ht-mau-muc { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 8px; text-align: left; min-width: 0; flex: none; }
.ht-mau-muc:hover { background: var(--nen); }
.ht-mau-muc.chon { background: var(--vang-nhat); box-shadow: inset 0 0 0 1px #e6d3ad; }
.ht-mau-phim { flex: none; font-size: 12px; font-weight: 700; color: var(--vang-chu); background: var(--vang-nhat); border: 1px solid #ead9b8; border-radius: 6px; padding: 1px 7px; margin-top: 1px; font-variant-numeric: tabular-nums; }
.ht-mau-muc.chon .ht-mau-phim { background: #fff; }
.ht-mau-chu { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.38; }
.ht-mau-chu b { font-weight: 650; }
.ht-mau-chu span { color: var(--mo); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ht-mau-trong { padding: 14px 10px 16px; font-size: 13.5px; color: var(--mo); text-align: center; }

/* hộp xem ảnh lớn */
.hop.ht-hop-anh { width: min(1080px, 100%); max-height: 94dvh; background: #171614; color: #f3eee5; }
.ht-hop-anh .hop-tieu-de { font-size: 14px; font-weight: 600; color: #cfc8bb; }
.ht-hop-anh .hop-dau .nut { color: #f3eee5; }
.ht-hop-anh .hop-dau .nut:hover { background: rgba(255, 255, 255, .12); }
.ht-hop-anh .hop-than { padding: 0 8px 12px; display: flex; overflow: hidden; }
.ht-xem { flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: minmax(0, 1fr) auto; gap: 8px 4px; align-items: center; }
.ht-xem-khung { grid-column: 2; display: flex; align-items: center; justify-content: center; min-height: 240px; height: min(72dvh, 720px); min-width: 0; }
.ht-xem-anh { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.ht-xem-nut { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #f3eee5; background: rgba(255, 255, 255, .08); }
.ht-xem-nut:hover:not(:disabled) { background: rgba(255, 255, 255, .2); }
.ht-xem-nut:disabled { opacity: .25; }
.ht-xem-truoc { grid-column: 1; } .ht-xem-sau { grid-column: 3; }
.ht-xem-chan { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; color: #cfc8bb; }
.ht-xem-loi { color: #cfc8bb; font-size: 14px; }

/* ---------- 6. Cột thông tin khách ---------- */
.ht-phu-dau { display: flex; align-items: center; gap: 8px; padding: 9px 8px 9px 16px; border-bottom: 1px solid var(--vien); flex: none; min-height: 58px; }
.ht-phu-dau h2 { flex: 1; font-size: 14.5px; font-weight: 700; }
.ht-phu-cuon { padding-bottom: 24px; }
.ht-phu-xuong { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 18px; }
.ht-phu-xuong > .xuong-khoi { align-self: stretch; }
.ht-xuong-to { width: 64px; height: 64px; }
.ht-kh-dau { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 16px 16px; }
.ht-kh-ten { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-top: 8px; overflow-wrap: anywhere; line-height: 1.25; }
.ht-kh-tam { font-size: 12px; color: var(--mo); }
.ht-kh-kenh { font-size: 12.5px; color: var(--mo); max-width: 100%; display: flex; min-width: 0; }
.ht-kh-the { justify-content: center; gap: 6px; margin-top: 6px; }
.ht-kh-nhom { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--nen-2); color: var(--muc-2); }
.ht-muc { padding: 12px 16px 13px; border-top: 1px solid var(--vien); }
.ht-muc-dau { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 22px; }
.ht-muc-dau h3 { flex: 1; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mo); }
.ht-nut-chu { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--vang-chu); padding: 3px 7px; border-radius: 7px; flex: none; }
.ht-nut-chu:hover { background: rgba(184, 147, 90, .14); }
.ht-sdt { display: flex; flex-direction: column; gap: 8px; }
.ht-sdt-so { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--nen); border: 1px solid var(--vien); font-size: 16px; letter-spacing: .01em; text-align: left; }
.ht-sdt-so > svg:first-child { color: var(--tot); }
.ht-sdt-so b { flex: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.ht-sdt-so:hover { border-color: var(--vien-2); background: #fff; }
.ht-sdt-nut { display: flex; gap: 6px; flex-wrap: wrap; }
.ht-sdt-nut .nut { text-decoration: none; }
.ht-sdt small { font-size: 12px; line-height: 1.4; }
.ht-sdt-trong { font-size: 13px; line-height: 1.45; align-items: flex-start; }
.ht-pt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ht-pt-chu { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; font-size: 14px; }
.ht-pt-chu small { font-size: 12px; color: var(--mo); }
.ht-pt-trong { width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed var(--vien-2); color: var(--mo-2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ht-nhan-ds { display: flex; flex-wrap: wrap; gap: 6px; }
.ht-gc { display: flex; flex-direction: column; gap: 9px; }
.ht-gc-ds { display: flex; flex-direction: column; gap: 6px; }
.ht-gc-muc { background: var(--ht-ghi); border: 1px solid var(--ht-ghi-vien); border-radius: 9px; padding: 6px 9px 8px; }
.ht-gc-dau { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b5512; min-height: 24px; }
.ht-gc-chu { font-size: 13.5px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; color: #3b3008; }
.ht-gc-them { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.ht-o-ghi { min-height: 56px; font-size: 13.5px; padding: 7px 10px; }
.ht-kk { display: flex; flex-direction: column; gap: 5px; }
.ht-kk-muc { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid var(--vien); border-radius: 10px; text-decoration: none; color: inherit; min-width: 0; }
.ht-kk-muc:hover { background: var(--nen); border-color: var(--vien-2); }
.ht-kk-chu { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.3; }
.ht-kk-chu small { font-size: 12px; color: var(--mo); }
.ht-kk-gio { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 11.5px; color: var(--mo); flex: none; }
.ht-tt-bang { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.ht-tt-dong { display: flex; justify-content: space-between; gap: 12px; }
.ht-tt-dong span { color: var(--mo); flex: none; }
.ht-tt-dong b { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.ht-qc { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border-radius: 10px; background: var(--xanh-nen); color: #1f4468; margin-bottom: 2px; }
.ht-qc > svg { margin-top: 2px; flex: none; }
.ht-qc div { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ht-qc small { font-size: 12px; overflow-wrap: anywhere; }

/* hộp thoại nhỏ của màn */
.ht-cham-menu { width: 12px; height: 12px; margin: 0 2px; }
.ht-chon-mau { display: flex; gap: 8px; flex-wrap: wrap; }
.ht-mau-o { width: 32px; height: 32px; border-radius: 50%; background: var(--mau); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .0); }
.ht-mau-o.chon { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mau); }
.ht-gia-o { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; min-height: 28px; }
.ht-gia-o input { width: 17px; height: 17px; accent-color: var(--vang-dam); margin: 0; flex: none; }

/* ---------- 7. Màn hẹp + điện thoại ---------- */
@media (max-width: 1180px) {
  .ht-nut-pt { padding: 0 7px; }
}
@media (max-width: 760px) {
  body:has(.ht.mo-chinh) .bao-khoi { bottom: calc(176px + var(--day-an-toan)); }
  .ht-cot-dau { padding: 10px 10px 8px; gap: 6px; }
  .ht-cot-dau .o-nhap { height: 44px; }
  .ht-nut-loc { width: 44px; height: 44px; }
  .ht-chip { padding: 0 10px 8px; }
  .ht-chip .chip { height: 44px; padding: 0 14px; font-size: 13.5px; }
  .ht-cot-phu { padding: 2px 6px 6px 12px; }
  .ht-nut-xep { min-height: 44px; padding: 4px 9px; font-size: 13px; }
  .ht-phu-chu { font-size: 13px; }
  .ht-dong, .ht-kq { padding: 11px 12px 10px; min-height: 84px; }
  .ht-dong-ten { font-size: 15.5px; }
  .ht-dong-cau { font-size: 14.5px; }
  .ht-dong-h3 { font-size: 12px; }
  .ht-dau { padding: 6px 6px 6px 4px; gap: 2px; min-height: 56px; }
  .ht-dau-khach { gap: 9px; padding: 3px 4px; margin-left: 0; }
  .ht-dau-pt.chi-dt { display: block !important; }      /* .chi-dt đặt inline-flex → chữ dài không ra dấu … ; phần tử này cần cắt chữ */
  .ht-dau-viec { gap: 2px; }
  .ht-dau .nut-nho { height: 44px; }
  .ht-nut-nhan { padding: 0 12px; }
  .ht-nut-xong { width: 44px; padding: 0; }
  .ht-nut-xong > span { display: none; }
  .ht-tin { padding: 1px 10px; }
  .ht-tin-hang, .ht-tin-loi { max-width: 86%; }
  .ht-bong { font-size: 15.5px; }
  .ht-tin-nut { opacity: .4; width: 30px; height: 30px; }
  .ht-ghi { margin: 9px 10px 2px; }
  .ht-anh { width: 200px; height: 200px; }
  .ht-tep-ds.nhieu .ht-anh { width: 112px; height: 112px; }
  .ht-hien-dien { padding: 3px 12px 4px; }
  .ht-soan-dau { padding: 0 8px 0 2px; flex-wrap: wrap; }
  .ht-soan-tab .tab { padding: 11px 9px; font-size: 13.5px; min-height: 44px; }
  .ht-soan-han { margin-left: 0; padding: 2px 6px 7px; }
  .ht-soan-than { padding: 6px 8px 8px; }
  .ht-o { font-size: 16px; padding: 6px 4px; max-height: 132px; }
  .ht-soan-nut { width: 44px; height: 44px; }
  .ht-nut-gui { height: 44px; padding: 0 16px; }
  .ht-mau { left: 6px; right: 6px; max-height: min(300px, 42dvh); }
  .ht-mau-muc { padding: 10px 8px; min-height: 44px; }
  .ht-mau-tim { height: 44px; }
  .ht-nut-moi { height: 44px; }
  .ht-lien-ket, .ht-nut-chu, .ht-xoa-loc { min-height: 44px; padding: 6px 9px; display: inline-flex; align-items: center; }
  .ht-khoa-goi .ht-lien-ket { display: inline; min-height: 0; padding: 0 3px; }
  .ht-soan-han { flex-wrap: wrap; }
  .ht-ghi-xoa, .ht-soan-bo { width: 36px; height: 36px; }
  .ht-xt-bo { width: 28px; height: 28px; top: -9px; right: -9px; }
  .ht-nut-gui-lai { height: 36px; }
  .ht-phu-dau { min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  .ht-sdt-so { min-height: 46px; }
  .ht-kk-muc { min-height: 48px; }
  .ht-mau-o { width: 40px; height: 40px; }
  .ht-khoa { padding: 12px 12px 14px; gap: 10px; }
  .ht-xem { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ht-xem-khung { grid-column: 1 / -1; height: min(62dvh, 560px); }
  .ht-xem-truoc { grid-column: 1; grid-row: 2; justify-self: start; }
  .ht-xem-sau { grid-column: 2; grid-row: 2; justify-self: end; }
  .ht-xem-chan { grid-row: 3; }
  .ht-gia-o { min-height: 44px; }
}
