/* ===== ĐA KÊNH (R&D GĐ2, 26/09/2026) — màn Kết nối kênh (knx-) =====
   Nguyên tắc giao diện: không viền, phân vùng bằng tông nền; màu trạng thái chỉ cho chấm/chữ nhỏ; một nút tím mỗi màn; 390px dùng được. */
.knx-dai,.knx-chon-cot{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}
.knx-noi{flex:none;display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;background:var(--the);color:var(--chu2);
  font:inherit;font-size:13px;font-weight:600;padding:8px 14px;box-shadow:var(--bong);cursor:pointer;min-height:36px}
.knx-noi small{font-weight:600;color:var(--chu3)}
.knx-noi.chon{background:var(--nhan-nhat);color:var(--nhan)}
.knx-noi:focus-visible{outline:2px solid var(--nhan);outline-offset:2px}
.knx-cham{width:8px;height:8px;border-radius:50%;background:var(--chu3);flex:none}
.knx-cham.tot{background:var(--tot)} .knx-cham.canh{background:var(--canh)} .knx-cham.loi{background:var(--loi)}
.knx-chon-cot{display:none}
.knx-bang{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:start}
.knx-cot{display:flex;flex-direction:column;gap:10px;min-width:0}
.knx-cot-dau{display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:0 4px;font-size:13px}
.knx-cot-dau small{color:var(--chu3);font-weight:600}
.knx-rong{margin:0;padding:18px 0;text-align:center;color:var(--chu3);background:var(--chim);border-radius:14px}
.knx-the{background:var(--the);border-radius:16px;padding:12px 14px;box-shadow:var(--bong);display:flex;flex-direction:column;gap:6px;min-width:0}
.knx-the-dau{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px;color:var(--chu3)}
.knx-the-dau small{display:inline-flex;align-items:center;gap:4px}
.knx-ncc{font-weight:600;color:var(--chu2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.knx-the-ten{font-size:14px;line-height:1.35}
.knx-ghi{color:var(--chu3);font-size:12px}
.knx-hd{margin:0;font-size:12.5px;line-height:1.5;color:var(--chu2);background:var(--chim);border-radius:10px;padding:8px 10px}
.knx-nut{display:flex;flex-wrap:wrap;gap:6px}
.knx-ma{width:100%;min-height:90px;font:12px/1.4 ui-monospace,Menlo,monospace;border:0;border-radius:10px;background:var(--chim);color:var(--chu);padding:8px}
.knx-xong{display:flex;flex-direction:column;gap:8px}
.knx-chip{display:flex;align-items:center;gap:6px;background:var(--the);border-radius:12px;padding:10px 12px;box-shadow:var(--bong);font-size:13px;min-width:0}
.knx-chip b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.knx-chip small{margin-left:auto;color:var(--chu3);flex:none}
.knx-chip.tot svg{color:var(--tot)}
.knx-ct{margin-top:18px;display:flex;flex-direction:column;gap:8px}
.knx-ct-dong{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1.3fr);gap:10px;align-items:center;background:var(--chim);border-radius:14px;padding:10px 14px}
.knx-ct-dong div{display:flex;flex-direction:column;min-width:0}
.knx-ct-dong small{color:var(--chu3);font-size:12px}
.knx-dc{font-size:12px;color:var(--chu2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.knx-hop{display:flex;flex-direction:column;gap:12px;min-width:min(520px,80vw)}
.knx-ds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.knx-lua{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;background:var(--chim);border-radius:12px;padding:10px 12px;cursor:pointer}
.knx-lua small{grid-column:2;color:var(--chu3);font-size:12px}
.knx-lua.mo{cursor:default;opacity:.55;grid-template-columns:1fr}
.knx-lua.mo small{grid-column:1}
@media (max-width:1100px){.knx-bang{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){
  .knx-chon-cot{display:flex}
  .knx-bang{grid-template-columns:1fr}
  .knx-cot{display:none} .knx-cot.dang-xem{display:flex}
  .knx-cot-dau{display:none}
  .knx-ct-dong{grid-template-columns:auto minmax(0,1fr)} .knx-dc{grid-column:1/-1}
  .knx-ds{grid-template-columns:1fr}
  .knx-hop{min-width:0}
}

/* ===== ĐA KÊNH — Hộp thư (htx-) ===== */
.htx-khung{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr) minmax(220px,280px);gap:12px;align-items:start}
.htx-trai,.htx-giua,.htx-phai{background:var(--the);border-radius:18px;box-shadow:var(--bong);min-width:0}
.htx-trai{padding:10px;display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - 150px);overflow:auto}
.htx-loc{display:flex;flex-wrap:wrap;gap:6px}
.htx-chip{flex:none;border:0;border-radius:999px;background:var(--chim);color:var(--chu2);font:inherit;font-size:12.5px;font-weight:600;padding:6px 11px;display:inline-flex;gap:6px;align-items:center;cursor:pointer;min-height:32px}
.htx-chip.chon{background:var(--nhan-nhat);color:var(--nhan)}
.htx-chip small{font-weight:700} .htx-chip small.loi{color:var(--loi)}
.htx-ds{display:flex;flex-direction:column;gap:4px}
.htx-hang{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:start;text-align:left;border:0;background:none;border-radius:14px;padding:10px;font:inherit;color:inherit;cursor:pointer}
.htx-hang:hover{background:var(--chim)} .htx-hang.chon{background:var(--nhan-nhat)}
.htx-hang:focus-visible{outline:2px solid var(--nhan);outline-offset:1px}
.htx-anh{position:relative;width:40px;height:40px;flex:none}
.htx-anh>:first-child{width:40px;height:40px;border-radius:50%;overflow:hidden;display:block}
.htx-kenh{position:absolute;right:-3px;bottom:-3px;width:18px;height:18px;border-radius:50%;background:var(--nhan);color:var(--the);display:grid;place-items:center}
.htx-kenh svg{width:11px;height:11px}
.htx-giua-hang{display:flex;flex-direction:column;gap:2px;min-width:0}
.htx-dong1{display:flex;justify-content:space-between;gap:6px;align-items:center}
.htx-dong1 b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.htx-dong1 small{color:var(--chu3);flex:none;font-size:12px}
.htx-phu{color:var(--chu3);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.htx-tin-cuoi{font-size:13px;color:var(--chu2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.htx-nhan{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.htx-nhan i{font-style:normal;font-size:11.5px;font-weight:600;border-radius:6px;padding:1px 7px;background:var(--chim);color:var(--chu2)}
.htx-nhan i.tim{background:var(--nhan-nhat);color:var(--nhan)} .htx-nhan i.canh{background:var(--canh-nhat);color:var(--canh)}
.htx-dh{display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:700;color:var(--chu2);flex:none}
.htx-dh.canh{color:var(--canh)} .htx-dh.loi{color:var(--loi)}
.htx-dem{min-width:20px;height:20px;border-radius:10px;background:var(--nhan);color:var(--the);font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 5px}
.htx-rong{margin:0;padding:28px 16px;text-align:center;color:var(--chu3)}
.htx-giua{display:flex;flex-direction:column;min-height:calc(100vh - 150px);max-height:calc(100vh - 150px)}
.htx-dau{display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--chim);border-radius:18px 18px 0 0}
.htx-dau>div{display:flex;flex-direction:column;flex:1;min-width:0}
.htx-dau small{color:var(--chu3);font-size:12px}
.htx-360-nut{display:none;border:0;background:none;color:var(--chu2);padding:6px;border-radius:10px;cursor:pointer}
.htx-lui{display:none;border:0;background:none;color:var(--chu2);padding:6px;border-radius:10px;cursor:pointer}
.htx-luong{flex:1;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:16px}
.htx-tin{max-width:78%;display:flex;flex-direction:column;gap:3px;background:var(--chim);border-radius:16px;padding:10px 14px}
.htx-tin p{margin:0;white-space:pre-wrap;line-height:1.45} .htx-tin small{color:var(--chu3);font-size:11px}
.htx-tin.ra{align-self:flex-end;background:var(--nhan-nhat)}
.htx-tin.noi_bo{align-self:flex-end;background:var(--canh-nhat)}
.htx-bot{display:inline-flex;gap:4px;align-items:center;font-size:11px;font-weight:700;color:var(--nhan)}
.htx-tin.noi_bo .htx-bot{color:var(--canh)}
.htx-bao{margin:0 16px 8px;display:flex;gap:6px;align-items:flex-start;font-size:12.5px;color:var(--canh);background:var(--canh-nhat);border-radius:12px;padding:8px 12px}
.htx-soan{padding:0 16px 16px;display:flex;flex-direction:column;gap:8px}
.htx-soan textarea{width:100%;border:0;border-radius:14px;background:var(--chim);color:var(--chu);font:inherit;padding:12px;resize:vertical;min-height:72px}
.htx-soan-duoi{display:flex;justify-content:space-between;align-items:center;gap:8px}
.htx-noibo{display:inline-flex;gap:6px;align-items:center;font-size:13px;color:var(--chu2)}
.htx-phai{padding:14px}
.htx-360{display:flex;flex-direction:column;gap:10px}
.htx-360-dau{display:flex;flex-direction:column;align-items:center;gap:4px;background:var(--chim);border-radius:14px;padding:14px;text-align:center}
.htx-360-dau>:first-child{width:56px;height:56px;border-radius:50%;overflow:hidden}
.htx-360-dau small{color:var(--chu3)}
.htx-360-loai{font-size:12px;font-weight:700;color:var(--nhan);background:var(--nhan-nhat);border-radius:8px;padding:2px 8px}
.htx-360-dong{display:flex;flex-direction:column;gap:2px;background:var(--chim);border-radius:12px;padding:8px 12px;min-width:0}
.htx-360-dong small{color:var(--chu3);font-size:11.5px}
.htx-nguoi{display:flex;gap:6px;align-items:center} .htx-nguoi>:first-child{width:22px;height:22px;border-radius:50%;overflow:hidden}
.htx-360-dy{display:flex;flex-direction:column;gap:4px;background:var(--chim);border-radius:12px;padding:8px 12px}
.htx-360-dy small{color:var(--chu3);font-size:11.5px}
.htx-dy{display:flex;gap:6px;align-items:center;font-size:12.5px;color:var(--chu2)}
.htx-dy.tot svg{color:var(--tot)} .htx-dy.loi{color:var(--loi)}
@media (max-width:1100px){.htx-khung{grid-template-columns:minmax(240px,320px) minmax(0,1fr)} .htx-phai{display:none} .htx-360-nut{display:inline-flex}}
@media (max-width:760px){
  .htx-khung{grid-template-columns:1fr}
  .htx-khung .htx-giua{display:none} .htx-khung.dang-mo .htx-trai{display:none} .htx-khung.dang-mo .htx-giua{display:flex}
  .htx-loc{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none} .htx-trai{max-height:none} .htx-giua{min-height:calc(100vh - 120px);max-height:none}
  .htx-lui{display:inline-flex} .htx-tin{max-width:90%}
}

/* ===== ĐA KÊNH — Bàn tổng đài (btx-) ===== */
.btx-an{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.btx-dai{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;margin-bottom:12px}
.btx-tt{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;border-radius:999px;padding:6px 12px;background:var(--chim);color:var(--chu2)}
.btx-tt i{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
.btx-tt.tot{background:var(--tot-nhat);color:var(--tot)} .btx-tt.canh{background:var(--canh-nhat);color:var(--canh)}
.btx-so{font-size:13px;color:var(--chu3);font-variant-numeric:tabular-nums} .btx-so b{color:var(--chu)}
.btx-khung{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:12px;align-items:start}
.btx-cuoc,.btx-hang-viec{background:var(--the);border-radius:18px;box-shadow:var(--bong);padding:16px;min-width:0}
.btx-dau-ds{display:flex;flex-direction:column;gap:10px;margin-bottom:8px}
.btx-loc{display:flex;flex-wrap:wrap;gap:6px}
.btx-ds{display:flex;flex-direction:column;gap:6px}
.btx-hang{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;background:var(--chim);border-radius:14px;padding:10px 12px}
.btx-hang.bi-chan{opacity:.85}
.btx-anh{width:40px;height:40px;flex:none} .btx-anh>:first-child{width:40px;height:40px;border-radius:50%;overflow:hidden;display:block}
.btx-anh.lon,.btx-anh.lon>:first-child{width:64px;height:64px}
.btx-la{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--loi-nhat);color:var(--loi)}
.btx-la.lon{width:64px;height:64px} .btx-la .btx-ic{width:20px;height:20px}
.btx-giua{display:flex;flex-direction:column;gap:3px;min-width:0}
.btx-chan{display:flex;gap:4px;align-items:flex-start;color:var(--canh);font-size:12px;line-height:1.35}
.htx-nhan i.tot{background:var(--tot-nhat);color:var(--tot);display:inline-flex;gap:3px;align-items:center}
.btx-goi{width:42px;height:42px;border-radius:50%;border:0;background:var(--the);color:var(--nhan);display:grid;place-items:center;cursor:pointer;flex:none}
.btx-goi:hover:not(:disabled){background:var(--nhan-nhat)} .btx-goi:disabled{color:var(--chu3);cursor:not-allowed;opacity:.6}
.btx-goi:focus-visible,.btx-khan-chip:focus-visible,.btx-kq:focus-visible{outline:2px solid var(--nhan);outline-offset:2px}
.btx-cho{display:flex;flex-direction:column;gap:12px}
.btx-cho-dau{display:flex;gap:14px;align-items:center} .btx-cho-dau>div{display:flex;flex-direction:column;gap:2px} .btx-cho-dau small{color:var(--chu3)}
.btx-cho .btx-la.lon{background:var(--nhan-nhat);color:var(--nhan)}
.btx-tra{display:flex;gap:8px} .btx-tra input{flex:1;min-width:0;border:0;border-radius:12px;background:var(--chim);color:var(--chu);font:inherit;font-size:16px;padding:12px 14px;font-variant-numeric:tabular-nums}
.btx-goi-y{color:var(--chu3);font-size:12.5px}
.btx-dang{display:flex;flex-direction:column;gap:14px}
.btx-dang-goi{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-radius:12px;padding:8px 12px;background:var(--nhan-nhat);color:var(--nhan);font-size:13px}
.btx-dang-goi.vao{background:var(--tot-nhat);color:var(--tot)}
.btx-dang-goi small{color:var(--chu2);flex-basis:100%}
.btx-cham{width:8px;height:8px;border-radius:50%;background:currentColor;animation:btx-nhip 1.4s ease-in-out infinite}
@keyframes btx-nhip{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.btx-cham{animation:none}}
.btx-dong-ho{font-variant-numeric:tabular-nums;margin-left:auto}
.btx-the{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start}
.btx-the .htx-bao{grid-column:1/-1;margin:0}
.btx-the-giua{display:flex;flex-direction:column;gap:6px;min-width:0}
.btx-the-ten{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline} .btx-the-ten b{font-size:18px} .btx-the-ten small{color:var(--chu3)}
.btx-the-sdt{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.btx-the-sdt .nut{display:inline-flex;gap:6px;align-items:center;text-decoration:none} .btx-the-sdt .btx-ic{width:14px;height:14px}
.btx-phieu{display:flex;flex-direction:column;gap:10px;background:var(--chim);border-radius:14px;padding:14px}
.btx-muc{display:flex;justify-content:space-between;align-items:baseline;gap:8px} .btx-muc b{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--chu2)} .btx-muc small{color:var(--chu3);font-size:12px}
.btx-khan{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.btx-khan-chip{display:flex;align-items:center;gap:8px;text-align:left;border:0;border-radius:12px;background:var(--the);color:var(--chu);font:inherit;font-size:13px;font-weight:600;padding:10px 12px;cursor:pointer;min-height:44px}
.btx-khan-chip.chon{background:var(--loi);color:var(--the)}
.btx-cham-do{width:8px;height:8px;border-radius:50%;background:var(--loi);flex:none} .btx-khan-chip.chon .btx-cham-do{background:var(--the)}
.btx-khac summary{cursor:pointer;font-size:12.5px;color:var(--chu2);padding:2px 0} .btx-khac .btx-khan{margin-top:8px}
.btx-bang-do{margin:0;display:flex;gap:8px;align-items:flex-start;background:var(--loi);color:var(--the);border-radius:12px;padding:10px 12px;font-weight:600;font-size:13.5px;line-height:1.4}
.btx-kqs{display:flex;flex-wrap:wrap;gap:6px}
.btx-kq{border:0;border-radius:999px;background:var(--the);color:var(--chu2);font:inherit;font-size:13px;padding:7px 12px;cursor:pointer;min-height:36px}
.btx-kq.chon{background:var(--nhan-nhat);color:var(--nhan);font-weight:600} .btx-kq:disabled{opacity:.4;cursor:not-allowed}
.btx-phieu textarea,.btx-phieu input[type=datetime-local]{width:100%;border:0;border-radius:12px;background:var(--the);color:var(--chu);font:inherit;padding:10px 12px}
.btx-nut{display:flex;justify-content:flex-end;gap:8px}
@media (max-width:1100px){.btx-khung{grid-template-columns:1fr}}
@media (max-width:760px){
  .btx-cuoc,.btx-hang-viec{padding:12px}
  .btx-loc{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .btx-khan{grid-template-columns:1fr 1fr}
  .btx-anh.lon,.btx-anh.lon>:first-child,.btx-la.lon{width:52px;height:52px}
}
/* tên khách không bị đồng hồ hạn đẩy thành "Nguyễn Thu …" ở 390px: đồng hồ xuống dòng khi chật */
.btx-giua .htx-dong1{flex-wrap:wrap;justify-content:flex-start;column-gap:10px} .btx-giua .htx-dong1 b{white-space:normal}

/* ===== ĐA KÊNH — Trợ lý kênh (tlx-) ===== */
.tlx-dau{display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:var(--the);border-radius:18px;box-shadow:var(--bong);padding:12px 16px;margin-bottom:12px}
.tlx-bot{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--nhan-nhat);color:var(--nhan);flex:none}
.tlx-bot.nho{width:28px;height:28px;border-radius:9px}
.tlx-dau-giua{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;flex:1;min-width:200px} .tlx-dau-giua b{font-size:16px}
.tlx-dau-giua small{flex-basis:100%;color:var(--chu3);font-size:12.5px}
.tlx-tt{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;border-radius:999px;padding:3px 10px;background:var(--chim);color:var(--chu2)}
.tlx-tt i{width:7px;height:7px;border-radius:50%;background:currentColor}
.tlx-tt.tot{background:var(--tot-nhat);color:var(--tot)} .tlx-tt.canh{background:var(--canh-nhat);color:var(--canh)}
.tlx-doan{display:inline-flex;background:var(--chim);border-radius:12px;padding:3px;gap:2px}
.tlx-doan button{border:0;background:none;border-radius:9px;font:inherit;font-size:13px;color:var(--chu2);padding:7px 14px;cursor:pointer;min-height:34px}
.tlx-doan button.chon{background:var(--the);color:var(--nhan);font-weight:600;box-shadow:var(--bong)}
.tlx-doan button:disabled{opacity:.45;cursor:not-allowed}
.tlx-doan.nho button{font-size:12px;padding:5px 10px;min-height:30px}
.tlx-doan button:focus-visible,.tlx-tat-khan:focus-visible,.tlx-gui:focus-visible{outline:2px solid var(--nhan);outline-offset:2px}
.tlx-tat-khan{width:40px;height:40px;border-radius:12px;border:0;background:var(--loi-nhat);color:var(--loi);display:grid;place-items:center;cursor:pointer}
.tlx-tat-khan:disabled{opacity:.4;cursor:not-allowed}
.tlx-khung{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;align-items:start}
.tlx-the{background:var(--the);border-radius:18px;box-shadow:var(--bong);padding:14px 16px;display:flex;flex-direction:column;gap:6px;min-width:0}
.tlx-phai{display:flex;flex-direction:column;gap:12px;min-width:0}
.tlx-muc{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:4px} .tlx-muc b{font-size:15px} .tlx-muc small{color:var(--chu3);font-size:12px;flex:1;min-width:160px}
.tlx-muc .nut{margin-left:auto}
.tlx-yd{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:8px 0}
.tlx-yd+.tlx-yd{box-shadow:0 -1px 0 var(--chim)}
.tlx-yd-ic{width:32px;height:32px;border-radius:10px;background:var(--chim);color:var(--chu2);display:grid;place-items:center}
.tlx-yd-ten{display:flex;flex-direction:column;min-width:0} .tlx-yd-ten b{font-size:13.5px;font-weight:600} .tlx-yd-ten small{color:var(--chu3);font-size:11.5px}
.tlx-luot{color:var(--chu3);font-size:12px;font-variant-numeric:tabular-nums;min-width:48px;text-align:right}
.tlx-co{font-size:12px;font-weight:600;border-radius:9px;padding:6px 10px;background:var(--chim);color:var(--chu2)}
.tlx-khoa{background:var(--chim);border-radius:14px;padding:10px 12px;margin-top:6px}
.tlx-khoa summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;cursor:pointer;list-style:none}
.tlx-khoa summary::-webkit-details-marker{display:none}
.tlx-khoa summary small{flex-basis:100%;color:var(--chu3);font-size:12px;padding-left:42px}
.tlx-khoa-ic{width:32px;height:32px;border-radius:10px;background:var(--loi-nhat);color:var(--loi);display:grid;place-items:center}
.tlx-dem-khoa{font-size:11.5px;font-weight:700;border-radius:8px;padding:2px 8px;background:var(--loi-nhat);color:var(--loi)}
.tlx-khoa-ds{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}
.tlx-khoa-dong{display:flex;align-items:center;gap:6px;background:var(--the);border-radius:10px;padding:8px 10px;font-size:12.5px;color:var(--chu2)}
.tlx-khoa-dong span{flex:1;min-width:0} .tlx-khoa-dong small{color:var(--chu3);font-size:11px}
.tlx-khoa-dong i{font-style:normal;font-size:11px;font-weight:700;color:var(--loi)}
.tlx-khoa-dong.khan{box-shadow:inset 3px 0 0 var(--loi)}
.tlx-luong{display:flex;flex-direction:column;gap:10px;background:var(--chim);border-radius:14px;padding:12px;max-height:380px;min-height:140px;overflow:auto}
.tlx-tin.khach{align-self:flex-end;max-width:85%;background:var(--the);border-radius:14px;padding:8px 12px} .tlx-tin p{margin:0;line-height:1.45;white-space:pre-wrap}
.tlx-tin.bot{display:flex;gap:8px;align-items:flex-start;max-width:95%}
.tlx-tin-than{background:var(--the);border-radius:14px;padding:8px 12px;display:flex;flex-direction:column;gap:4px;min-width:0}
.tlx-tin-than small{color:var(--chu3);font-size:11px}
.tlx-tin-nhan{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;font-size:11.5px} .tlx-tin-nhan b{color:var(--nhan)}
.tlx-tin-nhan i{font-style:normal;font-weight:600;border-radius:6px;padding:1px 7px;background:var(--chim);color:var(--chu2)}
.tlx-tin-nhan i.loi{background:var(--loi-nhat);color:var(--loi)} .tlx-tin-nhan i.canh{background:var(--canh-nhat);color:var(--canh)} .tlx-tin-nhan i.tot{background:var(--tot-nhat);color:var(--tot)}
.tlx-go{display:flex;gap:8px;margin-top:4px}
.tlx-go input{flex:1;min-width:0;border:0;border-radius:12px;background:var(--chim);color:var(--chu);font:inherit;font-size:15px;padding:10px 12px}
.tlx-gui{width:42px;border:0;border-radius:12px;background:var(--nhan-nhat);color:var(--nhan);display:grid;place-items:center;cursor:pointer}
.tlx-lh{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--chim);border-radius:12px;padding:8px 10px}
.tlx-lh p{margin:0;font-size:13px} .tlx-lh-ic{color:var(--canh)}
.tlx-kt{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--chim);border-radius:12px;padding:8px 10px}
.tlx-kt.het_han{opacity:.6}
.tlx-kt-giua{display:flex;flex-direction:column;gap:2px;min-width:0} .tlx-kt-giua b{font-size:13px} .tlx-kt-giua small{color:var(--chu3);font-size:11.5px}
.tlx-kt-nd{font-size:12.5px;color:var(--chu2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tlx-duyet{display:flex;align-items:center;gap:6px} .tlx-duyet>:first-child{width:22px;height:22px;border-radius:50%;overflow:hidden} .tlx-duyet small{font-size:11.5px;color:var(--chu2)}
.tlx-nho{border:0;background:none;color:var(--chu3);font:inherit;font-size:11.5px;cursor:pointer;text-decoration:underline}
.tlx-chay{display:flex;flex-direction:column;gap:6px} .tlx-chay .nut{width:100%;justify-content:center;display:inline-flex;gap:8px;align-items:center;min-height:48px}
.tlx-chay small{color:var(--chu3);font-size:12.5px;text-align:center}
.tlx-hop{display:flex;flex-direction:column;gap:10px} .tlx-hop small{color:var(--chu3)}
.tlx-hop-hoi{margin:0;background:var(--chim);border-radius:12px;padding:10px 12px;font-weight:600}
.tlx-hop textarea,.tlx-hop input,.tlx-hop select{width:100%}
@media (max-width:1100px){.tlx-khung{grid-template-columns:1fr}}
@media (max-width:760px){
  .tlx-yd{grid-template-columns:auto minmax(0,1fr) auto;row-gap:8px} .tlx-yd .tlx-doan{grid-column:1/-1} .tlx-yd .tlx-doan button{flex:1}
  .tlx-yd .tlx-doan{display:flex} .tlx-yd>.tlx-luot{grid-row:1;grid-column:3}
  .tlx-khoa-ds{grid-template-columns:1fr}
  .tlx-dau .tlx-doan{order:3}
}

/* ===== ĐA KÊNH — Dữ liệu cá nhân (dlx-) ===== */
.dlx-bang-do{display:flex;align-items:center;gap:10px;background:var(--loi-nhat);color:var(--loi);border-radius:14px;padding:10px 14px;margin-bottom:10px;font-size:13.5px}
.dlx-bang-do span{flex:1;min-width:0}
.dlx-link{border:0;background:none;color:var(--loi);font:inherit;font-weight:700;cursor:pointer;text-decoration:underline}
.dlx-tabs{margin-bottom:12px;flex-wrap:wrap} .dlx-tabs small{margin-left:6px;font-weight:700;color:var(--nhan)} .dlx-tabs small.loi{color:var(--loi)}
.dlx-so{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start} .dlx-so.co-ben{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr)}
.dlx-thanh{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-bottom:6px}
.dlx-thanh input{flex:1;min-width:200px;max-width:360px;border:0;border-radius:12px;background:var(--chim);color:var(--chu);font:inherit;padding:10px 12px}
.dlx-bang table{width:100%;border-collapse:collapse;font-size:13px}
.dlx-bang th{font-size:11.5px;font-weight:600;color:var(--chu3);text-align:center;padding:8px 6px;white-space:nowrap} .dlx-bang th:first-child{text-align:left}
.dlx-bang td{padding:8px 6px} .dlx-bang td.giua{text-align:center}
.dlx-bang tbody tr{cursor:pointer;border-radius:12px} .dlx-bang tbody tr:hover,.dlx-bang tbody tr.chon{background:var(--nhan-nhat)}
.dlx-bang tbody tr:focus-visible{outline:2px solid var(--nhan);outline-offset:-2px}
.dlx-khach{display:flex;align-items:center;gap:10px;min-width:180px} .dlx-khach>:first-child{width:34px;height:34px;border-radius:50%;overflow:hidden;flex:none}
.dlx-khach>span:last-child{display:flex;flex-direction:column} .dlx-khach small{color:var(--chu3);font-size:11.5px}
.dlx-o{display:inline-flex;flex-direction:column;align-items:center;gap:1px;font-size:10.5px;line-height:1}
.dlx-o.dy{color:var(--tot)} .dlx-o.rut{color:var(--loi);font-weight:600} .dlx-o.chua{color:var(--chu3)}
.dlx-chu{color:var(--chu3);font-size:12px;margin:6px 0 0;display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.dlx-ben{position:sticky;top:12px}
.dlx-ben-dau{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center}
.dlx-ben-dau>:first-child{width:44px;height:44px;border-radius:50%;overflow:hidden} .dlx-ben-dau div{display:flex;flex-direction:column} .dlx-ben-dau small{color:var(--chu3)}
.dlx-dong{display:inline-flex}
.dlx-muc{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--chu2);margin-top:6px}
.dlx-ls{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.dlx-ls li{background:var(--chim);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;box-shadow:inset 3px 0 0 var(--tot)}
.dlx-ls li.rut{box-shadow:inset 3px 0 0 var(--loi)} .dlx-ls li small{color:var(--chu3);font-size:11.5px}
.dlx-ls-dau{display:flex;justify-content:space-between;gap:8px;align-items:baseline} .dlx-ls-dau b{font-size:13px}
.dlx-cau{display:block;font-style:italic;font-size:12.5px;color:var(--chu2);background:var(--the);border-radius:10px;padding:8px 10px;quotes:"“" "”"}
.dlx-nguoi{display:flex;align-items:center;gap:6px} .dlx-nguoi>:first-child{width:20px;height:20px;border-radius:50%;overflow:hidden}
.dlx-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dlx-yc{background:var(--chim);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:6px} .dlx-yc.xong{opacity:.7}
.dlx-yc>small{color:var(--chu3);font-size:12px}
.dlx-yc-dau{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center} .dlx-yc-dau b{font-size:14px}
.dlx-yc-nut{display:flex;flex-wrap:wrap;gap:6px}
.dlx-bb{margin:0;font-size:12.5px;color:var(--chu2)}
.dlx-bn{background:var(--chim);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:4px} .dlx-bn p{margin:0;font-size:13px}
.dlx-bn>small{color:var(--chu3);font-size:12px} .dlx-bn .dlx-thieu{color:var(--canh);font-weight:600}
.dlx-cong{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--chu2);background:var(--nhan-nhat);border-radius:12px;padding:8px 12px}
.dlx-loai{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center} .dlx-loai small{flex-basis:100%;color:var(--chu2)}
.dlx-chan{color:var(--chu3);font-size:12px;margin-top:14px}
.dlx-vung{display:block}
@media (max-width:1100px){.dlx-so.co-ben{grid-template-columns:1fr} .dlx-ben{position:static;order:-1}}
@media (max-width:760px){.dlx-2{grid-template-columns:1fr} .dlx-thanh input{max-width:none}}

/* thẻ OMICall: ô dán API key ngay trên thẻ */
.knx-o-dong{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.knx-o{border:0;border-radius:10px;background:var(--chim);color:var(--chu);font:inherit;font-size:14px;padding:9px 11px;width:100%}

/* thẻ Zalo cá nhân: ảnh mã QR */
.knx-qr{width:220px;max-width:100%;aspect-ratio:1;border-radius:12px;background:var(--the);align-self:center}
