:root {
  --nen: #f5f6f8; --the: #fff; --chu: #1f2430; --mo: #6b7280; --vien: #e2e5ea;
  --chinh: #e85d1a; --chinh-nhat: #fdebe1; --chon: #f59e0b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--nen); color: var(--chu); display: flex; flex-direction: column; overflow: hidden; }
button { font: inherit; cursor: pointer; border: 1px solid var(--vien); background: var(--the); color: var(--chu); border-radius: 8px; padding: 7px 11px; }
button:hover { border-color: var(--chinh); }
input { font: inherit; }
h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--mo); margin: 14px 0 8px; }

.thanh { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--the); border-bottom: 1px solid var(--vien); flex-wrap: wrap; }
.ten-app { color: var(--chinh); font-size: 17px; }
.che { display: flex; border: 1px solid var(--vien); border-radius: 9px; overflow: hidden; }
.che button { border: 0; border-radius: 0; padding: 7px 14px; }
.che button.on { background: var(--chinh); color: #fff; }
.mb { font-size: 14px; color: var(--mo); }
.mb input { width: 58px; padding: 5px 6px; border: 1px solid var(--vien); border-radius: 6px; }
.phu { margin-left: auto; }

.bo-cuc { flex: 1; display: grid; grid-template-columns: 190px minmax(0, 1fr) 280px; min-height: 0; }
.trai, .phai { background: var(--the); overflow-y: auto; padding: 4px 14px 16px; }
.trai { border-right: 1px solid var(--vien); }
.phai { border-left: 1px solid var(--vien); }
.ds-loai { display: grid; gap: 6px; }
.ds-loai button { text-align: left; }

.canh { position: relative; min-height: 0; touch-action: none; }
.canh canvas { display: block; }
.lop-nhan { position: absolute; inset: 0; pointer-events: none; }
.nhan { font-size: 11px; font-weight: 600; background: rgba(31,36,48,.78); color: #fff; padding: 2px 6px; border-radius: 5px; white-space: nowrap; display: none; }
.che-plan .nhan { display: block; }
.nhan.dang-chon { background: var(--chon); color: #1f2430; }

#thuoc-tinh h3 { color: var(--chinh); font-size: 15px; text-transform: none; letter-spacing: 0; }
.o-ts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.o-ts label { font-size: 13px; color: var(--mo); display: grid; gap: 3px; }
.o-ts span { display: flex; align-items: center; border: 1px solid var(--vien); border-radius: 7px; padding-right: 7px; background: #fff; }
.o-ts input { width: 100%; min-width: 0; border: 0; padding: 7px 8px; background: transparent; font-size: 15px; color: var(--chu); }
.o-ts select { width: 100%; border: 0; padding: 7px 6px; background: transparent; font: inherit; font-size: 15px; color: var(--chu); }
/* Bảng nổi khi chọn hạng mục: gõ kích thước + xoay ngay trên khung 3D */
.thanh-chon { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3; width: min(560px, calc(100% - 16px)); background: rgba(255,255,255,.95); padding: 8px 10px; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.22); }
.thanh-chon[hidden], .bao[hidden] { display: none; }
.tc-dau { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--chinh); font-size: 14px; }
.tc-dau button { border: 0; padding: 2px 8px; }
.tc-ts { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.tc-ts label { font-size: 11px; }
.tc-ts input, .tc-ts select { padding: 5px 6px; font-size: 15px; }
.tc-nut { display: flex; gap: 5px; margin-top: 7px; align-items: center; flex-wrap: wrap; }
.tc-nut button { white-space: nowrap; padding: 6px 9px; }
.tc-goc { display: flex; align-items: center; gap: 2px; border: 1px solid var(--vien); border-radius: 8px; padding: 0 6px; background: #fff; font-size: 14px; }
.tc-goc input { width: 46px; border: 0; padding: 6px 2px; font-size: 15px; text-align: right; }
.thanh-chon .xoa { margin-left: auto; }
.thanh-chon .xoa, .ds-item [data-xoa] { color: #b42318; }
.bao { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; align-items: center; background: #1f2430; color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 24px); }
.bao button { background: transparent; color: #fdba74; border-color: #fdba74; padding: 4px 10px; }
.canh.dang-tha::after { content: "Thả ảnh KV lên hạng mục"; position: absolute; inset: 8px; border: 3px dashed var(--chinh); border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: var(--chinh); background: rgba(232,93,26,.08); pointer-events: none; }
.trai .nut-file { display: block; text-align: center; }
.nut-ai { background: linear-gradient(90deg, #6d28d9, #e85d1a); color: #fff; border: 0; font-weight: 700; }
.nut-ai:disabled { opacity: .6; cursor: wait; }
/* Bảng duyệt kết quả Claude đọc bản vẽ */
.duyet { position: fixed; inset: 0; z-index: 20; background: rgba(15,17,22,.55); display: grid; place-items: center; padding: 12px; }
.duyet[hidden] { display: none; }
.duyet-hop { background: #fff; border-radius: 14px; width: min(640px, 100%); max-height: calc(100vh - 24px); overflow: auto; padding: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.3); font-size: 14px; }
.duyet-hop h2 { margin: 0 0 6px; font-size: 18px; color: var(--chinh); }
.duyet-hop .ghi { background: #fff6e5; color: #7a4a00; border-radius: 8px; padding: 8px 10px; margin: 8px 0; font-size: 13px; }
.duyet-hop table td:first-child { width: 28px; }
.duyet-hop table td:nth-child(2) { text-align: left; }
.duyet-hop td small { display: block; color: var(--mo); }
.duyet-nut { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.duyet-nut label { margin-right: auto; font-size: 13px; color: var(--mo); }
.duyet-nut .chinh { background: var(--chinh); color: #fff; border-color: var(--chinh); font-weight: 700; }
.nen-o[hidden], #nen-trang[hidden] { display: none; }
#nen-trang { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#nen-trang button { padding: 4px 8px; font-size: 12px; }
.ds-trang { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.ds-trang button { display: grid; gap: 4px; padding: 6px; background: #f3f4f6; justify-items: center; }
.ds-trang button:hover { border-color: var(--chinh); background: var(--chinh-nhat); }
.ds-trang canvas { width: 100%; height: auto; min-height: 80px; background: #fff; border: 1px solid var(--vien); }
.ds-trang span { font-size: 12px; color: var(--mo); }
.nen-o { display: grid; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--mo); }
.nen-o label { display: grid; gap: 3px; }
.nen-o input[type=number] { width: 70px; padding: 5px 6px; border: 1px solid var(--vien); border-radius: 6px; }
.nen-o .xoa { color: #b42318; }
.ds-item { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.ds-item li { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 9px; border: 1px solid var(--vien); border-radius: 8px; cursor: pointer; font-size: 13px; }
.ds-item li.on { border-color: var(--chon); background: #fff8e8; }
.ds-item span { flex: 1; min-width: 0; }
.ds-item small { display: block; color: var(--mo); font-size: 11px; }
.ds-item button { padding: 2px 8px; border: 0; background: transparent; font-size: 14px; }
.kv { margin-top: 12px; border: 1px solid var(--vien); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.kv p { margin: 6px 0; }
.kv .ok { color: #067647; font-weight: 600; }
.kv .bad { color: #b42318; font-weight: 600; }
.nut-file { border: 1px solid var(--vien); border-radius: 8px; padding: 7px 11px; cursor: pointer; background: var(--chinh-nhat); color: var(--chinh); font-weight: 600; }
/* 🚶 Đi trong sự kiện: khung 3D phủ cả màn hình, có nút thoát + cần điều khiển trên điện thoại */
.nut-pov { background: #0f766e; color: #fff; border-color: #0f766e; font-weight: 600; }
.pov-o { display: none; }
.che-pov .canh { position: fixed; inset: 0; z-index: 15; height: auto; background: #000; }
.che-pov .pov-o { display: block; }
.che-pov .thanh-chon { display: none; }
.pov-tren { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5; display: flex; gap: 8px; align-items: center; }
.pov-goi-y { margin-right: auto; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.pov-tren button { background: rgba(255,255,255,.92); }
.pov-goi-y .dt { display: none; }
.can-dieu { position: absolute; left: 22px; bottom: 28px; z-index: 5; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.45); display: none; place-items: center; touch-action: none; }
.nut-cd { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.75); pointer-events: none; }
@media (pointer: coarse) {
  .can-dieu { display: grid; }
  .pov-goi-y .pc { display: none; }
  .pov-goi-y .dt { display: inline; }
}
.nut-render.on { background: #111; color: #fde68a; border-color: #111; }
.render-that .nhan, .render-that .nhan-do { display: none !important; }
.nut-hc.on { background: linear-gradient(90deg, #6d28d9, #e85d1a); color: #fff; border-color: transparent; }
.che button:disabled { opacity: .4; cursor: default; }
.nut-khoa.on, .nut-khoa-1.on { background: #b45309; color: #fff; border-color: #b45309; }
#nut-do.on { background: var(--chinh); color: #fff; border-color: var(--chinh); }
.dang-do .canh { cursor: crosshair; }
.nhan-do { font-size: 12px; font-weight: 700; background: var(--chinh); color: #fff; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.canh-bao { margin-top: 12px; background: #fdecec; border: 1px solid #f5b5b5; color: #8f1d1d; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.canh-bao ul { margin: 4px 0 0; padding-left: 18px; }
.o-ts i { font-style: normal; font-size: 12px; color: var(--mo); }
.vi-tri { font-size: 13px; color: var(--mo); margin: 10px 0 6px; }
.nut-hang { display: flex; gap: 6px; flex-wrap: wrap; }
.nut-hang .xoa { color: #b42318; }
.tam { font-size: 12px; color: #a15c00; background: #fff6e5; border-radius: 6px; padding: 6px 8px; margin-top: 10px; }
.goi-y { font-size: 13px; color: var(--mo); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 6px 4px; border-bottom: 1px solid var(--vien); text-align: left; }
th { color: var(--mo); font-weight: 600; }
td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; }

/* Điện thoại: khung 3D ở trên, bảng điều khiển cuộn ở dưới */
@media (max-width: 760px) {
  body { overflow: auto; height: auto; min-height: 100%; }
  .thanh { gap: 8px; padding: 8px 12px; }
  .phu { margin-left: 0; }
  .bo-cuc { display: flex; flex-direction: column; }
  .canh { height: 58vh; order: 1; }
  .trai { order: 2; border-right: 0; border-top: 1px solid var(--vien); }
  .ds-loai { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .phai { order: 3; border-left: 0; border-top: 1px solid var(--vien); }
  .o-ts input { font-size: 16px; } /* tránh iOS tự phóng to khi gõ */
}

/* 🎪 Mẫu sự kiện */
.nut-mau { background: var(--chinh-nhat); color: var(--chinh); border-color: #f6c4a8; font-weight: 600; }
.ds-mau { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.the-mau { border: 1px solid var(--vien); border-radius: 12px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.the-mau .hinh-mau { font-size: 34px; line-height: 1; }
.the-mau b { font-size: 15px; }
.the-mau p { margin: 0; font-size: 13px; color: var(--mo); }
.the-mau .chinh { background: var(--chinh); color: #fff; border-color: var(--chinh); font-weight: 700; }
.che-pov .bao { top: 58px; }

/* 🎨 KV chung */
.kv-ds { display: grid; gap: 6px; margin-bottom: 8px; }
.kv-the { display: grid; grid-template-columns: 54px 1fr auto; gap: 8px; align-items: center; border: 1px solid var(--vien); border-radius: 8px; padding: 4px; cursor: pointer; font-size: 12px; }
.kv-the.on { border-color: var(--chinh); background: var(--chinh-nhat); }
.kv-the img { width: 54px; height: 36px; object-fit: cover; border-radius: 4px; display: block; }
.kv-the small { display: block; color: var(--mo); }
.kv-the button { border: 0; background: none; color: #b42318; padding: 2px 6px; }
.kv-ap { width: 100%; margin-top: 6px; }
.kv-ap[hidden] { display: none; }
.kv .nut-hang button.on { background: var(--chinh); color: #fff; border-color: var(--chinh); }

/* 🔗 Gửi khách xem + chế độ khách xem (?xem=mã) */
.nut-chia { background: #0f766e; color: #fff; border-color: #0f766e; font-weight: 600; }
.o-link { display: flex; gap: 6px; margin: 10px 0; }
.o-link input { flex: 1; min-width: 0; font-size: 14px; }
.chi-xem { display: none; }
.che-xem .chi-sua, .che-xem .trai, .che-xem .phai, .che-xem .thanh-chon { display: none !important; }
.che-xem .chi-xem { display: inline-flex; }
.che-xem .bo-cuc { grid-template-columns: minmax(0, 1fr); }
.xem-kv { gap: 6px; align-items: center; }
.xem-kv select { max-width: 180px; }
@media (max-width: 760px) { .che-xem .canh { height: calc(100vh - 150px); } }

.o-ten { display: grid; gap: 4px; font-size: 13px; margin: 8px 0; }
.o-ten input { font-size: 15px; padding: 8px; }
.kv-kieu { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
/* Hướng giãn khi đổi kích thước */
.o-gian { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 13px; color: var(--mo); flex-wrap: wrap; }
.o-gian select { flex: 1 1 120px; min-width: 0; border: 1px solid var(--vien); border-radius: 7px; padding: 5px 4px; background: #fff; font: inherit; font-size: 13px; color: var(--chu); }

/* Đặt hạng mục: bấm nút rồi bấm vào sàn */
.ds-loai button.on { background: var(--chinh); color: #fff; border-color: var(--chinh); }
.dang-dat .canh canvas { cursor: crosshair; }
/* 06/11: màu hạng mục, màu/chữ KV mẫu, quy cách sửa tay */
.o-mau, .o-qc, .o-kvmau { margin-top: 12px; border: 1px solid var(--vien); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.o-kvmau { margin: 8px 0 0; padding: 6px 8px; }
.hang-mau { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.hang-mau label { display: block; width: 30px; height: 30px; border-radius: 6px; overflow: hidden; border: 1px solid var(--vien); cursor: pointer; }
.hang-mau input[type=color] { width: 44px; height: 44px; margin: -7px; border: 0; padding: 0; cursor: pointer; background: none; }
.hang-mau button { font-size: 12px; }
.o-kvmau label { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.o-kvmau label input[type=text] { flex: 1; min-width: 0; }
.qc-ds { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.qc-dong { border: 1px solid var(--vien); border-radius: 6px; padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.qc-dong.da-sua { background: #fff7d6; border-color: #f5c542; }
.qc-dong input { font-size: 12px; padding: 3px 5px; box-sizing: border-box; min-width: 0; }
.qc-dong > input { width: 100%; }
.qc-so { display: flex; gap: 4px; align-items: center; }
.qc-so input[data-f=sl] { flex: 1 1 60px; } .qc-so input[data-f=dv] { flex: 0 1 70px; }
.qc-so button { padding: 2px 7px; font-size: 12px; }

/* ✨ Ảnh siêu thực: thanh tiến độ nổi đáy khung 3D */
.anh-that-o { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  background: rgba(17, 17, 20, .86); color: #fde68a; padding: 8px 12px; border-radius: 10px; font-size: 13px; max-width: calc(100% - 32px); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.anh-that-o[hidden] { display: none; }
.anh-that-thanh { width: 140px; height: 6px; background: #3a3b40; border-radius: 3px; overflow: hidden; }
.anh-that-thanh i { display: block; height: 100%; width: 0; background: #fbbf24; transition: width .3s; }
.anh-that-o button { background: #fbbf24; color: #111; border: 0; border-radius: 6px; padding: 5px 10px; font-weight: 600; cursor: pointer; }
.anh-that-o button[data-l="tat"] { background: #3a3b40; color: #eee; }
.nut-anh-that { background: linear-gradient(90deg, #fde68a, #fbbf24); border-color: #f59e0b; }

/* 💡 Bảng Ánh sáng + 🔗 Nhóm (06/11) */
.nut-den.on { background: #fde68a; border-color: #f59e0b; }
.o-den { position: absolute; top: 10px; right: 10px; z-index: 4; width: min(300px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow: auto; background: rgba(255,255,255,.96); padding: 10px 12px; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.25); font-size: 14px; }
.o-den[hidden], .o-gop[hidden] { display: none; }
.den-dong { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 4px; font-weight: 600; }
.den-dong small { font-weight: 400; color: #6b7280; }
.den-bat { min-width: 84px; padding: 4px 10px; border-radius: 999px; background: #e5e7eb; color: #374151; border: 0; }
.den-bat.on { background: #f59e0b; color: #fff; }
.den-mau { display: flex; flex-wrap: wrap; gap: 6px; }
.den-mau button { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d1d5db; }
.den-mau button.on { box-shadow: 0 0 0 3px #f59e0b; }
.o-gop { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; width: max-content; max-width: calc(100% - 20px); background: #ecfdf5; border: 2px solid #22c55e; padding: 8px 12px; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.2); font-size: 14px; }
.o-gop .chinh { background: #16a34a; color: #fff; border-color: #16a34a; }
.o-gop .chinh:disabled { opacity: .5; }
.o-nhom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; }
.o-nhom.co { background: #ecfdf5; border: 1px solid #86efac; border-radius: 10px; padding: 6px 8px; }
.o-nhom input[type=text] { flex: 1 1 110px; min-width: 0; font-weight: 600; color: #166534; border: 1px solid transparent; background: transparent; padding: 3px 4px; border-radius: 6px; }
.o-nhom input[type=text]:focus { border-color: #86efac; background: #fff; }
.o-nhom small { color: #166534; }
.o-nhom button { padding: 4px 8px; }
.o-nhom button.on { background: #fde68a; border-color: #f59e0b; }
.tag-nhom { font-style: normal; color: #15803d; }

/* 🪄 Thiết lập nhanh + 🤖 Ảnh AI (06/11) */
.nut-tl { background: linear-gradient(90deg, #0ea5e9, #6366f1); color: #fff; border-color: transparent; font-weight: 600; }
.nut-ai-anh { background: #111827; color: #fff; border-color: #111827; }
.tl-chao { align-items: center; margin: 6px 0 12px; }
.tl-o { display: grid; gap: 12px; margin: 10px 0; }
.tl-hang { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px; }
.tl-hang > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-hang input[type=number] { width: 140px; font-size: 18px; padding: 6px 8px; }
.tl-kieu button { text-align: left; }
.tl-kieu button.on, .tl-o .che button.on { background: var(--chinh, #e85d1a); color: #fff; border-color: transparent; }
.tl-them label { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.tl-mo { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; padding: 8px 10px; font-size: 14px; color: #075985; }
.ai-anh { width: 100%; max-height: 260px; object-fit: contain; background: #000; border-radius: 8px; }
.ai-buoc { margin: 8px 0; padding-left: 20px; font-size: 14px; }
.ai-loi { width: 100%; min-height: 150px; font: 12px/1.4 ui-monospace, Consolas, monospace; box-sizing: border-box; }
.nut-link { display: inline-block; padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 8px; text-decoration: none; color: inherit; background: #fff; }
@media (max-width: 760px) { .tl-hang { grid-template-columns: 1fr; } }
.xa-khung { position: relative; }
.xa-cho { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(0,0,0,.55); color: #fff; border-radius: 8px; text-align: center; }
.xa-quay { width: 38px; height: 38px; border: 4px solid rgba(255,255,255,.3); border-top-color: #f59e0b; border-radius: 50%; animation: xa-quay 1s linear infinite; }
@keyframes xa-quay { to { transform: rotate(360deg); } }
.xa-kq { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; background: #000; }
.xa-loi { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 10px 12px; }
.nut-link.chinh { background: var(--chinh, #e85d1a); color: #fff; border-color: transparent; }
.o-xuat { position: absolute; top: 10px; left: 10px; z-index: 4; width: min(250px, calc(100% - 20px)); background: rgba(255,255,255,.96); border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.25); padding: 8px; font-size: 13px; }
.o-xuat[hidden] { display: none; }
.ox-dau { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ox-dau button { border: 0; padding: 0 8px; }
.ox-dong { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-top: 1px solid #eee; }
.ox-dong img { width: 54px; height: 34px; object-fit: cover; border-radius: 4px; background: #000; }
.ox-dong span { flex: 1; }
.ox-dong button { padding: 3px 8px; }
.ox-dong .chinh { background: var(--chinh, #e85d1a); color: #fff; border-color: transparent; }

/* 👤 Tài khoản + dự án (06/11) */
.tk-o { position: relative; }
.tk-o[hidden], .o-dang-nhap[hidden], .tk-menu[hidden] { display: none; }
#tk-nut { display: inline-flex; align-items: center; gap: 6px; }
#tk-nut img { width: 24px; height: 24px; border-radius: 50%; }
#tk-nut small { color: #6b7280; font-size: 11px; }
.tk-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.2); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.tk-menu small { color: #6b7280; margin-bottom: 4px; }
.tk-menu button { text-align: left; }
.o-dang-nhap { position: fixed; inset: 0; z-index: 100; background: linear-gradient(135deg, #170a33, #5b21b6 55%, #f97316); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dn-hop { background: #fff; border-radius: 18px; padding: 28px 24px; width: min(420px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.dn-logo { font-size: 44px; }
.dn-hop h2 { margin: 6px 0 8px; color: var(--chinh, #e85d1a); }
.dn-google { display: flex; justify-content: center; margin: 16px 0 8px; min-height: 44px; }
.dn-thu { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.dn-loi { color: #b42318; min-height: 1em; }
.ds-du-an { list-style: none; padding: 0; margin: 8px 0; max-height: 60vh; overflow: auto; }
.ds-du-an li { display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid #eee; }
.ds-du-an li.on { background: #fff7ed; }
.ds-du-an li span { flex: 1; display: flex; flex-direction: column; }
.ds-du-an li small, .bang-tk small { color: #6b7280; display: block; }
.ds-du-an em { color: #c2410c; font-style: normal; font-size: 13px; }
.bang-tk { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 10px; }
.bang-tk td, .bang-tk th { border-bottom: 1px solid #eee; padding: 5px 6px; text-align: left; }
