/* phoimau.vn — Phối cảnh gạch (0.75.0): bố cục theo báo cáo "Thiết kế bố cục phối cảnh gạch". Dùng chung biến màu / nút / chip với .pkg (pm-gach.css).
 * Thang chữ 5 bậc: 13 (chú thích, trạng thái) · 14 (nhãn, gợi ý) · 16 (thân, nút) · 17 (tiêu đề bảng, nút chính) · 24–28 (H1). Độ đậm 400 / 600.
 * Ngắt dòng do trang quyết định (không để theme text-wrap:pretty + giới hạn bề rộng p): tiêu đề balance, đoạn wrap; cụm từ ghép / số + đơn vị nối bằng &nbsp;. */

/* ---------- chữ ---------- */
/* chỉ đặt lại kiểu ngắt cho khối chữ (theme gắn text-wrap:pretty cho p) — không đụng white-space:nowrap của chip / nút / nhóm số */
.pgc :is(p,li,dd,figcaption,summary,label){text-wrap:wrap}
.pgc p{max-width:none}
.pgc :is(h1,h2,h3,.pgc-dau p){text-wrap:balance}
.pgc-dau{margin:0 0 16px;text-align:center}
.pgc-dau h1{margin:0 auto 6px;max-width:20em}
.pgc-dau p{font-size:16px;line-height:26px;color:var(--muted);margin:0 auto;max-width:30em}
.pgc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pgc .pgc-tieu{font-size:17px;line-height:24px;font-weight:600;margin:0 0 4px;color:var(--ink)}
.pgc .pgc-h3{font-size:16px;line-height:24px;font-weight:600;margin:24px 0 8px;color:var(--ink)}
.pgc-hd{font-size:16px;line-height:24px;color:var(--muted);margin:0 0 12px}
.pgc-tt,.pgc-goi-y{font-size:14px;line-height:22px;color:var(--muted);margin:8px 0 0}.pgc-tt:empty,.pgc-goi-y:empty{display:none}.pgc-tt b{color:var(--ink)}
.pgc-chu{font-size:13px;line-height:20px;color:var(--muted);margin:12px 0 0}
.pgc-nhan{display:block;font-size:14px;line-height:20px;font-weight:600;color:var(--ink);margin:16px 0 8px}
.pgc-loi{color:#a12a2a;font-weight:600}
.pgc-xem-truoc{background:#fff7e8;border:1px solid #f1dfb6;border-radius:12px;padding:8px 12px;font-size:14px;line-height:22px;color:#7a5513}
.pgc-lk{display:inline-flex;align-items:center;min-height:44px;padding:0;margin:12px 0 0;border:0;background:none;color:var(--acc);font:600 16px/1.3 var(--f);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pgc-rong-n{width:100%}
.pkg-tep svg,.pgc-cc svg{width:22px;height:22px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- khung bố cục: điện thoại = ảnh trên, điều khiển dưới; máy tính = điều khiển trái, ảnh phải (dính) ---------- */
.pgc{--rong:1440px}   /* công cụ: khung rộng hơn trang đọc — ảnh lớn hơn trên máy tính */
.pgc-ung{--san-cao:46vh;--nen:#fff}
@supports (height:1svh){.pgc-ung{--san-cao:46svh}}
.pgc-dh{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.pgc-dh .pgc-buoc{flex:1 1 auto;min-width:0;margin:0}
/* nút lùi: đầu hàng thanh bước, ghi tên bước sẽ về; viền tròn như chip để nhận ra là nút */
.pgc-lui{flex:0 0 auto;display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:0 14px 0 8px;border:1px solid var(--line-strong);border-radius:999px;background:var(--card);color:var(--ink);font:600 15px/1.2 var(--f);white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pgc-lui svg{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover){.pgc-lui:hover{background:var(--bg)}}
@media (max-width:359px){.pgc-lui{width:44px;padding:0;justify-content:center}.pgc-lui span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
.pgc-than{display:flex;flex-direction:column;gap:12px}
.pgc-rong{display:none}
.pgc-ung[data-st="2"]{--san-cao:30vh}
.pgc-ung[data-st="3"] .pgc-san{position:sticky;top:0;z-index:20}
.pgc-ung[data-st="3"] .pgc-act{position:sticky;bottom:0;z-index:15;background:var(--nen);margin:16px calc(-1 * var(--gut)) 0;padding:10px var(--gut) calc(10px + env(safe-area-inset-bottom));box-shadow:0 -1px 0 var(--line)}
.pgc-ung[data-st="1"] .pgc-san:has([data-khung][hidden]){display:none}

/* ---------- ảnh ---------- */
.pgc-khung{position:relative;overflow:hidden;border-radius:12px;background:#ececec;user-select:none;-webkit-user-select:none;width:min(100%,calc(var(--san-cao) * var(--ar,1.5)));margin:0 auto}
.pgc-ung[data-bang-mo="vung"] .pgc-khung,.pgc-phong-to .pgc-khung{touch-action:none}
.pgc-trong{position:absolute;inset:0;transform-origin:0 0}
.pgc-trong canvas,.pgc-trong svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.pgc-trong svg{overflow:visible}
.pgc-goc{display:none;pointer-events:none}
.pgc-ung:not([data-st="3"]) .pgc-dong{display:none}
.pgc-dong{font-size:13px;line-height:20px;color:var(--muted);text-align:center;margin:0;padding:6px 16px;min-height:32px;background:var(--nen)}
.pgc-nut{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 14px;border:0;border-radius:999px;background:rgba(255,255,255,.94);color:var(--ink);font:600 14px/1 var(--f);box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:pointer;-webkit-tap-highlight-color:transparent}
.pgc-nut[aria-pressed="true"]{background:var(--ink);color:#fff}
.pgc-ts{position:absolute;top:8px;right:8px;z-index:4}
/* 2026-10d: nút Phóng to kiểu KÍNH TRONG SUỐT (cùng một mẫu ở AI phối màu sơn, Ngoại thất / Nội thất, AI phối màu rèm, gạch phối cảnh):
   nền tối 58 % + làm mờ ảnh phía sau → ảnh vẫn hiện xuyên qua nút; 58 % là mức thấp nhất để chữ trắng đạt 4,5:1 ngay cả trên trời trắng tinh
   (đo: 50 % chỉ 3,5:1). Nút cao 36 px cho đỡ che ảnh, vùng chạm vẫn 46 px (::after tràn 5 px). Trước đây: viên trắng đục 90 % che góc ảnh. */
.pgc-khung .pgc-toan{position:absolute;right:10px;bottom:10px;z-index:4;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;min-width:36px;padding:0 12px 0 10px;border:1px solid rgba(255,255,255,.32);border-radius:99px;background:rgba(15,20,26,.58);-webkit-backdrop-filter:blur(10px) saturate(1.4);backdrop-filter:blur(10px) saturate(1.4);box-shadow:0 2px 10px rgba(0,0,0,.18);color:#fff;font:600 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-shadow:0 1px 2px rgba(0,0,0,.35);white-space:nowrap;cursor:zoom-in;-webkit-tap-highlight-color:transparent}
.pgc-khung .pgc-toan::after{content:"";position:absolute;inset:-5px}
.pgc-khung .pgc-toan svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pgc-khung .pgc-toan[hidden]{display:none}
.pgc-khung .pgc-toan:hover{background:rgba(15,20,26,.72)}
.pgc-khung .pgc-toan:focus-visible{outline:3px solid #b9a2f0;outline-offset:2px}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.pgc-khung .pgc-toan{background:rgba(15,20,26,.66)}}
@media (max-width:359px){.pgc-khung .pgc-toan{padding:0}.pgc-khung .pgc-toan span{display:none}}
.pgc-xem{position:fixed;inset:0;z-index:100002;display:flex;align-items:center;justify-content:center;background:#0d0f12;overflow:auto;touch-action:pinch-zoom pan-x pan-y}
.pgc-xem img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.pgc-xem-dong{position:fixed;top:calc(12px + env(safe-area-inset-top));right:12px;width:44px;height:44px;padding:0;font-size:18px}
.pgc-zoom{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:6px 16px 0;background:var(--nen)}.pgc-zoom span{margin-right:auto;font-size:13px;line-height:20px;color:var(--muted)}
.pgc-zoom .pgc-nut{height:40px;padding:0 14px;font-size:16px;box-shadow:inset 0 0 0 1px var(--line-strong);background:var(--card)}.pgc-zoom [data-z="0"]{font-size:14px}
.pgc-gat{position:absolute;left:4%;bottom:6px;width:92%;z-index:3}
.pgc-kinh{position:absolute;width:120px;height:120px;border-radius:50%;border:3px solid #fff;box-shadow:0 4px 16px rgba(0,0,0,.45);pointer-events:none;z-index:6}
.pgc-ai{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;background:rgba(22,32,43,.62);color:#fff;text-align:center}
.pgc-ai b{font-size:16px;line-height:24px;font-weight:600}
.pgc-ai-bo{min-height:44px;padding:0 16px;border:1.5px solid rgba(255,255,255,.8);border-radius:12px;background:transparent;color:#fff;font:600 15px/1.2 var(--f);cursor:pointer}
.pgc-quay{width:32px;height:32px;border-radius:50%;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;animation:pgc-quay .9s linear infinite}
@keyframes pgc-quay{to{transform:rotate(360deg)}}
/* 0.76.0 Phối màu gạch AI: ảnh AI phủ lên bản lát, nút chọn xem, lớp chờ, thẻ ảnh đã tạo */
.pgc-ai-anh{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.pgc-ai-chon{position:absolute;top:8px;left:8px;z-index:4;display:flex;gap:2px;padding:2px;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 1px 4px rgba(0,0,0,.25)}
.pgc-ai-chon button{min-height:40px;padding:0 14px;border:0;border-radius:999px;background:none;color:var(--ink);font:600 14px/1 var(--f);cursor:pointer}
.pgc-ai-chon button[aria-pressed="true"]{background:var(--ink);color:#fff}
.pgc-ai small{font-size:13px;line-height:20px;opacity:.85}
.pgc-act.co-ai{grid-template-columns:1.3fr 1fr 1fr}.pgc-act.khong-chia{grid-template-columns:1fr}.pgc-act.co-ai.khong-chia{grid-template-columns:1.3fr 1fr}.pgc-act.co-ai .pkg-btn{font-size:15px;padding:0 8px;white-space:nowrap}
@media (max-width:359px){.pgc-act.co-ai{gap:6px}.pgc-act.co-ai .pkg-btn{font-size:14px;padding:0 4px}}   /* iPhone SE đời 1 (320 px): "✦ Tạo ảnh AI" không tràn cột */
.pgc-aikq{margin:16px 0 0}.pgc-aikq .pgc-nhan{margin-top:0}
.pgc-aikq-ds{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 4px}
.pgc-aikq-ds button{position:relative;flex:0 0 auto;width:104px;padding:0;border:0;background:none;cursor:pointer;border-radius:10px}
.pgc-aikq-ds img{display:block;width:104px;height:68px;object-fit:cover;border-radius:10px;box-shadow:0 0 0 1px var(--line)}
.pgc-aikq-ds button[aria-pressed="true"] img{box-shadow:0 0 0 3px var(--acc)}
.pgc-aikq-ds span{position:absolute;left:6px;bottom:6px;padding:1px 6px;border-radius:6px;background:rgba(22,32,43,.75);color:#fff;font-size:13px;line-height:18px}
/* lớp vẽ trên ảnh */
.pgc-vung{fill:rgba(109,63,209,.16);stroke:rgba(255,255,255,.95)}
.pgc-net{fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:.45}.pgc-net.che{stroke:#e5484d}.pgc-net.them{stroke:#30a46c}
.pgc-q{fill:none;stroke:#fff;filter:drop-shadow(0 0 1.5px rgba(0,0,0,.7))}.pgc-q.sai{stroke:#ff4d4f}.pgc-lt{stroke:rgba(255,255,255,.7)}
.pgc-hh{fill:transparent;cursor:grab;pointer-events:all}
.pgc-h{fill:#6d3fd1;stroke:#fff;pointer-events:none;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}.pgc-h.chon{fill:#fff;stroke:#6d3fd1}.pgc-h.sai{fill:#d92d20}
.pgc-trong text{fill:#fff;font-weight:600;text-anchor:middle;pointer-events:none;font-family:system-ui,sans-serif}.pgc-trong text.chon{fill:#6d3fd1}
.pgc-d{fill:#fff;stroke:#6d3fd1;pointer-events:none}.pgc-d.chon{fill:#6d3fd1}
.pgc-m{fill:rgba(255,255,255,.8);stroke:#6d3fd1;pointer-events:none}

/* ---------- bước 1: phòng mẫu ---------- */
.pgc-pm{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pgc-pm-o{display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:none;text-align:left;cursor:pointer;color:var(--ink);font:inherit}
.pgc-pm-o img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px;box-shadow:0 0 0 1px var(--line)}
.pgc-pm-o span{display:flex;flex-direction:column;font-size:14px;line-height:20px;font-weight:600}.pgc-pm-o small{font-size:13px;line-height:18px;font-weight:400;color:var(--muted)}
.pgc-pm-o[aria-pressed="true"] img{box-shadow:0 0 0 3px var(--acc)}

/* ---------- bước 2: gạch ---------- */
.pgc-mau{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;margin:0 0 12px}
.pgc-mau button{display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:none;text-align:left;font:inherit;color:var(--ink);cursor:pointer}
.pgc-mau img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:10px;box-shadow:0 0 0 1px var(--line)}
.pgc-mau span{display:flex;flex-direction:column;font-size:14px;line-height:20px;font-weight:600}
.pgc-mau small{font-size:13px;line-height:18px;font-weight:400;color:var(--muted)}
.pgc-mau button[aria-pressed="true"] img{box-shadow:0 0 0 3px var(--acc)}
.pgc-dv{margin:16px 0 0;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.pgc-dv-k{display:flex;gap:12px;align-items:center;margin:0 0 12px}.pgc-dv-k img{width:56px;height:56px;object-fit:cover;border-radius:8px;box-shadow:0 0 0 1px var(--line)}
.pgc-dv-k span{display:flex;flex-direction:column;font-size:16px;line-height:22px}.pgc-dv-k small{font-size:14px;line-height:20px;color:var(--muted)}

/* ---------- bước 3: hàng công cụ + bảng ---------- */
.pgc-cc{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:4px 0 0}
.pgc-cc button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:60px;padding:6px 2px;border:1px solid transparent;border-radius:12px;background:none;color:var(--ink);font:400 13px/16px var(--f);cursor:pointer;-webkit-tap-highlight-color:transparent;white-space:nowrap}
.pgc-cc button:hover{background:var(--bg)}
.pgc-cc button[aria-expanded="true"]{background:var(--acc-nen);border-color:var(--acc);color:var(--acc);font-weight:600}
.pgc-bang{margin:8px 0 0;padding:4px 16px 16px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.pgc-bang-dau{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;margin:0 0 4px;border-bottom:1px solid var(--line)}
.pgc-bang-dau b{font-size:17px;line-height:24px}
.pgc-xong{min-height:44px;min-width:44px;padding:0 4px;border:0;background:none;color:var(--acc);font:600 16px/1 var(--f);cursor:pointer}
.pgc-bang .pkg-seg2{margin:12px 0 0}
.pgc-chips{display:flex;flex-wrap:wrap;gap:8px}
.pgc-bang>.pgc-chips:first-of-type{margin-top:12px}
.pgc-hang{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0}.pgc-hang .pkg-btn{min-height:44px;padding:0 14px;font-size:15px}
.pgc-do{color:#a12a2a!important}
.pgc-nhich{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:12px 0 0}
.pgc-pad{display:flex;gap:4px}
.pgc-pad button{width:44px;height:44px;border:1px solid var(--line-strong);border-radius:12px;background:var(--card);color:var(--ink);font:600 18px/1 var(--f);cursor:pointer}
.pgc-pad button:active{background:var(--bg)}
.pgc-them{margin:16px 0 0;border-top:1px solid var(--line)}
.pgc-them summary{display:flex;align-items:center;gap:6px;min-height:48px;font-size:15px;line-height:22px;font-weight:600;color:var(--acc)}
.pgc-them summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:-4px 0 0 4px}
.pgc-them[open] summary::after{transform:rotate(-135deg);margin-top:4px}
.pgc-them summary small{font-weight:400;color:var(--muted);font-size:14px}
.pgc-them>.pgc-tt:first-of-type{margin-top:0}
.pgc-act{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0 0}.pgc-act .pkg-btn{padding:0 12px}

/* ô nhập có đơn vị nằm trong ô — "[60] × [60] cm" không bao giờ tách dòng */
.pgc-kt{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:16px 0 0}.pgc-kt .pgc-nhan{margin:0}
.pgc-kt-o{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.pgc-x{font-size:16px;color:var(--muted)}
.pgc-o{display:inline-flex;align-items:center;gap:6px;height:48px;padding:0 12px;border:1.5px solid var(--line-strong);border-radius:12px;background:#fff}
.pgc-o:focus-within{border-color:var(--acc);box-shadow:0 0 0 3px var(--acc-nen)}
.pgc-o input{width:3.6em;min-width:0;border:0;outline:0;background:none;padding:0;font:400 16px/1 var(--f);color:var(--ink);text-align:right}
.pgc-o i{font-style:normal;font-size:14px;color:var(--muted)}
.pgc-o2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 0}.pgc-o2 label{display:flex;flex-direction:column;gap:6px}.pgc-o2 .pgc-nhan{margin:0;font-weight:400;color:var(--muted)}.pgc-o2 .pgc-o input{width:100%}

/* thanh trượt: giá trị cạnh nhãn, nút −/+ (không chỉ kéo), màu nhấn của trang — không dùng điều khiển xanh mặc định */
.pgc-tr{margin:16px 0 0}
.pgc-tr-dau{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:14px;line-height:20px;font-weight:600}
.pgc-tr-dau output{font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.pgc-tr-than{display:flex;align-items:center;gap:8px;margin:4px 0 0}
.pgc-tr-n{flex:0 0 44px;width:44px;height:44px;border:1px solid var(--line-strong);border-radius:12px;background:var(--card);color:var(--ink);font:600 20px/1 var(--f);cursor:pointer}
.pgc input[type=range]{-webkit-appearance:none;appearance:none;flex:1;min-width:0;height:44px;margin:0;background:transparent;cursor:pointer}
.pgc input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:var(--line-strong)}
.pgc input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-11px;border-radius:50%;background:#fff;border:2px solid var(--acc);box-shadow:0 1px 3px rgba(0,0,0,.25)}
.pgc input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--line-strong)}
.pgc input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#fff;border:2px solid var(--acc);box-shadow:0 1px 3px rgba(0,0,0,.25)}
.pgc .pgc-gat::-webkit-slider-runnable-track{background:rgba(255,255,255,.85)}.pgc .pgc-gat::-moz-range-track{background:rgba(255,255,255,.85)}

/* màu ron: ô 32 px, vùng chạm 44 px; ô "màu khác" cùng dạng */
.pgc-ron-ten{font-weight:400;color:var(--muted)}
.pgc-rons{display:flex;flex-wrap:wrap;gap:2px}
.pgc-rons button,.pgc-ron-tu{position:relative;width:44px;height:44px;padding:0;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.pgc-rons button::before{content:"";width:32px;height:32px;border-radius:8px;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}
.pgc-rons button[aria-pressed="true"]::before{box-shadow:0 0 0 2px var(--card),0 0 0 4px var(--acc)}
.pgc-ron-tu span{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:1.5px dashed var(--line-strong);color:var(--muted);font-size:20px;line-height:1}
.pgc-ron-tu input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0}

/* 0.82.0 số lượng cần mua: khối gấp được dưới hàng công cụ; 3 ô nhập một hàng; bảng 4 dòng nhãn trái – số phải, chú thích nhỏ dưới số */
.pgc-mua summary small{font-weight:400;color:var(--muted);font-size:14px}
.pgc-mua-o{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:4px 0 0}
.pgc-mua-o label{display:flex;flex-direction:column;gap:4px;min-width:0}.pgc-mua-o .pgc-nhan{margin:0;font-weight:400;color:var(--muted);font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pgc-mua-o .pgc-o{padding:0 10px}.pgc-mua-o .pgc-o input{width:100%}.pgc-mua-o .pgc-o input[readonly]{color:var(--muted)}
.pgc-mua-bang{width:100%;border-collapse:collapse;margin:12px 0 0;font-size:14px;line-height:20px}
.pgc-mua-bang th,.pgc-mua-bang td{padding:8px 0;border-top:1px solid var(--line);vertical-align:top;text-align:left}
.pgc-mua-bang th{font-weight:400;color:var(--muted);width:38%;padding-right:8px}
.pgc-mua-bang td{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink)}.pgc-mua-bang td b{font-weight:600}
.pgc-mua-bang td small{display:block;font-size:13px;line-height:18px;color:var(--muted)}
.pgc-mua .pgc-hang{margin-top:12px}.pgc-mua .pgc-chu{margin-top:8px}
@media (max-width:359px){.pgc-mua-o{grid-template-columns:1fr 1fr}.pgc-mua-o label:first-child{grid-column:1/-1}}

/* mặt vân đang lát */
.pgc-van{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}.pgc-van:empty{display:none}
.pgc-van figure{margin:0;width:88px}
.pgc-van img{display:block;width:88px;height:88px;object-fit:cover;border-radius:8px;box-shadow:0 0 0 1px var(--line)}
.pgc-van figcaption{display:flex;align-items:center;justify-content:space-between;font-size:13px;line-height:20px;color:var(--muted)}
.pgc-van figcaption button{width:32px;height:32px;margin-right:-8px;border:0;background:none;color:var(--muted);font-size:14px;cursor:pointer}

/* ---------- bảng khoanh viên gạch ---------- */
.pgc-to{position:fixed;inset:0;z-index:100000}
.pgc-to-nen{position:absolute;inset:0;background:rgba(10,14,20,.5)}
.pgc-to-k{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;max-height:92vh;max-height:92dvh;background:var(--card);border-radius:20px 20px 0 0;box-shadow:0 -12px 40px rgba(10,14,20,.25);font:400 16px/1.5 var(--f);color:var(--ink)}
.pgc-to .pkg-sheet-than{flex:1;overflow:auto;overscroll-behavior:contain;padding:12px 16px 16px}
.pgc-x-dong{width:44px;height:44px;border:0;background:none;font-size:18px;color:var(--muted);cursor:pointer}
.pgc-cat-k{position:relative;width:min(100%,calc(42vh * var(--ar,1)));margin:0 auto;touch-action:none;user-select:none;-webkit-user-select:none}
.pgc-cat-k canvas{display:block;width:100%;height:auto;border-radius:8px}.pgc-cat-k svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.pgc-to .pkg-sw2{margin-top:16px}

/* ---------- màn rộng ---------- */
@media (min-width:480px){.pgc-mau{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:960px){
  .pgc-ung{--san-cao:calc(100vh - 160px)}
  .pgc-ung[data-st="2"]{--san-cao:calc(100vh - 160px)}
  .pgc-than{display:grid;grid-template-columns:minmax(330px,380px) minmax(0,1fr);gap:24px;align-items:start}
  .pgc-ben{order:1}.pgc-san,.pgc-ung[data-st="3"] .pgc-san{order:2;position:sticky;top:16px;margin:0;padding:0;box-shadow:none;background:none}
  .pgc-ung[data-st="1"] .pgc-san:has([data-khung][hidden]){display:block}
  .pgc-rong{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;aspect-ratio:16/10;border:1.5px dashed var(--line-strong);border-radius:16px;background:var(--bg);color:var(--muted)}
  .pgc-rong svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:1.5}.pgc-rong p{margin:0;font-size:16px}
  .pgc-dau h1{font-size:36px;line-height:46px}
  .pgc-dau p{font-size:17px;line-height:28px}
  .pgc-mau{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pgc-to-k{left:50%;right:auto;bottom:auto;top:50%;width:min(600px,calc(100vw - 48px));max-height:88vh;transform:translate(-50%,-50%);border-radius:20px}
  .pgc-to .pkg-sheet-dau::before{display:none}
}
@media (max-width:599px){
  .pgc-san{margin:0 calc(-1 * var(--gut));background:#ececec}
  .pgc-khung{border-radius:0}
}
@media (min-width:960px){.pgc-ung[data-st="3"] .pgc-act{position:static;margin:16px 0 0;padding:0;box-shadow:none;background:none}.pgc-dong,.pgc-zoom{background:none;padding-left:0;padding-right:0}}
@media (prefers-reduced-motion:reduce){.pgc-quay{animation:none;border-top-color:rgba(255,255,255,.3)}}
