/* Giao diện theo AVDS (An Việt Design Solution): nhịp khoảng cách 4/8px, chuẩn ChatGPT/Gemini di động. */
:root {
  --brand-deep: #0b4fa8; --brand: #1a8fde; --brand-bright: #2fc9f0;
  --brand-50: #eff9fe; --brand-100: #d6f0fc;
  --bg: #f7f9fb; --surface: #ffffff; --border: #e0e5ec; --border-strong: #c8d0da;
  --text: #131920; --text-secondary: #3e4a59; --text-muted: #536173;
  --success: #1a7f4b; --success-bg: #e7f5ed; --warning: #9a6206; --warning-bg: #fdf3e2; --danger: #b3261e; --danger-bg: #fdecea;
  --radius-sm: 4px; --radius: 8px; --radius-lg: 14px; --radius-xl: 20px;
  --font: "Inter Variable", Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(11, 79, 168, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 14px rgba(11, 79, 168, .08), 0 2px 4px rgba(0, 0, 0, .03);
  --shadow-lg: 0 10px 30px rgba(11, 79, 168, .14);
}
* { box-sizing: border-box; }
html, body { height: 100%; height: 100dvh; min-height: 100dvh; margin: 0; overflow-x: hidden; width: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); display: flex; flex-direction: column; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- Header */
.dau { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top)); background: var(--surface);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); z-index: 10;
  flex: none; min-height: 56px; }
/* owner 28/10: thương hiệu AVask (dấu AVDS + chữ AVask + dòng phụ) thay logo AVDS; header không trống */
.thuong-hieu { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dau-mark { width: 34px; height: 34px; flex: none; display: block; border-radius: 9px;
  box-shadow: 0 0 0 1px var(--border); }
.dau-chu { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.dau-ten { font-size: 19px; font-weight: 800; letter-spacing: -.2px; color: var(--brand-deep); }
.dau-ten-phu { color: var(--brand); font-weight: 700; }
.dau-phu { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thuong-hieu-to { justify-content: center; }
.thuong-hieu-to .dau-mark { width: 44px; height: 44px; border-radius: 12px; }
.thuong-hieu-to .dau-ten { font-size: 24px; }
.nut-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--border);
  background: var(--brand-50); color: var(--brand-deep); font: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: .3px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nut-avatar:active { transform: scale(.95); }

/* ---------------------------------------------------------------- Screens */
.man { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.form { padding: 28px 16px; max-width: 440px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.the-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px 20px;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 14px; }
.the-form-logo { display: flex; justify-content: center; align-items: center; padding-bottom: 4px; }
.logo-form-to { height: 42px; width: auto; max-width: 200px; display: block; }
.the-form h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--text); }
.the-form p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.45; }
.the-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.the-form input { font: inherit; font-size: 16px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius); background: var(--surface); color: var(--text); transition: border-color .15s ease; }
.the-form input:focus, #o-tin:focus, #phieu input:focus, #phieu textarea:focus, #phieu select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 143, 222, .18); }
.ghi-chu-input { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 3px; line-height: 1.35; }

.nut-chinh { background: var(--brand); color: #fff; border: 0; border-radius: var(--radius); min-height: 48px; padding: 12px 18px;
  font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; transition: background .15s ease, transform .1s ease;
  display: inline-flex; align-items: center; justify-content: center; }
.nut-chinh:active { background: var(--brand-deep); transform: scale(.98); }
.nut-chinh:disabled { opacity: .55; cursor: not-allowed; }
.nut-xanh { background: var(--success); }

.dong-ma-moi { display: flex; justify-content: center; margin-top: 2px; }
.nut-lien-ket { background: none; border: 0; color: var(--brand); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: underline; padding: 6px; }
.nut-lien-ket:active { color: var(--brand-deep); }
.khu-ma-moi { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.nut-phu { background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius);
  min-height: 40px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.nut-phu:active { background: var(--border); }

.ghi-chu-bao-mat { font-size: 12.5px; color: var(--text-muted); text-align: center; margin: 4px 0 0; line-height: 1.45; }
.loi { color: var(--danger); min-height: 1.4em; font-size: 13.5px; font-weight: 550; margin: 0; }

/* ---------------------------------------------------------------- Chat area */
#khung-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; position: relative; }

/* Chip gợi ý nhanh: xuống dòng cho đủ cả 4 nút (owner 28/10: nút cuối bị cắt ở mép phải) */
.khu-goi-y { padding: 8px 12px 4px; flex: none; overflow: hidden; width: 100%; }
.ds-goi-y { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ds-goi-y::-webkit-scrollbar { display: none; }
.nut-goi-y { background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; min-height: 38px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: all .15s ease; white-space: nowrap; flex: none;
  display: inline-flex; align-items: center; }
/* owner 28/10: icon nét đơn như app AVDS — không nền tròn màu */
.mic-trong-chu { display: inline-flex; align-items: center; color: var(--brand-deep); vertical-align: -3px; margin: 0 1px; }
.mic-trong-chu svg { width: 16px; height: 16px; stroke-width: 1.75; }
.icon-net { flex: none; display: block; }
.nut-goi-y .icon-net { color: var(--brand-deep); margin-right: 7px; }
.nut-doc .icon-net { color: var(--text-secondary); }
.nut-doc.bat .icon-net { color: var(--brand-deep); }
.nut-goi-y:active { transform: scale(.96); background: var(--brand-50); border-color: var(--brand); }

/* Danh sách tin nhắn */
#ds-tin { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.hang-tin { display: flex; gap: 8px; align-items: flex-end; max-width: 90%; }
.hang-tro-ly { align-self: flex-start; }
.hang-nguoi { align-self: flex-end; justify-content: flex-end; }
.avatar-tin-tro-ly { width: 26px; height: 26px; border-radius: 8px; background: #fff; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; box-shadow: 0 0 0 1px var(--border); }
.avatar-tin-tro-ly img { width: 26px; height: 26px; display: block; }
/* thân của hàng chờ sau khi có kết quả: các khối con nằm thẳng trong hàng (đúng một logo) */
.than-tin-cho { display: contents; }

.tin { padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; line-height: 1.45; }
/* Tin của khách: nền thương hiệu nhạt, chữ đậm rõ ràng, đạt chuẩn tương phản */
.tin-nguoi { background: #eff8fe; border: 1px solid #d0e8fa; color: #0c2b54;
  border-bottom-right-radius: 4px; box-shadow: var(--shadow-sm); font-weight: 500; }
/* Tin của hệ thống / trợ lý: thẻ trắng viền nhẹ */
.tin-tro-ly { background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }

/* Biên nhận hệ thống (khi chuyển việc cho anh Cường) */
.tin-bien-nhan { background: #f8fbff; border: 1.5px solid var(--brand); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(11, 79, 168, .08); display: flex; flex-direction: column; gap: 4px; }
.bien-nhan-dau { display: flex; align-items: center; gap: 7px; }
.badge-check-bien-nhan { width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff;
  font-size: 11px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bien-nhan-tieu-de { font-size: 14px; font-weight: 700; color: var(--brand-deep); }
.bien-nhan-chi-tiet { font-size: 13.5px; color: var(--text-secondary); line-height: 1.45; }

/* Trạng thái đang gửi tinh tế */
.tin-dang-cho { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13.5px; font-weight: 550; }
.cham-nhay-cho { display: inline-flex; align-items: center; gap: 4px; height: 12px; }
.cham-nhay-cho span { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); animation: cham-nhay 1.2s infinite ease-in-out; }
.cham-nhay-cho span:nth-child(2) { animation-delay: .2s; }
.cham-nhay-cho span:nth-child(3) { animation-delay: .4s; }
@keyframes cham-nhay { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }

/* ---------------------------------------------------------------- Phiếu việc (khi chuyen_thang=false) */
.the-phieu-viec { margin: 6px 14px; background: linear-gradient(180deg, #f0f7fe 0%, #ffffff 100%);
  border: 1.5px solid var(--brand-100); border-radius: var(--radius-lg); padding: 10px 12px; box-shadow: var(--shadow-sm); }
.phieu-dau { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.phieu-dau::-webkit-details-marker { display: none; }
.icon-phieu { color: var(--brand-deep); display: flex; align-items: center; }
.tieu-de-phieu { flex: 1; font-weight: 700; color: var(--brand-deep); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nut-sua-phieu { font-size: 12px; font-weight: 600; color: var(--brand); padding: 2px 6px; background: var(--brand-50); border-radius: 4px; }
.noi-dung-phieu { margin-top: 10px; border-top: 1px solid var(--brand-100); padding-top: 8px; }
.noi-dung-phieu label { display: block; font-size: 12px; font-weight: 650; color: var(--text-secondary); margin-top: 6px; }
.noi-dung-phieu input, .noi-dung-phieu textarea, .noi-dung-phieu select {
  display: block; width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; margin-top: 3px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.hang-doi { display: flex; gap: 8px; }
.hang-doi label { flex: 1; }
.hang-gui-viec { padding: 8px 14px 0; display: flex; }
.nut-gui-viec-lon { width: 100%; padding: 12px 18px; font-size: 15px; font-weight: 700; border-radius: var(--radius-lg); box-shadow: 0 4px 14px rgba(26,127,75,.25); }

/* Thông báo & thanh trạng thái nghe */
.thong-bao-giong { margin: 6px 14px 0; padding: 9px 13px; border-radius: var(--radius-lg); background: var(--danger-bg);
  color: var(--danger); font-size: 13.5px; font-weight: 550; text-align: center; border: 1px solid rgba(179, 38, 30, .2);
  animation: xuat-hien .2s ease-out; }
.thanh-dang-nghe { margin: 6px 14px 0; padding: 6px 14px; background: var(--brand-50); border: 1.5px solid var(--brand-100);
  border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650;
  color: var(--brand-deep); align-self: center; box-shadow: var(--shadow-sm); animation: xuat-hien .2s ease-out; }
.cham-song-am { display: inline-flex; align-items: center; gap: 3px; height: 14px; }
.cham-song-am span { width: 3.5px; height: 12px; border-radius: 2px; background: var(--brand); animation: song-nho .8s infinite alternate ease-in-out; }
.cham-song-am span:nth-child(2) { animation-delay: .2s; height: 16px; }
.cham-song-am span:nth-child(3) { animation-delay: .4s; height: 10px; }
@keyframes song-nho { 0% { transform: scaleY(.4); } 100% { transform: scaleY(1.3); } }
.chu-dang-nghe { line-height: 1; }

/* ---------------------------------------------------------------- Khu đáy: Thanh kéo Việc đã giao + Ô soạn tin */
.khu-day-chat { flex: none; display: flex; flex-direction: column; background: var(--surface);
  border-top: 1px solid var(--border); box-shadow: 0 -3px 12px rgba(11, 79, 168, .04); z-index: 20; width: 100%; }

/* Thanh kéo "Việc đã giao (N)" dải hẹp ~44px nằm ngay TRÊN ô soạn */
.thanh-keo-viec { width: 100%; min-height: 58px; padding: 6px 16px 8px; border: 0; background: transparent;
  color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: stretch;
  justify-content: center; gap: 6px; touch-action: none; transition: background .15s ease; position: relative; font: inherit; }
.thanh-keo-viec:active { background: var(--brand-50); }
.tay-cam-keo { width: 36px; height: 4px; border-radius: 999px; background: var(--border-strong); transition: background .15s ease;
  align-self: center; }
.thanh-keo-viec:hover .tay-cam-keo { background: var(--brand); }
/* owner 28/10 "nhìn chưa pro": hàng kiểu danh sách — ô icon, tiêu đề + dòng phụ, huy hiệu số việc, mũi tên */
.noi-dung-thanh-keo { display: flex; align-items: center; gap: 12px; text-align: left; }
.o-icon-viec { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--brand-50);
  color: var(--brand-deep); display: inline-flex; align-items: center; justify-content: center; }
.chu-thanh-keo { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.nhan-thanh-keo { font-size: 14.5px; font-weight: 700; color: var(--text); }
.phu-thanh-keo { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dem-viec-pill { position: relative; flex: none; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 999px;
  background: var(--brand-deep); color: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex;
  align-items: center; justify-content: center; }
.dem-viec-pill .cham-do-moi { position: absolute; top: -3px; right: -3px; }
.icon-thanh-keo { flex: none; color: var(--text-muted); transition: transform .2s ease; }
.cham-do-moi { width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 0 2px var(--surface); animation: sang-cham-do 1.8s infinite ease-in-out; }
@keyframes sang-cham-do { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: .8; } }

/* Khung nhập tin (ô soạn kiểu pill bo tròn nổi) */
.khu-nhap-day { padding: 4px 12px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 4px; }
.thanh-pill-nhap { display: flex; align-items: center; background: #ffffff; border: 1.5px solid var(--border-strong);
  border-radius: 28px; padding: 3px 5px 3px 16px; box-shadow: 0 3px 14px rgba(11, 79, 168, .07);
  transition: all .2s ease; gap: 6px; width: 100%; min-height: 48px; }
.thanh-pill-nhap:focus-within { border-color: var(--brand); box-shadow: 0 4px 18px rgba(26, 143, 222, .22); }
#o-tin { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px;
  color: var(--text); padding: 8px 0; max-height: 110px; min-height: 24px; line-height: 1.4; }
.cac-nut-pill { display: flex; align-items: center; gap: 4px; flex: none; }

/* Nút đọc to nhỏ gọn */
.nut-doc { width: 36px; height: 36px; min-height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s ease; }
.nut-doc:active { background: var(--bg); transform: scale(.95); }
.nut-doc.bat { background: var(--brand-50); color: var(--brand-deep); border-color: var(--brand); }
.icon-doc { font-size: 14px; line-height: 1; }
.nut-dinh-kem[hidden] { display: none; }
.nut-dinh-kem .icon-net { color: var(--text-secondary); }
.nut-dinh-kem:disabled { opacity: .45; cursor: default; }

/* Mức độ + hạn mong muốn: một hàng chip nhỏ phía trên ô soạn */
.hang-tuy-chon { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 4px 2px; }
.hang-tuy-chon[hidden] { display: none; }
.nhom-muc-do { display: inline-flex; gap: 4px; }
.chip-muc { min-height: 32px; padding: 3px 11px; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface);
  color: var(--text-secondary); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.chip-muc.is-chon { background: var(--brand-50); border-color: var(--brand); color: var(--brand-deep); }
.chip-muc-rat-gap.is-chon { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.chip-muc:disabled, .chip-han input:disabled { opacity: .5; cursor: default; }
.chip-han { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 8px; border: 1px solid var(--border-strong);
  border-radius: 16px; background: var(--surface); color: var(--text-secondary); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chip-han .icon-net { color: var(--brand-deep); flex: none; }
.chip-han.co-han { background: var(--brand-50); border-color: var(--brand); color: var(--brand-deep); }
.chip-han input { border: 0; background: transparent; font: inherit; font-size: 12.5px; color: inherit; padding: 0; min-height: 28px;
  width: 118px; cursor: pointer; }
.chip-han input:focus { outline: none; }

/* Tệp đính kèm: hàng chip phía trên ô soạn */
.khu-tep { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px 4px; max-height: 120px; overflow-y: auto; }
.khu-tep[hidden] { display: none; }
.chip-tep { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 3px 4px 3px 6px;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 18px; font-size: 12.5px; color: var(--text); }
.chip-tep.loi { background: var(--danger-bg); border-color: rgba(179, 38, 30, .3); }
.chip-anh { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--border); }
.chip-loai { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--surface); border: 1px solid var(--border);
  color: var(--brand-deep); font-size: 9px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  text-transform: uppercase; }
.chip-ten { min-width: 0; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.chip-kt { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; }
.chip-bo { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chip-bo:active { background: var(--border); }
.chip-bo:disabled { opacity: .4; cursor: default; }
.loi-tep { margin: 0; padding: 0 8px; font-size: 12.5px; font-weight: 550; color: var(--danger); line-height: 1.4; }
.loi-tep[hidden] { display: none; }
.tin-tep { margin-top: 4px; font-size: 12px; opacity: .92; word-break: break-word; }
/* Tệp trong thẻ việc */
.ds-tep-viec { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tep-lien-ket { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--brand-deep); font-weight: 600;
  font-size: 13.5px; text-decoration: none; word-break: break-word; }
.tep-lien-ket:hover, .tep-lien-ket:active { text-decoration: underline; }
.tep-lien-ket .icon-net { flex: none; color: var(--brand); }
.tep-kt { color: var(--text-muted); font-weight: 500; font-size: 12px; white-space: nowrap; }

/* Nút mic / gửi đổi chỗ mượt (rỗng -> mic, có chữ -> gửi) */
.nut-pill-chinh { width: 42px; height: 42px; min-width: 42px; min-height: 42px; border-radius: 50%; border: 0;
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s cubic-bezier(.34, 1.56, .64, 1); box-shadow: 0 2px 8px rgba(11, 79, 168, .28); flex: none; }
.nut-pill-chinh:active { transform: scale(.92); }
.nut-pill-chinh.che-do-giong { background: var(--brand-deep); }
.nut-pill-chinh.che-do-giong .icon-mic { display: block; }
.nut-pill-chinh.che-do-giong .icon-mui-ten { display: none; }
.nut-pill-chinh.che-do-giong.dang-nghe { background: var(--danger); animation: nhip-do 1s infinite alternate; }
@keyframes nhip-do { from { transform: scale(1); } to { transform: scale(1.12); } }
.nut-pill-chinh.che-do-gui { background: var(--brand); }
.nut-pill-chinh.che-do-gui .icon-mic { display: none; }
.nut-pill-chinh.che-do-gui .icon-mui-ten { display: block; }

.meo-ban-phim { font-size: 12px; color: var(--text-muted); text-align: center; margin: 2px 0 0; line-height: 1.4; }

/* ---------------------------------------------------------------- Bottom Sheet "Việc đã giao" */
.man-mo { position: fixed; inset: 0; background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 140; opacity: 0;
  pointer-events: none; transition: opacity .25s ease; }
.man-mo.mo { opacity: 1; pointer-events: auto; }
.man-mo.dang-keo { transition: none !important; }

.bottom-sheet { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 90vh;
  max-height: 90vh; min-height: 280px; background: var(--surface);
  border-top-left-radius: 24px; border-top-right-radius: 24px;
  box-shadow: 0 -10px 40px rgba(11, 79, 168, .22); z-index: 150; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.16, 1, .3, 1); will-change: transform; }
.bottom-sheet.mo { transform: translateY(0); }
.bottom-sheet.dang-keo { transition: none !important; }

.sheet-keo { display: flex; justify-content: center; align-items: center; padding: 10px 0 6px;
  cursor: grab; touch-action: none; flex: none; min-height: 30px; }
.thanh-keo { width: 48px; height: 5px; border-radius: 999px; background: var(--border-strong); }

.sheet-dau { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 6px 16px;
  border-bottom: 1px solid var(--border); flex: none; max-width: 720px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.sheet-dau-trai { display: flex; align-items: center; gap: 8px; }
.sheet-tieu-de { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.sheet-dem-badge { background: var(--brand-50); color: var(--brand-deep); border: 1px solid var(--brand-100);
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.nut-dong-sheet { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%; border: 0;
  background: var(--bg); color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s ease; }
.nut-dong-sheet:active { background: var(--border); transform: scale(.92); }

.sheet-noi-dung { flex: 1; overflow-y: auto; padding: 8px 12px;
  display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch;
  max-width: 720px; width: 100%; margin: 0 auto; box-sizing: border-box; }

/* Bộ lọc trong bảng "Việc đã giao": ô tìm + tab trạng thái có số đếm */
.sheet-loc { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 8px 12px 0; max-width: 720px; width: 100%;
  margin: 0 auto; box-sizing: border-box; }
.sheet-loc[hidden] { display: none; }
.khung-tim { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--border-strong);
  border-radius: 20px; background: var(--bg); color: var(--text-muted); }
.khung-tim:focus-within { border-color: var(--brand); background: var(--surface); }
.khung-tim input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px;
  color: var(--text); min-height: 38px; }
.hang-tab-loc { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.hang-tab-loc::-webkit-scrollbar { display: none; }
.tab-loc { flex: none; min-height: 34px; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: 17px; background: var(--surface);
  color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.tab-loc.is-chon { background: var(--brand-50); border-color: var(--brand); color: var(--brand-deep); }
.tab-dem { display: inline-block; min-width: 18px; margin-left: 3px; padding: 0 5px; border-radius: 9px; background: var(--bg);
  color: var(--text-secondary); font-size: 11.5px; font-weight: 700; text-align: center; }
.tab-loc.is-chon .tab-dem { background: var(--brand-100); color: var(--brand-deep); }

/* Bổ sung thông tin trong thẻ việc */
.o-bo-sung { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--brand-100); border-radius: var(--radius-lg);
  background: var(--brand-50); }
.o-bo-sung textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 64px; max-height: 200px; padding: 8px 10px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; line-height: 1.4; }
.o-bo-sung textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 143, 222, .18); }
.hang-nut-bo-sung { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tt-bo-sung { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-secondary); }
.nut-gui-bo-sung { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.nut-gui-bo-sung:disabled { opacity: .55; }
.ds-bo-sung { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.muc-bo-sung { padding: 8px 10px; border-left: 3px solid var(--brand-100); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; display: flex;
  flex-direction: column; gap: 3px; min-width: 0; }
.noi-dung-bo-sung { white-space: pre-wrap; word-break: break-word; font-size: 14px; }

/* Chân bảng bottom sheet: MỘT dòng gọn (owner 28/10) */
.sheet-day { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 12px; padding-bottom: max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); background: var(--surface); flex: none;
  max-width: 720px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.sheet-day-thong-tin { min-width: 0; flex: 1; }
.chu-dang-nhap { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; display: block; }
.chu-dang-nhap strong { color: var(--brand-deep); font-weight: 700; }
.sheet-day-nut { display: flex; align-items: center; gap: 4px; flex: none; }
.nut-sheet-phu { background: transparent; color: var(--text-secondary); border: 0;
  border-radius: 14px; padding: 0 8px; font: inherit; font-size: 12.5px;
  font-weight: 650; cursor: pointer; white-space: nowrap; min-height: 32px; display: inline-flex;
  align-items: center; transition: all .15s ease; }
.nut-sheet-phu:hover, .nut-sheet-phu:active { background: var(--border); color: var(--text); }
.nut-sheet-danger { color: var(--danger); }
.nut-sheet-danger:hover, .nut-sheet-danger:active { background: var(--danger-bg); }

/* Thẻ việc gọn (owner 28/10): 4 dòng, không đường kẻ đứt, không nhãn "Nội dung:/Ngày gửi:/Tình trạng:" ở dạng thu gọn */
.the-viec { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-strong);
  border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  gap: 2px; transition: border-color .15s ease; flex: none; }
.the-viec.tt-moi { border-left-color: #b45309; }
.the-viec.tt-da-nhan { border-left-color: var(--brand); }
.the-viec.tt-dang-lam { border-left-color: var(--brand-deep); }
.the-viec.tt-xong { border-left-color: var(--success); }
.the-viec.tt-tu-choi { border-left-color: var(--danger); }

/* Dòng 1 */
.tv-dau { display: flex; align-items: center; gap: 6px; min-width: 0; }
.the-viec-id { font-size: 12.5px; font-weight: 800; color: var(--brand-deep); background: var(--brand-50);
  border: 1px solid var(--brand-100); padding: 1px 7px; border-radius: 6px; letter-spacing: .2px; flex: none; }
.tv-gio { margin-left: auto; min-width: 0; font-size: 11.5px; color: var(--text-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.chip-muc-do { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: #9a3412; background: #ffedd5;
  border: 1px solid #fed7aa; flex: none; white-space: nowrap; }
.chip-muc-do.rat-gap { color: #fff; background: #dc2626; border-color: #dc2626; }
.badge-trang-thai { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; flex: none; white-space: nowrap;
  border: 1px solid transparent; letter-spacing: .1px; }
.badge-trang-thai.tt-moi { color: #854d0e; background: #fef9c3; border-color: #fef08a; }
.badge-trang-thai.tt-da-nhan { color: #0369a1; background: #e0f2fe; border-color: #bae6fd; }
.badge-trang-thai.tt-dang-lam { color: #1e40af; background: #dbeafe; border-color: #bfdbfe; }
.badge-trang-thai.tt-xong { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }
.badge-trang-thai.tt-tu-choi { color: #b91c1c; background: #fee2e2; border-color: #fecaca; }

/* Dòng 2 */
.noi-dung-chu { margin: 0; font-size: 14px; font-weight: 550; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.noi-dung-chu.mo-het { -webkit-line-clamp: unset; display: block; }

/* Dòng 3 */
.tv-han-dong { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12.5px; color: var(--text-secondary);
  min-height: 20px; }
.tv-han-dong.tv-trong { display: none; }
.tv-han { font-weight: 650; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-han.qua { color: var(--danger); font-weight: 750; }
.tv-dem { display: inline-flex; align-items: center; gap: 3px; color: var(--text-muted); font-size: 12px; flex: none; white-space: nowrap; }
.tv-dem .icon-net { color: var(--text-muted); }
.nut-xem-them { margin-left: auto; background: none; border: 0; color: var(--brand); font: inherit; font-size: 12.5px;
  font-weight: 650; cursor: pointer; padding: 0 0 0 8px; min-height: 20px; white-space: nowrap; flex: none; }
.nut-xem-them:active { opacity: .6; }

/* Dòng 4: tiến độ một dòng + Bổ sung */
.tv-chan { display: flex; align-items: center; justify-content: space-between; gap: 6px 8px; flex-wrap: wrap; min-height: 26px; }
.tien-do-gon { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 12px; font-weight: 650; color: var(--brand-deep); }
.tdg-doan { display: inline-flex; gap: 3px; flex: none; }
.tdg-doan i { width: 16px; height: 4px; border-radius: 2px; background: var(--border); display: block; }
.tdg-doan i.da { background: var(--brand); }
.tdg-doan i.nay { background: var(--brand-deep); }
.the-viec.tt-xong .tdg-doan i.da { background: var(--success); }
.the-viec.tt-xong .tien-do-gon { color: var(--success); }
.tien-do-gon.dung { color: var(--text-muted); }
.icon-tu-choi { font-size: 9px; }
.khu-bo-sung { margin: 0 0 0 auto; min-width: 0; }
.khu-bo-sung.dang-mo { flex: 1 1 100%; margin: 0; }
.nut-bo-sung { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 6px; border: 0; border-radius: 14px;
  background: transparent; color: var(--brand-deep); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.nut-bo-sung .icon-net { color: var(--brand); }
.nut-bo-sung:active { background: var(--brand-50); }

/* Phần mở rộng ("Chi tiết") */
.tv-chi-tiet { display: none; flex-direction: column; gap: 8px; padding: 6px 0 4px; }
.the-viec.mo-rong .tv-chi-tiet { display: flex; }
.tv-ngay { font-size: 12px; color: var(--text-secondary); }
.chu-cap-nhat { font-size: 12px; color: var(--text-secondary); }

/* Thanh 4 bước đầy đủ (chỉ trong phần mở rộng) */
.thanh-tien-do { display: flex; align-items: center; width: 100%; padding: 2px 0; }
.buoc-td { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; min-width: 44px; }
.cham-td { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong);
  color: var(--text-muted); font-size: 11px; font-weight: 750; display: inline-flex; align-items: center;
  justify-content: center; transition: all .2s ease; }
.buoc-td.da-den .cham-td { background: var(--brand); border-color: var(--brand); color: #fff; }
.buoc-td.hien-tai .cham-td { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff;
  box-shadow: 0 0 0 3px rgba(11, 79, 168, .2); }
.the-viec.tt-xong .buoc-td.da-den .cham-td { background: var(--success); border-color: var(--success); }
.ten-td { font-size: 11px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.buoc-td.da-den .ten-td { color: var(--brand-deep); font-weight: 700; }
.the-viec.tt-xong .buoc-td.da-den .ten-td { color: var(--success); }
.vach-td { flex: 1; height: 3px; background: var(--border); margin: 0 4px; margin-bottom: 16px; border-radius: 2px; }
.vach-td.da-den { background: var(--brand); }
.the-viec.tt-xong .vach-td.da-den { background: var(--success); }

/* Câu trả lời của anh Cường (nổi bật) */
.hop-phan-hoi { margin: 2px 0; padding: 8px 10px; background: linear-gradient(135deg, #f0f7fe 0%, #e0effe 100%);
  border: 1.5px solid var(--brand); border-radius: var(--radius); box-shadow: 0 1px 4px rgba(11, 79, 168, .08);
  display: flex; flex-direction: column; gap: 3px; width: 100%; box-sizing: border-box; }
.phan-hoi-dau { display: flex; align-items: center; gap: 7px; }
.avatar-cuong-nho { width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
  color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.phan-hoi-dau strong { font-size: 13px; font-weight: 700; color: var(--brand-deep); }
.phan-hoi-chu { font-size: 14px; font-weight: 550; color: var(--text); line-height: 1.45; word-break: break-word; }

/* Trạng thái rỗng */
.sheet-trong { text-align: center; padding: 40px 16px; color: var(--text-muted); display: flex; flex-direction: column;
  align-items: center; gap: 8px; }
.icon-trong { font-size: 32px; opacity: .7; }
.sheet-trong p { margin: 0; font-size: 14.5px; font-weight: 550; }

@keyframes xuat-hien { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------------------------------------------- Hạn tự nhận (chip ở ô soạn) */
.chip-han { position: relative; }
.chip-han .chu-han { white-space: nowrap; }
.chip-han input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.han-tu-nhan { font-size: 11px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.chip-han.tu-dong { border-style: dashed; }

/* ---------------------------------------------------------------- Biểu tượng sống (orb): vòng nét đơn + lõi mềm, không gradient
   Trạng thái data-s: nghe (thở + nhún theo mức âm --muc), nghi (vòng nét đứt xoay chậm), noi (vòng lan ra ngoài), tam (mờ, đứng yên). */
.orb { --muc: 0; --kich: 200px; position: relative; display: inline-block; width: var(--kich); height: var(--kich); color: #fff;
  pointer-events: none; flex: none; }
.orb i { position: absolute; border-radius: 50%; display: block; }
.orb .orb-vong { border: 2px solid currentColor; opacity: .55; }
.orb .orb-vong.v1 { inset: 17%; }
.orb .orb-vong.v2 { inset: 5%; opacity: .38; }
.orb .orb-vong.v3 { inset: -8%; opacity: .22; }
.orb .orb-loi { inset: 30%; background: currentColor; opacity: .96; border-radius: 52% 48% 55% 45% / 48% 54% 46% 52%; }
.orb-lon { --kich: min(62vw, 260px); }
.orb-nho { --kich: 24px; color: currentColor; }
.orb-nho .orb-vong { border-width: 1.5px; }
.orb-nho .orb-vong.v3 { display: none; }

.orb[data-s="nghe"] .orb-loi { animation: orb-hinh 7s ease-in-out infinite; scale: calc(1 + var(--muc) * .45); transition: scale .09s linear; }
.orb[data-s="nghe"] .orb-vong { animation: orb-tho 3.6s ease-in-out infinite; scale: calc(1 + var(--muc) * .16); transition: scale .09s linear; }
.orb[data-s="nghe"] .orb-vong.v2 { animation-delay: -1.2s; scale: calc(1 + var(--muc) * .24); }
.orb[data-s="nghe"] .orb-vong.v3 { animation-delay: -2.4s; scale: calc(1 + var(--muc) * .32); }

.orb[data-s="nghi"] .orb-vong { border-style: dashed; animation: orb-xoay 5s linear infinite; }
.orb[data-s="nghi"] .orb-vong.v2 { animation-duration: 8s; animation-direction: reverse; }
.orb[data-s="nghi"] .orb-vong.v3 { animation-duration: 12s; }
.orb[data-s="nghi"] .orb-loi { animation: orb-hinh 3.2s ease-in-out infinite, orb-tho 1.8s ease-in-out infinite; opacity: .8; }

.orb[data-s="noi"] .orb-vong { opacity: 0; animation: orb-lan 2.4s ease-out infinite; }
.orb[data-s="noi"] .orb-vong.v1 { inset: 28%; }
.orb[data-s="noi"] .orb-vong.v2 { inset: 28%; animation-delay: .8s; }
.orb[data-s="noi"] .orb-vong.v3 { inset: 28%; animation-delay: 1.6s; }
.orb[data-s="noi"] .orb-loi { animation: orb-hinh 5s ease-in-out infinite, orb-tho 1.5s ease-in-out infinite; }

.orb[data-s="tam"] .orb-vong, .orb[data-s="tam"] .orb-loi { opacity: .25; animation: none; }

@keyframes orb-tho { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes orb-hinh { 0%, 100% { border-radius: 52% 48% 55% 45% / 48% 54% 46% 52%; } 33% { border-radius: 46% 54% 44% 56% / 55% 45% 55% 45%; }
  66% { border-radius: 55% 45% 50% 50% / 44% 56% 48% 52%; } }
@keyframes orb-xoay { to { transform: rotate(360deg); } }
@keyframes orb-lan { 0% { transform: scale(.55); opacity: .75; } 100% { transform: scale(1.75); opacity: 0; } }

/* Nút nói ở ô soạn: đang ghi âm thì biểu tượng sóng tĩnh đổi thành orb nhỏ đang sống */
.nut-pill-chinh .orb-nho { display: none; }
.nut-pill-chinh.dang-nghe .orb-nho { display: inline-block; }
.nut-pill-chinh.dang-nghe .icon-mic { display: none; }

/* ---------------------------------------------------------------- Màn trò chuyện bằng giọng nói */
.man-giong { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--brand-deep); color: #fff;
  padding: max(18px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom)); }
.man-giong[hidden] { display: none; }
.giong-tren { display: flex; justify-content: center; min-height: 28px; }
.giong-nhan { font-size: 13px; font-weight: 600; letter-spacing: .3px; opacity: .8; }
.giong-giua { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; overflow: hidden; }
.giong-orb { background: none; border: 0; padding: 18px; margin: 0; cursor: pointer; border-radius: 50%; color: #fff; display: block;
  -webkit-tap-highlight-color: transparent; }
.giong-orb:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.giong-trang-thai { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: .1px; }
.giong-phu-de { margin: 0; font-size: 17px; line-height: 1.45; max-width: 520px; max-height: 8.7em; overflow-y: auto; opacity: .92;
  word-break: break-word; min-height: 1.45em; width: 100%; }
.giong-han { margin: 0; font-size: 13.5px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px; padding: 4px 12px; }
.giong-dem-nguoc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 16px; font-weight: 650;
  border: 1.5px solid #fff; border-radius: 22px; padding: 8px 8px 8px 16px; }
.giong-loi { margin: 0; font-size: 14px; max-width: 420px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 12px; }
.giong-duoi { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.giong-hang-nut { display: flex; align-items: center; justify-content: center; gap: 28px; }
.giong-nut { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); background: transparent; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.giong-nut:active { transform: scale(.94); background: rgba(255, 255, 255, .16); }
.giong-nut[aria-pressed="true"] { background: #fff; color: var(--brand-deep); }
.giong-nut:focus-visible, .giong-nut-chu:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.giong-nut-chu { min-height: 40px; padding: 6px 16px; border-radius: 20px; border: 1.5px solid #fff; background: transparent; color: #fff;
  font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer; }
.giong-nut-chu:active { background: rgba(255, 255, 255, .18); }
.giong-gui-viec { min-height: 46px; padding: 8px 22px; background: #fff; color: var(--brand-deep); }
.giong-gui-viec:active { background: #e6efff; }
.giong-dem-nguoc .giong-nut-chu { min-height: 34px; padding: 3px 12px; }

@media (prefers-reduced-motion: reduce) {
  .orb *, .orb { animation: none !important; transition: none !important; }
  .orb { scale: 1 !important; }
  .orb .orb-loi, .orb .orb-vong { scale: 1 !important; }
  .orb[data-s="nghi"] .orb-vong { border-style: dashed; }
  .orb[data-s="noi"] .orb-vong { opacity: .5; }
  .orb[data-s="noi"] .orb-vong.v2 { opacity: .35; inset: 12%; }
  .orb[data-s="noi"] .orb-vong.v3 { opacity: .22; inset: -4%; }
  .orb[data-s="noi"] .orb-vong.v1 { inset: 22%; }
  .man-giong { transition: none; }
}

/* Hỗ trợ prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .bottom-sheet, .man-mo, .nut-pill-chinh, .the-viec, .thanh-pill-nhap {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Hỏi lại khi tên đăng nhập chưa có tài khoản (không tự tạo) */
.khu-ten-moi { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1.5px solid var(--brand); border-radius: var(--radius);
  background: var(--brand-50); }
.khu-ten-moi[hidden] { display: none; }
.chu-ten-moi { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.45; word-break: break-word; }
.hang-nut-ten-moi { display: flex; gap: 8px; flex-wrap: wrap; }
.hang-nut-ten-moi button { flex: 1 1 140px; min-height: 44px; }
