/* Bản 14 · agent chu-zoom · chỉ sửa trong file này
   Mục tiêu: chữ to (Android/Zalo textZoom 85–200%, iOS Cỡ chữ trang 50–300%)
   và phóng to (Ctrl +/− 50–200%) không làm chữ tràn, chồng, bị cắt.
   Nguyên tắc: không đổi nội dung chữ, không đổi màu, giữ hiệu ứng.
   ============================================================== */

/* ---------- 0 · Nền chung: chữ dài tự xuống dòng, không đẩy khung ---------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-wrap:break-word}
/* Lưới/hàng ngang: cho ô co lại thay vì đẩy tràn ngang */
.rp8-g>*,.bm13>*,.two13>*,.kieu13>*,.cal10>*,.pd10-k>*,.pd10-r>div>*,.gd8-grid>*,.tr8-f>*,.st11>*,.dr10-t,.col10,.h10g>*{min-width:0}
.rp8-s,.bm13>div,.pd10-k>div,.pd10-r button,.dn8,.day10{overflow-wrap:break-word}
/* Lưới 2 cột trên điện thoại tính theo cỡ chữ (em): chữ to thì tự về 1 cột thay vì bẻ vụn từng chữ.
   Ở cỡ chữ chuẩn vẫn đủ 2 cột như thiết kế. */
@media (max-width:759px){
  .bm13{grid-template-columns:repeat(auto-fit,minmax(min(100%,9em),1fr))!important}
  .dr11{grid-template-columns:repeat(auto-fit,minmax(min(100%,9.5em),1fr))!important}
  .gd8-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,8em),1fr))!important}
  .docs6{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5em),1fr))!important}
}

/* ---------- 1 · Chữ nhỏ dưới 12px → nâng sàn (người 35–55 tuổi) ----------
   Nhãn VIẾT HOA giãn chữ giữ dáng nhỏ nhưng không dưới 11px;
   chữ thường (đọc nội dung) không dưới 12px. */
/* chỉ 2 nhãn trang trí nằm trong ô hẹp giữ 11px: chữ BUỔI trên số buổi, dòng chữ trên thẻ kim loại */
.dr10-n small,.card10 .r1 em,.memo10-h,.memo10-h span{font-size:11px!important}
/* dòng VĂN PHÒNG GIÁM ĐỐC · ĐANG TRỰC: giữ từng cụm liền, hết chỗ thì cả cụm xuống hàng */
.memo10-h{flex-wrap:wrap;gap:4px 10px}
.memo10-h>span{white-space:nowrap}
.top10>span,.xp10-in small,.i10-tel,.i10-tel span,.gt10-h span,
.card10 .no,.dr10-t em,.day10>span,.day10 small,.bm13 small,.hi10 small,.sec10,
.hr11>small,.pd10>small,.pd10-r>small,.viz10>small,.sb13,
.two13 small,.two13 small.g,.two13 small.y,.kieu13 small,.mx10 span,.mx10 span.xl,.mx10 span.yl,
.gt10-r b,.st11 span i,.pl11 span,.hc11 small,.mo5,.nt .ini,.tr7-brief small{font-size:12px!important}
/* Bản đồ định vị (SVG, đơn vị viewBox 300 ≈ 1,07px trên điện thoại): nhãn trục 9 → 10,5 (nhãn xoay sát mép trái, to hơn sẽ bị cắt), nhãn điểm → 11–12 */
.viz10 .lb{font-size:10.5px!important}.viz10 .dt text{font-size:11px!important}.viz10 .me text{font-size:12px!important}

/* ---------- 2 · Thanh đầu trang chủ (ABM | PHÒNG ĐIỀU HÀNH… | Mã buổi học) ---------- */
.top10{flex-wrap:wrap;row-gap:4px}
.top10>span{white-space:normal!important;text-overflow:clip!important;overflow:visible!important;flex:1 1 7em;min-width:0;max-width:none!important}
.top10>button{flex:none;white-space:nowrap}

/* ---------- 3 · Thanh đầu trong từng phòng (‹  biểu tượng  Tên phòng  ⌂) ---------- */
.ah{min-height:62px;height:auto!important}
.ah b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.2;min-width:0;overflow-wrap:break-word;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.ah .bk,.ah .hm8{flex:none;width:auto!important;height:auto!important;min-width:40px;min-height:40px;line-height:1}

/* ---------- 4 · Thanh tiến độ form (Phòng điều hành đang lập… | câu 1/6) ---------- */
.formbar .row b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;min-width:0;line-height:1.25}
.formbar .row span{flex:none}

/* ---------- 5 · Màn mở đầu: dòng PHÒNG ĐIỀU HÀNH A.I K07 · DÀNH RIÊNG… ---------- */
.i10-tel{flex-wrap:wrap;justify-content:center;row-gap:6px;text-align:center}
.i10-tel span{white-space:normal!important}

/* ---------- 6 · Trợ lý A.I: tên người + "✓ xong / Zalo · 20 phút trước" ---------- */
.nt .nh{flex-wrap:wrap;row-gap:2px}
.nt .nh>b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;flex:1 1 9em;line-height:1.3}
.nt .nh small{white-space:normal!important;flex:0 1 auto;min-width:0}

/* ---------- 7 · Dây chuyền A.I: bước 1-2-3 và chuỗi 5 khâu ---------- */
.st11{flex-wrap:wrap}
.st11 span{flex:1 1 6.5em!important;min-width:0}
.pl11 span{flex:1 1 0!important;width:auto!important;min-width:0}
.pl11 em{flex:0 1 14px!important;min-width:4px}

/* ---------- 8 · Đội Nhân sự Số: hàng chân dung +13 ---------- */
.hr11-face{flex-wrap:wrap;row-gap:6px}

/* Ô kết quả Cố vấn: không ép ô tối thiểu 150px rộng hơn màn */
.dt13{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))!important}

/* ---------- 9 · Thành quả: 3 chỉ số + nút chọn ---------- */
.pd10-k{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.pd10-r>div{grid-template-columns:repeat(auto-fit,minmax(min(100%,7.5em),1fr))!important}

/* ---------- 10 · Thanh dưới trang chủ (Lịch học | Phần thưởng) ---------- */
.dk7{min-width:0}
.dk7 .lb{white-space:normal!important;text-align:left;line-height:1.15}

/* ---------- 11 · Nút tròn biểu tượng: chữ to thì nút to theo, vẫn tròn ---------- */
.foot-nav .back,#sheet .x{width:auto!important;height:auto!important;min-width:58px;min-height:58px;aspect-ratio:1;line-height:1}
#sheet .x{min-width:44px;min-height:44px}

/* ---------- 11b · Trợ lý: 5 nút lọc tự xuống hàng khi chữ to, không bẻ đôi chữ "Khách" ---------- */
.tr8-f{grid-template-columns:repeat(auto-fit,minmax(min(100%,2.75em),1fr))!important}
.tr8-c span{overflow-wrap:normal;word-break:keep-all}
.tr7-brief{flex-wrap:wrap}
.tr7-brief>div:last-child{flex:1 1 9em;min-width:0}

/* ---------- 11c · Đội: 2 thẻ Đội ngũ / Sơ đồ bộ máy, chừa chỗ cho mũi tên › ---------- */
.dr11 button{padding-right:34px!important;min-height:96px;height:auto}

/* ---------- 11d · Thành quả: dấu ✓ không văng ra ngoài thẻ ---------- */
.td1>span:nth-child(2){min-width:0}
.td1 em,.td1>span:first-child{flex:none}

/* ---------- 11e · Bong bóng Thư ký: chữ to thì nút đáy cao lên, bong bóng nâng theo (98px ở cỡ chuẩn) ---------- */
.g10-fab{bottom:calc(34px + 4rem + env(safe-area-inset-bottom))!important}

/* ---------- 12 · Màn hẹp (phóng to 150–200% trên điện thoại, iOS Cỡ chữ trang) ---------- */
@media (max-width:340px){
  .memo10-h>span{white-space:normal}
  .rp8-g{grid-template-columns:minmax(0,1fr)!important}
  .ah{flex-wrap:wrap;row-gap:6px;padding:8px 10px!important}
  .tr8-f{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .g10-fab{width:40px!important;height:40px!important;right:8px!important}
  /* nút nổi đáy (Kích hoạt Vận hành tự động) gọn lại để không che gần nửa màn */
  .fab{padding:14px 10px calc(8px + env(safe-area-inset-bottom))!important}
  .fab .btn,.fab .u11{font-size:14.5px!important;min-height:48px!important;padding:10px 12px!important;text-wrap:balance}
  .fab .u11-k{width:24px;height:24px;margin-right:6px}
}
@media (max-width:300px){
  /* Tên phòng xuống hàng riêng dưới các nút, không bị cắt còn "C.." */
  .ah b{order:9;flex:1 0 100%!important;-webkit-line-clamp:3}
  .top10>span{flex-basis:100%;order:9;padding-left:0;border-left:0}
  .cal10,.pd10-k{grid-template-columns:minmax(0,1fr)!important}
  .dock7{gap:2px!important;padding-left:6px!important;padding-right:6px!important}
  .dk7{padding-right:8px!important;gap:6px!important}
  .dk7 .ico{width:30px!important;height:30px!important}
}
@media (max-width:220px){
  /* iOS Cỡ chữ trang 300% / phóng 250–300%: màn chỉ còn ~130px, gom về 1 cột */
  .cv7-bm,.hr11-k,.six6,.ad13,.two13,.tr7-bt,.pd10-r>div,.dr11,.gd8-grid,.bm13,.docs6{grid-template-columns:minmax(0,1fr)!important}
  .cv7-sum,.bb8-rec,.memo10-b,.memo10-h,.rung,.kieu13,.tr7-brief{flex-wrap:wrap}
  .cv7-sum>*,.bb8-rec>*,.memo10-b>*,.rung>div,.memo10-h>*{min-width:0}
  .chips .opt{max-width:100%;white-space:normal;padding-left:12px!important;padding-right:12px!important}
  .opt{padding-left:12px!important;padding-right:12px!important;gap:8px!important}
  .foot-nav>div>*{min-width:0}
  .foot-nav{padding-left:12px!important;padding-right:12px!important}
  .foot-nav .btn{padding-left:12px!important;padding-right:12px!important}
  .pl11{flex-wrap:wrap;justify-content:center;row-gap:8px}
  .pl11 span{flex:0 0 46%!important}
  .pl11 em{display:none}
  .prog6{float:none;display:inline-block;margin-bottom:6px}
  .fab .btn,.fab .u11{font-size:13.5px!important}
  .nsp1 button,.nsp1 button>*{min-width:0}
  /* thanh dưới: biểu tượng trên, chữ dưới, hai nút không đè nhau */
  .dk7{flex-direction:column!important;align-items:center!important;padding:6px 4px!important;gap:3px!important;flex:1 1 0!important}
  .dk7 .lb{text-align:center;font-size:13px!important}
  /* bong bóng Thư ký xuống sát đáy, nhỏ lại, đỡ che tiêu đề giữa màn */
  .g10-fab{width:34px!important;height:34px!important;right:6px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important}
  .lv11{flex-wrap:wrap}
  .cv7-src{max-width:100%;white-space:normal!important}
  .fw7-ly{grid-template-columns:minmax(0,1fr)!important}
  .fw7-c{padding-right:12px!important}
  .opts>.opt,.opt>*{min-width:0}
  .opt .k,.opt .ck{flex:none}
  /* nút nổi đáy về cuối danh sách để không che 60% màn; vẫn bấm được khi cuộn tới */
  .fab{position:static!important;padding:12px 0!important;background:none!important}
  .appv .ab:has(.fab){padding-bottom:40px!important}
}
