/* ui2-mobile.css — LUẬT CHUNG cho giao diện ĐIỆN THOẠI của mepo5.com (App UI, khu quản trị khách, Super Admin, trang công khai).
 * Nạp SAU cùng (sau ui2.css / ui2-flat.css / ui2-proj.css / app.css) nên chỉ chỉnh KÍCH THƯỚC + BỐ CỤC, không đụng MÀU (màu = token của ui2-flat.css).
 * Chỉ có hiệu lực khi màn hẹp → giao diện máy tính không đổi. Kiểm bằng tests/e2e/mobile_audit.mjs + mobile_states.mjs.
 * Các luật: ô nhập ≥16px (iOS không tự phóng) · vùng chạm ≥44px · chữ ≥12px · lưới inline thu về 2/1 cột · thẻ/nhãn không bị bóp thành cột chữ ·
 *            ngăn kéo (menu ☰) che thanh dưới + nút chat · nút chat hỗ trợ tự lùi khi cuộn/nhập · vùng an toàn (tai thỏ / thanh home). */

/* ── Vùng an toàn khi xoay ngang (cần meta viewport-fit=cover) ── */
@media (orientation:landscape) and (max-width:1024px){
  body{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
}

/* ── Chat hỗ trợ trong App/khu dự án: thanh tiêu đề nền đậm thì nút + ẩn × phải cùng màu chữ (trước đó đen trên đen → không đóng được chat) ── */
body.u2p .m5c-hb,body.u2-app .m5c-hb,body.u2p .m5c-head .m5c-hb svg,body.u2-app .m5c-head .m5c-hb svg{color:inherit}

@media (max-width:720px){
  /* 1. Ô nhập ≥16px: dưới mức này iOS tự phóng to trang khi chạm vào ô → trang bị lệch, phải chụm lại. */
  body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=file]),
  body select,body textarea{font-size:16px!important}
  body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=file]):not([type=submit]):not([type=button]),
  body select{min-height:44px}

  /* 2. Vùng chạm ≥44px (khuyến nghị Apple 44pt / Material 48dp; ≥40 là mức tối thiểu của cổng C). !important vì phải thắng `.u2p .btn-sm{min-height:36px}` v.v. */
  body .btn,body .btn-sm,body button.btn,body a.btn,body summary.btn,body .u2p .btn-sm,body .u2-app .btn-sm{min-height:44px!important;min-width:44px}
  body .rd-item,body .u2p .rd-item,body .sa-nv{min-height:44px!important;display:flex;align-items:center}
  body .rd-top-logo,body .rd-av,body .sa-tb,body .sa-logo-m,body a.m5-word,body .rd-burger,body .m-burger,body .nav-l > a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
  body a.m5-word,body .sa-logo-m,body .nav-l > a{justify-content:flex-start}
  body .chip,body .mp-chip,body .rd-tab{min-height:40px}
  body .hc-rail-link,body .rd-seg-b{min-height:44px}
  body table td > a[href]:not(.btn):not([class*=btn]){display:inline-block;padding:13px 0;line-height:1.3}
  body .rd-inner > a.muted:first-child,body .rd-inner a.muted[href^="/projects"],body .container > a.muted:first-child{display:inline-flex;align-items:center;min-height:44px}
  body summary{min-height:44px;display:flex;align-items:center}
  body .u2-foot a,body footer a,body .hc-foot a,body .hc-legal a,body .lang-hint a,body .container > p > a[href^="/"]:not([class]){display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
  body input[type=checkbox],body input[type=radio]{width:20px;height:20px}
  /* nút × ẩn chat (.m5c-x) giữ nguyên cỡ gốc: vùng chạm lớn hơn sẽ lấn vào tâm bong bóng chat và chặn việc mở chat. */

  /* 3. Chữ ≥12px (đọc được ngoài nắng; WCAG khuyến nghị không nhỏ hơn). */
  body .tag,body .tag-muted,body .u2-app .tag,body .u2p .tag,body small,body .muted small,body .rd-proj-k,body .u2p .rd-proj-k,body th,body span.in,body .m5-nav .badge,body .sa-src,body .hc-legal,body .hc-legal a,body .u2-foot a,body .tc-name,body .tcard small span{font-size:12px!important}
  body [style*="font-size:10px"],body [style*="font-size:10.5px"],body [style*="font-size:11px"],body [style*="font-size:11.5px"]{font-size:12px!important}
  body .ws-chips-label,body .rd-proj-k{font-size:12px!important}

  /* 4. Nhãn/tag không bao giờ bị bóp thành cột chữ ("Chủ sở hữu" thành 3 dòng trong vòng tròn). */
  body .tag,body .tag-muted{white-space:nowrap;flex:none;max-width:100%;overflow:hidden;text-overflow:ellipsis}

  /* 5. Lưới viết thẳng trong style="…" (nhiều cột) → 2 cột, lưới nhiều cột lệch → 1 cột. */
  body [style*="grid-template-columns:repeat(4,1fr)"],body [style*="grid-template-columns:repeat(3,1fr)"],
  body [style*="grid-template-columns:1fr 1fr 1fr 1fr"],body [style*="grid-template-columns:1fr 1fr 1fr"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body [style*="grid-template-columns:1fr 1.6fr"],body [style*="grid-template-columns:1.1fr .6fr"],body [style*="grid-template-columns:2fr 1fr"],
  body [style*="grid-template-columns:1.3fr 1fr"],body [style*="grid-template-columns:1fr 1.4fr"],body [style*="grid-template-columns:260px"]{grid-template-columns:minmax(0,1fr)!important}
  body [style*="display:grid"] > *,body [style*="display:flex"] > *{min-width:0}

  /* 6. Tệp chọn: nút gốc "Choose File / No file chosen" (tiếng Anh, 21px) → nút cùng cỡ các nút khác. */
  body input[type=file]{font-size:14px!important;max-width:100%;min-height:44px;padding:6px 0}
  body input[type=file]::file-selector-button{min-height:44px;padding:0 16px;margin-right:12px;border:1px solid var(--border,#d9d9d9);border-radius:10px;background:var(--panel,#fff);color:var(--text,inherit);font:inherit;font-weight:600;cursor:pointer}

  /* 7. Ngăn kéo (☰) đang mở: che thanh dưới + nút chat (tránh mục cuối bị thanh dưới nuốt), nội dung ngăn kéo chừa chỗ đáy. */
  html:has(.rd-side.open) .m5-nav,html:has(.sa-open) .m5-nav,html:has(.m-sheet:not([hidden])) .m5-nav{display:none}
  html:has(.rd-side.open) .m5c-fab,html:has(.sa-open) .m5c-fab,html:has(.m-sheet:not([hidden])) .m5c-fab{opacity:0;pointer-events:none}
  body .rd-side,body .sa-side{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
  body .m-sheet-in{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));max-height:92vh;overflow-y:auto}

  /* 8. Nút chat hỗ trợ lùi ra khi người dùng cuộn xuống / đang nhập (ui2-mobile.js bật lớp m5-away) — khỏi che nút "Lưu", ô nhập, dòng cuối. */
  .m5c-fab{transition:opacity .2s ease,visibility .2s ease}
  html.m5-away .m5c:not(.is-open) .m5c-fab{opacity:0;visibility:hidden;pointer-events:none}

  /* 8b. Ô soạn ở trang chủ App (đã đăng nhập): hàng "Chỉ giao diện / Có quản trị / Cả hai" chiếm trọn hàng, "Dán link" + nút gửi nằm hàng dưới (trước đó rớt lộn xộn). */
  body[data-auth] .lp .row{flex-wrap:wrap;row-gap:10px}
  body[data-auth] .lp .kinds{flex:1 1 100%;width:100%}
  body[data-auth] .lp .go{margin-inline-start:auto}

  /* 8c. Hàng thẻ "Website của tôi / Xem gần đây / Kho mẫu / Xem tất cả" ở trang chủ App: một hàng cuộn ngang thay vì rớt chữ xuống dòng 2. */
  body .tabs2{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-inline:-4px;padding-inline:4px}
  body .tabs2::-webkit-scrollbar{display:none}
  body .tabs2 button,body .tabs2 .all{flex:none;white-space:nowrap}

  /* 8d. Nút chat NEO GÓC DƯỚI PHẢI (16px + vùng an toàn; trên thanh dưới nếu có). chat-widget.js (placeFab) tự "né lên" bằng style.bottom inline
     trên trang không cuộn → nút trôi lơ lửng giữa trang chủ (giữa chip gợi ý và "Mẫu website cho bạn"). !important để thắng style inline đó. */
  body:not(.m5-has-nav) .m5c-fab{bottom:calc(16px + env(safe-area-inset-bottom,0px))!important;right:max(12px,env(safe-area-inset-right,0px))!important}
  body.m5-has-nav .m5c-fab{bottom:calc(var(--m5-nav-h,60px) + 12px + env(safe-area-inset-bottom,0px))!important;right:max(12px,env(safe-area-inset-right,0px))!important}

  /* 8e. Chân trang trang chủ: © một hàng, 6 liên kết lưới 3 cột thẳng cột, căn giữa; chừa lề hai bên = chỗ nút chat để nút không đè chữ.
     (Trước đó flex-wrap căn giữa từng dòng → dòng 1 lệch phải, dòng 2 lệch trái.) */
  body .hc-legal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-content:stretch;justify-items:center;align-items:start;gap:0;
    padding:4px calc(var(--fab,52px) + 16px) calc(6px + env(safe-area-inset-bottom,0px))}
  body .hc-legal > span{grid-column:1/-1;padding:6px 0 2px}
  body .hc-legal a{padding:0 6px;min-height:36px;text-align:center;justify-content:center}
  /* 8e2. Khối pháp lý Việt Nam dưới chân trang chủ (_vn_owner.php: đơn vị phát triển, MST, đại diện, email, điện thoại): nút chat góc dưới phải từng đè
     "Điện thoại"/"Trần Văn Phú" (rà soát 13/11, máy ảo Android 14 + 390px). Chừa lề hai bên = chỗ nút chat cho phần chữ công ty (danh sách chính sách giữ
     nguyên bề rộng) + chừa đáy để cuộn hết trang thì nút nằm dưới chữ cuối. */
  body.hc-page .hc~.vn-owner-c{padding-bottom:calc(var(--fab,52px) + 28px + env(safe-area-inset-bottom,0px))}
  body.hc-page .vn-owner-c .vn-owner-dev{padding-inline:calc(var(--fab,52px) + 12px)}
  /* Trang chủ (chưa mở chat) cao cố định = màn hình: thiếu chỗ (màn 740px, có dải "Switch to English?") thì hàng chip gợi ý bị ép còn 8px, chip mất.
     Cho khối này cao theo nội dung (tối thiểu = màn hình) và không ép con nào → thiếu chỗ thì trang cuộn. */
  body.hc-page .hc:not(.on){height:auto!important;min-height:calc(100dvh - var(--hc-top,68px))}
  body.hc-page .hc:not(.on) .hc-main > *{flex-shrink:0}

  /* 9. Mọi khối chứa chữ dài (Thái/Hindi/Indonesia/Philippines) được phép xuống dòng, không đẩy tràn ngang. */
  body .rd-inner,body .card{min-width:0;overflow-wrap:anywhere}
  /* …trừ BẢNG NẰM TRONG KHUNG CUỘN NGANG: nếu cho bẻ chữ bất kỳ đâu, bảng co hết cột ("DH-9F3 / 097", "11,9 / 8 US / $") thay vì cuộn.
     Bảng không có khung cuộn (vd. thành viên workspace) vẫn được bẻ email dài để không tràn khỏi thẻ. */
  body [style*="overflow-x:auto"] table,body [style*="overflow-x:auto"] table *,body .sa-tbl table,body .sa-tbl table *{overflow-wrap:normal;word-break:normal}
}

@media (max-width:380px){
  /* 360px: 3 cột chân trang không đủ chỗ cho nhãn Thái/Hindi giữa 2 lề chừa nút chat → 2 cột. */
  body .hc-legal{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:420px){
  /* Màn rất hẹp (360px): tiêu đề + nút phụ không chen một hàng. */
  body .rd-sec-head{flex-wrap:wrap;gap:8px}
  body .rd-inner h1,body .u2p .rd-inner h1{font-size:24px;line-height:1.2}
}

/* ===== Điện thoại Android (MB-23…): dải gợi ý ngôn ngữ, ô nhập trang chủ, chip gợi ý, hàng thẻ mẫu, vùng chạm ===== */
/* MB-23 Dải "Chuyển sang …?": gọn, một hàng, màu theo token (trước: nền xám thô nhúng inline, chữ ngôn ngữ khác trang). */
.lang-hint{gap:6px;align-items:center;justify-content:center;padding:4px 8px 4px 16px;font-size:13.5px;line-height:1.3;color:var(--ink-2,inherit);background:var(--card,transparent);border-bottom:1px solid var(--line,rgba(127,127,127,.2))}
.lang-hint a{color:inherit;font-weight:500;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-2,rgba(127,127,127,.5));min-width:0;text-align:center}
.lang-hint .ibtn{flex:none;width:44px;height:44px;border:0;background:transparent;color:inherit;font-size:22px;line-height:1;font-weight:300}   /* MB-47 dấu × đủ to để thấy (trước: chấm 8px) */
@media (max-width:720px){
  /* MB-24 Nút biểu tượng đủ 44px (đổi sáng/tối, ☰, × của dải gợi ý). */
  body .ibtn{min-width:44px;min-height:44px}
  /* MB-25 Ô nhập trang chủ: chữ gợi ý dài (vi/th/hi) xuống 2 dòng, không bị cắt dòng 2 — ô cao tối thiểu 2 dòng + đệm. */
  body.hc-page .hc:not(.on) .hc-box textarea{min-height:66px}
  body.hc-page .hc:not(.on) .hc-box{align-items:center}
  /* MB-26 Chip gợi ý: xuống dòng căn giữa, không bị cắt mép phải; cao 44px. */
  body .hc-sugg{flex-wrap:wrap;justify-content:center;overflow:visible;margin-inline:0;padding:2px 0 6px}
  body .hc-sugg button{min-height:44px;max-width:100%}
  body .hc-sugg button:nth-child(n+5){display:none}   /* 4 chip = 2 hàng, hàng thẻ mẫu vẫn lên được màn đầu */
  /* MB-27 Hàng thẻ mẫu cuộn ngang/tự chạy: mép trái/phải mờ dần thay vì cắt cứng giữa chữ tiêu đề. */
  body .hc-track{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%)}
  body .hc.on .hc-track{-webkit-mask-image:none;mask-image:none}
}
@media (max-width:720px){
  /* MB-28 Ô tìm/mật khẩu có chữ gợi ý dài (fil/id/hi): cỡ chữ gợi ý nhỏ hơn + dấu … thay vì cắt cụt; ô nhập vẫn 16px (không bị phóng khi chạm). */
  body input::placeholder,body textarea::placeholder{font-size:.9em}
  body input{text-overflow:ellipsis}
  /* MB-29 Nút chat nổi không đè liên kết cuối trang (Điều khoản…, nằm sát đáy ở trang đăng nhập/đăng ký ngắn): chừa đáy cho nút. */
  body footer.foot .copy{padding-bottom:calc(var(--fab,52px) + 24px + env(safe-area-inset-bottom,0px))}
  body main#main{padding-bottom:calc(var(--fab,52px) + 28px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:720px){
  /* MB-30 App: chip/nút gợi ý (Dán link, chip ngành), ô chọn (ngôn ngữ, quốc gia, gói) cao ≥44px. */
  body .chip,body main select,body main .langsel,body main .fld,body main .new-sugg button,body main .row > button:not(.sm-btn):not(.ibtn){min-height:44px}
}
@media (max-width:720px){
  body select{min-height:44px!important}
  body main button:not(.sm-btn):not(.ibtn):not(.m5c-x):not([aria-label]):not([class*=ico]){min-height:44px}
}
@media (max-width:720px){
  /* MB-41 Chat hỗ trợ: chấm "hiện lại nút chat" 34px → 44px; địa chỉ support@ trong khung chat là hàng chạm ≥44px (trước 16–36px). */
  body .m5c .m5c-mini,body .m5c.is-hidden .m5c-fab,body .m5c.is-crowded .m5c-fab{width:44px;height:44px}
  body .m5c-panel a[href^="mailto:"],body .m5c-panel a[href^="https://zalo.me"]{display:inline-flex;align-items:center;min-height:44px}
}
@media (max-width:720px){
  /* MB-42 Tiêu đề dài không để mồ côi một từ ở dòng cuối ("Bạn muốn làm website / gì?"): cân dòng; đoạn văn tránh dòng cuối 1 từ. */
  body h1,body h2,body h3{text-wrap:balance}
  body main p,body .hc-sub{text-wrap:pretty}
}
@media (max-width:720px){
  /* MB-31 Cài đặt/Tài khoản: nút "Đăng xuất" không nổi phải làm tiêu đề bị ép xuống 2 dòng ("Cài / đặt tài khoản") — nằm hàng riêng, căn phải, tiêu đề đủ rộng. */
  body form[action="/logout"][style*="float:right"]{float:none!important;display:flex;justify-content:flex-end;margin:0 0 8px!important}
}
@media (max-width:900px){
  /* MB-32 Chat tạo web: log tự cuộn xuống đáy → tin nhắn đầu của khách bị cắt cứng ngay dưới hàng "+ Chat mới" (trông như bị nút che). Mép trên mờ dần 20px = dấu hiệu "cuộn được", không còn cạnh cắt thô. */
  body.hc-page .hc.on .hc-log{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 22px);mask-image:linear-gradient(180deg,transparent 0,#000 22px)}
}
@media (max-width:720px){
  /* MB-33 Khu dự án: nút chuyển (rd-seg-b) rộng ≥44px; chip lọc plugin (mp-chip) cao ≥44px. */
  body .rd-seg-b{min-width:44px;min-height:44px}
  body .mp-chip{min-height:44px}
}
/* ===== MB-34 Cỡ logo/chữ gần ChatGPT (điện thoại): đầu trang gọn, logo 24px, nút giao diện tối vào menu, tiêu đề 28px, ô nhập sát đáy ===== */
.m-theme{display:none}
@media (max-width:720px){
  body .nav{height:52px}
  body .nav .logo{height:24px}
  body .nav-r > .ibtn[data-theme-toggle]{display:none}
  body .m-sheet .m-theme{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 4px;border:0;background:transparent;color:inherit;font:inherit;font-size:16px;text-align:start;cursor:pointer}
  body .nav-r .btn-p{min-height:40px;padding:0 14px;font-size:14px;font-weight:600}
  body.hc-page{--hc-top:52px}
  body.hc-page .nav .btn-p{background:var(--k-btn)!important;border-color:var(--k-btn)!important;color:var(--k-btn-ink)!important}
  body .hc-stage h1{font-size:26px;font-weight:500;line-height:1.25;margin:10px 0 8px}
  body .hc-sub,body .lv-hero .sub{font-size:15px}
  body .lv-hero h1,body .u2-site .lv-hero h1{font-size:26px;font-weight:500;line-height:1.25;letter-spacing:-.015em}
  /* ô nhập về cuối màn hình như ChatGPT: tiêu đề ở trên, chip + hàng mẫu + ô nhập + chân trang dồn xuống đáy */
  body.hc-page .hc:not(.on) .hc-sugg,body.hc-page .hc:not(.on) .hc-err,body.hc-page .hc:not(.on) .hc-rail{order:4}
  body.hc-page .hc:not(.on) .hc-sugg{margin-top:auto}
  body.hc-page .hc:not(.on) .hc-box{order:5;margin-top:10px}
  body.hc-page .hc:not(.on) .hc-legal{order:6}
}
@media (max-width:720px){
  /* MB-35 Ô nhập trang chủ chứa được 3 dòng chữ gợi ý (fil/hi dài); nút đính kèm ảnh 44px. */
  body.hc-page .hc:not(.on) .hc-box textarea{min-height:78px}
  body .m5a-btn{min-width:44px;min-height:44px}
}
@media (max-width:720px){
  html[lang^="fil"] body.hc-page .hc:not(.on) .hc-box textarea{min-height:92px}
  body .m5c-mini{min-width:44px;min-height:44px}
}
@media (max-width:720px){
  /* MB-36 Ô nhập nhiều dòng có chữ gợi ý dài (en/id/fil/th/hi): đủ cao cho cả gợi ý, không cắt. */
  body #ws-ask{min-height:140px!important}
  body textarea.input{min-height:112px!important}
}
@media (max-width:720px){
  /* MB-37 Ô tìm ở Kho mẫu cao ≥44px. */
  body input[type=search]{min-height:44px}
}
/* MB-38 Trang chủ điện thoại tối giản kiểu ChatGPT: bỏ dòng phụ + dải mẫu, tiêu đề 24px, ô chat + chip ngay dưới tiêu đề, chân trang 1 hàng nhỏ */
.m-legal{display:none}
@media (max-width:720px){
  body .nav .logo{height:22px}
  body .nav .nav-r .btn-p{padding:0 12px!important;font-size:13.5px!important}
  body .m-sheet .m-legal{display:flex;flex-wrap:wrap;gap:0 16px;padding:10px 4px 2px;border-top:1px solid var(--line,rgba(127,127,127,.25));margin-top:6px}
  body .m-sheet .m-legal a{font-size:13px;opacity:.75;min-height:44px;display:inline-flex;align-items:center}
  body.hc-page .hc:not(.on) .pill-top,body.hc-page .hc:not(.on) .hc-sub{display:none}
  body.hc-page .hc:not(.on) .hc-stage{order:1;margin:12vh 0 0;padding:0 0 14px}
  body.hc-page .hc:not(.on) .hc-stage h1{font-size:24px;font-weight:500;line-height:1.3;margin:0;text-wrap:balance}
  body.hc-page .hc:not(.on) .hc-box{order:2;margin-top:0}
  body.hc-page .hc:not(.on) .hc-sugg{order:3;margin-top:12px}
  body.hc-page .hc:not(.on) .hc-err{order:4}
  body.hc-page .hc:not(.on) .hc-legal{order:6;margin-top:auto;padding:0 8px 6px;grid-template-columns:repeat(3,auto);justify-content:center;column-gap:18px}
  body.hc-page .hc:not(.on) .hc-legal > span,body.hc-page .hc:not(.on) .hc-legal a:nth-child(2),body.hc-page .hc:not(.on) .hc-legal a:nth-child(3),body.hc-page .hc:not(.on) .hc-legal a:nth-child(7){display:none}
  body.hc-page .hc:not(.on) .hc-legal a{min-height:44px;font-size:11.5px!important}
  /* chip ngành: nhỏ, 1 hàng cuộn ngang (vùng chạm 44px bằng ::before) */
  body.hc-page .hc:not(.on) .hc-sugg{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;margin:10px -14px 0;padding:4px 14px;gap:6px;max-width:none;-webkit-mask-image:none;mask-image:none}
  body.hc-page .hc:not(.on) .hc-sugg::-webkit-scrollbar{display:none}
  body.hc-page .hc:not(.on) .hc-sugg button,body.hc-page .hc:not(.on) .hc-sugg button:nth-child(n+5){display:inline-flex;align-items:center;flex:none;position:relative;min-height:34px!important;height:34px;padding:0 12px;font-size:13px;font-weight:500}
  body.hc-page .hc:not(.on) .hc-sugg button::before{content:"";position:absolute;inset:-5px -2px}
  /* dải ý tưởng: chỉ ảnh mẫu, tiêu đề ngắn, "Xem thêm" là liên kết nhỏ */
  body.hc-page .hc:not(.on) .hc-rail{order:4;margin-top:6px}
  body.hc-page .hc-rail-t .rt-l{display:none}
  body.hc-page .hc-rail-t .rt-s{display:inline}
  body.hc-page .hc:not(.on) .hc-rail-t{font-size:13px}
  body.hc-page .hc:not(.on) .hc-rail-h{margin-bottom:6px}
  body.hc-page .hc:not(.on) .hc-rail-link{border:0;background:transparent;min-height:44px;padding:0 2px;font-size:12.5px;font-weight:500;color:var(--k-sub,inherit)}
  body.hc-page .hc:not(.on) .hc-rail-link .ic{width:12px;height:12px}
  body.hc-page .hc:not(.on) .hc-card .tx{display:none}
  body.hc-page .hc:not(.on) .hc-card{flex-basis:112px;border-radius:10px}
  body.hc-page .hc:not(.on) .hc-card .im{aspect-ratio:4/3}
}
.hc-rail-t .rt-s{display:none}

/* MOBILE-AUDIT 7/11: liên kết pháp lý ở form đăng nhập/đăng ký đạt vùng chạm 44px, kho mẫu không dựng 324 thẻ cùng lúc */
@media (max-width:900px){
  .terms{font-size:13px;line-height:1.4}
  .terms a{display:inline-block;padding:14px 3px;margin:-14px 0}
  .tgrid>.tcard{content-visibility:auto;contain-intrinsic-size:auto 600px}
}
@media (pointer:coarse){.ap .ap-btn{min-height:44px;padding:4px 16px}}
/* MOBILE-AUDIT 7/11 (2): trang chủ điện thoại không kéo giãn hộp chat đủ cao màn hình khi chưa chat (bỏ khoảng trắng ~180px trước chân trang); dải tiếp thị liên kết chừa chỗ nút Hỗ trợ/chat nổi để không che chữ và nút × */
@media (max-width:900px){body.hc-page:not(.m5-has-nav) .hc:not(.on){height:auto;min-height:0}body.hc-page:not(.m5-has-nav) main#main{padding-bottom:16px}}
body:has(.m5c) .aff-promo{padding-inline-end:132px;margin-top:10px}
body:has(.m5c) .aff-promo button{right:76px}
[dir=rtl] body:has(.m5c) .aff-promo button{right:auto;left:76px}
/* MOBILE-AUDIT 7/11 (3): kho mẫu điện thoại 2 cột (cũ 1 cột x 300+ thẻ dài ~190.000px) */
@media (max-width:640px){.gh+.tgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.gh+.tgrid .tcard .meta{padding-top:8px;flex-wrap:wrap}.gh+.tgrid .tcard .tname b{font-size:13px;line-height:1.3}.gh+.tgrid .tcard .meta .btn{width:100%}.gh+.tgrid>.tcard{contain-intrinsic-size:auto 300px}}
