/* ==========================================================================
   DANH MỤC / DANH SÁCH — GIAO DIỆN ĐIỆN THOẠI RIÊNG (≤ 720px; chuẩn thiết kế 390px, kiểm 360 và 430)
   Không phải bản thu nhỏ của máy tính: bố cục được dựng lại cho màn hình nhỏ.
   - Thanh công cụ dính 1 hàng: số kết quả · ô lọc tên (icon, bấm mở ô nhập đè cả hàng) · Sắp xếp (bảng nhỏ trượt từ đáy) · Bộ lọc (bảng lớn đóng/mở từng nhóm, Áp dụng/Xoá lọc dính đáy) · Danh sách/Bản đồ. Chip lọc nhanh cuộn ngang ngay dưới (không dính).
   - Nha khoa / labo / vật tư / voucher / e-voucher / dụng cụ / sang nhượng / nha sĩ: THẺ DỌC 2 CỘT (biến thể riêng, không thu nhỏ bản máy tính). Tuyển dụng / tin tức: hàng gọn 1 cột.
   - Cột phải trả phí đã được trang đặt xuống dưới; khối mời/claim/phân trang gọn, khoảng cách đều 16/24.
   Giữ nguyên DOM + hook JS (.jbar .jf-top .jsort .jdd .jchips .vt .rows data-ajax-zone …). Token --ds-*. Không vạch trái, không thanh cuộn (mép mờ), bo nhỏ.
   Nạp CUỐI CÙNG trong layout.ejs để thắng các tệp p-v3-*.css. Tiền tố riêng: dm- / m- (xem tests/dental-class-collision.test.js).
   ========================================================================== */
@media (max-width: 720px) {

/* ---------- đầu trang danh mục: tiêu đề + số liệu cùng một khối gọn ---------- */
.dm-page { padding-bottom: 8px; }
.dm-page .crumb { margin: 8px 0 0; font-size: 12px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.dm-page .crumb::-webkit-scrollbar { display: none; }
.dm-page .phead { display: block; padding: 6px 0 8px; border: 0; }
.dm-page .phead .eyebrow { display: none; }
.dm-page .phead h1 { margin: 0 0 4px !important; font-size: 22px !important; line-height: 1.25; font-weight: var(--ds-fw-800); letter-spacing: -.3px; }
.dm-page .phead p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ds-ink-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* số liệu: một dải chữ gọn thay cho 4 ô to */
.dm-page .phead .stats { display: flex; flex-wrap: nowrap; gap: 14px; margin: 8px 0 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.dm-page .phead .stats::-webkit-scrollbar { display: none; }
.dm-page .phead .stat { flex: none; display: flex; align-items: baseline; gap: 5px; min-width: 0; padding: 0; border: 0; background: none; }
.dm-page .phead .stat b { display: inline; font-size: 14px; font-weight: var(--ds-fw-700); color: var(--ds-ink-900); }
.dm-page .phead .stat small { font-size: 12px; color: var(--ds-ink-500); }
.dm-page .phead .stat small i { display: none; }

/* dải chip dịch vụ / vật liệu: một hàng vuốt ngang */
.dm-page .pills { flex-wrap: nowrap; gap: 6px; padding: 6px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.dm-page .pills::-webkit-scrollbar { display: none; }
.dm-page .pill { flex: none; height: 34px; padding: 0 12px; font-size: 13px; }

/* nha sĩ: đầu trang cùng kiểu */
.ns3 .crumb { margin: 8px 0 0; font-size: 12px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.ns3 .phead { display: block; padding: 6px 0 8px; border: 0; }
.ns3 .phead .eyebrow { display: none; }
.ns3 .phead h1 { margin: 0 0 4px; font-size: 22px; line-height: 1.25; font-weight: var(--ds-fw-800); }
.ns3 .phead p { margin: 0; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ns3 .ns-nums { display: flex; flex-wrap: nowrap; gap: 14px; margin: 8px 0 0; padding: 0; overflow-x: auto; scrollbar-width: none; border: 0; }
.ns3 .ns-nums > div { flex: none; display: flex; flex-direction: row-reverse; align-items: baseline; gap: 5px; padding: 0; border: 0; }
.ns3 .ns-nums dt { font-size: 12px; font-weight: var(--ds-fw-400); color: var(--ds-ink-500); } .ns3 .ns-nums dd { margin: 0; font-size: 14px; font-weight: var(--ds-fw-700); color: var(--ds-ink-900); }
.ns3 .pills { flex-wrap: nowrap; gap: 6px; padding: 6px 0; overflow-x: auto; scrollbar-width: none; }
.ns3 .pills::-webkit-scrollbar { display: none; }
.ns3 .pill { flex: none; height: 34px; }
.ns3 .join { padding: 12px; }
.ns3 .join ol { display: none; }
.ns3 .jnote { margin-top: 14px; }

/* ---------- THANH CÔNG CỤ DÍNH: 1 hàng, full bề rộng ---------- */
.jbar { position: static; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.jbar, .jbar > .jf, .jbar .dm-bar { display: contents; }
.jbar .jf-top { position: sticky; top: var(--hdr-h, 52px); z-index: 15; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0 -12px; padding: 6px 12px; min-height: 56px; background: #fff; border-bottom: 1px solid var(--ds-line); box-shadow: 0 1px 0 rgba(20, 33, 61, .03); }
.jbar .jf-top .cnt { order: 1; flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ds-ink-500); }
.jbar .jf-top .cnt b { font-size: 14px; font-weight: var(--ds-fw-700); color: var(--ds-ink-900); }
.jbar .jf-top .cnt-x { display: none; }
.jbar .dm-q { order: 2; position: static; flex: none; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 8px; background: var(--ds-bg-soft); cursor: pointer; }
.jbar .dm-q i { font-size: 20px; color: var(--ds-ink-700); }
.jbar .dm-q input { width: 0; min-width: 0; flex: none; opacity: 0; font-size: 16px; }
.jbar .dm-q:focus-within { position: absolute; z-index: 3; left: 12px; right: 12px; top: 6px; width: auto; height: 44px; padding: 0 12px; justify-content: flex-start; gap: 8px; background: #fff; border: 1px solid var(--ds-blue-500); box-shadow: 0 0 0 3px rgba(84, 143, 235, .16); }
.jbar .dm-q:focus-within input { width: auto; flex: 1; opacity: 1; }
.jbar .dm-q:has(input:not(:placeholder-shown)) { background: var(--ds-blue-100); }
.jbar .dm-sb { order: 3; flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: var(--ds-bg-soft); color: var(--ds-ink-700); font-size: 20px; }
.jbar .dm-sb[aria-expanded="true"] { background: var(--ds-blue-100); color: var(--ds-blue-700); }
.jbar .jf-open { order: 4; flex: none; height: 44px; padding: 0 14px; gap: 6px; border-radius: 8px; font-size: 13px; }
.jbar .jf-top .jf-r { order: 5; flex: none; margin: 0; }
.jbar .jf-r .vt { display: inline-flex; border: 0; border-radius: 8px; background: var(--ds-bg-soft); overflow: hidden; }
.jbar .jf-r .vt button { width: 44px; height: 44px; border-radius: 8px; background: none; font-size: 20px; color: var(--ds-ink-700); }
/* chỉ hiện nút của chế độ KHÁC chế độ đang xem (Danh sách ⇄ Bản đồ); chế độ khối (lưới cũ) không dùng trên điện thoại vì danh sách đã là 2 cột */
.jbar .jf-r .vt button.on, .jbar .jf-r .vt [data-v="grid"] { display: none; }
.jf-top:has(.jf-r) .cnt, .jf-top:has(.jf-r) .jf-open, .jf-top:has(.jf-r) .jf-r { order: unset; flex: unset; max-width: none; }
.jbar .jf-top .cnt { order: 1; flex: 1 1 auto; }
.jbar .jf-top .jf-open { order: 4; flex: none; }
.jbar .jf-top .jf-r { order: 5; flex: none; }

/* chip lọc nhanh: một hàng vuốt ngang, mép mờ, KHÔNG dính */
.jbar .dm-quick { padding: 8px 0 4px; gap: 6px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.jbar .dm-qc { height: 34px; padding: 0 12px; font-size: 13px; }
.jchips { margin: 6px 0 0; padding: 0; }
.jchip { min-height: 32px; font-size: 13px; }

/* Sắp xếp: bảng nhỏ trượt từ đáy (thay dải tab) */
.jbar .jf-top .jsort { display: none; }
.jbar.sort-open::after { content: ''; position: fixed; inset: 0; z-index: 80; background: rgba(20, 33, 61, .45); }
.jbar.sort-open .jf-top { z-index: 90; }
.jbar.sort-open .jf-top .jsort { max-width: none; display: flex; flex-direction: column; align-items: stretch; gap: 0; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; margin: 0; padding: 4px 12px calc(12px + env(safe-area-inset-bottom)); max-height: 70dvh; overflow-y: auto; scrollbar-width: none; background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(20, 33, 61, .25); animation: dmUp .24s cubic-bezier(.2, .8, .2, 1); -webkit-mask-image: none; mask-image: none; }
.jbar.sort-open .jsort::before { content: 'Sắp xếp'; display: block; padding: 12px 4px 8px; font-size: 16px; font-weight: var(--ds-fw-700); color: var(--ds-ink-900); }
.jbar.sort-open .jsort .tab { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 8px; border: 0; border-top: 1px solid var(--ds-line); border-radius: 0; background: none; font-size: 14px; font-weight: var(--ds-fw-500); color: var(--ds-ink-700); text-align: left; }
.jbar.sort-open .jsort .tab i { font-size: 20px; width: 22px; flex: none; }
.jbar.sort-open .jsort .tab.on { font-weight: var(--ds-fw-700); color: var(--ds-ink-900); }
.jbar.sort-open .jsort .tab::after { content: none; }
.jbar.sort-open .jsort .tab.on::after { content: '\2713'; position: static; width: auto; height: auto; inset: auto; margin-left: auto; background: none; transform: none; font-size: 16px; color: var(--ds-blue-600); }
@keyframes dmUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* BỘ LỌC: bảng toàn bộ nhóm, đóng/mở từng nhóm; Xoá lọc + Áp dụng dính đáy */
.jf-bd { z-index: 90; }
.jf-sheet { z-index: 95; max-height: 88dvh; }
.jf-sh { position: sticky; top: 0; z-index: 2; background: #fff; border-radius: 14px 14px 0 0; padding: 10px 12px 10px 16px; }
.jf-sh b { font-size: 16px; font-weight: var(--ds-fw-700); }
.jf-dds { padding: 0 16px 8px; }
.jf-dds .jdd { padding: 0; border-bottom: 1px solid var(--ds-line); }
.jf-dds .jdd-b { width: 100%; min-height: 52px; padding: 0; gap: 10px; pointer-events: auto; cursor: pointer; font-size: 14px; font-weight: var(--ds-fw-700); letter-spacing: 0; text-transform: none; color: var(--ds-ink-900); justify-content: flex-start; background: none !important; border: 0 !important; box-shadow: none !important; }
.jf-dds .jdd-b::after { content: none; display: none; }
.jf-dds .jdd-b .n { margin-left: 2px; }
.jf-dds .jdd-b .cv { display: inline-block; margin-left: auto; font-size: 14px; color: var(--ds-ink-500); transition: transform .2s; }
.jf-dds .jdd.mo .jdd-b .cv { transform: rotate(180deg); }
.jf-dds .jdd:not(.mo) .jdd-p { display: none !important; }
.jf-dds .jdd-p { padding: 0 0 12px !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.jf-dds .jdd-p .ck { min-height: 44px; padding: 8px 10px; border: 1px solid var(--ds-line); border-radius: 8px; font-size: 13px; font-weight: var(--ds-fw-400); line-height: 1.3; }
.jf-dds .jdd-p .ck:has(input:checked) { border-color: var(--ds-blue-500); background: var(--ds-blue-50); font-weight: var(--ds-fw-600); color: var(--ds-ink-900); }
.jf-dds .jdd-p .ck .n { height: 18px; padding: 0 6px; font-size: 11px; font-weight: var(--ds-fw-500); }
.jf-dds .jdd-q { min-height: 44px; margin: 0 0 4px; padding: 0 12px; border-radius: 8px; }
.jf-dds .jdd-q input { height: 42px; font-size: 16px; }
.jf-dds .jdd-list { max-height: 260px; }
.jf-ft, .jdd-js .jf-ft { position: sticky; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ds-line); background: #fff; box-shadow: 0 -6px 16px rgba(20, 33, 61, .06); }
.jf-ft .jf-clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 14px; }
.jf-ft .btn { flex: 1; max-width: 220px; min-height: 44px; justify-content: center; font-size: 14px; }

/* ---------- bố cục chung: một cột, dải phải trả phí xuống dưới, bản đồ ---------- */
.dm-lay .tlay { display: block; }
.dm-lay .tmain { margin-top: 10px; }
.dm-lay .jside { position: static; max-height: none; overflow: visible; display: grid; gap: 10px; margin-top: 16px; }
.dm-lay .pager, .dm-lay .pg { margin-top: 16px; }
.dm-lay .legend { margin: 14px 0 0; font-size: 12px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* ---------- THẺ DỌC 2 CỘT: nha khoa / labo / vật tư (.v3-place) ---------- */
.dm-lay .rows, .dm-lay .rlist:has(> .lb3-card) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dm-lay .rows:has(> .rlist) { display: block; }
.dm-lay .pin-super .pin-strip, .dm-lay .pinv .pin-rows:has(> .v3-place), .dm-lay .pinv .rlist:has(> .lb3-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dm-lay .rows > .claim, .dm-lay .rows > .lockline, .dm-lay .rlist > .lockline { grid-column: 1 / -1; }
.dm-lay .pin-super, .dm-lay .pinv { margin: 0 0 14px; }
.dm-lay .pin-hd { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; min-width: 0; }
.dm-lay .pin-hd b { font-size: 14px; font-weight: var(--ds-fw-700); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-lay .pin-hd small { display: none; }
:is(.dm-lay, .tn-rows) .v3-place { display: flex; flex-direction: column; align-items: stretch; min-width: 0; gap: 0; padding: 0; border-radius: 8px; transform: none; overflow: hidden; }
:is(.dm-lay, .tn-rows) .v3-place:hover { transform: none; }
:is(.dm-lay, .tn-rows) .v3-ph { flex: none; min-height: 0; aspect-ratio: 4 / 3; border-radius: 0; }
:is(.dm-lay, .tn-rows) .v3-ph img { position: absolute; inset: 0; height: 100%; }
:is(.dm-lay, .tn-rows) .v3-ph .ds-heart { top: 6px; bottom: auto; left: auto; right: 6px; width: 32px; height: 32px; background: rgba(20, 33, 61, .38); }
:is(.dm-lay, .tn-rows) .v3-ph .v3-n { right: 6px; bottom: 6px; left: auto; }
:is(.dm-lay, .tn-rows) .v3-body { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 8px 8px 8px; }
:is(.dm-lay, .tn-rows) .v3-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 14px; font-weight: var(--ds-fw-700); line-height: 1.3; }
:is(.dm-lay, .tn-rows) .v3-name a { flex: 1 1 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; text-overflow: clip; min-height: 2.6em; }
:is(.dm-lay, .tn-rows) .v3-name > i { font-size: 14px; }
:is(.dm-lay, .tn-rows) .v3-name .ds-chip.v3-rk { height: 16px; padding: 0 5px; font-size: 11px; }
:is(.dm-lay, .tn-rows) .v3-name .v3-mau { font-size: 11px; padding: 1px 5px; }
:is(.dm-lay, .tn-rows) .v3-meta { font-size: 12px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
:is(.dm-lay, .tn-rows) .v3-stars { display: none; }
:is(.dm-lay, .tn-rows) .v3-meta .it:first-child::before { content: '\2605'; margin-right: 3px; color: var(--ds-gold-400); font-size: 13px; }
:is(.dm-lay, .tn-rows) .v3-meta .it:first-child span[style] { margin-left: -3px; }
:is(.dm-lay, .tn-rows) .v3-meta .v3-sep { display: none; }
:is(.dm-lay, .tn-rows) .v3-meta .it + .it { margin-left: 8px; }
:is(.dm-lay, .tn-rows) .v3-addr { flex-wrap: nowrap; gap: 4px; font-size: 12px; }
:is(.dm-lay, .tn-rows) .v3-addr > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.dm-lay, .tn-rows) .v3-open { display: none; }
:is(.dm-lay, .tn-rows) .v3-deal { display: flex; width: auto; max-width: 100%; height: 24px; padding: 0 6px; gap: 4px; font-size: 11px; line-height: 1; }
:is(.dm-lay, .tn-rows) .v3-foot { margin-top: auto; padding-top: 4px; }
:is(.dm-lay, .tn-rows) .v3-act { display: grid; grid-template-columns: 1fr; gap: 6px; width: 100%; align-items: center; }
:is(.dm-lay, .tn-rows) .v3-act .v3-am-row { display: none; }
:is(.dm-lay, .tn-rows) .v3-act .v3-from { grid-row: 1; padding: 0; font-size: 11px; color: var(--ds-ink-500); }
:is(.dm-lay, .tn-rows) .v3-act .v3-from b { font-size: 14px; font-weight: var(--ds-fw-800); }
:is(.dm-lay, .tn-rows) .v3-act .ds-btn { height: 40px; width: 100%; padding: 0 8px; font-size: 13px; flex: none; }
:is(.dm-lay, .tn-rows) .v3-act .ds-btn.ic { display: none; }
:is(.dm-lay, .tn-rows) .v3-place[data-grp="vip"] .v3-act .ds-btn--primary { grid-row: 2; }

/* labo / vật tư: ô logo thay ảnh bìa, chỉ giữ dữ kiện chính */
.dm-lay .lb3-card .lb3-ph { display: grid; place-items: center; aspect-ratio: 16 / 9; }
.dm-lay .lb3-card .lb3-lg { width: 52px; height: 52px; font-size: 16px; border-width: 2px; }
.dm-lay .lb3-card .lb3-facts { display: grid; gap: 2px; margin: 0; font-size: 12px; }
.dm-lay .lb3-card .lb3-facts > span { display: flex; align-items: flex-start; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
.dm-lay .lb3-card .lb3-facts > span + span { display: none; }
.dm-lay .lb3-card .lb3-tags { display: flex; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.dm-lay .lb3-card .lb3-tags .v3-tag:nth-child(n+3) { display: none; }
.dm-lay .lb3-card .lb3-sum, .dm-lay .lb3-card .lb3-note, .dm-lay .lb3-card .lb3-vm { display: none; }
.dm-lay .lb3-card .lb3-foot { margin-top: auto; padding-top: 4px; display: grid; gap: 6px; }
.dm-lay .lb3-card .lb3-ph-note { display: none; }
.dm-lay .lb3-card .v3-act:has(.lb3-cta) .ds-btn--soft { display: none; }
.dm-lay .lb3-card .lb3-cta { font-size: 12px; }

/* khối "Bạn là chủ …?": một dải gọn xuyên 2 cột */
.dm-lay .claim { min-height: 0; gap: 10px; padding: 10px 12px; border-radius: 8px; }
.dm-lay .claim .ic { width: 36px; height: 36px; font-size: 19px; }
.dm-lay .claim::after { display: none; }
.dm-lay .claim .btn { height: 40px; padding: 0 12px; }

/* dải KHỐI nổi bật: vuốt ~1,7 khối */
.dm-feat { margin: 0 -12px 12px; }
.dm-feat-tr { padding: 0 12px; gap: 8px; scroll-padding-left: 12px; border-radius: 0; }
.dm-fc { flex: 0 0 58%; min-width: 0; }
.dm-fc .cv { aspect-ratio: 16 / 10; }
.dm-fc .lg { width: 32px; height: 32px; margin: -16px 0 0 8px; }
.dm-fc .bd { padding: 4px 8px 8px; gap: 3px; }
.dm-fc h3 { font-size: 13px; }
.dm-fc .ad-r { display: none; }
.dm-fc .ft { flex-wrap: wrap; gap: 6px; }
.dm-fc .act { width: 100%; margin: 0; }
.dm-fc .act .ds-btn { flex: 1; height: 36px; }
.dm-fc .act .ds-btn--soft { display: none; }
.dm-fc.ad .bd { padding: 12px 10px; }
.dm-fc.ad p { display: none; }

#results[data-view="map"] > :not(.mapv):not([data-ajax-zone="rows"]), #results[data-view="map"] [data-ajax-zone="pins"] { display: none; }
/* bản đồ: khung cao gần hết màn hình, danh sách thành dải thẻ nằm ngang dưới đáy */
#results[data-view="map"] .mapv { display: block; position: relative; height: calc(100dvh - var(--hdr-h, 52px) - 215px); min-height: 380px; border-radius: 8px; }
#results[data-view="map"] .mapv .mapcv { position: absolute; inset: 0; min-height: 0 !important; height: 100% !important; }
#results[data-view="map"] .mapv .ml { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 500; display: flex; flex-wrap: nowrap; gap: 8px; padding: 0 8px; overflow-x: auto; overflow-y: hidden; border: 0; scrollbar-width: none; scroll-snap-type: x proximity; pointer-events: none; }
#results[data-view="map"] .mapv .ml::-webkit-scrollbar { display: none; }
#results[data-view="map"] .mapv .mi { flex: 0 0 72%; scroll-snap-align: start; pointer-events: auto; border: 1px solid var(--ds-line); border-radius: 8px; background: #fff; padding: 8px 10px; box-shadow: var(--ds-sh-2); }
#results[data-view="map"] .mapv .mi.on { border-color: var(--ds-blue-500); }

/* cuối trang gọn */
.dm-page > .dm-more, .dm-page > .lp, .dm-page > .sec { margin: 24px 0 0; }
.dm-more { padding: 12px; }

/* ================= VOUCHER (.tk vé): thẻ dọc 2 cột — dải tên nha khoa trên, số giảm lớn, tên 2 dòng, HSD, Lấy mã ================= */
.dm-page .vc3-gw, .dm-page .vc3-ghost { display: none; }
.dm-page .vc3-hero { margin: 8px 0 0; padding: 12px; border-radius: 10px; }
.dm-page .vc3-hero .stats { margin-top: 6px; }
.dm-page .vc3-hd-sec { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.dm-page .vmini-row { margin: 10px -12px 0 !important; padding: 0 12px 2px !important; gap: 8px !important; }
.dm-page .vmini-row .vmini { flex: 0 0 74%; padding: 8px 10px !important; gap: 8px; min-height: 0; }
.dm-page .vmini .ic { width: 32px !important; height: 32px !important; font-size: 17px; }
.dm-page .vmini small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dm-page .nhan-tin { display: none; }
.dm-lay .vlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; overflow: visible; margin: 0; padding: 0; }
.dm-lay .vlist .tk { display: flex; flex-direction: column; min-height: 0; border-radius: 8px; overflow: hidden; }
.dm-lay .vlist .tk::before, .dm-lay .vlist .tk::after { display: none; }
.dm-lay .vlist .tk .stub { flex-direction: row; justify-content: flex-start; gap: 6px; width: 100%; padding: 6px 8px; border-radius: 0; text-align: left; }
.dm-lay .vlist .tk .stub::after { display: none; }
.dm-lay .vlist .tk .stub .blg { width: 26px; height: 26px; flex: none; font-size: 11px; box-shadow: none; }
.dm-lay .vlist .tk .stub b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; font-size: 11px; font-weight: var(--ds-fw-700); }
.dm-lay .vlist .tk .stub .bdg { display: none; }
.dm-lay .vlist .tk .ribbon { top: 4px; right: 4px; border-radius: 4px; font-size: 11px; padding: 1px 5px; }
.dm-lay .vlist .tk .bd { flex: 1; padding: 8px; gap: 2px; }
.dm-lay .vlist .tk .tp { gap: 6px; align-items: center; }
.dm-lay .vlist .tk .amt { font-size: 22px; font-weight: var(--ds-fw-800); letter-spacing: -.5px; }
.dm-lay .vlist .tk .kind { display: none; }
.dm-lay .vlist .tk .ti { margin: 2px 0 0; font-size: 13px; line-height: 1.35; font-weight: var(--ds-fw-600); }
.dm-lay .vlist .tk .ti a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.dm-lay .vlist .tk ul { margin: 4px 0 0; flex-direction: column; flex-wrap: nowrap; gap: 2px; font-size: 11px; }
.dm-lay .vlist .tk ul li:nth-child(n+3) { display: none; }
.dm-lay .vlist .tk .bt { flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.dm-lay .vlist .tk .bt .bar { flex: 1 1 100%; order: 1; }
.dm-lay .vlist .tk .bt small { order: 2; flex: 1 1 100%; margin: 0 !important; }
.dm-lay .vlist .tk .bt .sv { order: 3; width: 40px; height: 40px; flex: none; }
.dm-lay .vlist .tk .bt .btn, .dm-lay .vlist .tk .bt > a { order: 4; flex: 1; min-width: 0; min-height: 40px; justify-content: center; padding: 0 8px; font-size: 13px; }

/* ================= E-VOUCHER (.v3-ev): 2 cột, ảnh thấp ================= */
.dm-lay .ev3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
.dm-lay .v3-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.dm-lay .ev3-grid .v3-ev, .dm-lay .vc3-g-evoucher .v3-ev { grid-template-rows: 64px minmax(0, 1fr); border-radius: 8px; }
.dm-lay .v3-ev .top i.big { font-size: 28px; }
.dm-lay .v3-ev .top::after { display: none; }
.dm-lay .v3-ev .pc { left: 6px; top: 6px; height: 18px; padding: 0 6px; font-size: 11px; }
.dm-lay .v3-ev .info { padding: 8px; gap: 3px; }
.dm-lay .v3-ev .info > b:first-child { font-size: 13px; min-height: 2.7em; }
.dm-lay .v3-ev .info small { font-size: 11px; white-space: nowrap; overflow: hidden; }
.dm-lay .v3-ev .info small i { flex: none; }
.dm-lay .v3-price b { font-size: 15px; font-weight: var(--ds-fw-800); color: var(--ds-ink-900); }
.dm-lay .v3-price s { font-size: 11px; color: var(--ds-ink-400); margin-left: 4px; }
.dm-lay .v3-ev .row { flex-direction: column; align-items: flex-start; gap: 1px; font-size: 11px; }
.dm-lay .v3-ev .row span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-lay .v3-ev .info .ds-btn { height: 40px; margin-top: 4px; font-size: 13px; }

/* ================= FLASH SALE: đã 2 cột, gọn khoảng cách ================= */
.dm-lay .fs3-grid { gap: 12px 10px; }
.fs3-tabs { margin-top: 8px; }

/* ================= TUYỂN DỤNG: hàng gọn 1 cột (logo · tên · công ty · lương) + hàng nút ================= */
.td3-page .rlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.td3-job { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 10px; border-radius: 8px; }
.td3-job:hover { transform: none; }
.td3-lg { width: 40px; height: 40px; font-size: 13px; }
.td3-main { gap: 4px; }
.td3-ti { font-size: 14px; line-height: 1.35; }
.td3-ti a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1 1 100%; }
.td3-co { font-size: 12px; flex-wrap: nowrap; }
.td3-tags { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; gap: 4px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); }
.td3-tags > * { flex: none; }
.td3-act { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.td3-act small { font-size: 12px; }
.td3-act .bt { margin-left: auto; }
.td3-act .ds-btn { height: 40px; padding: 0 14px; font-size: 13px; }
.td3-page .pinv .pin-rows, .td3-page .pinv .rlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

/* ================= DỤNG CỤ / SANG NHƯỢNG (.tr3-card): 2 cột gọn ================= */
.tr3-card { border-radius: 8px; }
.tr3-card:hover { transform: none; }
.tr3-tg { left: 6px; top: 6px; max-width: calc(100% - 44px); }
.tr3-tg .ds-chip { height: 18px; padding: 0 6px; font-size: 11px; }
.tr3-sv { right: 6px; top: 6px; width: 32px; height: 32px; }
.tr3-bd { gap: 3px; padding: 8px; }
.tr3-pr { font-size: 15px; font-weight: var(--ds-fw-800); }
.tr3-card .tr3-ti { font-size: 13px; line-height: 1.35; }
.tr3-card .tr3-ti a { min-height: 2.7em; }
.tr3-mt { gap: 8px; }
.tr3-mt > span:last-child { flex: none; }
.tr3-sel { margin-top: 2px; padding-top: 6px; }

/* ================= NHA SĨ: thẻ dọc 2 cột (dgrid) thay danh sách ngang ================= */
.ns3 .vt { display: none; }
#nsRes[data-view] .rlist { display: none; }
#nsRes[data-view] .dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ns3 .dgrid .dc { height: 100%; padding: 10px 8px 8px; border-radius: 8px; }
.ns3 .dgrid .dc .dav { width: 72px !important; height: 96px !important; margin-bottom: 6px; font-size: 22px; }
.ns3 .dc b { font-size: 14px; line-height: 1.3; }
.ns3 .dc .tt { font-size: 12px; font-weight: var(--ds-fw-400); color: var(--ds-ink-500); }
.ns3 .dc .tgs { margin: 6px 0; flex-wrap: nowrap; overflow: hidden; }
.ns3 .dc .tgs .tg:nth-child(n+2) { display: none; }
.ns3 .dc .work { font-size: 12px; line-height: 1.3; }
.ns3 .dc .work .cf, .ns3 .dc .work .more { display: none; }
.ns3 .jf-r { gap: 6px; }
.ns3 .ns-sq { position: static; }
.ns3 .ns-sqb { width: 44px; height: 44px; border-radius: 8px; font-size: 20px; }
.ns3 .ns-sq.open { position: absolute; z-index: 3; left: 12px; right: 12px; top: 6px; height: 44px; padding: 0; background: #fff; flex-direction: row-reverse; gap: 6px; }
.ns3 .ns-sq.open input { flex: 1; width: auto; min-width: 0; height: 44px; font-size: 16px; border-radius: 8px; }
.ns3 .dc .btn { min-height: 40px; margin-top: auto; }

/* ================= TIN TỨC: bài nổi bật 16:9 + hàng gọn (ảnh nhỏ trái, tên 3 dòng, meta 1 dòng) ================= */
.tt3 .nfeat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 8px; }
.tt3 .nbig .im { height: auto; aspect-ratio: 16 / 9; }
.tt3 .nbig .bd { padding: 10px 12px 12px; }
.tt3 .nbig h2 { margin: 4px 0; font-size: 18px; line-height: 1.3; }
.tt3 .nbig p { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt3 .nside { display: grid; gap: 8px; }
.tt3 .nmed { grid-template-columns: 104px minmax(0, 1fr); border-radius: 8px; box-shadow: none; border: 1px solid var(--ds-line); }
.tt3 .nmed .im, .tt3 .nmed .im:has(> img) { width: 100%; height: 100%; aspect-ratio: auto; min-height: 88px; align-self: stretch; }
.tt3 .nmed .bd { padding: 8px 10px; }
.tt3 .nmed h3 { margin: 2px 0; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tt3 .nmed small { font-size: 12px; }
.tt3 .nrow { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ds-line); border-radius: 0; box-shadow: none; background: none; }
.tt3 .nrow:hover { transform: none; box-shadow: none; }
.tt3 .nrow .im, .tt3 .nrow .im:has(> img) { width: 100%; height: auto; aspect-ratio: 4 / 3; min-height: 0; align-self: start; border-radius: 6px; overflow: hidden; }
.tt3 .nrow > div { align-self: start; }
.tt3 .nrow h3 { margin: 2px 0 4px; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tt3 .nrow p { display: none; }
.tt3 .nrow .by { display: block; margin: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt3 .nrow .by > span, .tt3 .nrow .by > b { display: inline; }
.tt3 .nrow .by .av { display: none; }
.tt3 .nrow .cat { font-size: 11px; }
.tt3 .pinv .nrow { background: #fffaf0; box-shadow: none; padding: 10px; border: 1px solid #f0d98f; border-radius: 8px; margin-bottom: 8px; }
.tt3 .tt3-corner { margin-top: 16px; }
.tt3 .corner { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 -12px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.tt3 .corner::-webkit-scrollbar { display: none; }
.tt3 .cdoc { flex: 0 0 82%; scroll-snap-align: start; padding: 10px; }
.tt3 .nd-col { display: grid; gap: 10px; margin-top: 16px; }

/* sang nhượng (.tr3-row): thẻ dọc 2 cột, giống dụng cụ */
.tr3-page .rlist, .tr3-page .pgrid4, .tr3-page .pinv .pin-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
.tr3-page .pinv { margin: 0 0 14px; }
.tr3-row { display: flex; flex-direction: column; gap: 0; padding: 0; border-radius: 8px; overflow: hidden; }
.tr3-row:hover { transform: none; }
.tr3-row .tr3-ph { border-radius: 0; }
.tr3-row .tr3-bd { padding: 8px; gap: 3px; }
.tr3-row .tr3-pr { font-size: 15px; font-weight: var(--ds-fw-800); }
.tr3-row .tr3-ti { font-size: 13px; line-height: 1.35; }
.tr3-row .tr3-ti a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.tr3-row .tr3-tags { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; gap: 4px; }
.tr3-row .tr3-tags .v3-tag { flex: none; }
.tr3-row .tr3-tags .v3-tag:nth-child(n+3) { display: none; }
.tr3-row .tr3-mt .ok { display: none; }
.tr3-row .tr3-act { display: flex; gap: 6px; justify-items: stretch; align-self: stretch; padding: 0 8px 8px; margin-top: auto; }
.tr3-row .tr3-act .tr3-go { flex: 1; min-width: 0; height: 40px; padding: 0 4px; font-size: 12px; white-space: nowrap; }
.tr3-row .tr3-act > :not(.tr3-go) { flex: none; width: 40px; height: 40px; padding: 0; overflow: hidden; font-size: 0; }
.tr3-row .tr3-act > :not(.tr3-go) i { font-size: 18px; margin: 0; }

/* thẻ ghim chỉ có 1 khối: trải cả 2 cột, ảnh 16:9 */
.dm-lay .pin-super .pin-strip > :only-child, .dm-lay .pinv .pin-rows > :only-child { grid-column: 1 / -1; }
.dm-lay .pin-super .pin-strip > .v3-place:only-child .v3-ph, .dm-lay .pinv .pin-rows > .v3-place:only-child .v3-ph, .dm-lay .pinv .rlist > .lb3-card:only-child .lb3-ph { aspect-ratio: 16 / 9; }
.dm-lay .lb3-card .v3-act, .dm-lay .lb3-card .lb3-cta { justify-self: stretch; width: 100%; }

/* ================= HỎI NHA SĨ ================= */
.p-qa .phead .stats { display: flex; flex-wrap: nowrap; gap: 14px; margin: 8px 0 0; overflow-x: auto; scrollbar-width: none; }
.p-qa .phead .stat { flex: none; display: flex; align-items: baseline; gap: 5px; min-width: 0; padding: 0; border: 0; background: none; }
.p-qa .phead .stat b { display: inline; font-size: 14px; } .p-qa .phead .stat small { font-size: 12px; } .p-qa .phead .stat small i { display: none; }
.p-qa .flow > div { padding: 8px 10px; }
.p-qa .qa { padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; }
.p-qa .qa .a { padding: 8px 10px; margin-top: 6px; }
.p-qa .qa .ft { gap: 6px 12px; padding-top: 8px; }

/* ================= /tinh/<slug>: cùng thẻ dọc 2 cột ================= */
.tn3 .tn-rows .v3-place { display: flex; flex-direction: column; align-items: stretch; border-radius: 8px; }
.tn-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tn-rows > *, .dm-lay .rows > *, .dm-lay .vlist > *, .ev3-grid > * { min-width: 0; }
.tn-rows .v3-deal, .dm-lay .v3-deal { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn3 .crumb { margin: 8px 0 0; font-size: 12px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.tn3 .tn-head { display: block; padding: 6px 0 8px; border: 0; }
.tn3 .tn-head .eyebrow, .tn3 .tn-hd small { display: none; }
.tn3 .tn-head h1 { margin: 0 0 4px; font-size: 22px; line-height: 1.25; font-weight: var(--ds-fw-800); }
.tn3 .tn-head p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.5; }
.tn3 .tn-nums { display: flex; flex-wrap: nowrap; gap: 14px; margin: 8px 0 0; padding: 0; overflow-x: auto; scrollbar-width: none; border: 0; }
.tn3 .tn-nums > div { flex: none; display: flex; flex-direction: row-reverse; align-items: baseline; gap: 5px; padding: 0; border: 0; }
.tn3 .tn-nums dt { font-size: 12px; font-weight: var(--ds-fw-400); color: var(--ds-ink-500); } .tn3 .tn-nums dd { margin: 0; font-size: 14px; font-weight: var(--ds-fw-700); color: var(--ds-ink-900); }

/* ================= /tim-kiem: nhóm Nha khoa dạng thẻ dọc 2 cột (.lr) ================= */
.tk3 .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tk3 .rows > * { min-width: 0; }
.tk3 .lr { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: 8px; }
.tk3 .lr > .img, .tk3 .lr > a.img { position: relative; display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: 0; }
.tk3 .lr > .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tk3 .lr > div { padding: 8px 8px 4px; min-width: 0; }
.tk3 .lr .top { display: block; }
.tk3 .lr .top .nm { display: block; font-size: 14px; line-height: 1.3; font-weight: var(--ds-fw-700); }
.tk3 .lr .top .nm a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk3 .lr .top > :not(.nm) { margin-top: 3px; }
.tk3 .lr .ad { font-size: 12px; margin-top: 3px; }
.tk3 .lr .ad .a1 { display: flex; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk3 .lr .ad .a1 b { overflow: hidden; text-overflow: ellipsis; font-weight: var(--ds-fw-400); }
.tk3 .lr .facts { display: flex; flex-wrap: nowrap; gap: 8px; overflow: hidden; white-space: nowrap; font-size: 12px; margin-top: 3px; }
.tk3 .lr .facts > span:nth-child(n+2) { display: none; }
.tk3 .lr .tgs, .tk3 .lr .un-note { display: none; }
.tk3 .lr .deal { margin-top: 4px; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk3 .lr .deal a { display: none; }
.tk3 .lr .act { display: flex; padding: 4px 8px 8px; margin-top: auto; }
.tk3 .lr .act .btn { flex: 1; min-height: 40px; justify-content: center; }
.tk3 .lr .act .btn-ghost { display: none; }

}
