/* =====================================================================
   isHUM Vẽ — giao diện công cụ vẽ (ve.html)
   Cùng họ màu với assets/style.css (cam #D97757, nét đứt mảnh) nhưng là
   bố cục ỨNG DỤNG toàn màn hình, không phải trang cuộn.
   ===================================================================== */
:root{
  --orange:#D97757; --orange-dk:#c15f3c; --orange-soft:#fff3ec; --orange-glow:rgba(217,119,87,.28);
  --ink:#2c3744; --ink2:#3a4654; --muted:#8b97a4; --line:#c9d2dc; --line2:#e3e8ee;
  --bg:#f3f5f8; --card:#ffffff; --panel:rgba(255,255,255,.88);
  --blue:#1f6fff;
  --r:12px;
  --shadow:0 1px 2px rgba(44,55,68,.06), 0 6px 22px rgba(44,55,68,.08);
  --shadow-lg:0 2px 4px rgba(44,55,68,.06), 0 14px 40px rgba(44,55,68,.14);
  --font:'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*{ box-sizing:border-box; }
html, body{ margin:0; height:100%; }
body{
  background:var(--bg); color:var(--ink); font-family:var(--font); font-size:14px;
  overflow:hidden; -webkit-font-smoothing:antialiased;
  /* Chặn kéo-chọn chữ lung tung khi rê chuột vẽ trên khung nhìn. */
  user-select:none; -webkit-user-select:none;
}
input{ user-select:text; -webkit-user-select:text; font-family:inherit; }
button{ font-family:inherit; }
kbd{
  display:inline-block; min-width:18px; padding:1px 5px; border-radius:5px;
  border:1px solid var(--line); border-bottom-width:2px; background:#fff;
  font:600 11px/1.4 var(--font); color:var(--ink2); text-align:center;
}
svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

/* ---------------- Bố cục ---------------- */
.app{
  height:100vh; height:100dvh;
  display:grid;
  grid-template-columns:104px minmax(0,1fr) 300px;
  /* Đợt 6: thêm hàng "is" = thanh mini tool isHUM ngang ngay trên khung nhìn. */
  /* 26/11: thêm hàng "tab" (thanh tab bản vẽ) ngay dưới đầu trang. */
  grid-template-rows:56px auto auto minmax(0,1fr) 42px;
  grid-template-areas:"tren tren tren" "tab tab tab" "cc is ben" "cc vung ben" "duoi duoi duoi";
  gap:0 10px; padding:0 10px;
}
.app.anBen{ grid-template-columns:104px minmax(0,1fr) 0; }
.app.anBen .ben{ display:none; }
/* Ẩn từng thanh (menu "Thanh công cụ") — nhớ qua lần sau */
.app.khongSU{ grid-template-columns:0 minmax(0,1fr) 300px; }
.app.khongSU.anBen{ grid-template-columns:0 minmax(0,1fr) 0; }
.app.khongSU .cc, .app.khongIS .ccIS, .app.khongStyle .thanhStyle{ display:none !important; }

/* ---------------- Thanh trên ---------------- */
.tren{
  grid-area:tren; display:flex; align-items:center; gap:14px; min-width:0;
}
.hieu{ display:flex; align-items:center; gap:9px; color:var(--ink); text-decoration:none; flex:none; }
.hieu .dau{
  width:30px; height:30px; border:1.6px dashed var(--orange); border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  color:var(--orange-dk); font-weight:800; font-size:13px; background:var(--orange-soft);
}
.hieu .chu{ font-size:17px; font-weight:700; letter-spacing:-.2px; white-space:nowrap; }
.hieu .chu b{ color:var(--orange); }
.hieu .beta{
  font-size:10px; font-weight:800; letter-spacing:.6px; text-transform:uppercase;
  color:var(--orange-dk); border:1px dashed var(--orange); border-radius:20px; padding:1px 8px;
}
.tenBv{ display:flex; flex-direction:column; min-width:0; flex:1 1 auto; max-width:360px; }
.tenBv input{
  border:1px solid transparent; background:transparent; border-radius:8px;
  padding:3px 8px; font-size:14.5px; font-weight:600; color:var(--ink); outline:none;
  text-overflow:ellipsis; min-width:0; transition:border-color .15s, background .15s;
}
.tenBv input:hover{ border-color:var(--line2); background:#fff; }
.tenBv input:focus{ border-color:var(--orange); background:#fff; box-shadow:0 0 0 3px var(--orange-glow); }
.daLuu{ display:flex; align-items:center; gap:5px; padding-left:9px; font-size:11px; color:var(--muted); }
.daLuu i{ width:6px; height:6px; border-radius:50%; background:#2fb36a; }
.daLuu.dang i{ background:var(--orange); animation:nhapNhay .8s infinite alternate; }
@keyframes nhapNhay{ to{ opacity:.25; } }

.nhomNut{
  display:flex; align-items:center; gap:2px; padding:3px;
  background:var(--panel); border:1px solid var(--line2); border-radius:11px; box-shadow:var(--shadow);
}
.nhomNut .vach{ width:1px; height:20px; background:var(--line2); margin:0 4px; }
.nut{
  position:relative; width:34px; height:34px; border-radius:8px; border:1px solid transparent;
  background:transparent; color:var(--ink2); cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; transition:background .12s, color .12s;
}
.nut:hover{ background:#fff; color:var(--orange-dk); }
.nut:active{ transform:translateY(1px); }
.nut[disabled]{ opacity:.35; pointer-events:none; }
.nut.nho{ width:28px; height:28px; }
.nut.nho svg{ width:16px; height:16px; }

.gocNhin{
  display:flex; padding:3px; gap:2px; margin-left:auto;
  background:var(--panel); border:1px solid var(--line2); border-radius:11px; box-shadow:var(--shadow);
}
.gocNhin button{
  border:0; background:transparent; color:var(--ink2); font-weight:600; font-size:12.5px;
  padding:7px 11px; border-radius:8px; cursor:pointer; transition:background .12s, color .12s;
}
.gocNhin button:hover{ background:#fff; color:var(--orange-dk); }
.gocNhin button.on{ background:var(--orange-soft); color:var(--orange-dk); box-shadow:inset 0 0 0 1px var(--orange); }
.nutBen{ background:var(--panel); border:1px solid var(--line2); box-shadow:var(--shadow); width:40px; height:40px; border-radius:11px; }
.app:not(.anBen) .nutBen{ color:var(--orange-dk); border-color:var(--orange); border-style:dashed; }

/* Chú thích nổi khi rê chuột lên nút (máy tính) */
@media (hover:hover){
  [data-tip]:hover::after{
    content:attr(data-tip); position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%);
    white-space:nowrap; background:var(--ink); color:#fff; font-size:12px; font-weight:600;
    padding:5px 9px; border-radius:7px; pointer-events:none; z-index:30; box-shadow:var(--shadow);
  }
  /* ⚠️ Thanh công cụ CUỘN được (overflow) ⇒ chú thích ::after bị cắt mất (bồ tèo
     báo 27/11). Nút trong thanh dùng ô chú thích NỔI #goiYNut (ung-dung.js) đặt
     ngoài thanh, không bị cắt. */
  .cc [data-tip]:hover::after{ content:none; }
}
.goiYNut{
  position:fixed; z-index:60; pointer-events:none; white-space:nowrap; background:var(--ink); color:#fff;
  font:600 12px var(--font); padding:5px 9px; border-radius:7px; box-shadow:var(--shadow); transform:translateY(-50%);
  display:none;
}
.goiYNut.hien{ display:block; }

/* ---------------- Thanh công cụ ---------------- */
/* 2 CỘT như bộ công cụ lớn của SketchUp: 16 nút xếp một cột cao hơn khung
   nhìn trên màn laptop 768px, phải cuộn mới thấy nút cuối. */
.cc{
  grid-area:cc; align-self:start; max-height:100%; overflow-y:auto; scrollbar-width:none;
  display:grid; grid-template-columns:44px 44px; justify-content:center; gap:4px; padding:8px 6px;
  background:var(--panel); border:1px solid var(--line2); border-radius:16px; box-shadow:var(--shadow);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.cc::-webkit-scrollbar{ display:none; }
.cc .vach{ grid-column:1 / -1; justify-self:center; width:70px; height:0; border-top:1px dashed var(--line); margin:3px 0; }
/* ⭐ 27/11 (bồ tèo: "thanh menu bên trái thu gọn về trái, di chuột tới mới mở rộng — mở nhanh, thu về khoảng 2 s từ từ — để
   màn hình vẽ rộng hơn"): MÁY TÍNH ⇒ cột lưới "cc" chỉ còn 14 px (khung vẽ rộng thêm ~90 px), thanh NỔI ĐÈ lên khung vẽ, bình
   thường trượt sang trái chỉ chừa DẢI 12 px; rê vào / đang bấm phím trong thanh ⇒ bung ra 0,15 s; rời chuột ⇒ chờ 0,4 s rồi thu
   từ từ 1,6 s (tổng ~2 s). ⛔ Chỉ animate transform (không đổi cột lưới) ⇒ khung vẽ KHÔNG đổi cỡ / vẽ lại khi bung–thu.
   Điện thoại (≤760 px) giữ thanh ngang dưới đáy như cũ. */
@media (min-width:761px){
  .app{ grid-template-columns:14px minmax(0,1fr) 300px; }
  .app.anBen{ grid-template-columns:14px minmax(0,1fr) 0; }
  /* ⚠️ vòng 2 (bồ tèo: "di chuột sát mép trái thì NHÁY NHÁY"): trang có lề trái 10 px ⇒ ô lưới "cc" bắt đầu ở x = 10.
     Trước: thu = dải x 0–22, bung = thanh x 10–114 ⇒ chuột ở x < 10 bung ra là HẾT chạm thanh ⇒ thu ⇒ lại chạm dải ⇒ nháy.
     Nay SÁT HẲN MÉP TRÁI cả 2 trạng thái: thu = dải x 0–14 (translateX(-100% + 4px) = −100 px), bung = x 0–104
     (translateX(-10px)) ⇒ chuột ở mép luôn nằm trong thanh. Bo góc phải, mép trái phẳng áp sát màn hình. */
  .cc{ position:relative; z-index:30; width:104px; box-sizing:border-box; border-left:0; border-radius:0 16px 16px 0;
    transform:translateX(calc(-100% + 4px)); transition:transform 1.6s cubic-bezier(.45,0,.2,1) .4s, box-shadow 1.6s ease .4s; }
  /* :hover và :has() TÁCH 2 quy tắc — trình duyệt chưa hiểu :has() thì chỉ bỏ quy tắc của nó, :hover vẫn chạy */
  .cc:hover{ transform:translateX(-10px); transition:transform .15s ease-out 0s, box-shadow .15s ease-out 0s; box-shadow:var(--shadow-lg); background-size:0 0; }
  .cc:has(:focus-visible){ transform:translateX(-10px); transition:transform .15s ease-out 0s, box-shadow .15s ease-out 0s; box-shadow:var(--shadow-lg); background-size:0 0; }
  /* dải còn lộ khi thu: VẠCH NẮM nhỏ giữa mép phải (ảnh nền — đứng yên, không cuộn theo nút) ⇒ biết còn thanh để rê vào */
  .cc{ background-image:linear-gradient(var(--muted), var(--muted)); background-repeat:no-repeat; background-position:right 5px center; background-size:3px 34px; }
  /* ⚠️ vòng 2 (bồ tèo: "rời chuột chưa thu vào thì thanh MẤT HẾT nội dung"): BỎ làm mờ cả bộ nút. Dải 14 px chỉ lộ mấy CHỮ
     PHÍM TẮT nhỏ (L, R, C… góc dưới phải nút) ⇒ chỉ ẩn riêng chúng, và chỉ ẩn SAU KHI đã thu xong (trễ 2 s). */
  .cc .phim{ opacity:0; transition:opacity .2s ease 2s; }
  .cc:hover .phim{ opacity:1; transition:opacity .1s ease 0s; }
  .cc:has(:focus-visible) .phim{ opacity:1; transition:opacity .1s ease 0s; }
}
.ccNut{
  position:relative; width:44px; height:42px; border-radius:11px; border:1px solid transparent;
  background:transparent; color:var(--ink2); cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background .12s, color .12s, box-shadow .15s;
}
.ccNut svg{ width:21px; height:21px; }
.ccNut .phim{
  position:absolute; right:4px; bottom:3px; font-size:9px; font-weight:700; color:var(--muted); letter-spacing:.2px;
}
.ccNut:hover{ background:#fff; color:var(--orange-dk); }
.ccNut.on{
  background:var(--orange-soft); color:var(--orange-dk);
  border:1.4px dashed var(--orange); box-shadow:0 4px 14px var(--orange-glow);
}
.ccNut.on .phim{ color:var(--orange-dk); }

/* ---------------- Khung nhìn ---------------- */
.vung{
  grid-area:vung; position:relative; overflow:hidden; outline:none;
  border-radius:16px; border:1px solid var(--line2); box-shadow:var(--shadow-lg);
  background:
    radial-gradient(1100px 520px at 50% -8%, #ffffff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f8fafc 0%, #eaeef3 62%, #e2e7ee 100%);
  touch-action:none; cursor:crosshair;
}
.vung.cc-chon, .vung.cc-xoa{ cursor:default; }
.vung.cc-xoayNhin, .vung.cc-reNhin{ cursor:grab; }
.vung.dangKeo{ cursor:grabbing; }
.ve-gl, .ve-lop{ position:absolute; inset:0; width:100%; height:100%; display:block; }
.ve-lop{ pointer-events:none; }

.goiY{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  pointer-events:none; transition:opacity .25s;
}
.goiY.an{ opacity:0; visibility:hidden; }
.goiY-the{
  background:rgba(255,255,255,.9); border:1.4px dashed var(--line); border-radius:16px;
  padding:20px 24px; max-width:360px; box-shadow:var(--shadow); color:var(--ink2);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.goiY-tde{ font-weight:800; font-size:16px; color:var(--ink); margin-bottom:10px; }
.goiY ol{ margin:0 0 12px; padding-left:20px; line-height:2; }
.goiY p{ margin:0; font-size:12.5px; color:var(--muted); line-height:1.6; }

.bao{
  position:absolute; left:50%; top:14px; transform:translate(-50%, -12px); opacity:0;
  background:var(--ink); color:#fff; font-weight:600; font-size:13px;
  padding:8px 14px; border-radius:10px; box-shadow:var(--shadow-lg);
  transition:opacity .2s, transform .2s; pointer-events:none; max-width:calc(100% - 32px); text-align:center;
}
.bao.hien{ opacity:1; transform:translate(-50%, 0); }

/* ---------------- Bảng bên ---------------- */
.ben{
  grid-area:ben; display:flex; flex-direction:column; gap:10px; min-height:0; overflow:auto;
  padding-bottom:2px;
}
.ben-dau{ display:none; }
.the{
  background:var(--panel); border:1px solid var(--line2); border-radius:14px; box-shadow:var(--shadow);
  padding:12px 14px;
}
.the h3{
  margin:0 0 10px; font-size:11.5px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; color:var(--muted);
  display:flex; align-items:center; gap:8px;
}
.the .dem{
  font-size:11px; letter-spacing:0; color:var(--orange-dk); background:var(--orange-soft);
  border:1px dashed var(--orange); border-radius:20px; padding:0 8px;
}
.trong{ color:var(--muted); font-size:13px; line-height:1.55; }
.loai{
  display:inline-block; font-size:10.5px; font-weight:800; letter-spacing:.5px; text-transform:uppercase;
  padding:1px 8px; border-radius:20px; margin-bottom:8px;
}
.loai.tam{ color:#1f5fd6; background:#eaf1ff; border:1px dashed #8fb0f2; }
.loai.mat{ color:var(--muted); background:#f1f4f7; border:1px dashed var(--line); }
.truong{ display:flex; flex-direction:column; gap:3px; margin-bottom:9px; }
.truong label{ font-size:11.5px; font-weight:600; color:var(--muted); }
.o{
  width:100%; border:1px solid var(--line2); background:#fff; border-radius:9px;
  padding:7px 9px; font-size:14px; color:var(--ink); outline:none; transition:border-color .15s, box-shadow .15s;
}
.o:focus{ border-color:var(--orange); box-shadow:0 0 0 3px var(--orange-glow); }
.ba{ display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.ba .o{ text-align:right; font-variant-numeric:tabular-nums; }
.dv{ font-size:11px; color:var(--muted); margin:-3px 0 10px; }
.nutChu{
  display:inline-flex; align-items:center; gap:6px; border-radius:9px; padding:7px 12px; cursor:pointer;
  border:1px dashed var(--line); background:#fff; color:var(--ink2); font-weight:600; font-size:13px;
}
.nutChu:hover{ border-color:#e0443e; color:#d23a34; }
.nutChu svg{ width:16px; height:16px; }

.the-ds{ flex:1 1 auto; min-height:120px; display:flex; flex-direction:column; }
.dsTam{ overflow:auto; margin:0 -6px; }
.dong{
  display:flex; align-items:center; gap:8px; padding:7px 8px; border-radius:9px; cursor:pointer;
  border:1px solid transparent;
}
.dong:hover{ background:#fff; border-color:var(--line2); }
.dong.on{ background:#eaf1ff; border-color:#b9cff7; }
.dong .ic{
  width:22px; height:22px; flex:none; border-radius:6px; display:flex; align-items:center; justify-content:center;
  border:1.2px dashed var(--line); color:var(--muted);
}
.dong .ic svg{ width:13px; height:13px; }
.dong.tam .ic{ border-color:var(--orange); color:var(--orange-dk); background:var(--orange-soft); }
.dong .ten{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; font-size:13px; }
.dong .kt{ font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }

/* 26/11: trước 2 cột cứng + cấm xuống dòng ⇒ "Đổi chế độ", "Thu vừa"… tràn khung. Giờ cột tự chia theo
   bề rộng (hẹp còn 1 cột), mỗi ô cho xuống dòng, phím giữ nguyên khối. */
.bangPhim{ display:grid; grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:6px 8px; font-size:12px; color:var(--ink2); }
.bangPhim span{ min-width:0; overflow-wrap:anywhere; line-height:1.55; }
.bangPhim kbd{ white-space:nowrap; }

/* ---------------- Thanh dưới ---------------- */
.duoi{ grid-area:duoi; display:flex; align-items:center; gap:12px; min-width:0; }
.nhac{ flex:1; min-width:0; display:flex; align-items:center; gap:10px; color:var(--ink2); font-size:13px; }
.nhac #nhac{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ccTen{
  flex:none; font-weight:700; font-size:12px; color:var(--orange-dk);
  border:1px dashed var(--orange); background:var(--orange-soft); border-radius:20px; padding:2px 10px;
}
.o-vcb{
  flex:none; display:flex; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--line2); border-radius:10px; padding:3px 4px 3px 11px; box-shadow:var(--shadow);
}
.o-vcb span{ font-size:11.5px; font-weight:700; color:var(--muted); white-space:nowrap; }
.o-vcb input{
  width:150px; border:0; outline:none; background:var(--bg); border-radius:7px; padding:5px 9px;
  font:600 13.5px var(--font); color:var(--ink); text-align:right; font-variant-numeric:tabular-nums;
}
.o-vcb:focus-within{ border-color:var(--orange); box-shadow:0 0 0 3px var(--orange-glow); }

/* Bắt điểm kiểu OSNAP AutoCAD (27/11) — nút bật/tắt + ▾ bảng tích từng loại (ve/bang-bat-diem.js) */
.oBat{ flex:none; display:flex; align-items:stretch; background:#fff; border:1px solid var(--line2); border-radius:10px; box-shadow:var(--shadow); overflow:hidden; }
.oBat button{ border:0; background:none; cursor:pointer; font:600 12px var(--font); color:var(--muted); display:flex; align-items:center; gap:6px; }
.nutBat{ padding:5px 10px; }
.nutBat.on{ color:#155696; background:#eaf2fb; }
.nutBat:hover, .nutBatMo:hover{ color:#d87008; }
.nutBatMo{ padding:0 8px; border-left:1px solid var(--line2) !important; font-size:11px !important; }
.nutBatMo.mo{ color:#d87008; background:var(--orange-soft); }
.bangBat{
  position:fixed; z-index:60; min-width:250px; padding:8px 10px 9px; font-size:12px; color:#155696;
  background:rgba(242,245,250,.99); border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 28px rgba(44,55,68,.18);
}
.bangBat label{ display:flex; align-items:center; gap:7px; cursor:pointer; white-space:nowrap; }
.bangBat input[type=checkbox]{ margin:0; accent-color:#155696; }
.bbDau{ padding:2px 2px 7px; border-bottom:1px solid var(--line2); margin-bottom:4px; }
.bbCongTac{ font-weight:700; }
.bbCongTac kbd{ margin-left:auto; font:600 10.5px var(--font); color:var(--muted); border:1px solid var(--line); border-radius:4px; padding:0 4px; background:#fff; }
.bbNhom{ padding:3px 0 2px; }
.bbNhom.tat, .bbGiu.tat{ opacity:.45; }
.bbTieuDe{ font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin:4px 2px 3px; }
.bbDong{ padding:2.5px 4px; border-radius:6px; }
.bbDong:hover{ color:#d87008; background:rgba(255,255,255,.8); }
.bbGiu{ margin:6px 2px 2px; color:var(--ink2); white-space:nowrap; }
.bbGiu input{ width:46px; font:600 12px var(--font); border:1px solid var(--line); border-radius:5px; padding:1px 4px; text-align:right; }
.bbNut{ display:flex; gap:6px; margin:8px 0 4px; }
.bbNut button{ flex:1; font:600 11.5px var(--font); color:#155696; background:#fff; border:1px solid var(--line); border-radius:6px; padding:4px 0; cursor:pointer; }
.bbNut button:hover{ color:#d87008; border-color:#d87008; }
.bbNhac{ font-size:10.5px; color:var(--muted); white-space:nowrap; }
@media (max-width:760px){ .nutBat span{ display:none; } }

/* =====================================================================
   MÀN HẸP (điện thoại): công cụ xuống đáy, bảng bên thành ngăn trượt
   ===================================================================== */
@media (max-width:860px){
  .gocNhin button{ padding:7px 8px; }
  .tenBv{ max-width:220px; }
}
@media (max-width:760px){
  .app, .app.anBen{
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:52px auto auto minmax(0,1fr) 36px 64px;
    grid-template-areas:"tren" "tab" "is" "vung" "duoi" "cc";
    gap:0; padding:0 8px calc(6px + env(safe-area-inset-bottom));
  }
  .tren{ gap:8px; }
  .hieu .chu, .hieu .beta{ display:none; }
  .tenBv{ flex:1 1 auto; max-width:none; }
  .daLuu{ display:none; }
  .nhomNut .nut[data-lenh="moi"], .nhomNut .nut[data-lenh="mo"], .nhomNut .nut[data-lenh="luu"], .nhomNut .vach{ display:none; }
  .gocNhin{ display:none; }
  .nutBen{ width:36px; height:36px; }

  .vung{ border-radius:14px; }
  .duoi{ gap:8px; }
  .ccTen{ display:none; }
  .nhac{ font-size:12px; }
  .o-vcb{ padding-left:8px; }
  .o-vcb span{ display:none; }
  .o-vcb input{ width:110px; }

  .cc{
    display:flex; max-height:none; flex-direction:row; align-self:center; justify-content:flex-start; overflow-x:auto; overflow-y:hidden;
    padding:5px 8px; gap:2px; border-radius:14px; scrollbar-width:none;
  }
  .cc::-webkit-scrollbar{ display:none; }
  .cc .vach{ flex:none; width:0; height:28px; border-top:0; border-left:1px dashed var(--line); margin:0 4px; }
  .ccNut{ flex:none; width:46px; height:46px; }
  .ccNut .phim{ display:none; }

  .ben, .app.anBen .ben{
    display:flex; position:fixed; z-index:40; top:0; right:0; bottom:0; width:min(340px, 92vw);
    padding:12px; background:var(--bg); box-shadow:var(--shadow-lg);
    transform:translateX(105%); transition:transform .22s ease;
  }
  .app.moBen .ben{ transform:none; }
  .ben-dau{ display:flex; align-items:center; justify-content:space-between; font-weight:800; font-size:15px; padding:2px 2px 4px; }
  .meo{ display:none; }
  .goiY-the{ margin:0 16px; padding:16px 18px; }
}

/* =====================================================================
   BƯỚC 2 — nhóm, cây cấu trúc, thanh đường dẫn
   ===================================================================== */
.loai.nhom{ color:#1f5fd6; background:#eaf1ff; border:1px dashed #8fb0f2; }
.ba.chiDoc .o{ background:#f6f8fa; color:var(--ink2); text-align:right; font-variant-numeric:tabular-nums; }
.hangNut{ display:flex; flex-wrap:wrap; gap:6px; }
.nutChu.chinh{ border-style:solid; border-color:var(--orange); color:var(--orange-dk); background:var(--orange-soft); }
.nutChu.chinh:hover{ border-color:var(--orange-dk); color:var(--orange-dk); filter:brightness(1.02); }
.nutChu.xoa:hover{ border-color:#e0443e; color:#d23a34; }
.nutChu:not(.xoa):not(.chinh):hover{ border-color:var(--orange); color:var(--orange-dk); }
.nutChu kbd{ font-size:10px; padding:0 4px; }

.dong .mui{ width:16px; height:16px; flex:none; display:flex; align-items:center; justify-content:center; color:var(--muted); border-radius:4px; margin-right:-4px; }
.dong .mui svg{ width:12px; height:12px; transition:transform .15s; }
.dong .mui.xuong svg{ transform:rotate(90deg); }
.dong .mui:hover{ background:var(--line2); color:var(--ink); }
.dong .mui.trong{ visibility:hidden; }
.dong.nhom .ic{ border-color:#8fb0f2; color:#1f5fd6; background:#eaf1ff; }
.dong.nhom .ten{ font-weight:700; }
.dong.mo{ opacity:.45; }
.dong.dangMo{ box-shadow:inset 3px 0 0 var(--orange); }

.duongNhom{
  position:absolute; left:12px; top:12px; display:none; align-items:center; gap:2px; max-width:calc(100% - 24px);
  background:rgba(255,255,255,.92); border:1px solid var(--line2); border-radius:11px; padding:4px 4px 4px 10px;
  box-shadow:var(--shadow); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); z-index:5; overflow:hidden;
}
.duongNhom.hien{ display:flex; }
.duongNhom svg{ width:13px; height:13px; color:var(--muted); flex:none; }
.dn-nhan{ font-size:10.5px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; color:var(--orange-dk); margin-right:6px; white-space:nowrap; }
.dn-muc{
  border:0; background:transparent; font:600 12.5px var(--font); color:var(--ink2); padding:4px 7px; border-radius:7px; cursor:pointer;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:160px;
}
.dn-muc:hover{ background:var(--bg); color:var(--orange-dk); }
.dn-muc.on{ color:var(--ink); background:var(--orange-soft); box-shadow:inset 0 0 0 1px var(--orange); }
.dn-thoat{
  margin-left:6px; border:1px dashed var(--line); background:#fff; border-radius:8px; padding:3px 8px; cursor:pointer;
  font:600 12px var(--font); color:var(--ink2); display:flex; align-items:center; gap:5px; white-space:nowrap;
}
.dn-thoat:hover{ border-color:var(--orange); color:var(--orange-dk); }
.dn-thoat kbd{ font-size:9.5px; padding:0 4px; }
@media (max-width:760px){
  .dn-nhan, .dn-thoat kbd{ display:none; }
  .dn-muc{ max-width:90px; }
}
/* Thẻ Phím tắt thu gọn được (details/summary) */
.meo summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; }
.meo summary::-webkit-details-marker{ display:none; }
.meo summary::after{ content:"▾"; color:var(--muted); font-size:12px; transition:transform .15s; }
.meo:not([open]) summary::after{ transform:rotate(-90deg); }
.meo:not([open]) summary h3{ margin-bottom:0; }
.meo summary:hover h3{ color:var(--orange-dk); }
/* Đường lẻ trong cây cấu trúc: viền đứt xám, khác hẳn tấm (cam) và nhóm (xanh) */
.dong.duongLe .ic{ border-color:#9aa6b2; color:#5b6775; background:#f1f4f7; }

/* Đợt 1 (27/11): TẤM hợp lệ (cam) vs MÔ HÌNH (xám lạnh, chữ nghiêng) — nhìn
   cây là biết món nào vào bảng kê / CNC, món nào không. */
.loai.moHinh{ color:#5b6775; background:#eef1f5; border:1px dashed #9aa6b2; }
.dong.moHinh .ic{ border-color:#9aa6b2; border-style:dashed; color:#5b6775; background:#eef1f5; }
.dong.moHinh .ten{ font-style:italic; color:var(--ink2); }
.dong.moHinh .kt{ color:#a3672a; }
/* Ô kết quả nhận diện trên bảng bên */
.ketQua{ margin:10px 0 2px; padding:8px 10px; border-radius:9px; font-size:12.5px; line-height:1.45; }
.ketQua.ok{ background:#edf8f0; border:1px solid #b6e0c2; color:#22683a; }
.ketQua.mo{ background:#fff6ea; border:1px dashed #e7b77c; color:#7a4a12; }
/* Nhãn trạng thái trên thanh đường dẫn khi đang mở tấm / mô hình */
.dn-tt{ margin-left:6px; font:700 11.5px var(--font); padding:3px 8px; border-radius:8px; white-space:nowrap; }
.dn-tt.ok{ color:#22683a; background:#edf8f0; }
.dn-tt.mo{ color:#7a4a12; background:#fff6ea; cursor:help; }

/* =====================================================================
   BƯỚC 3b — THANH TUỲ CHỌN công cụ (bản web của ScreenUI plugin)
   Nổi giữa mép trên khung nhìn; hàng nút chế độ (Tab xoay vòng) + ô số.
   ===================================================================== */
.thanhTuyChon{
  position:absolute; left:50%; top:12px; transform:translateX(-50%); z-index:6;
  display:none; align-items:center; gap:8px; max-width:calc(100% - 24px); flex-wrap:wrap; justify-content:center;
  /* ⚠️ left:50% ⇒ trình duyệt chỉ cho rộng bằng NỬA khung nhìn ⇒ nút rớt dòng xếp dọc
     (thấy ở thanh Co giãn 27/11). max-content: rộng theo nội dung, vẫn chặn bởi max-width. */
  width:max-content;
  background:rgba(255,255,255,.94); border:1px solid var(--line2); border-radius:12px; padding:5px 6px;
  box-shadow:var(--shadow-lg); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.thanhTuyChon.hien{ display:flex; }
.tt-nhom{ display:flex; gap:2px; padding:2px; background:var(--bg); border-radius:9px; }
.tt-nut{
  border:0; background:transparent; color:var(--ink2); font:600 12.5px var(--font);
  padding:6px 10px; border-radius:7px; cursor:pointer; white-space:nowrap; transition:background .12s, color .12s;
}
.tt-nut:hover{ background:#fff; color:var(--orange-dk); }
.tt-nut.on{ background:#fff; color:var(--orange-dk); box-shadow:inset 0 0 0 1.2px var(--orange), 0 2px 8px var(--orange-glow); }
.tt-nut.phu{ border:1px dashed var(--line); background:#fff; }
.tt-nut.phu.on{ border-color:#1f6fff; color:#1f5fd6; box-shadow:none; background:#eaf1ff; }
.tt-so{ display:flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; color:var(--muted); }
.tt-so input{
  width:64px; border:1px solid var(--line2); border-radius:7px; padding:5px 7px; outline:none;
  font:600 13px var(--font); color:var(--ink); text-align:right; font-variant-numeric:tabular-nums; background:#fff;
}
.tt-so input:focus{ border-color:var(--orange); box-shadow:0 0 0 3px var(--orange-glow); }
.tt-so i{ font-style:normal; font-weight:600; color:var(--muted); }
/* Thanh đường dẫn nhóm (trái trên) và thanh tuỳ chọn (giữa trên) cùng hàng:
   khung nhìn hẹp thì đẩy thanh tuỳ chọn xuống dưới cho khỏi chồng. */
.duongNhom.hien ~ .thanhTuyChon{ top:54px; }
@media (max-width:760px){
  .thanhTuyChon{ top:auto; bottom:10px; }
  .duongNhom.hien ~ .thanhTuyChon{ top:auto; }
  .tt-nut{ padding:6px 8px; font-size:12px; }
}
/* ⭐ 27/11 tách thanh y bố cục plugin (ui_draw): nút HÀNH ĐỘNG (side_buttons — "Dựng nan"…) ⇒ GÓC PHẢI TRÊN;
   nút DƯỚI màn hình (bottom_buttons — Đẩy vào / Kéo ra…) ⇒ GIỮA DƯỚI, trên dải thông báo (.bao bottom 14px). */
.thanhTuyChon.thanhBen, .duongNhom.hien ~ .thanhTuyChon.thanhBen{ left:auto; right:12px; top:12px; bottom:auto; transform:none; }
.thanhTuyChon.thanhDuoi, .duongNhom.hien ~ .thanhTuyChon.thanhDuoi{ top:auto; bottom:58px; }
.thanhBen .tt-nut.phu, .thanhDuoi .tt-nut.phu{ border-style:solid; }
.thanhBen .tt-nut.phu{ background:var(--orange); border-color:var(--orange); color:#fff; }
.thanhBen .tt-nut.phu:hover{ background:var(--orange-dk); color:#fff; }
@media (max-width:760px){
  .thanhTuyChon.thanhBen, .duongNhom.hien ~ .thanhTuyChon.thanhBen{ top:12px; }
  .thanhTuyChon.thanhDuoi, .duongNhom.hien ~ .thanhTuyChon.thanhDuoi{ bottom:64px; }
}
/* Thông báo nổi xuống ĐÁY khung nhìn: mép trên đã có thanh đường dẫn nhóm +
   thanh tuỳ chọn, để trên là bị che (thấy khi sửa phác thảo, 26/11). Điện
   thoại thì ngược lại — đáy có thanh tuỳ chọn — nên giữ ở trên. */
.bao{ top:auto; bottom:14px; transform:translate(-50%, 12px); }
.bao.hien{ transform:translate(-50%, 0); }
@media (max-width:760px){
  .bao{ top:14px; bottom:auto; transform:translate(-50%, -12px); }
}
/* =====================================================================
   ĐỢT 6 (27/11) — Thanh mini tool isHUM · thanh Style · menu thanh công cụ
   ===================================================================== */
.ccIS{
  grid-area:is; display:flex; align-items:center; gap:4px; margin:0 0 8px; padding:5px 8px; min-width:0;
  overflow-x:auto; scrollbar-width:none;
  background:var(--panel); border:1px solid var(--line2); border-radius:14px; box-shadow:var(--shadow);
}
.ccIS::-webkit-scrollbar{ display:none; }
.ccIS .ccNut{ flex:none; width:40px; height:38px; }
.ccIS .vach{ flex:none; width:0; height:24px; border-left:1px dashed var(--line); margin:0 4px; }
.nhanThanh{ flex:none; font:800 11px var(--font); letter-spacing:.5px; color:var(--orange-dk); padding:0 6px 0 2px; text-transform:uppercase; }
.thanhStyle .nut.on{ background:var(--orange-soft); color:var(--orange-dk); box-shadow:inset 0 0 0 1px var(--orange); }
.thanhStyle .nut svg{ width:20px; height:20px; }
.thanhMenu{ position:relative; flex:none; }
.thanhMenu summary{ list-style:none; display:flex; align-items:center; justify-content:center; cursor:pointer;
  background:var(--panel); border:1px solid var(--line2); box-shadow:var(--shadow); border-radius:11px; width:40px; height:40px; }
.thanhMenu summary::-webkit-details-marker{ display:none; }
.thanhMenu-ds{
  position:absolute; right:0; top:calc(100% + 6px); z-index:50; min-width:200px; display:flex; flex-direction:column; gap:8px;
  background:#fff; border:1px solid var(--line2); border-radius:12px; padding:10px 12px; box-shadow:var(--shadow-lg);
  font:600 13px var(--font); color:var(--ink2);
}
.thanhMenu-ds label{ display:flex; align-items:center; gap:8px; cursor:pointer; white-space:nowrap; }
@media (max-width:1180px){ .thanhStyle .nut{ width:30px; } }
@media (max-width:980px){ .thanhStyle{ display:none; } }
@media (max-width:760px){
  .ccIS{ margin:0 0 6px; padding:4px 6px; }
  .ccIS .ccNut{ width:40px; height:40px; }
  .thanhMenu{ display:none; }
}

/* =====================================================================
   ĐỢT 4 (27/11) — Tag · Vật liệu · Component · Thuộc tính
   ===================================================================== */
.theBen{ display:flex; gap:2px; margin:0 0 8px; border-bottom:1px solid var(--line2); }
.theBen button{
  border:0; background:transparent; font:700 11.5px var(--font); color:var(--muted); padding:6px 7px 7px; cursor:pointer;
  border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; display:flex; align-items:center; gap:4px;
}
.theBen button:hover{ color:var(--ink2); }
.theBen button.on{ color:var(--orange-dk); border-bottom-color:var(--orange); }
.theBen .dem{ font-size:10px; }
.dong.dsTc{ cursor:pointer; }
.dong.dsTc .ten{ flex:1; }
.mauO{ width:14px; height:14px; border-radius:4px; border:1px solid rgba(0,0,0,.15); flex:none; }
.oMau{ width:24px; height:20px; padding:0; border:1px solid var(--line); border-radius:5px; background:none; cursor:pointer; flex:none; }
.nutTi{ border:1px solid var(--line2); background:#fff; border-radius:6px; font:700 12px var(--font); color:var(--ink2);
  width:24px; height:22px; cursor:pointer; flex:none; padding:0; }
.nutTi:hover{ border-color:var(--orange); color:var(--orange-dk); }
.tc{ margin-top:12px; padding-top:10px; border-top:1px dashed var(--line2); display:flex; flex-direction:column; gap:7px; }
.tc-hang{ display:flex; align-items:center; gap:8px; }
.tc-hang label{ width:62px; flex:none; font-size:11.5px; font-weight:700; color:var(--muted); }
.tc-hang select{ flex:1; min-width:0; font:600 12.5px var(--font); color:var(--ink); padding:5px 6px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.tc-comp{ font-size:12px; color:var(--ink2); background:#f3f0ff; border:1px dashed #b7a8f0; border-radius:8px; padding:6px 8px; }
.tc-co{ font-size:12px; color:var(--ink2); display:flex; align-items:center; gap:4px; cursor:pointer; }
.tc-tt summary{ cursor:pointer; font-size:12px; font-weight:700; color:var(--muted); }
.tc-tt table{ width:100%; border-collapse:collapse; margin-top:4px; font-size:11.5px; }
.tc-tt td{ padding:2px 4px; border-bottom:1px solid var(--line2); vertical-align:top; word-break:break-word; }
.tc-tt td:first-child{ color:var(--muted); width:42%; }
/* =====================================================================
   ĐỢT 8 (28/11) — Menu chuột phải · nút "Đang xem riêng" · mục ẩn trong cây
   ===================================================================== */
.menuPhai, .menuPhai .mpMenu{
  position:fixed; z-index:200; min-width:230px; padding:5px; display:flex; flex-direction:column;
  background:#fff; border:1px solid var(--line2); border-radius:10px; box-shadow:var(--shadow-lg);
  font:500 13px var(--font); color:var(--ink);
}
.menuPhai .mpMenu{ position:absolute; left:calc(100% - 4px); top:-6px; display:none; }
.menuPhai.conTrai .mpMenu{ left:auto; right:calc(100% - 4px); }
.menuPhai .mpMuc{
  position:relative; display:flex; align-items:center; gap:18px; width:100%; text-align:left;
  border:0; background:none; padding:6px 10px; border-radius:6px; cursor:pointer; color:inherit; font:inherit;
}
.menuPhai .mpMuc:hover, .menuPhai .mpCon:focus-within{ background:var(--orange-soft); color:var(--orange-dk); }
.menuPhai .mpCon:hover > .mpMenu{ display:flex; }
.menuPhai .mpMuc.tat{ color:#b5bec8; cursor:default; background:none; }
.menuPhai .mpTen{ flex:1; white-space:nowrap; }
.menuPhai .mpPhim{ color:var(--muted); font-size:12px; white-space:nowrap; }
.menuPhai .mpVach{ height:1px; background:var(--line2); margin:4px 6px; }
.nutCachLy{
  position:absolute; left:50%; top:10px; transform:translateX(-50%); z-index:6;
  border:1px solid var(--orange); background:var(--orange-soft); color:var(--orange-dk);
  font:700 12.5px var(--font); padding:7px 14px; border-radius:999px; cursor:pointer; box-shadow:var(--shadow);
}
.nutCachLy:hover{ background:#ffe6d8; }
.dong.giau .ten, .dong.giau .ic{ opacity:.45; }
.dong.giau .ten{ font-style:italic; }
@media (max-width:760px){
  .menuPhai{ min-width:200px; font-size:14px; max-height:calc(100vh - 8px); overflow-y:auto; }
  .menuPhai .mpMenu{ position:static; display:flex; box-shadow:none; border:0; padding:0 0 0 12px; min-width:0; }
  .menuPhai .mpCon{ flex-direction:column; align-items:stretch; gap:0; }
  .menuPhai .mpCon > .mpPhim{ display:none; }
  .nutCachLy{ font-size:11.5px; max-width:90%; }
}

/* =====================================================================
   ĐỢT 9 (28/11) — Tab Cảnh (Scene) · góc nhìn chuẩn thêm
   ===================================================================== */
.gocThem{ position:relative; display:flex; }
.gocThem summary{ list-style:none; cursor:pointer; color:var(--ink2); font-size:12px; padding:7px 8px; border-radius:8px; }
.gocThem summary::-webkit-details-marker{ display:none; }
.gocThem summary:hover{ background:#fff; color:var(--orange-dk); }
.gocThem-ds{
  position:absolute; right:0; top:calc(100% + 6px); z-index:50; display:flex; flex-direction:column; gap:2px; min-width:90px;
  background:#fff; border:1px solid var(--line2); border-radius:10px; padding:4px; box-shadow:var(--shadow-lg);
}
.gocThem-ds button{ text-align:left; }
/* Tab Cảnh: góc dưới-trái khung nhìn (né la bàn trục) — trên là thanh tuỳ chọn + đường dẫn nhóm. */
.thanhCanh{
  position:absolute; left:96px; bottom:12px; z-index:5; display:flex; gap:4px; align-items:center;
  max-width:calc(100% - 300px); overflow-x:auto; scrollbar-width:thin; padding:2px;
}
.tabCanh{
  flex:none; border:1px solid var(--line2); background:rgba(255,255,255,.92); color:var(--ink2);
  font:600 12.5px var(--font); padding:6px 12px; border-radius:8px; cursor:pointer; box-shadow:var(--shadow); white-space:nowrap;
}
.tabCanh:hover{ color:var(--orange-dk); border-color:var(--orange); }
.tabCanh.on{ background:var(--orange-soft); color:var(--orange-dk); border-color:var(--orange); }
.tabCanh.them{ border-style:dashed; color:var(--muted); box-shadow:none; background:rgba(255,255,255,.7); }
.nutCachLy{ top:auto; bottom:56px; }
@media (max-width:760px){
  .thanhCanh{ left:8px; top:8px; bottom:auto; max-width:calc(100% - 16px); }
  .duongNhom.hien ~ .thanhCanh{ top:52px; }
  .tabCanh{ padding:5px 10px; font-size:12px; }
}
/* Đợt 9: đầu trang thêm nút Song song + ▾ góc nhìn ⇒ ô tên bản vẽ từng bị bóp còn 30px ở 1280px. */
.tenBv{ min-width:120px; }
.daLuu{ white-space:nowrap; overflow:hidden; }
@media (max-width:1440px){
  .hieu .beta{ display:none; }
  .gocNhin button{ padding:7px 8px; }
  .tren{ gap:10px; }
}
@media (max-width:760px){ .tenBv{ min-width:0; } }
/* =====================================================================
   ĐỢT 10 (28/11) — Hộp Cài đặt: Phím tắt · Thông tin bản vẽ
   ===================================================================== */
.thanhMenu-ds .mucMenu{ border:0; background:none; text-align:left; padding:6px 2px 2px; border-top:1px solid var(--line2); font:600 13px var(--font); color:var(--ink2); cursor:pointer; }
.thanhMenu-ds .mucMenu + .mucMenu{ border-top:0; padding-top:2px; }
.thanhMenu-ds .mucMenu:hover{ color:var(--orange-dk); }
.hopNen{ position:fixed; inset:0; z-index:300; background:rgba(44,55,68,.32); display:flex; align-items:center; justify-content:center; padding:16px; }
.hopThoai{ width:min(620px, 100%); max-height:min(760px, calc(100vh - 32px)); display:flex; flex-direction:column;
  background:#fff; border-radius:14px; box-shadow:var(--shadow-lg); border:1px solid var(--line2); overflow:hidden; }
.htDau{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px 6px; font-size:15px; }
.htDong{ border:0; background:none; font-size:16px; cursor:pointer; color:var(--muted); width:32px; height:32px; border-radius:8px; }
.htDong:hover{ background:var(--bg); color:var(--ink); }
.htThe{ display:flex; gap:4px; padding:0 16px; border-bottom:1px solid var(--line2); }
.htTab{ border:0; background:none; padding:8px 12px; font:600 13px var(--font); color:var(--muted); cursor:pointer; border-bottom:2px solid transparent; }
.htTab.on{ color:var(--orange-dk); border-bottom-color:var(--orange); }
/* ⚠️ min-height:0 + flex:1: thiếu là phần thân không co theo hộp ⇒ danh sách phím tắt dài KHÔNG cuộn được (bồ tèo 28/11). */
.htThan{ padding:12px 16px 16px; overflow-y:auto; display:flex; flex-direction:column; gap:10px; flex:1 1 auto; min-height:0; overscroll-behavior:contain; }
.htThan > *{ flex:none; }
.pkDau{ display:flex; gap:8px; }
.pkTim{ flex:1; min-width:0; border:1px solid var(--line); border-radius:8px; padding:7px 10px; font:inherit; }
.pkDs{ display:flex; flex-direction:column; border:1px solid var(--line2); border-radius:10px; overflow:hidden; }
.pkHang{ display:flex; align-items:center; gap:10px; padding:5px 8px 5px 12px; border-bottom:1px solid var(--line2); }
.pkHang:last-child{ border-bottom:0; }
.pkHang:nth-child(even){ background:#fafbfc; }
.pkHang.doi .pkTen::after{ content:' •'; color:var(--orange); }
.pkTen{ flex:1; min-width:0; font-size:13px; }
.pkPhim{ min-width:110px; border:1px solid var(--line); background:#fff; border-radius:7px; padding:5px 10px; font:600 12px var(--font); color:var(--ink2); cursor:pointer; }
.pkPhim:hover{ border-color:var(--orange); }
.pkPhim.cho{ border-color:var(--orange); background:var(--orange-soft); color:var(--orange-dk); box-shadow:0 0 0 3px var(--orange-glow); }
.tbHang{ display:flex; align-items:center; gap:12px; font-size:13px; }
.tbHang > span{ width:130px; color:var(--muted); flex:none; }
.tbHang input, .tbHang select{ flex:1; min-width:0; border:1px solid var(--line); border-radius:8px; padding:7px 10px; font:inherit; }
.tbThongKe{ display:grid; grid-template-columns:1fr 1fr; gap:4px 18px; background:var(--bg); border-radius:10px; padding:10px 12px; font-size:13px; }
.tbThongKe div{ display:flex; justify-content:space-between; }
.tbThongKe span{ color:var(--muted); }
@media (max-width:760px){ .tbHang{ flex-wrap:wrap; } .tbHang > span{ width:100%; } .tbThongKe{ grid-template-columns:1fr; } }
/* Nút cuộn thanh công cụ (28/11): hiện khi còn công cụ khuất phía trên/dưới (trái/phải). */
.muiCuon{
  position:fixed; z-index:30; height:22px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line2); border-radius:8px; background:rgba(255,255,255,.96); color:var(--orange-dk);
  font-size:10px; cursor:pointer; box-shadow:0 2px 8px rgba(44,55,68,.14); padding:0;
}
.muiCuon.ngang{ width:22px; height:auto; }
.muiCuon:hover{ background:var(--orange-soft); border-color:var(--orange); }
/* Icon GỐC của plugin isHUM (SVG màu, chép nguyên) — 28/11 */
.icGoc{ width:22px; height:22px; display:block; pointer-events:none; user-select:none; }
.ccIS .icGoc{ width:21px; height:21px; }

/* =====================================================================
   NỐI TOOL isHUM — đợt đầu (28/11): bảng NỔI (không che khung vẽ) + bảng riêng
   ===================================================================== */
.bangNoi{
  position:fixed; right:16px; top:72px; z-index:150; width:min(380px, calc(100vw - 32px)); max-height:calc(100vh - 96px);
  display:flex; flex-direction:column; background:#fff; border:1px solid var(--line2); border-radius:14px; box-shadow:var(--shadow-lg);
}
.bnDau{ display:flex; align-items:center; justify-content:space-between; padding:10px 10px 8px 14px; border-bottom:1px solid var(--line2); cursor:move; font-size:14px; user-select:none; }
.bnThan{ padding:10px 14px 14px; overflow-y:auto; min-height:0; display:flex; flex-direction:column; gap:8px; font-size:13px; overscroll-behavior:contain; }
.bnThan > *{ flex:none; }
.bnThan input, .bnThan select{ border:1px solid var(--line); border-radius:8px; padding:6px 9px; font:inherit; min-width:0; background:#fff; }
.ddHang{ display:flex; align-items:center; gap:6px; }
.ddHang > span{ flex:1; }
.ddHang input{ width:80px; text-align:center; }
.ddLoi{ color:#d8453b; font-size:12px; min-height:14px; }
.bcBang{ display:flex; flex-direction:column; border:1px solid var(--line2); border-radius:8px; overflow:hidden; font-size:12px; }
.bcDong{ display:grid; grid-template-columns:1.2fr .8fr 1.3fr .6fr 1.2fr; gap:6px; padding:6px 8px; border-bottom:1px solid var(--line2); cursor:pointer; }
.bcDong.dau{ background:var(--bg); font-weight:700; cursor:default; }
.bcDong.canXem{ background:#fff4ec; }
.bcDong:last-child{ border-bottom:0; }
.bangNoi[data-bang="baoCaoDay"]{ width:min(620px, calc(100vw - 32px)); }
/* UI::HtmlDialog của lớp giả SketchUp (ve/su/cong-cu.js) — cửa sổ nổi chứa HTML plugin trong iframe */
.suDlg{ position:fixed; display:flex; flex-direction:column; background:#fff; border:1px solid var(--line2); border-radius:12px; box-shadow:var(--shadow-lg); overflow:hidden; }
.suDlgDau{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 8px 8px 14px; border-bottom:1px solid var(--line2); cursor:move; user-select:none; font-size:13px; touch-action:none; }
.suDlgDau b{ font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.suDlgDau button{ border:0; background:transparent; width:28px; height:28px; border-radius:8px; cursor:pointer; font-size:14px; color:var(--muted); }
.suDlgDau button:hover{ background:var(--bg); color:var(--ink); }
.suDlg iframe{ flex:1; border:0; width:100%; min-height:0; background:#fff; }
.tvO{ display:flex; align-items:center; gap:8px; }
.tvO > span{ width:86px; flex:none; color:var(--muted); }
.tvO input, .tvO select{ flex:1; }
.tvKq{ font-weight:600; color:var(--muted); }
.tvKq.ok{ color:#2f9e4f; } .tvKq.loi{ color:#d8453b; }
.tvDs{ display:flex; flex-direction:column; gap:2px; max-height:220px; overflow-y:auto; }
.tvMuc{ text-align:left; border:0; background:var(--bg); border-radius:6px; padding:5px 8px; font:inherit; cursor:pointer; }
.tvMuc:hover{ background:var(--orange-soft); color:var(--orange-dk); }
.dtThe{ padding:0; margin:-4px 0 4px; }
.dtChon{ color:var(--muted); font-size:12px; }
.dtO{ display:flex; flex-direction:column; gap:4px; }
.dtO > label{ font-weight:600; color:var(--ink2); }
.dtHang{ display:flex; gap:6px; align-items:center; }
.dtHang input{ flex:1; }
.dtDs{ display:flex; flex-wrap:wrap; gap:4px; }
.dtMuc{ border:1px solid var(--line2); background:#fff; border-radius:999px; padding:3px 6px 3px 10px; font:inherit; font-size:12px; cursor:pointer; display:flex; align-items:center; gap:4px; }
.dtMuc:hover{ border-color:var(--orange); color:var(--orange-dk); }
.dtMuc i{ font-style:normal; color:var(--muted); font-size:10px; padding:0 3px; }
.dtMuc i:hover{ color:#d8453b; }
.dtTick{ display:flex; align-items:center; gap:6px; }
@media (max-width:760px){ .bangNoi{ right:8px; left:8px; top:auto; bottom:8px; width:auto; max-height:60vh; } .bcDong{ grid-template-columns:1fr 1fr; } }
/* Đợt 2 nối tool isHUM (28/11): Thước Lỗ Ban */
.lbDs{ display:flex; flex-direction:column; gap:10px; }
.lbThe{ border:1px solid var(--line2); border-radius:10px; padding:10px; display:flex; flex-direction:column; gap:5px; }
.lbDau{ display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12.5px; }
.lbBadge{ font-style:normal; font-weight:800; font-size:11px; padding:2px 8px; border-radius:999px; color:#fff; }
.lbBadge.tot{ background:#e63232; } .lbBadge.xau{ background:#333; }
.lbKq{ font-weight:600; } .lbY{ color:var(--muted); font-size:12px; }
.lbDai{ width:100%; height:56px; border-radius:6px; cursor:ew-resize; touch-action:none; outline:1px solid #2fa35a; }
/* Thanh isHUM 2 TẦNG (28/11): trên = thanh chính, dưới = Mini Tools · nút SÁT nhau như SketchUp */
.ccIS{ flex-direction:column; align-items:stretch; gap:1px; padding:3px 6px; overflow:visible; }
.hangIS{ display:flex; align-items:center; gap:0; min-width:0; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
.hangIS::-webkit-scrollbar{ display:none; }
.hangIS + .hangIS{ border-top:1px dashed var(--line2); padding-top:1px; }
.ccIS .nhanThanh{ width:40px; flex:none; font-size:10px; padding:0 4px 0 2px; }
.ccIS .ccNut{ width:28px; height:30px; border-radius:7px; }
.ccIS .icGoc{ width:22px; height:22px; }
.ccIS .vach{ height:20px; margin:0 2px; }
.ccIS .ccNut .phim{ font-size:8px; right:1px; bottom:0; }
@media (max-width:760px){ .ccIS .ccNut{ width:36px; height:36px; } .ccIS .nhanThanh{ width:36px; } }
/* Bảng CÀI ĐẶT TOOL bên trái khung vẽ (như panel trái mini tool plugin) — 29/11 */
.bangTool{ position:absolute; left:12px; top:12px; z-index:6; width:232px; max-height:calc(100% - 90px); display:none; flex-direction:column;
  background:rgba(255,255,255,.96); border:1px solid var(--line2); border-radius:12px; box-shadow:var(--shadow); font-size:12.5px; overflow:hidden; }
.bangTool.hien{ display:flex; }
.duongNhom.hien ~ .bangTool{ top:56px; }
.btDau{ display:flex; align-items:center; justify-content:space-between; gap:6px; padding:8px 8px 6px 12px; border-bottom:1px solid var(--line2); color:var(--orange-dk); font-size:12.5px; }
.btThu{ border:0; background:none; cursor:pointer; color:var(--muted); font-size:13px; width:24px; height:22px; border-radius:6px; }
.btThu:hover{ background:var(--bg); }
.btThan{ overflow-y:auto; min-height:0; padding:6px 10px 10px; display:flex; flex-direction:column; gap:8px; overscroll-behavior:contain; }
.btThan[hidden]{ display:none; }
.btPreset{ display:flex; gap:4px; align-items:center; }
.btPreset select{ flex:1; min-width:0; }
.btNhom{ display:flex; flex-direction:column; gap:4px; }
.btTieu{ font-weight:700; color:var(--ink2); font-size:11.5px; text-transform:uppercase; letter-spacing:.3px; margin-top:2px; }
.btO{ display:flex; align-items:center; gap:6px; }
.btNhan{ flex:1; min-width:0; color:var(--ink2); }
.btO input:not([type=checkbox]), .btO select, .btPreset select{ width:86px; border:1px solid var(--line); border-radius:7px; padding:4px 6px; font:inherit; background:#fff; }
.btO select{ width:110px; }
.btO i{ font-style:normal; color:var(--muted); font-size:11px; width:22px; }
@media (max-width:760px){ .bangTool{ width:min(232px, calc(100% - 24px)); max-height:45%; } }

/* ---------------- 26/11: TAB bản vẽ + Kho bản vẽ + hộp hỏi nhỏ ---------------- */
/* Thanh tab THU GỌN = một vạch màu (mỗi tab một đoạn); bấm ⇒ khung tab trượt xuống PHỦ lên trên. */
.thanhTab{ grid-area:tab; position:relative; height:12px; min-width:0; z-index:60; }
.vachTab{ position:absolute; left:0; right:0; top:2px; height:6px; display:flex; gap:3px; cursor:pointer; transition:opacity .2s, top .15s, height .15s; }
.vachTab i{ flex:1 1 0; min-width:16px; max-width:260px; border-radius:4px; opacity:.38; transition:opacity .15s; }
.vachTab i.on{ opacity:1; }
.vachTab:hover{ top:1px; height:8px; }
.vachTab:hover i{ opacity:.7; }
.vachTab:hover i.on{ opacity:1; }
.khungTab{ position:absolute; left:-6px; right:-6px; top:-4px; display:flex; align-items:center; gap:4px; padding:6px;
  background:var(--card); border:1px solid var(--line2); border-radius:12px; box-shadow:var(--shadow-lg);
  overflow-x:auto; scrollbar-width:thin;
  clip-path:inset(0 0 100% 0 round 12px); visibility:hidden; pointer-events:none;
  transition:clip-path .28s ease, visibility 0s linear .28s; }
.thanhTab.mo .khungTab{ clip-path:inset(0 0 0 0 round 12px); visibility:visible; pointer-events:auto; transition:clip-path .28s ease, visibility 0s; }
.thanhTab.mo .vachTab{ opacity:0; pointer-events:none; }
.tabBv{ border-left:4px solid var(--mauTab, var(--line2)) !important; flex:none; display:flex; align-items:center; gap:4px; max-width:230px; height:30px; padding:0 4px 0 12px;
  border:1px solid var(--line2); border-radius:9px; background:var(--panel); color:var(--ink2); font-size:12.5px; font-weight:600; cursor:pointer; user-select:none; }
.tabBv:hover{ border-color:var(--line); background:#fff; }
.tabBv.on{ background:#fff; border-color:var(--orange); color:var(--orange-dk); box-shadow:0 0 0 2px var(--orange-glow); }
.tabTen{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tabBv.on .tabTen{ cursor:text; }
.tabNhap{ width:170px; min-width:0; border:1px solid var(--orange); border-radius:6px; padding:2px 6px; font:600 12.5px var(--font); color:var(--ink); outline:none; box-shadow:0 0 0 2px var(--orange-glow); }
.tabDong{ flex:none; width:22px; height:22px; border:0; border-radius:6px; background:transparent; color:var(--muted); cursor:pointer; font-size:11px; }
.tabDong:hover{ background:#fde8e7; color:#d23a34; }
.tabMoi, .tabKho{ flex:none; height:30px; border:1px dashed var(--line); border-radius:9px; background:transparent; color:var(--ink2); cursor:pointer; font:600 12.5px var(--font); padding:0 10px; }
.tabMoi{ width:34px; padding:0; font-size:16px; }
.tabMoi:hover, .tabKho:hover{ border-color:var(--orange); color:var(--orange-dk); background:var(--orange-soft); }
.tabKho{ margin-left:auto; display:inline-flex; align-items:center; gap:6px; }
.tabKho svg{ width:16px; height:16px; }
.nut[data-lenh="toanMan"].on{ color:var(--orange-dk); border-color:var(--orange); }
/* ⭐ 27/11 khung NHẮC mở toàn màn hình — dưới nút, mũi tên chỉ lên đúng nút (--muiX do JS tính), hiện dần + nhún nhẹ. */
.nhacTM{ position:fixed; z-index:120; display:flex; align-items:center; gap:8px; max-width:min(340px, calc(100vw - 16px));
  padding:7px 12px; border-radius:9px; background:var(--orange); color:#fff; font-size:12.5px; line-height:1.4; white-space:nowrap; cursor:default;
  box-shadow:0 8px 24px rgba(216,112,8,.35); opacity:0; transform:translateY(6px); transition:opacity .25s ease, transform .25s ease; pointer-events:auto; }
.nhacTM.hien{ opacity:1; transform:translateY(0); }
.nhacTM::before{ content:''; position:absolute; top:-6px; left:calc(var(--muiX, 50%) - 7px); width:14px; height:14px; background:var(--orange); transform:rotate(45deg); border-radius:2px; }
.nhacTM-chu{ position:relative; }
.nhacTM kbd{ display:inline-block; padding:0 5px; border-radius:4px; background:rgba(255,255,255,.22); font:700 11.5px var(--font); }
.nhacTM-x{ position:relative; flex:none; width:22px; height:22px; border:0; border-radius:6px; background:rgba(255,255,255,.18); color:#fff; cursor:pointer; font-size:11px; }
.nhacTM-x:hover{ background:rgba(255,255,255,.32); }
@keyframes nhacTM-nhun{ 0%, 100%{ transform:translateY(0); } 50%{ transform:translateY(-4px); } }
@media (prefers-reduced-motion:reduce){ .nhacTM.hien{ animation:none; } }

.hopThoai.hopNho{ width:min(460px, 100%); }
.hopThoai.hopKho{ width:min(680px, 100%); }
.htChu{ margin:0; font-size:14px; line-height:1.55; color:var(--ink2); }
.htNhan{ font-size:12px; font-weight:600; color:var(--muted); }
.htGhi{ font-size:12.5px; color:var(--muted); }
.htChan{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; padding:0 16px 16px; }
.nutLink{ border:0; background:none; padding:0; color:var(--orange-dk); font:inherit; font-weight:600; text-decoration:underline; cursor:pointer; }
.nhapSU{ display:flex; flex-direction:column; gap:8px; }

.khoBv{ display:flex; flex-direction:column; gap:10px; min-height:0; }
.khoTren{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.khoTren .khoTim{ flex:1 1 200px; }
.khoDs{ display:flex; flex-direction:column; gap:6px; max-height:min(52vh, 460px); overflow-y:auto; overscroll-behavior:contain; }
.khoDong{ display:flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid var(--line2); border-radius:10px; background:#fff; }
.khoDong.dangMo{ border-color:var(--orange); background:var(--orange-soft); }
.khoTen{ flex:1; min-width:0; display:flex; flex-direction:column; }
.khoTen b{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.khoTen small{ color:var(--muted); font-size:11.5px; }
.khoDong .nutChu{ padding:5px 10px; }
.khoTrong{ padding:18px; text-align:center; color:var(--muted); font-size:13px; }
@media (max-width:760px){
  .tabBv{ max-width:150px; }
  .tabKho{ width:34px; padding:0; justify-content:center; }
  .tabKho span{ display:none; }
  .khoDong{ flex-wrap:wrap; }
  .khoTen{ flex-basis:100%; }
}

/* ---------------- 26/11: bảng trái của tool chép từ plugin (ve/su/cong-cu.js — ui_rows) ----------------
   ⭐ 27/11 (bồ tèo gửi ảnh panel plugin — ui_panel.rb / ui_theme.rb):
   • KHÔNG khung, KHÔNG tiêu đề: mỗi KHỐI dòng một mảng nền bo góc 4 px riêng, chữ 12 px một dòng, khung tự giãn
     theo dòng dài nhất (tối đa ~440 px);
   • "Nền đậm bảng cài đặt" (cờ chung isHUM_ui/panel_bg ⇒ class .nenDam): BẬT = BG_DARK (242,245,250 · 252/255) gần
     như đục, chữ nổi hẳn; TẮT = BG_LIGHT trắng 120/255 — nhìn XUYÊN mô hình phía sau;
   • chữ TEXT xanh dương đậm (21,86,150), rê = cam isHUM (216,112,8); công tắc = chấm tròn trên rãnh mảnh:
     bật = chấm xanh dương đậm bên phải, tắt = chấm xám nhạt (183,189,199) bên trái. */
#bangSU{ width:auto; min-width:0; max-width:min(440px, calc(100% - 24px)); background:transparent; border:0; box-shadow:none; border-radius:0; font-size:12px; }
#bangSU .btThan{ padding:0; gap:7px; scrollbar-width:thin; }
#bangSU .btNhom{ display:flex; flex-direction:column; gap:0; background:rgba(255,255,255,.47); border-radius:4px; padding:4px 0; }
#bangSU.nenDam .btNhom{ background:rgba(242,245,250,.99); }
#bangSU .btO{ gap:16px; min-height:24px; padding:0 12px; cursor:pointer; }
#bangSU .btNhan{ white-space:nowrap; color:#155696; font-size:12px; line-height:1.25; }
#bangSU .btO:hover .btNhan{ color:#d87008; }
#bangSU .btTieu{ padding:3px 12px 1px; font-size:11.5px; color:#7c8ea4; text-transform:none; letter-spacing:0; font-weight:400; white-space:nowrap; }
#bangSU .btNgan{ display:none; }
/* số: chữ xanh canh phải, không viền — rê / gõ mới hiện ô */
#bangSU .btO input[data-so]{ width:60px; text-align:right; border:1px solid transparent; background:transparent; border-radius:4px; padding:1px 3px; font:12px var(--font); color:#155696; }
#bangSU .btO:hover input[data-so]{ border-color:#d6dae1; background:#fff; color:#d87008; }
#bangSU .btO input[data-so]:focus{ border-color:#d87008; background:#fff; color:#155696; outline:none; }
/* lựa chọn: chữ canh phải, bấm để đổi (y plugin) */
#bangSU .btChon{ border:0; background:transparent; padding:1px 0; font:12px var(--font); color:#155696; cursor:pointer; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:right; }
#bangSU .btO:hover .btChon{ color:#d87008; }
#bangSU .btGiaTri{ font-style:normal; color:#b7bdc7; font-size:12px; width:auto; white-space:nowrap; text-align:right; }
/* công tắc: rãnh mảnh + chấm tròn */
#bangSU .btO input.btGat{ -webkit-appearance:none; appearance:none; flex:none; width:24px; height:12px; margin:0 2px 0 0; border:0; border-radius:0; background:linear-gradient(#d6dae1, #d6dae1) center/100% 2px no-repeat; position:relative; cursor:pointer; }
#bangSU .btO input.btGat::after{ content:''; position:absolute; top:1px; left:0; width:10px; height:10px; border-radius:50%; background:#b7bdc7; transition:transform .15s, background .15s; }
#bangSU .btO input.btGat:checked::after{ transform:translateX(14px); background:#155696; }
#bangSU .btO:hover input.btGat::after{ background:#d87008; }
#bangSU .btO input.btGat:focus-visible{ outline:2px solid rgba(216,112,8,.4); outline-offset:2px; }
@media (max-width:760px){ #bangSU .btNhan{ white-space:normal; } }

/* ⭐ NÚT [?] HƯỚNG DẪN — GÓC DƯỚI PHẢI khung vẽ (bồ tèo 27/11), kiểu nút help plugin: vuông bo, nền trắng, viền + chữ xanh. */
.nutHD{ position:absolute; right:12px; bottom:14px; z-index:6; display:none; width:30px; height:30px; padding:0; border:1.5px solid #155696; border-radius:6px;
  background:rgba(255,255,255,.92); color:#155696; font:700 15px var(--font); cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.nutHD.hien{ display:block; }
.nutHD:hover{ border-color:#d87008; color:#d87008; }

/* ⭐ KIỂU CÀI ĐẶT ĐÃ LƯU — GÓC PHẢI TRÊN (y ui_draw_presets plugin): nút "Lưu kiểu cài đặt" + dưới là danh sách tên CANH
   PHẢI, bút ✎ sát mép phải. Không chọn = chữ trơn; ĐANG CHỌN = tên + thẻ sau bút màu CAM (còn y kiểu) / XÁM (đã lệch). */
.bangKieu{ position:absolute; right:12px; top:12px; z-index:6; display:none; flex-direction:column; align-items:flex-end; gap:6px; max-width:min(260px, 45%); font-size:12px; }
.bangKieu.hien{ display:flex; }
.duongNhom.hien ~ .bangKieu{ top:56px; }
.bkLuu{ border:1px solid #b2b8c2; background:rgba(255,255,255,.91); border-radius:5px; padding:6px 14px; font:600 12.5px var(--font); color:#155696; cursor:pointer; white-space:nowrap; }
.bkLuu:hover{ border-color:#d87008; color:#d87008; }
.bkDs{ display:flex; flex-direction:column; align-items:flex-end; }
.bkDong{ display:flex; align-items:center; gap:6px; min-height:24px; }
.bkTen{ color:#155696; cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:200px; text-shadow:0 0 3px #fff, 0 0 2px #fff; }
.bkTen:hover{ color:#d87008; }
.bkBut{ border:0; background:transparent; color:#b7bdc7; cursor:pointer; font-size:12px; width:22px; height:18px; border-radius:4px; padding:0; position:relative; }
.bkBut:hover{ color:#d87008; }
.bkDong.chon .bkTen{ color:#d87008; }
.bkDong.chon .bkBut{ background:#d87008; color:#fff; clip-path:polygon(28% 0, 100% 0, 100% 100%, 28% 100%, 0 50%); padding-left:5px; width:26px; }
.bkDong.chon.lech .bkTen{ color:#68707c; }
.bkDong.chon.lech .bkBut{ background:#68707c; }
.bkMenu{ display:flex; flex-direction:column; gap:5px; padding:7px; margin:2px 0 4px; background:rgba(255,255,255,.97); border:1px solid #d6dae1; border-radius:6px; box-shadow:0 4px 14px rgba(0,0,0,.12); }
.bkNhap{ border:1px solid #d6dae1; border-radius:4px; padding:4px 6px; font:12px var(--font); color:#155696; outline:none; }
.bkNhap:focus{ border-color:#d87008; }
.bkHang{ display:flex; gap:4px; }
.bkHang button{ border:1px solid #d6dae1; background:#fff; border-radius:4px; padding:3px 8px; font:12px var(--font); color:#155696; cursor:pointer; white-space:nowrap; }
.bkHang button:hover{ border-color:#d87008; color:#d87008; }
.bkHang button.xoa:hover{ border-color:#dc2626; color:#dc2626; }

/* ---------------- THANH TIẾN TRÌNH tác vụ nặng (ve/ban.js) ----------------
   Hiện dần SAU 0,25 s (tác vụ nhanh không nháy). ⛔ Chỉ animate transform/opacity: luồng chính đang
   bận tính toán thì chỉ compositor còn chạy — animate width/left/background-position là đứng hình. */
#banNang{
  position:fixed; inset:0; z-index:9000; display:none;
  background:rgba(243,245,248,.0); cursor:progress;
}
#banNang.bat{ display:block; }
#banNang .bnThe{
  position:absolute; left:50%; top:176px; width:min(340px, calc(100vw - 32px));
  transform:translateX(-50%); opacity:0; will-change:opacity;
  padding:12px 14px 11px; border-radius:var(--r); background:var(--card);
  border:1px solid var(--line2); box-shadow:var(--shadow-lg);
}
#banNang.bat .bnThe{ animation:bnHien .2s ease-out .25s forwards; }
#banNang .bnChu{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--ink); }
#banNang .bnNhan{ font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#banNang .bnXoay{
  flex:none; width:16px; height:16px; border-radius:50%;
  border:2px solid var(--orange-soft); border-top-color:var(--orange);
  will-change:transform; animation:bnXoay .8s linear infinite;
}
#banNang .bnVach{ position:relative; height:5px; margin-top:10px; border-radius:3px; background:var(--orange-soft); overflow:hidden; }
#banNang .bnVach i{
  position:absolute; left:0; top:0; bottom:0; width:38%; border-radius:3px;
  background:linear-gradient(90deg, rgba(217,119,87,.25), var(--orange) 45%, rgba(217,119,87,.25));
  will-change:transform; animation:bnChay 1.15s cubic-bezier(.45,.05,.55,.95) infinite;
}
#banNang .bnPhu{ margin-top:7px; font-size:11.5px; color:var(--muted); }
@keyframes bnHien{ from{ opacity:0; } to{ opacity:1; } }
@keyframes bnXoay{ to{ transform:rotate(360deg); } }
@keyframes bnChay{ from{ transform:translateX(-105%); } to{ transform:translateX(270%); } }
@media (prefers-reduced-motion: reduce){
  #banNang .bnVach i{ animation-duration:2.4s; }
  #banNang .bnXoay{ animation-duration:1.6s; }
}

/* Tiếp xúc tấm (ve/tiep-xuc.js) — chú giải góc dưới phải khung nhìn */
.txChuGiai{position:absolute;right:12px;bottom:12px;z-index:5;background:rgba(255,255,255,.94);border:1px solid #d6dde5;border-radius:10px;
  padding:8px 11px;font-size:12px;color:#2c3744;box-shadow:0 4px 14px rgba(20,30,45,.12);pointer-events:none;line-height:1.55;max-width:250px}
.txChuGiai .txMs{color:#8b97a4;font-weight:400;margin-left:4px}
.txChuGiai i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:6px;vertical-align:-1px;opacity:.85}
.txChuGiai div b{float:right;margin-left:14px}
.txChuGiai .txNhac{color:#8b97a4;font-size:11px;margin-top:3px}
.txChuGiai .txMat{pointer-events:auto;border:1px solid #d6dde5;background:#fff;color:#8b97a4;border-radius:6px;width:22px;height:20px;
  padding:0;margin-left:6px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;vertical-align:-4px}
.txChuGiai .txMat:hover{border-color:#e0242a;color:#e0242a}
.txChuGiai .txMat.on{background:#fdecec;border-color:#e0242a;color:#e0242a}
@media (max-width:640px){.txChuGiai{right:6px;bottom:6px;font-size:11px}}

/* =====================================================================
   MẪU CHUNG "CHỌN LOẠI RỒI ÁP" (ve/bang-loai.js) — Dán cạnh · Bản lề · Tiết diện · Giao nhau · Liên kết · LED.
   Thanh trên (tiêu đề + công tắc | nút giữa | ⚙ Cài đặt) · danh sách loại trái · [?] góc dưới phải · ngăn cài đặt trượt phải.
   ===================================================================== */
.blGoc{ display:none; }
.blGoc.hien{ display:block; }
.blThanh{ position:absolute; left:10px; right:10px; top:10px; z-index:7; display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px;
  background:rgba(255,255,255,.95); border:1px solid var(--line2); border-radius:12px; padding:5px 6px 5px 12px; box-shadow:var(--shadow-lg);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); transition:right .28s cubic-bezier(.2,.8,.2,1); }
.blGoc.keoMo .blThanh{ right:min(652px, calc(100% - 160px)); }
.blTrai{ flex:1 1 0; min-width:max-content; display:flex; align-items:center; gap:10px; }
.blTieuDe{ font:800 13px var(--font); letter-spacing:.06em; color:var(--ink); white-space:nowrap; padding-right:10px; border-right:2px solid var(--orange); }
.blCongTac{ display:flex; gap:6px; flex-wrap:wrap; }
.blCt{ display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line2); background:#fff; color:var(--ink2); font:600 11.5px var(--font);
  padding:4px 9px 4px 6px; border-radius:999px; cursor:pointer; white-space:nowrap; }
.blCt i{ width:24px; height:14px; border-radius:7px; background:#cfd6de; position:relative; transition:background .15s; flex:none; }
.blCt i::after{ content:""; position:absolute; left:2px; top:2px; width:10px; height:10px; border-radius:50%; background:#fff; transition:left .15s; box-shadow:0 1px 2px rgba(0,0,0,.2); }
.blCt.on{ border-color:var(--orange); color:var(--orange-dk); background:var(--orange-soft); }
.blCt.on i{ background:var(--orange); }
.blCt.on i::after{ left:12px; }
.blGiua{ flex:none; display:flex; gap:4px; padding:3px; background:var(--bg); border-radius:10px; }
.blNut{ border:0; background:transparent; color:var(--ink2); font:700 12.5px var(--font); padding:7px 14px; border-radius:8px; cursor:pointer; white-space:nowrap; letter-spacing:.02em; }
.blNut:hover{ background:#fff; color:var(--orange-dk); }
.blNut.chinh{ background:var(--orange); color:#fff; box-shadow:0 2px 10px var(--orange-glow); }
.blNut.chinh:hover{ background:var(--orange-dk); color:#fff; }
.blNut:disabled{ opacity:.45; cursor:default; }
.blPhai{ flex:1 1 0; min-width:max-content; display:flex; justify-content:flex-end; }
.blNutCai{ display:inline-flex; align-items:center; gap:6px; border:1px solid #bcd0ea; background:#eef4fc; color:#155696; font:700 12px var(--font);
  padding:6px 12px 6px 9px; border-radius:9px; cursor:pointer; }
.blNutCai svg{ width:17px; height:17px; }
.blNutCai:hover, .blGoc.keoMo .blNutCai{ background:#155696; color:#fff; border-color:#155696; }
/* Danh sách loại bên trái */
.blDs{ position:absolute; left:10px; top:62px; z-index:6; width:232px; max-height:calc(100% - 120px); overflow:auto; display:flex; flex-direction:column; gap:3px;
  padding:6px; background:rgba(255,255,255,.9); border:1px solid var(--line2); border-radius:12px; box-shadow:var(--shadow); }
.blMuc{ display:flex; align-items:center; gap:8px; padding:6px 8px 6px 9px; border-radius:8px; cursor:pointer; font-size:12.5px; color:var(--ink2);
  border-left:3px solid transparent; background:#f7f8fa; }
.blMuc:hover{ background:#fff; color:var(--orange-dk); }
.blMuc.on{ background:#fff4e8; border-left-color:var(--orange); color:var(--orange-dk); font-weight:700; }
.blMuc.thut{ margin-left:12px; }
.blO{ width:13px; height:13px; border-radius:3px; flex:none; background:#ccc; box-shadow:inset 0 0 0 1px rgba(0,0,0,.18); }
.blO.anh{ width:26px; height:20px; background-size:cover; background-position:center; }
.blTen{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.blPhu{ font-size:11px; color:var(--muted); white-space:nowrap; font-weight:600; }
.blThe{ font:800 9.5px var(--font); color:#155696; background:#e7f0fb; border-radius:4px; padding:1px 4px; }
.blNhom{ display:flex; align-items:center; gap:7px; padding:5px 8px; margin-top:4px; border-radius:7px; background:#dce9f6; color:#1d3d5e; font:700 11.5px var(--font); cursor:pointer; }
.blNhom:first-child{ margin-top:0; }
.blNhom i{ font-style:normal; font-size:9px; width:10px; }
.blNhom span{ flex:1; }
.blNhom b{ font-size:10.5px; color:#4f6b88; }
.blRong{ font-size:12px; color:var(--muted); padding:8px; line-height:1.5; }
/* [?] góc dưới phải */
.blHoi{ position:absolute; right:12px; bottom:14px; z-index:7; width:30px; height:30px; padding:0; border:1.5px solid #155696; border-radius:7px;
  background:rgba(255,255,255,.95); color:#155696; font:800 15px var(--font); cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,.08); transition:right .28s cubic-bezier(.2,.8,.2,1); }
.blHoi:hover{ border-color:#d87008; color:#d87008; }
.blGoc.keoMo .blHoi{ right:min(652px, calc(100% - 160px)); }
/* Ngăn cài đặt trượt từ phải */
.blKeo{ position:absolute; top:0; right:0; bottom:0; z-index:9; width:min(640px, calc(100% - 160px)); min-width:320px; display:flex; flex-direction:column;
  background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-left:1px solid var(--line2); box-shadow:-18px 0 40px rgba(44,55,68,.16);
  transform:translateX(105%); transition:transform .3s cubic-bezier(.2,.8,.2,1); visibility:hidden; }
.blKeo.mo{ transform:none; visibility:visible; }
.blKeoDau{ display:flex; align-items:center; gap:8px; padding:14px 14px 12px 18px; border-bottom:1px solid var(--line2);
  background:linear-gradient(90deg, var(--orange-soft), #fff 70%); }
.blKeoTieu{ flex:1; font:800 15px var(--font); color:var(--ink); }
.blKeoTieu::before{ content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--orange); margin-right:9px; vertical-align:2px; box-shadow:0 0 0 4px var(--orange-glow); }
.blKeoHoi, .blKeoDong{ width:30px; height:30px; border-radius:8px; border:1px solid var(--line2); background:#fff; cursor:pointer; font:800 14px var(--font); color:var(--ink2); }
.blKeoHoi{ color:#155696; border-color:#bcd0ea; }
.blKeoHoi:hover, .blKeoDong:hover{ border-color:var(--orange); color:var(--orange-dk); }
.blKeoThan{ flex:1; overflow:auto; padding:12px 14px 40px 14px; }
.blKhoi{ background:#fff; border:1px solid var(--line2); border-radius:12px; padding:12px 14px 10px; margin-bottom:12px; box-shadow:0 1px 2px rgba(44,55,68,.04); }
.blKhoi h4{ margin:0 0 4px; font:800 12.5px var(--font); color:#155696; text-transform:uppercase; letter-spacing:.05em; }
.blMoTa{ margin:0 0 8px; font-size:11.5px; color:var(--muted); line-height:1.45; }
.blHang{ display:flex; align-items:center; gap:8px; padding:5px 0; font-size:12.5px; color:var(--ink2); min-height:30px; position:relative; }
.blHang + .blHang{ border-top:1px dashed var(--line2); }
.blNhan{ flex:1; min-width:0; }
.blSo, .blChu, .blChon{ border:1px solid var(--line); border-radius:7px; padding:5px 7px; font:600 12.5px var(--font); color:var(--ink); background:#fff; }
.blSo{ width:78px; text-align:right; }
.blSo.ngan{ width:60px; }
.blChu{ width:170px; }
.blChon{ max-width:190px; }
.blSo:focus, .blChu:focus, .blChon:focus{ outline:none; border-color:var(--orange); box-shadow:0 0 0 3px var(--orange-glow); }
.blDon{ font-size:11px; color:var(--muted); font-weight:700; min-width:18px; }
.blTich{ cursor:pointer; }
.blTich input{ position:absolute; opacity:0; pointer-events:none; }
.blSw{ width:30px; height:17px; border-radius:9px; background:#cfd6de; position:relative; flex:none; transition:background .15s; }
.blSw::after{ content:""; position:absolute; left:2px; top:2px; width:13px; height:13px; border-radius:50%; background:#fff; transition:left .15s; box-shadow:0 1px 2px rgba(0,0,0,.2); }
.blTich input:checked + .blSw{ background:var(--orange); }
.blTich input:checked + .blSw::after{ left:15px; }
.blTich input:focus-visible + .blSw{ box-shadow:0 0 0 3px var(--orange-glow); }
.blVien{ display:inline-flex; gap:2px; padding:2px; background:var(--bg); border-radius:8px; }
.blVien button{ border:0; background:transparent; font:700 11.5px var(--font); color:var(--ink2); padding:5px 10px; border-radius:6px; cursor:pointer; }
.blVien button.on{ background:#fff; color:var(--orange-dk); box-shadow:inset 0 0 0 1.2px var(--orange); }
.blThanhNut{ display:flex; gap:6px; flex-wrap:wrap; margin:4px 0 6px; }
.blNutNho{ border:1px solid var(--line); background:#fff; color:var(--ink2); font:700 11.5px var(--font); padding:5px 10px; border-radius:7px; cursor:pointer; white-space:nowrap; }
.blNutNho:hover{ border-color:var(--orange); color:var(--orange-dk); }
.blNutNho.chinh{ background:var(--orange); border-color:var(--orange); color:#fff; }
.blNutNho.chinh:hover{ background:var(--orange-dk); }
/* thẻ một loại (bảng nẹp …) */
.blDsThe{ display:flex; flex-direction:column; gap:7px; margin-top:6px; }
.blTheNep{ border:1px solid var(--line2); border-radius:10px; padding:7px 8px; background:#fbfcfd; border-left:3px solid transparent; }
.blTheNep.on{ border-left-color:var(--orange); background:#fffaf5; }
.blTheNep.tat{ opacity:.55; }
.blTheHang{ display:flex; align-items:center; gap:7px; }
.blTheHang.luoi{ flex-wrap:wrap; gap:5px 6px; margin-top:6px; padding-left:4px; }
.blTheHang input[type=color]{ width:26px; height:24px; padding:0; border:1px solid var(--line); border-radius:6px; background:#fff; cursor:pointer; }
.blTheHang .blChu{ flex:1; width:auto; min-width:0; }
.blO2{ display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--muted); font-weight:700; }
.blO2 .blSo{ width:56px; padding:3px 5px; font-size:12px; }
.blO2 .blChon{ padding:3px 2px; font-size:12px; width:104px; }
.blO2.tem{ flex:1 1 0; min-width:124px; }
.blO2.tem .blChon{ flex:1 1 0; width:0; min-width:0; max-width:none; }
.blO2 .blSo::placeholder{ color:#b6bec8; font-weight:500; }
.blO2 i{ font-style:normal; font-weight:600; }
.blO2.vat{ color:var(--ink2); cursor:pointer; }
.blXoa{ width:26px; height:24px; border:1px solid var(--line2); background:#fff; color:#b33; border-radius:6px; cursor:pointer; font-weight:800; }
.blXoa:hover{ border-color:#d33; background:#fdecec; }
/* Hộp hỏi */
.blHoiNen{ position:fixed; inset:0; z-index:200; background:rgba(28,36,46,.28); display:flex; align-items:center; justify-content:center; backdrop-filter:blur(2px); }
.blHoiHop{ width:min(420px, calc(100% - 32px)); background:#fff; border-radius:14px; padding:18px 18px 14px; box-shadow:0 24px 60px rgba(20,30,45,.28); border-top:4px solid var(--orange); }
.blHoiHop h4{ margin:0 0 8px; font:800 15px var(--font); color:var(--ink); }
.blHoiHop p{ margin:0 0 16px; font-size:13px; line-height:1.55; color:var(--ink2); }
.blHoiNut{ display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.blHoiNut button{ border:1px solid var(--line); background:#fff; color:var(--ink2); font:700 12.5px var(--font); padding:8px 14px; border-radius:9px; cursor:pointer; }
.blHoiNut button.chinh{ background:var(--orange); border-color:var(--orange); color:#fff; }
.blHoiNut button:hover{ border-color:var(--orange-dk); }
@media (max-width:760px){
  .blDs{ width:180px; }
  .blKeo{ width:100%; min-width:0; }
  .blGoc.keoMo .blThanh, .blGoc.keoMo .blHoi{ right:10px; }
}

/* Ô trượt + kiểu hiển thị nẹp dựng sẵn (Dán cạnh › Hiển thị) */
.blTruot{ flex:0 0 132px; accent-color:var(--orange); cursor:pointer; }
.blTruotSo{ min-width:52px; text-align:right; font:700 11.5px var(--font); color:var(--ink); }
.blKieuVe{ display:grid; grid-template-columns:repeat(auto-fill, minmax(128px, 1fr)); gap:6px; margin:6px 0 8px; }
.blKieuNut{ display:flex; align-items:center; gap:8px; border:1px solid var(--line2); background:#fff; border-radius:9px; padding:7px 9px; cursor:pointer;
  font:700 11.5px var(--font); color:var(--ink2); text-align:left; }
.blKieuNut:hover{ border-color:var(--orange); color:var(--orange-dk); }
.blKieuNut.on{ border-color:var(--orange); background:var(--orange-soft); color:var(--orange-dk); box-shadow:0 2px 8px var(--orange-glow); }
.blKieuMau{ flex:none; width:30px; height:18px; border-radius:4px; background:#e9e4dc; position:relative; overflow:hidden; box-shadow:inset 0 0 0 1px rgba(0,0,0,.18); }
.blKieuMau::after{ content:""; position:absolute; left:0; right:0; top:0; bottom:0; }
.blKieuMau.ruc::after{ background:#ff1a1a; }
.blKieuMau.diu::after{ background:#ee6a6a; opacity:.85; top:2px; bottom:2px; left:2px; right:2px; }
.blKieuMau.nhat::after{ background:#f2a9a9; opacity:.7; top:3px; bottom:3px; left:3px; right:3px; }
.blKieuMau.manh::after{ background:#f04a4a; top:7px; bottom:7px; }
.blKieuMau.vien::after{ border:3px solid #f02a2a; }
.blNhanNho{ margin:8px 0 2px; font:800 11px var(--font); color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.blKieuMau.day::after{ background:#e85a5a; }
.blKieuMau.soc::after{ background:#e85a5a; top:3px; bottom:3px; left:3px; right:3px; }
.blKieuMau.tuy::after{ background:repeating-linear-gradient(45deg, #f08a5a 0 4px, #fff 4px 7px); opacity:.8; }

/* Thẻ TIẾN TRÌNH / KẾT QUẢ (mẫu chung bang-loai.js) — giữa dưới khung vẽ */
.blTT{ position:absolute; left:50%; bottom:18px; z-index:8; width:min(400px, calc(100% - 120px)); transform:translate(-50%, 14px); opacity:0; pointer-events:none;
  background:rgba(255,255,255,.97); border:1px solid var(--line2); border-radius:14px; box-shadow:0 18px 44px rgba(20,30,45,.2); padding:12px 14px 10px;
  transition:opacity .18s, transform .22s cubic-bezier(.2,.8,.2,1); border-top:3px solid var(--orange); }
.blTT.hien{ opacity:1; transform:translate(-50%, 0); pointer-events:auto; }
.blTT.kq{ border-top-color:#22a447; }
.blTT.kq.loi{ border-top-color:#e8833a; }
.blTheDau{ display:flex; align-items:center; gap:8px; }
.blTheTieu{ flex:1; font:800 13px var(--font); color:var(--ink); }
.blTheDau1{ width:20px; height:20px; border-radius:50%; background:#22a447; color:#fff; font:800 12px/20px var(--font); text-align:center; font-style:normal; flex:none; }
.blTT.loi .blTheDau1{ background:#e8833a; }
.blTheDong, .blTheDung{ border:1px solid var(--line2); background:#fff; color:var(--ink2); border-radius:7px; cursor:pointer; font:700 11.5px var(--font); }
.blTheDong{ width:24px; height:24px; padding:0; }
.blTheDung{ padding:4px 10px; }
.blTheDong:hover, .blTheDung:hover{ border-color:var(--orange); color:var(--orange-dk); }
.blXoay{ width:16px; height:16px; border-radius:50%; border:2.5px solid #f3d6c8; border-top-color:var(--orange); animation:blXoay .8s linear infinite; flex:none; }
@keyframes blXoay{ to{ transform:rotate(360deg); } }
.blVach{ height:8px; border-radius:4px; background:#eef1f5; overflow:hidden; margin:10px 0 6px; }
.blVach i{ display:block; height:100%; background:linear-gradient(90deg, var(--orange), #f0a070); transform-origin:left; transform:scaleX(.02); transition:transform .15s; border-radius:4px; }
.blThePhu{ font:600 11.5px var(--font); color:var(--muted); }
.blTheBang{ margin:8px 0 2px; display:flex; flex-direction:column; gap:2px; }
.blTheDong1{ display:flex; align-items:baseline; gap:10px; font-size:12.5px; color:var(--ink2); padding:3px 0; }
.blTheDong1 + .blTheDong1{ border-top:1px dashed var(--line2); }
.blTheNhan{ flex:1; }
.blTheGia{ font-weight:800; color:var(--ink); white-space:nowrap; }
.blTheDong1.tot .blTheGia{ color:#1c8a3c; }
.blTheDong1.canh .blTheGia{ color:#c86a1a; }
.blThePhu2{ font-size:11.5px; color:var(--muted); margin:-2px 0 3px; line-height:1.4; }
.blTheNhac{ margin-top:6px; padding:7px 9px; border-radius:8px; background:#fff7ec; color:#8a5a1a; font-size:12px; line-height:1.45; }
.blTheChan{ display:flex; align-items:center; gap:8px; margin-top:8px; font-size:11px; color:var(--muted); }
.blTheChan span{ flex:1; }

/* =====================================================================
   TÀI KHOẢN VẼ ONLINE (ve/may-chu.js) — nút trên thanh đầu + màn chắn đăng nhập / thiếu quyền
   ===================================================================== */
.mcChip{ display:inline-flex; align-items:center; gap:7px; height:28px; padding:0 10px 0 3px; margin:0 6px 0 0; flex:none; align-self:center; border-radius:999px;
  border:1px solid var(--line2); background:#fff; color:var(--ink2); font:700 12px var(--font); cursor:pointer; white-space:nowrap; }
.mcChip:hover{ border-color:var(--orange); color:var(--orange-dk); }
.mcAvt{ width:20px; height:20px; border-radius:50%; background:var(--orange); color:#fff; font:800 11px/20px var(--font); text-align:center; font-style:normal; flex:none; }
.mcChip.ok .mcAvt{ background:#22a447; }
.mcChip.thu .mcAvt{ background:#1f6fff; }
.mcChip.khoa{ border-color:#f0b4a0; background:#fff6f2; color:#b3441f; }
.mcChan{ position:fixed; inset:0; z-index:300; display:none; align-items:center; justify-content:center; padding:16px;
  background:radial-gradient(circle at 30% 20%, rgba(217,119,87,.18), transparent 55%), rgba(28,36,46,.52); backdrop-filter:blur(5px); }
.mcChan.hien{ display:flex; }
.mcHop{ width:min(430px, 100%); background:#fff; border-radius:18px; padding:24px 24px 18px; box-shadow:0 30px 80px rgba(15,25,40,.35); border-top:5px solid var(--orange); }
.mcLogo{ font:800 12px var(--font); letter-spacing:.12em; text-transform:uppercase; color:var(--orange-dk); margin-bottom:6px; }
.mcHop h3{ margin:0 0 8px; font:800 19px var(--font); color:var(--ink); }
.mcHop p{ margin:0 0 14px; font-size:13.5px; line-height:1.55; color:var(--ink2); }
.mcBang{ border:1px solid var(--line2); border-radius:12px; overflow:hidden; margin:4px 0 10px; }
.mcDong{ display:flex; justify-content:space-between; gap:10px; padding:9px 12px; font-size:13px; color:var(--ink2); }
.mcDong + .mcDong{ border-top:1px solid var(--line2); }
.mcDong b{ font-weight:800; }
.mcDong.con b{ color:#1c8a3c; }
.mcDong.het b{ color:#c0392b; }
.mcEmail{ font-size:12px; color:var(--muted); margin-bottom:12px; }
.mcNut{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; margin-top:6px; }
.mcNut button{ border:1px solid var(--line); background:#fff; color:var(--ink2); font:700 13px var(--font); padding:9px 14px; border-radius:10px; cursor:pointer; }
.mcNut button.chinh{ background:var(--orange); border-color:var(--orange); color:#fff; }
.mcNut button:hover{ border-color:var(--orange-dk); }
@media (max-width:760px){ .mcChip span{ display:none; } .mcChip{ padding:0 4px; } }
