:root {
  --pri: #c8102e; --pri-d: #9e0c24; --pri-l: #fdecef;
  --bg: #f4f5f7; --card: #ffffff; --text: #1d2129; --muted: #6b7280; --line: #e5e7eb;
  --ok: #15803d; --ok-l: #dcfce7; --warn: #b45309; --warn-l: #fef3c7; --err: #b91c1c; --err-l: #fee2e2; --info-l: #e0ecff; --info: #1d4ed8;
  --r: 12px; --sh: 0 1px 3px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--pri); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 40px; text-align: center; color: var(--muted); }

/* Khung */
.top { position: sticky; top: 0; z-index: 20; background: var(--pri); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.top-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; cursor: pointer; }
.brand img { height: 38px; width: auto; background: #fff; border-radius: 8px; padding: 3px; }
.brand b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 4px; }
.nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; opacity: .85; white-space: nowrap; }
.nav a.on, .nav a:hover { background: rgba(255,255,255,.18); opacity: 1; }
.main { max-width: 1200px; margin: 0 auto; padding: 16px 16px 90px; }
.bnav { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .bnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bnav a { flex: 1; text-align: center; padding: 7px 0 6px; font-size: 11.5px; color: var(--muted); text-decoration: none; }
  .bnav a i { display: block; font-style: normal; font-size: 20px; line-height: 1.2; }
  .bnav a.on { color: var(--pri); font-weight: 600; }
  .main { padding: 12px 12px 90px; }
}

/* Thành phần */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; margin-bottom: 14px; }
.card h2, .card h3 { margin: 0 0 10px; }
h1 { font-size: 22px; margin: 4px 0 14px; }
h2 { font-size: 18px; } h3 { font-size: 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; min-width: 160px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 9px; cursor: pointer; text-decoration: none; color: var(--text); white-space: nowrap; }
.btn:hover { border-color: #c9ccd1; }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.pri:hover { background: var(--pri-d); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--err); }
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 7px; }
.btn:disabled { opacity: .55; cursor: default; }
input[type=text], input[type=password], input[type=number], input[type=tel], input[type=url], input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-l); }
textarea { min-height: 90px; resize: vertical; }
label.f { display: block; margin-bottom: 10px; }
label.f > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.chk { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; cursor: pointer; }
.chk input { margin-top: 4px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #eef0f3; color: #374151; white-space: nowrap; }
.tag.ok { background: var(--ok-l); color: var(--ok); } .tag.warn { background: var(--warn-l); color: var(--warn); }
.tag.err { background: var(--err-l); color: var(--err); } .tag.info { background: var(--info-l); color: var(--info); } .tag.pri { background: var(--pri-l); color: var(--pri); }
.note { padding: 10px 12px; border-radius: 9px; background: var(--info-l); color: #1e3a8a; font-size: 14px; margin: 8px 0; }
.note.warn { background: var(--warn-l); color: #7c2d12; } .note.err { background: var(--err-l); color: #7f1d1d; } .note.ok { background: var(--ok-l); color: #14532d; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tbl-wrap { overflow-x: auto; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.tabs a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); white-space: nowrap; font-size: 14px; }
.tabs a.on { background: var(--pri); border-color: var(--pri); color: #fff; }

/* Đăng nhập */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(135deg, var(--pri), var(--pri-d)); }
.login .card { width: 100%; max-width: 380px; text-align: center; padding: 26px; }
.login img { max-height: 80px; margin-bottom: 8px; }
.login img.applogo { max-height: 150px; max-width: 100%; }
.login form { text-align: left; margin-top: 14px; }

/* Trang chủ */
.hero { background: linear-gradient(135deg, var(--pri), var(--pri-d)); color: #fff; border-radius: var(--r); padding: 22px; margin-bottom: 14px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero img.logo { height: 84px; background: #fff; border-radius: 12px; padding: 6px; }
.hero h1 { margin: 0; font-size: 24px; } .hero p { margin: 4px 0 0; opacity: .92; }
.contact { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.contact a, .contact div { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: #fafafa; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.contact i { font-style: normal; font-size: 20px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 14px; cursor: pointer; }
.stat b { display: block; font-size: 26px; color: var(--pri); }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gallery figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: #eee; aspect-ratio: 4/3; cursor: zoom-in; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 12.5px; }
.honor-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.honor-grid .h { background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.honor-grid .h img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; cursor: zoom-in; background: #eee; }
.honor-grid .h div { padding: 8px 10px; font-size: 13.5px; }

/* Nguồn hàng */
.search { display: flex; gap: 8px; margin-bottom: 10px; }
.search input { font-size: 16px; padding: 11px 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.filters select { width: auto; min-width: 120px; padding: 7px 10px; font-size: 14px; }
.understood { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lst { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
@media (max-width: 420px) { .lst { grid-template-columns: 1fr; } }
.item { background: #fff; border-radius: var(--r); box-shadow: var(--sh); display: flex; gap: 10px; padding: 10px; cursor: pointer; border: 1px solid transparent; }
.item:hover { border-color: var(--pri-l); }
.item .th { width: 92px; height: 92px; border-radius: 9px; background: #eef0f3 center/cover no-repeat; flex: none; display: grid; place-items: center; color: #9aa0a6; font-size: 26px; }
.item .bd { min-width: 0; flex: 1; }
.item .t1 { font-weight: 700; font-size: 15px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.item .price { color: var(--pri); font-weight: 700; }
.item .meta { font-size: 13px; color: var(--muted); }
.item .ex { font-size: 13px; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.item.sold { opacity: .6; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 16px 0; align-items: center; }

/* Hộp thoại */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow-y: auto; }
.modal .box { background: #fff; border-radius: 14px; width: 100%; max-width: 760px; padding: 18px; position: relative; }
.modal .x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.photos { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin: 10px 0; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.content { white-space: pre-wrap; background: #fafafa; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 14.5px; max-height: 360px; overflow-y: auto; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 10px; font-size: 14.5px; margin: 8px 0; }
.kv > div:nth-child(odd) { color: var(--muted); }
.viewer { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: grid; place-items: center; cursor: zoom-out; }
.viewer img { max-width: 96vw; max-height: 92vh; }

#toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
#toast div { background: #111827; color: #fff; padding: 9px 16px; border-radius: 9px; font-size: 14px; box-shadow: var(--sh); max-width: 90vw; }
#toast div.err { background: var(--err); }

/* Quản trị */
.qr { text-align: center; }
.qr img { width: 260px; height: 260px; border: 1px solid var(--line); border-radius: 12px; }
.editor { position: relative; user-select: none; touch-action: none; background: #eee; border-radius: 8px; overflow: hidden; }
.editor > img { display: block; width: 100%; }
.editor .el { position: absolute; border: 2px dashed rgba(255,255,255,.95); outline: 1px dashed rgba(0,0,0,.6); cursor: move; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px #000; background: rgba(0,0,0,.12); }
.editor .el.circle { border-radius: 50%; }
.editor .el.on { border-color: #ffd400; background: rgba(255,212,0,.18); }
.editor .el .rz { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: #ffd400; border: 2px solid #000; border-radius: 3px; cursor: nwse-resize; }
.preview-img { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #eee; min-height: 120px; }
.photo-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photo-list .p { background: #fafafa; border: 1px solid var(--line); border-radius: 9px; padding: 6px; font-size: 13px; }
.photo-list .p .im { aspect-ratio: 1; border-radius: 6px; background: #e5e7eb center/cover no-repeat; display: grid; place-items: center; color: #9aa0a6; cursor: pointer; font-size: 12px; text-align: center; }
.honor-row { display: grid; grid-template-columns: 160px 1fr; gap: 14px; }
.honor-row img { width: 100%; border-radius: 8px; cursor: zoom-in; background: #eee; }
@media (max-width: 560px) { .honor-row { grid-template-columns: 1fr; } .kv { grid-template-columns: 105px 1fr; } }
.log { font-size: 13.5px; } .log div { padding: 5px 0; border-bottom: 1px solid var(--line); }

/* Chỉnh khung ảnh tròn */
.fr-wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin: 10px 0; }
.fr-stage { position: relative; background-size: 100% 100%; overflow: hidden; touch-action: none; cursor: move; border-radius: 6px; flex: none; }
.fr-ring { position: absolute; border-radius: 50%; border: 2px solid #ffd54a; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); pointer-events: none; }
.fr-prev { border-radius: 50%; background-repeat: no-repeat; border: 3px solid #e3c06b; }

/* Đăng bài */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line, #d9dce3); background: #fff; color: inherit; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--pri, #1d3f9e); border-color: var(--pri, #1d3f9e); color: #fff; }
.steps { margin: 10px 0 0; padding-left: 22px; line-height: 1.6; }
.steps li { margin-bottom: 8px; }
details summary { cursor: pointer; color: var(--pri, #1d3f9e); }

/* Vinh danh: chế độ, tin nhóm báo chốt */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.seg label { border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: block; }
.seg label.on { border-color: var(--pri); background: var(--pri-l); }
.seg input { margin-right: 6px; }
.seg small { display: block; color: var(--muted); margin-top: 3px; }
.tabs.big a { font-size: 15px; padding: 10px 14px; }
.msg-text { white-space: pre-wrap; margin-top: 6px; font-size: 14px; max-height: 220px; overflow: auto; }
@media (max-width: 560px) { .seg { grid-template-columns: 1fr; } }

/* Vinh danh: bảng kiểm soát */
.live { font-size: 13px; padding: 5px 10px 5px 22px; border-radius: 999px; position: relative; background: var(--ok-l); color: var(--ok); }
.live::before { content: ''; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: currentColor; }
.live.on::before { animation: blink 1.6s infinite; }
.live.off { background: var(--err-l); color: var(--err); }
@keyframes blink { 50% { opacity: .2; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.stats .stat { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 12px 14px; display: flex; flex-direction: column; }
.stats .stat b { font-size: 26px; }
.stats .stat.alert { outline: 2px solid var(--err); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
.chips a.chip { text-decoration: none; }
.bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); opacity: .6; }
.bulk.on { opacity: 1; background: var(--info-l); position: sticky; top: 60px; z-index: 5; }
table.ctl td { vertical-align: top; }
table.ctl input:not([type=checkbox]) { padding: 5px 7px; font-size: 13.5px; min-width: 0; }
table.ctl tr.todo { background: #fff7e6; }
table.ctl tr.done { opacity: .75; }
.msgcell { white-space: pre-wrap; max-width: 300px; max-height: 120px; overflow: auto; }
.nowrap { white-space: nowrap; }
.tag.new { background: #ffedd5; color: #c2410c; font-weight: 600; }
input.warnin { border-color: #f59e0b !important; background: #fffbeb; }
.act { font-size: 13.5px; line-height: 1.7; max-height: 260px; overflow: auto; }

/* Cần bạn duyệt */
.nbadge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-style: normal; }
.bnav .nbadge { position: absolute; margin: -2px 0 0 -6px; }
.bnav a { position: relative; }
.pend-banner { display: block; max-width: 1100px; margin: 12px auto 0; padding: 10px 14px; border-radius: 10px; background: #fef3c7; color: #92400e; text-decoration: none; border: 1px solid #fcd34d; font-size: 14.5px; }
.pend-banner:hover { background: #fde68a; }
.card.review { border: 2px solid #f59e0b; background: #fffdf5; }
.rv { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rv img { width: 100%; border-radius: 8px; cursor: zoom-in; }
.rv[data-n="2"] { grid-template-columns: 200px 1fr; } .rv[data-n="3"], .rv[data-n="4"] { grid-template-columns: 260px 1fr; }
.rvimgs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-self: start; }
.why { margin: 4px 0 4px 18px; color: #b45309; font-size: 13.5px; }
@media (max-width: 560px) { .rv { grid-template-columns: 70px 1fr; } }

/* Nhắc up hàng */
.seg.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 700px) { .seg.three { grid-template-columns: 1fr; } }
.glist { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.glist .chk { margin: 4px 0; }
.tag.rent { background: #e0f2fe; color: #0369a1; }
.tag.sale { background: #fef3c7; color: #92400e; }

/* Trang chủ: tình hình nguồn hàng */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.kpis > div { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.kpis b { font-size: 24px; color: var(--pri); }
.kpis span { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .kpis { grid-template-columns: 1fr 1fr; } }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.green { background: #22c55e; } .dot.yellow { background: #f59e0b; } .dot.gray { background: #cbd5e1; } .dot.red { background: #ef4444; }
/* Thanh tài khoản đang dùng */
.connbar { background: #fff; border-bottom: 1px solid #e5e7eb; font-size: 12.5px; }
.connbar:empty { display: none; }
.connbar { display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; justify-content: center; padding: 5px 12px; }
.connbar a, .connbar span { color: inherit; text-decoration: none; white-space: nowrap; }
.connbar a:hover { text-decoration: underline; }
.connbar .sep { display: inline-block; width: 1px; height: 12px; background: #d1d5db; margin: 0 10px; }
.connbar .cerr { color: #dc2626; font-weight: 600; } .connbar .cwarn { color: #b45309; font-weight: 600; }
.formtpl { white-space: pre-wrap; background: #fff; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 8px; margin: 6px 0; font: 12.5px/1.5 inherit; font-family: inherit; }
.photos.sm { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
/* Số chủ nhà + bảng telesale */
.ownbox { margin-top: 12px; border: 1px solid #fde68a; background: #fffbeb; border-radius: 10px; padding: 10px; }
.olist { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.orow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border-radius: 8px; padding: 6px 8px; border: 1px solid #f1f5f9; }
.orow.sai { opacity: .55; } .orow.sai .ph { text-decoration: line-through; }
.orow.dung { border-color: #86efac; }
.orow .ph { font-weight: 700; text-decoration: none; white-space: nowrap; }
table.tele td { vertical-align: top; } table.tele select { width: auto; }
.tth { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tth.e { background: #f1f5f9; font-size: 22px; }
.nowrap { white-space: nowrap; }
tr.muted td { opacity: .55; }
/* Chọn ảnh + người nhận Zalo */
.photos.pick .pimg { position: relative; cursor: pointer; border-radius: 8px; outline: 3px solid transparent; opacity: .4; }
.photos.pick .pimg.on { outline-color: var(--pri); opacity: 1; }
.photos.pick .pimg img { cursor: pointer; display: block; }
.photos.pick .pimg b { position: absolute; top: 3px; right: 3px; background: var(--pri); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 11px; display: none; align-items: center; justify-content: center; }
.photos.pick .pimg.on b { display: flex; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { border: 1px solid #d1d5db; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.chip.on { background: var(--pri); color: #fff; border-color: var(--pri); }
.glist.zl { max-height: 340px; overflow: auto; margin-top: 8px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 4px 8px; }
.zrow { align-items: center; } .zrow img, .zrow i { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; font-style: normal; background: #f1f5f9; }
.seg.mini { display: inline-flex; gap: 4px; } .seg.mini label { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }

/* Reels */
.reel-row { display: grid; grid-template-columns: 170px 1fr; gap: 14px; }
.reel-vid video { width: 100%; max-height: 300px; border-radius: 8px; background: #000; }
@media (max-width: 560px) { .reel-row { grid-template-columns: 1fr; } }
button:disabled { opacity: .5; cursor: not-allowed; }
/* Đăng nhập: báo lỗi ngay dưới ô (sai mật khẩu, còn mấy lần, bị khóa) */
.lerr { color: var(--err); font-size: 14px; min-height: 4px; margin: 6px 0; font-weight: 600; }
/* Căn nhân viên đánh dấu: căn hot / giá tốt */
.tag.mk { background: #ffedd5; color: #c2410c; font-weight: 600; }
.tabs a.mtab b { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 999px; background: #ffedd5; color: #c2410c; font-size: 12px; text-align: center; }
.tabs a.mtab.on b { background: #fff; }
.mkrow { align-items: center; gap: 6px; margin: 8px 0 4px; }
.btn.mkb.on { background: #ffedd5; border-color: #f97316; color: #c2410c; font-weight: 600; }
.meta.mkby { color: #c2410c; }
/* Thanh menu dưới (điện thoại): nhiều mục thì chữ nhỏ lại cho vừa 1 dòng */
@media (max-width: 760px) { .bnav.many a { font-size: 10px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; } .bnav.many a i { font-size: 18px; } }
/* Ô link gửi nhân viên (tab Tài khoản) */
.linkbox { margin-top: 10px; padding: 10px; border: 1px dashed var(--pri); border-radius: 10px; background: var(--pri-l); }
.linkbox input[readonly] { background: #fff; }
