/* nhanhieu.ai/app - màu do app.js đổ vào từ cấu hình khách (GET /app/api/cau-hinh) */
:root {
  /* Hệ giao diện chung iOS/Android/web (docs/thiet-ke/HE-GIAO-DIEN.md): bảng màu hệ thống iOS, sáng/tối theo máy.
     app.js chỉ đổ màu nhấn theo mau_chinh của khách, mỗi chế độ một bộ (--chinh-sang/-toi, --tren-chinh-sang/-toi, --nhan-chu-sang/-toi):
     màu chính gần trắng thì bản sáng là mau_dam, gần đen thì bản tối là mau_kem (HE-GIAO-DIEN mục 2). --chinh, --tren-chinh trỏ vào bộ của chế độ đang chạy.
     Nền nút, chip, công tắc là đúng --chinh (--nut-nhan chỉ là tên cũ của nó); chữ trên đó là --tren-chinh: trắng, chỉ đen khi trắng dưới 2:1. */
  color-scheme: light dark;
  --nen: #F2F2F7; --mat: #FFFFFF; --mat2: #F2F2F7; --lap: rgba(118,118,128,.12);
  --mat3: var(--lap); --mat-1: var(--mat); --mat-2: var(--mat2); --mat-3: var(--lap); --the: var(--mat);
  --chu: #000000; --chu-phu: rgba(60,60,67,.6); --chu-mo: rgba(60,60,67,.3);
  --vien: rgba(60,60,67,.29); --vien-sang: rgba(60,60,67,.29);
  --do: #FF3B30; --xanh-tot: #34C759; --cam: #FF9500;
  --cam-chu: #C93400;  /* chữ cam trên nền sáng: --cam chỉ chừng 2.2:1, chỉ dùng cho ô, chấm, nền (HE-GIAO-DIEN mục 2) */
  --xanh-chu: #248A3D;  /* chữ xanh trên nền sáng: systemGreen đậm cho đủ 4.5:1 */
  --thanh: rgba(249,249,249,.92);
  /* kính kiểu iOS 26 (HE-GIAO-DIEN mục 2, Nhật 10/11/2026): viên tab nổi và nút tròn thanh trên ở điện thoại (nen-tang.css).
     --kinh-dac thay --kinh khi trình duyệt không có backdrop-filter */
  --kinh: rgba(255,255,255,.6); --kinh-vien: rgba(255,255,255,.6); --kinh-chon: rgba(118,118,128,.14); --kinh-dac: rgba(255,255,255,.92);
  --chinh-sang: #FF2D8B; --chinh-toi: #FF2D8B; --tren-chinh-sang: #FFFFFF; --tren-chinh-toi: #FFFFFF;
  --chinh: var(--chinh-sang); --nhan: var(--chinh); --nut-nhan: var(--chinh); --nut-chinh: var(--nut-nhan); --tren-chinh: var(--tren-chinh-sang);  /* chữ trắng trên #FF2D8B 3.5:1, trên mức 2:1 nên giữ trắng */
  --nhan-chu-sang: #C2185B; --nhan-chu-toi: #FF78B5;
  --nhan-chu: var(--nhan-chu-sang); --chinh-chu: var(--nhan-chu); --vang: var(--nhan-chu); --vang-sang: var(--chu-phu);
  --tint: color-mix(in srgb, var(--chinh) 12%, var(--mat)); --dam: var(--tint);
  --bo-goc: 16px;
  --dh-cao: 56px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --nen: #000000; --mat: #1C1C1E; --mat2: #2C2C2E; --lap: rgba(118,118,128,.24);
    --chu: #FFFFFF; --chu-phu: rgba(235,235,245,.6); --chu-mo: rgba(235,235,245,.3);
    --vien: rgba(84,84,88,.6); --vien-sang: rgba(84,84,88,.6);
    --do: #FF453A; --xanh-tot: #30D158; --cam: #FF9F0A; --cam-chu: #FF9F0A;
    --xanh-chu: #30D158;
    --thanh: rgba(22,22,22,.9);
    --kinh: rgba(0,0,0,.45); --kinh-vien: rgba(255,255,255,.15); --kinh-chon: rgba(255,255,255,.14); --kinh-dac: rgba(0,0,0,.92);
    --nhan-chu: var(--nhan-chu-toi); --chinh: var(--chinh-toi); --tren-chinh: var(--tren-chinh-toi);
  }
}

/* Hồ sơ Mỏ Neo dạng file */
.l10-file-tools{margin:18px 0;padding:16px;border:1px solid var(--vien);border-radius:16px;background:var(--mat2)}
.l10-file-tools>p{margin:5px 0 12px;color:var(--chu-phu)}
.l10-file-tools>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.l10-file-fields{display:grid;gap:10px;margin:16px 0;max-height:48vh;overflow:auto}
.l10-file-fields article{padding:14px;border:1px solid var(--vien);border-radius:16px;background:var(--mat2)}
.l10-file-fields small{display:block;color:var(--chu-mo);font-weight:400;line-height:1.35}
.l10-file-fields p{margin:5px 0 0;color:var(--chu);line-height:1.55}
@media(max-width:599px){.l10-file-tools>div{grid-template-columns:1fr}}
* { box-sizing: border-box; }
.android-only { display: none !important; }
.nen-android .android-only { display: inline-flex !important; }
html, body { margin: 0; }
body {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  background: var(--nen); color: var(--chu);
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
small { font-size: 12px; }
svg { width: 22px; height: 22px; flex: none; }
p { margin: 0; }
h1, h2 { margin: 0; }

/* ---------- nút ---------- */
.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 400; font-size: 14px; cursor: pointer; background: none; color: var(--chu);
}
.nut span, .nut-noi span, .dh-nut span, .nut-tt span, .the-nhan span { line-height: 1; }
.nut-chinh { background: var(--chinh); color: var(--tren-chinh); }
.nut-vien { border-color: var(--vien); background: var(--mat); color: var(--chu); }
.nut-chu { color: var(--chu-phu); }
.nut-rong { width: 100%; }
.nut svg { width: 20px; height: 20px; }
.nut-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: none; color: var(--chu-phu); cursor: pointer; flex: none;
}
.nut-icon:hover, .nut-vien:hover { background: var(--mat2); }
:focus-visible { outline: 2px solid var(--chinh-chu); outline-offset: 2px; }

/* ---------- ô nhập ---------- */
.o-nhap {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--vien); background: var(--mat); color: var(--chu);
}
textarea.o-nhap { resize: none; line-height: 1.55; display: block; overflow: hidden; }
.o-nhap::placeholder, .o-soan::placeholder { color: var(--chu-phu); opacity: 1; }
.o-nhap:focus { border-color: var(--chinh-chu); outline: none; }
.nhan-o { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: var(--chu-phu); line-height: 1; letter-spacing: .01em; }
.icon-nho { width: 16px; height: 16px; }
.truong { display: flex; flex-direction: column; gap: 8px; }

/* ---------- đăng nhập ---------- */
.o-ma { font-size: 16px; letter-spacing: .12em; text-transform: uppercase; text-align: center; font-weight: 600; min-height: 56px; }
.dn-loi { color: var(--do); min-height: 22px; font-size: 14px; }

/* ---------- xác minh số bắt buộc ---------- */
.xac-minh-so { min-height: var(--cao, 100dvh); padding: max(28px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); display:grid; grid-template-columns:minmax(0,1fr); place-items:center; }
.xm-the { width:100%; min-width:0; max-width:420px; display:flex; flex-direction:column; gap:16px; padding:24px; border:1px solid var(--vien); border-radius:var(--bo-goc); background:var(--mat); box-shadow:0 20px 60px rgba(0,0,0,.3); }
.xm-the h1 { font-size:16px; line-height:1.25; }
.xm-mo-ta,.xm-rieng-tu { color:var(--chu-phu); }
.xm-rieng-tu { font-size:12px; line-height:1.55; }
.xm-rieng-tu a { color:var(--chinh-chu); }
.xm-ma { font-size:16px; letter-spacing:.18em; text-align:center; }
.xm-dang-xuat { align-self:center; font-size:12px; }
@media (max-width:390px) { .xm-the { padding:20px 16px; border-radius:16px; } .xm-the h1 { font-size:16px; } }

/* ---------- khung chung ---------- */
.khung.trai { min-height: var(--cao, 100dvh); padding-bottom: calc(var(--dh-cao) + 96px + env(safe-area-inset-bottom)); }


.dau-chu { flex: 1; min-width: 0; }
.dau-ten { font-weight: 600; font-size: 16px; line-height: 1.25; color: var(--chu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dau-phu { font-size: 12px; color: var(--chu-phu); line-height: 1.3; }
.dau-phu:empty { display: none; }
.avatar {
  width: 40px; height: 40px; border-radius: 999px; flex: none; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--chinh); color: var(--tren-chinh); font-weight: 400; font-size: 14px; line-height: 1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lon { width: 56px; height: 56px; font-size: 16px; }

.chuyen-kho { display: flex; gap: 4px; padding: 4px; margin-top: 10px; background: var(--mat); border: 1px solid var(--vien); border-radius: 999px; }
.chuyen-kho button {
  flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: none; color: var(--chu-phu);
  font-weight: 400; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.chuyen-kho button[aria-selected="true"] { background: var(--chinh); color: var(--tren-chinh); }

/* điều hướng: máy hẹp nằm đáy */





.noi-dung { padding: 14px 16px 0; }


.man-mo-ta { color: var(--chu-phu); font-size: 12px; margin: 4px 0 18px; }
.trang-luu { font-size: 12px; color: var(--chu-phu); white-space: nowrap; line-height: 1; }
.form { display: flex; flex-direction: column; gap: 18px; }

/* nút ghi nổi, trong tầm ngón cái phải */
.nut-noi {
  position: fixed; right: 16px; bottom: calc(var(--dh-cao) + 16px + env(safe-area-inset-bottom)); z-index: 11;
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 22px 0 18px;
  border: 0; border-radius: 16px; background: var(--chinh); color: var(--tren-chinh);
  font-weight: 400; font-size: 14px; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.nut-noi svg { width: 24px; height: 24px; }
.nut-ghi-rong { display: inline-flex; width: 100%; margin-top: 16px; }

/* ---------- màn ý tưởng ---------- */
.tim { position: relative; }
.tim-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--chu-phu); width: 20px; height: 20px; pointer-events: none; }
.o-tim { padding-left: 44px; border-radius: 999px; }
.loc { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.loc::-webkit-scrollbar { display: none; }
.the-nhan {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--vien);
  background: var(--mat); color: var(--chu); font-size: 14px; font-weight: 400; cursor: pointer; white-space: nowrap;
}
.the-nhan .so { color: var(--chu-phu); font-size: 12px; }
.the-nhan.dang-chon { background: var(--chinh); border-color: var(--chinh); color: var(--tren-chinh); }
.the-nhan.dang-chon .so { color: var(--tren-chinh); }
.loc .the-nhan { min-height: 44px; }
.loc-nhan { flex-wrap: wrap; overflow: visible; }

.ds-y { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.y { position: relative; border-radius: var(--bo-goc); overflow: hidden; background: var(--mat2); }
.y-nen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-weight: 400; font-size: 14px; }
.y-nen span { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.y-nen .v-giu { color: var(--nhan-chu); }
.y-nen .v-bo { color: var(--do); }
.y-the {
  position: relative; display: flex; gap: 8px; align-items: flex-start;
  background: var(--mat); border: 1px solid var(--vien); border-radius: var(--bo-goc);
  padding: 12px 6px 12px 14px; touch-action: pan-y; cursor: pointer; transition: transform .18s ease;
}
.y-the.dang-keo { transition: none; }
.y.dang-xem .y-the { border-color: var(--chinh-chu); }
.y-than { flex: 1; min-width: 0; }
.y-tieu-de { font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--chu); overflow-wrap: anywhere; }
.y-trich { color: var(--chu-phu); font-size: 14px; line-height: 1.45; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.y-gach { list-style: none; margin: 7px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.y-gach li { display: grid; grid-template-columns: 10px 1fr; gap: 7px; color: var(--chu); font-size: 14px; line-height: 1.45; }
.y-gach li::before { content: ""; width: 5px; height: 5px; margin-top: .58em; border-radius: 99px; background: var(--chinh-chu); }
.y-goc-chu { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--mat2); color: var(--chu); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
.y-goc { margin-top: 8px; border: 0; padding: 0; min-height: 28px; background: none; color: var(--chinh-chu); font: inherit; font-size: 12px; font-weight: 400; cursor: pointer; }
.y-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--chu-phu); }
.y-meta .nho { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: var(--mat2); color: var(--chu); line-height: 1; }
.y-meta .tt-giu { color: var(--nhan-chu); font-weight: 400; }
.y-meta .tt-bo { color: var(--do); font-weight: 400; }
.y-meta .cho-mang { color: var(--chu-phu); font-style: italic; }
.y.bo .y-tieu-de { color: var(--chu-phu); text-decoration: line-through; text-decoration-thickness: 1px; }
.y-nut { display: flex; flex-direction: column; gap: 2px; flex: none; }
.nut-tt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; color: var(--chu-phu); cursor: pointer;
  font-size: 14px; font-weight: 400;
}
.y-nut .nut-tt span { display: none; }
.nut-tt[data-tt="giu"].bat { color: var(--nhan-chu); background: var(--tint); }
.nut-tt[data-tt="bo"].bat { color: var(--do); background: rgba(252,165,165,.12); }
.trong { color: var(--chu-phu); text-align: center; padding: 40px 12px; font-size: 14px; }

/* ---------- soạn / chi tiết ---------- */
.khung.phai {
  position: fixed; inset: 0; z-index: 30; background: var(--nen); overflow-y: auto;
  transform: translateY(100%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s;
}
.khung.phai.mo { transform: none; visibility: visible; transition: transform .22s ease; }
.soan { display: flex; flex-direction: column; min-height: 100%; }
.soan-thanh {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 4px;
  padding: 6px 8px; padding-top: max(6px, env(safe-area-inset-top)); background: var(--nen); border-bottom: 1px solid var(--vien); min-height: 57px;
}
.soan-nhan { flex: 1; font-weight: 400; color: var(--chu); line-height: 1; padding-left: 4px; }
.soan-tt { display: flex; align-items: center; gap: 4px; }
.soan-than { padding: 16px; display: flex; flex-direction: column; gap: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.o-soan { width: 100%; border: 0; background: none; color: var(--chu); padding: 0; }
.o-soan:focus { outline: none; }
.o-tieu-de { font-size: 16px; font-weight: 600; line-height: 1.35; min-height: 44px; resize: none; overflow: hidden; display: block; overflow-wrap: anywhere; }
.o-noi-dung { font-size: 16px; line-height: 1.6; resize: none; min-height: 140px; overflow: hidden; display: block; }
.hang-mic { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nut-mic.dang-nghe { background: var(--chinh); color: var(--tren-chinh); border-color: var(--chinh); }
.nut-mic.dang-nghe::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; animation: nhip 1s ease-in-out infinite; }
@keyframes nhip { 50% { opacity: .25; } }
.mic-goi-y { font-size: 12px; color: var(--chu-phu); }
.chon-nhan { display: flex; flex-wrap: wrap; gap: 8px; }
.chon-nhan .the-nhan { min-height: 44px; }
.them-nhan { display: flex; gap: 8px; }
.them-nhan .o-nhap { flex: 1; min-width: 0; }
.soan-meta { font-size: 12px; color: var(--chu-phu); }
.thong-bao {
  position: fixed; left: 50%; bottom: calc(var(--dh-cao) + 88px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--chu); color: var(--nen); padding: 12px 18px; border-radius: 12px; font-weight: 400; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; max-width: calc(100vw - 32px); text-align: center;
  /* popover (lớp trên cùng, nổi trên trang đang mở): bỏ kiểu mặc định; rộng theo chữ tới max-width, không gói ở nửa màn */
  top: auto; right: auto; margin: 0; border: 0; overflow: visible; width: max-content;
}
.thong-bao.hien { opacity: 1; transform: translate(-50%, 0); }
.chuong { position: relative; flex: none; }
.chuong b { position: absolute; right: -5px; top: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 12px; display: grid; place-items: center; background: #f04465; color: #fff; font: 400 12px/1 "Be Vietnam Pro",sans-serif; }
.hop-thong-bao { width: min(520px,calc(100% - 24px)); max-height: min(760px,calc(100dvh - 32px)); padding: 0; border: 1px solid var(--vien-sang); border-radius: 16px; background: var(--mat); color: var(--chu); box-shadow: 0 30px 90px #000b; }
.hop-thong-bao::backdrop { background: #060409bd; backdrop-filter: blur(10px); }
.hop-thong-bao > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; background: color-mix(in srgb,var(--mat) 90%,transparent); backdrop-filter: blur(18px); }
.hop-thong-bao h2 { margin: 2px 0 0; font-size: 16px; }
.hop-thong-bao-hanh { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 12px; }
.hop-thong-bao-ds { display: grid; gap: 8px; padding: 0 12px 22px; overflow: auto; }
.tb-muc { display: grid; grid-template-columns: 42px 1fr 9px; gap: 11px; align-items: start; width: 100%; padding: 14px; border: 0; border-radius: 16px; color: var(--chu); background: var(--mat2); text-align: left; font: inherit; }
.tb-muc > svg { width: 22px; height: 22px; padding: 9px; box-sizing: content-box; border-radius: 50%; color: var(--chinh-chu); background: color-mix(in srgb,var(--chinh) 18%,transparent); }
.tb-muc strong,.tb-muc span { display: block; color: var(--chu); }.tb-muc p { margin: 4px 0; color: var(--chu-phu); font-size: 12px; line-height: 1.5; }.tb-muc small { color: var(--chu-mo); }.tb-muc i { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--nhan); }.tb-muc.da-doc i { opacity: 0; }
.hop-thong-bao-form { padding: 4px 18px 22px; }.hop-thong-bao-form label { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; border-bottom: 1px solid var(--vien); }.hop-thong-bao-form input { width: 22px; height: 22px; accent-color: var(--chinh); }
.hop-thong-bao-day { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--vien); }
.hop-thong-bao-day span { display:grid;gap:3px; }
.hop-thong-bao-day small { color:var(--chu-phu); }

/* ---------- thương hiệu ---------- */
.hang-mau { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.khung-anh {
  border: 1.5px dashed var(--vien); border-radius: var(--bo-goc); background: var(--mat);
  display: grid; place-items: center; overflow: hidden; width: 100%;
}
.khung-anh.co-anh { border-style: solid; }
.khung-anh.ngang { aspect-ratio: 16 / 9; }
.khung-anh.vuong { aspect-ratio: 1; max-width: 200px; }
.khung-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cho-anh { display: inline-flex; align-items: center; gap: 8px; color: var(--chu-phu); font-weight: 400; font-size: 14px; line-height: 1; }
.hang-nut-anh { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- màn Quay ---------- */
.quay-nut { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.nut-quay {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 104px; padding: 14px 10px; border-radius: 16px; border: 1px solid var(--vien); background: var(--mat);
  color: var(--chu); font-weight: 400; font-size: 14px; line-height: 1.3; cursor: pointer;
}
.nut-quay svg { width: 30px; height: 30px; color: var(--chinh-chu); }
.nut-quay.chinh { background: var(--chinh); border-color: var(--chinh); color: var(--tren-chinh); }
.nut-quay.chinh svg { color: var(--tren-chinh); }
.nut-quay:focus-within { outline: 2px solid var(--chinh-chu); outline-offset: 2px; }
/* L2 Edit tại máy */
.nut-quay.nut-sua-tai-may { grid-column: 1 / -1; flex-direction: row; min-height: 64px; gap: 12px; text-align: left; }
.nut-sua-tai-may span { display: flex; flex-direction: column; gap: 2px; }
.nut-sua-tai-may small { font-weight: 400; font-size: 12px; color: var(--chu-phu); }
.goi-y-hook { margin: -4px 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--vien); background: var(--mat); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.goi-y-hook-nguon { margin-top: 6px; font-size: 12px; color: var(--chu-phu); }
.gui-the { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 16px; border-radius: var(--bo-goc); background: var(--mat); border: 1px solid var(--chinh-chu); }
.gui-xem { width: 56px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--mat2); flex: none; }
.gui-chu { flex: 1; min-width: 0; }
.gui-ten { font-weight: 400; color: var(--chu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gui-co { font-size: 12px; color: var(--chu-phu); }
.o-chon { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--chu-phu) 50%), linear-gradient(135deg, var(--chu-phu) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.o-chon option { background: var(--mat); color: var(--chu); }
.nut-gui-video { min-height: 52px; font-size: 14px; }
.goi-luot, .goi-ho-so {
  margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--vien); border-radius: 12px;
  background: var(--tint); color: var(--chu); font-size: 14px; font-weight: 400; line-height: 1.45;
}
.ng-tieu-de { margin: 0 0 10px; color: var(--chu); font-size: 16px; font-weight: 600; line-height: 1.3; }
.ng-than, .ng-ds { display: flex; flex-direction: column; gap: 10px; }
.ng-dang-tai { color: var(--chu-phu); font-size: 14px; }
.ng-the { padding: 14px; border: 1px solid var(--vien); border-radius: 16px; background: var(--mat); color: var(--chu); }
.ng-the-dau { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ng-ten { font-size: 16px; font-weight: 600; line-height: 1.3; }
.ng-gia { color: var(--chinh-chu); font-size: 14px; font-weight: 400; white-space: nowrap; }
.ng-chi-tiet { margin: 8px 0 0; color: var(--chu-phu); font-size: 12px; line-height: 1.5; }
.ng-muc { white-space: nowrap; }
.ng-tra { margin: 12px 0; color: var(--chu); font-size: 14px; line-height: 1.4; }
.ng-tra strong { color: var(--nhan-chu); }
.ng-the .ng-nut { width: 100%; min-height: 46px; }
.ng-ly-do { display: flex; flex-direction: column; gap: 12px; }
.ng-ly-do p { color: var(--chu); font-size: 14px; line-height: 1.5; }
.ng-phieu { display: flex; flex-direction: column; gap: 12px; }
.ng-qr { width: min(100%, 260px); aspect-ratio: 1; align-self: center; display: block; object-fit: contain; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid #d1d5db; }
.ng-hang { display: flex; justify-content: space-between; gap: 12px; color: var(--chu-phu); font-size: 14px; line-height: 1.4; }
.ng-hang strong { color: var(--chu); text-align: right; overflow-wrap: anywhere; }
.ng-noi-dung { padding: 12px; border-radius: 12px; background: var(--tint); color: var(--chu); font-size: 14px; font-weight: 400; line-height: 1.4; text-align: center; user-select: text; overflow-wrap: anywhere; }
.ng-nut-hang { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ng-nut-hang .nut { min-height: 44px; padding: 0 10px; }
.ng-cho { color: var(--chu-phu); font-size: 12px; line-height: 1.4; text-align: center; }
.ng-huy { align-self: center; border: 0; background: none; color: var(--do); min-height: 44px; padding: 0 12px; font: inherit; font-weight: 400; cursor: pointer; }
.ng-vua { border-color: var(--chinh-chu); background: var(--tint); color: var(--chu); font-weight: 400; line-height: 1.45; }
.nut:disabled { opacity: 1; background: var(--mat2); color: var(--chu-phu); cursor: not-allowed; }
.muc-nho { font-size: 16px; font-weight: 600; color: var(--chu); margin: 28px 0 0; line-height: 1.3; }

.ds-video { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vd {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px; min-height: 96px;
  border-radius: var(--bo-goc); border: 1px solid var(--vien); background: var(--mat); color: var(--chu); cursor: pointer;
}
.vd.dang-xem { border-color: var(--chinh-chu); }
.vd-anh { width: 56px; height: 76px; border-radius: 12px; background: var(--mat2); flex: none; overflow: hidden; display: grid; place-items: center; color: var(--chu-phu); }
.vd-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-than { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vd-mo-ta { font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--chu); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-hang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--chu-phu); line-height: 1.3; }
.tt { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 400; line-height: 1; background: var(--mat2); color: var(--chu); white-space: nowrap; }
.vd-hang .tt { white-space: normal; max-width: 100%; min-height: 24px; padding: 5px 10px; line-height: 1.35; border-radius: 12px; } /* câu chờ hàng / edit dài (luật 03/11) xuống hàng, không tràn thẻ */
.tt::before { flex: none; }
.tt::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.tt-dang-tai, .tt-cho { color: var(--chu); }
.tt-da-nhan { color: var(--chinh-chu); }
.tt-dang-dung { color: var(--nhan-chu); }
.tt-dang-dung::before { animation: nhip 1.2s ease-in-out infinite; }
.tt-ban-dung-xong { background: var(--chinh); color: var(--tren-chinh); }
.tt-da-dang { background: var(--tint); color: var(--nhan-chu); }
.tt-loi { color: var(--do); }
.thanh { height: 8px; border-radius: 99px; background: var(--mat2); overflow: hidden; }
.thanh span { display: block; height: 100%; width: 0; background: var(--chinh-chu); border-radius: 99px; transition: width .3s ease; }

/* chi tiết video (khung phải) */
.ctv { display: flex; flex-direction: column; min-height: 100%; }
.ctv-trong { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 24px; text-align: center; color: var(--chu-phu); }
.ctv-trong svg { width: 44px; height: 44px; }
.ctv-than { padding: 16px; display: flex; flex-direction: column; gap: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
/* chưa phát được: khung dọc 9:16 vừa màn; đang phát: theo cỡ video */
.ctv-khung { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; width: min(100%, calc(min(calc(var(--cao, 100dvh) * .56), 520px) * 9 / 16)); margin: 0 auto; display: grid; place-items: center; }
.ctv-khung:has(.ctv-video:not([hidden])) { aspect-ratio: auto; width: 100%; }
.ctv-video { width: 100%; max-height: min(calc(var(--cao, 100dvh) * .62), 640px); display: block; background: #000; }
.ctv-anh { position: absolute; inset: 0; display: grid; place-items: center; color: var(--chu-phu); background: var(--mat); }
.ctv-anh img { width: 100%; height: 100%; object-fit: cover; }
.ctv-anh .cho-anh { flex-direction: column; text-align: center; padding: 16px; line-height: 1.4; }
.ctv-chon { display: flex; gap: 8px; }
.ctv-chon .the-nhan { min-height: 44px; }
.tien-do { display: flex; flex-direction: column; gap: 10px; }
.tien-do-chu { font-size: 14px; color: var(--chu); }
.moc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.moc li { position: relative; display: flex; gap: 12px; padding: 0 0 16px 0; color: var(--chu-phu); font-size: 14px; line-height: 1.35; }
.moc li::before { content: ""; width: 14px; height: 14px; border-radius: 99px; border: 2px solid var(--vien); background: var(--nen); flex: none; margin-top: 2px; z-index: 1; }
.moc li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--vien); }
.moc li:last-child::after { display: none; }
.moc li.qua { color: var(--chu); }
.moc li.qua::before { background: var(--chinh-chu); border-color: var(--chinh-chu); }
.moc li.qua::after { background: var(--chinh-chu); }
.moc li.dang::before { border-color: var(--nhan-chu); background: var(--nen); }
.moc li.dang { color: var(--chu); font-weight: 400; }
.moc .moc-gio { display: block; font-size: 12px; color: var(--chu-phu); font-weight: 400; margin-top: 2px; }
.ctv-y-chu { font-size: 14px; color: var(--chu); white-space: pre-line; overflow-wrap: anywhere; }
.ctv-nghe { font-size: 12px; color: var(--chu-phu, var(--chu)); padding: 8px 12px; border-radius: 999px; background: var(--tint); justify-self: start; width: fit-content; }
.ctv-nghe.loc { color: var(--chu); }
.ctv-ghi-chu { font-size: 14px; color: var(--chu); padding: 12px 14px; border-radius: 12px; background: var(--tint); white-space: pre-line; }
.ctv-bia { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--vien); border-radius: 16px; background: var(--mat); }
.ctv-bia-dau { display: flex; align-items: center; gap: 10px; }
.ctv-bia-dau h3 { margin: 0; flex: 1; color: var(--chu); font-size: 16px; }
.ctv-bia-dau span, .ctv-bia > p { color: var(--chu-phu); font-size: 12px; }
.ctv-bia-ds { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 38%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px; }
.ctv-bia-anh { position: relative; aspect-ratio: 9/16; padding: 0; border: 1px solid var(--vien); border-radius: 12px; overflow: hidden; background: var(--mat2); scroll-snap-align: start; }
.ctv-bia-anh img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ctv-bia-anh.dang-chon { border: 3px solid var(--nhan);  }
a.nut { text-decoration: none; }

/* xem trước trợ lý (chỉ máy rộng) */
.xem-truoc { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.xt-the { background: var(--mat); border: 1px solid var(--vien); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.xt-hang { display: flex; align-items: center; gap: 12px; }
.xt-ten { font-weight: 600; font-size: 16px; color: var(--chu); line-height: 1.3; }
.xt-nghe { color: var(--chu-phu); font-size: 14px; }
.xt-ds { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.xt-ds dt { font-size: 12px; font-weight: 400; color: var(--chu-phu); }
.xt-ds dd { margin: 2px 0 0; font-size: 14px; color: var(--chu); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xt-mau { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- vòng màn action + menu ≡ ---------- */
.dh-menu {
  flex: 0 0 56px; border: 0; background: none; color: var(--chu); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-right: 1px solid var(--vien);
}



.man.vao-phai { animation: vaoPhai .26s cubic-bezier(.2,.8,.2,1); }
.man.vao-trai { animation: vaoTrai .26s cubic-bezier(.2,.8,.2,1); }
@keyframes vaoPhai { from { opacity: 0; transform: translateX(36px); } }
@keyframes vaoTrai { from { opacity: 0; transform: translateX(-36px); } }
.nhan-man {
  position: fixed; left: 50%; bottom: calc(var(--dh-cao) + 92px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 8px) scale(.94); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--mat2); border: 1px solid var(--chinh-chu);
  color: var(--chu); font-weight: 400; font-size: 14px; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.5); transition: opacity .18s ease, transform .18s ease;
}
.nhan-man.hien { opacity: 1; transform: translate(-50%, 0) scale(1); }












/* ---------- tài khoản ---------- */
.cm-the { padding: 18px; border: 1px solid var(--vien); border-radius: 16px; background: var(--mat); }
.cm-dong { display: flex; align-items: center; gap: 16px; cursor: pointer; }
:is(.cm-cong-tac, .tk-cong-tac input, .lich-cong-tac input) {
  appearance: none; flex: 0 0 auto; width: 52px; height: 32px; margin: 0; padding: 3px; border: 1px solid var(--vien);
  border-radius: 999px; background: var(--mat3); border-color: var(--vien-sang); cursor: pointer; transition: background .18s ease, opacity .18s ease;
}
:is(.cm-cong-tac, .tk-cong-tac input, .lich-cong-tac input)::after { content: ""; display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--chu); transition: transform .18s ease; }
:is(.cm-cong-tac, .tk-cong-tac input, .lich-cong-tac input):checked { background: var(--nut-nhan); border-color: var(--nut-nhan); }
:is(.cm-cong-tac, .tk-cong-tac input, .lich-cong-tac input):checked::after { transform: translateX(20px); background: #fff; }
:is(.cm-cong-tac, .tk-cong-tac input, .lich-cong-tac input):focus-visible { outline: 3px solid var(--chinh-chu); outline-offset: 3px; }
:is(.cm-cong-tac, .tk-cong-tac input, .lich-cong-tac input):disabled { cursor: wait; opacity: .55; }
.cm-dem { margin-top: 14px; color: var(--chu-phu); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------- kho Đã dựng (đầu màn Đăng video) ---------- */
.dd { margin: 0 -16px 22px; container-type: inline-size; --o: min(66cqw, 280px); }
.dd .muc-dau { padding: 0 16px; }
.dd-bang {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px calc((100cqw - var(--o)) / 2) 8px; overscroll-behavior-x: contain;
}
.dd-bang::-webkit-scrollbar { display: none; }
.dd-o {
  position: relative; flex: 0 0 var(--o); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; padding: 0;
  border: 1px solid var(--vien); background: #000; cursor: pointer; scroll-snap-align: center; color: #fff; text-align: left;
  transform: scale(.92); opacity: .7; transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.dd-o.dang-phat { transform: none; opacity: 1; border-color: var(--nhan); box-shadow: 0 0 0 2px var(--vang), 0 12px 32px rgba(0,0,0,.5); }
.dd-o video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.dd-chuan-bi { position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);padding:7px 12px;border-radius:999px;background:rgba(0,0,0,.45);color:rgba(255,255,255,.85);font-size:12px;font-weight:400;white-space:nowrap; }
.dd-trong { margin:8px 16px 18px;padding:22px;border:1px solid var(--vien);border-radius:16px;color:var(--chu-phu);text-align:center;background:var(--mat); }
.dd-chuan-bi::before,.xem-to-loi::before { content:"";display:inline-block;width:12px;height:12px;margin-right:7px;vertical-align:-2px;border:2px solid rgba(255,255,255,.38);border-top-color:#fff;border-radius:50%;animation:dd-quay .8s linear infinite; }
@keyframes dd-quay { to { transform:rotate(360deg); } }
.dd-chu {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding: 40px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.88) 45%);
}
.dd-ten { font-weight: 400; font-size: 14px; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dd-phu { font-size: 12px; color: #e5e7eb; line-height: 1.2; }
.dd-kenh { display: flex; gap: 4px; flex-wrap: wrap; }
.dd-kenh img { width: 22px; height: 22px; padding: 3px; border-radius: 99px; background: #fff; }
.xem-to { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; align-items: center; justify-content: center; }
.xem-to video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.xem-to-dong { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 10px; background: rgba(0,0,0,.55); color: #fff; }
.xem-to-pip { position:absolute;top:max(10px,env(safe-area-inset-top));right:62px;background:rgba(0,0,0,.55);color:#fff;z-index:3; }
.xem-to-pip svg { width:22px;height:22px;display:block; }
.xem-to-pip:disabled { opacity:.35; }
.xem-to-loi { position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;padding:7px 12px;border-radius:999px;background:rgba(0,0,0,.45);color:rgba(255,255,255,.85);font-size:12px;font-weight:400;line-height:1.2;text-align:center;white-space:nowrap;z-index:3; }
.xem-to-chu { position: absolute; left: 0; right: 0; top: 0; padding: max(14px, env(safe-area-inset-top)) 116px 30px 16px; background: linear-gradient(rgba(0,0,0,.75), transparent); pointer-events: none; }
.xem-to-ten { font-weight: 400; font-size: 14px; color: #fff; line-height: 1.35; }
.xem-to-phu { font-size: 12px; color: #e5e7eb; margin-top: 2px; }
.xem-to-gop-y { position:absolute;z-index:3;left:12px;bottom:calc(max(18px,env(safe-area-inset-bottom)) + 58px);min-height:44px;background:rgba(86,34,154,.92);color:#fff }
.xem-to-link { position:absolute;z-index:2;left:12px;right:12px;bottom:max(18px,env(safe-area-inset-bottom));display:flex;gap:8px;overflow-x:auto }
.xem-to-link .nut { flex:none;background:rgba(0,0,0,.66);color:#fff;border-color:rgba(255,255,255,.35) }
.gop-y-giay { width:min(560px,calc(100% - 24px));max-height:min(780px,calc(100dvh - 24px));padding:18px;border:1px solid var(--vien-sang);border-radius:16px;background:var(--mat);color:var(--chu);overflow:auto }
.gop-y-giay::backdrop { background:rgba(0,0,0,.72);backdrop-filter:blur(5px) }
.gop-y-giay label { display:grid;gap:7px;margin:14px 0;font-weight:400 }
.gop-y-giay input[type="range"] { width:100%;accent-color:var(--nhan) }
.gop-y-giay select,.gop-y-giay textarea { width:100%;padding:12px;border:1px solid var(--vien-sang);border-radius:12px;background:var(--mat2);color:var(--chu);font:inherit }
.gop-y-giay-loai { display:flex;gap:7px;overflow-x:auto;margin:14px 0;padding:0;border:0 }
.gop-y-giay-loai legend { font-weight:400;margin-bottom:7px }
.gop-y-giay-loai button { flex:none;height:36px;padding:0 13px;border:1px solid var(--vien-sang);border-radius:99px;background:var(--mat2);color:var(--chu-phu);font:inherit;font-size:12px;font-weight:400 }
.gop-y-giay-loai button.chon { background:var(--nut-nhan);color:var(--tren-chinh);border-color:transparent }
.gop-y-giay-nhap { display:grid;grid-template-columns:1fr 46px;gap:8px;align-items:end }
.gop-y-giay-ds { display:grid;gap:8px;margin:14px 0 }
.gop-y-giay-muc { display:grid;grid-template-columns:auto 1fr;gap:10px;text-align:left;padding:11px;border:0;border-radius:12px;background:var(--mat2);color:var(--chu) }
.gop-y-giay-muc strong { color:var(--nhan-chu);font-variant-numeric:tabular-nums }
.gop-y-giay-muc small { display:block;color:var(--chu-phu);margin-bottom:2px }
@media(max-height:600px){.gop-y-giay{max-height:calc(100dvh - 8px);border-radius:16px}.xem-to-gop-y{bottom:68px}}

/* ---------- quản trị hàng đợi ---------- */
.qt-luot, .qt-ds, .qt-broll { display: flex; flex-direction: column; gap: 8px; }
.qt-luot { margin-bottom: 16px; }
.qt-broll { margin-bottom:16px; }
.qt-tieu-de { margin:18px 0 8px; }
.qt-goi, .qt-viec, .qt-br { padding: 12px; border: 1px solid var(--vien); border-radius: 12px; background: var(--mat); color: var(--chu); }
.qt-goi { font-size: 12px; line-height: 1.45; }
.qt-br { display:grid; grid-template-columns:1fr auto; gap:5px 12px; font-size:12px; line-height:1.4; }
.qt-br b { overflow-wrap:anywhere; }
.qt-br span { color:var(--chu-phu); }
.qt-br .qt-br-ti-le { color:var(--nhan-chu); font-weight:400; }
.qt-viec { display: flex; flex-direction: column; gap: 8px; }
.qt-viec[draggable="true"] { cursor: grab; }
.qt-viec.dang-keo { opacity: .5; }
.qt-dau, .qt-nut { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qt-dau b { flex: 1; min-width: 150px; overflow-wrap: anywhere; }
.qt-phu { color: var(--chu-phu); font-size: 12px; line-height: 1.35; }
.qt-nut .nut { min-height: 38px; padding: 0 11px; font-size: 12px; }

/* ---------- lịch đăng ---------- */
.lc-du { display: block; width: 100%; text-align: left; min-height: 20px; padding: 0; margin: 0 0 16px; border: 0; background: transparent; color: var(--chu-phu); font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.35; cursor: pointer; }
.lc-du::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 99px; margin-right: 6px; vertical-align: 1px; background: var(--chinh-chu); }
.lc-du.vang::before { background: #fbbf24; }
.lc-du.do::before { background: var(--do); }
.lc-tuan { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lc-tuan-chu { flex: 1; text-align: center; font-weight: 400; color: var(--chu); font-size: 14px; }
.nut-vien-tron { border: 1px solid var(--vien); background: var(--mat); color: var(--chu); }
.lc-sau svg { transform: scaleX(-1); }
.lc-luoi { display: flex; flex-direction: column; gap: 6px; }
.lc-hang { display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.lc-dau span { font-size: 12px; font-weight: 400; color: var(--chu-phu); text-align: center; }
.lc-ngay { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: var(--mat); min-height: 56px; line-height: 1.2; }
.lc-ngay b { font-size: 14px; color: var(--chu); } .lc-ngay small { font-size: 12px; color: var(--chu-phu); }
.lc-hang.hom-nay .lc-ngay { background: var(--chinh); } .lc-hang.hom-nay .lc-ngay b, .lc-hang.hom-nay .lc-ngay small { color: var(--tren-chinh); }
.lc-hang.qua .lc-o { opacity: .75; }
.lc-o { display: flex; flex-direction: column; gap: 4px; min-height: 56px; border-radius: 12px; border: 1px dashed var(--vien); padding: 4px; min-width: 0; }
.lc-bai { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 44px; width: 100%; padding: 6px; border-radius: 12px; border: 1px solid var(--vien); background: var(--mat2); color: var(--chu); cursor: pointer; text-align: left; position: relative; }
.lc-bai::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 99px; background: var(--chu-phu); }
.lc-bai[data-tt="da-hen"]::after { background: var(--chinh-chu); } .lc-bai[data-tt="da-dang"]::after { background: var(--nhan-chu); }
.lc-bai[data-tt="cho-duyet"]::after { background: var(--vang); } .lc-bai[data-tt="loi"]::after { background: var(--do); }
.lc-bai.dang-xem { border-color: var(--chinh-chu); box-shadow: 0 0 0 1px var(--chinh-chu); }
.lc-gio { font-weight: 400; font-size: 12px; line-height: 1; }
.lc-logo { display: flex; flex-wrap: wrap; gap: 3px; }
.lc-logo img { width: 16px; height: 16px; padding: 2px; border-radius: 99px; background: #fff; box-sizing: content-box; }
.ctl { display: flex; flex-direction: column; min-height: 100%; }
.ctl-than { padding: 16px; display: flex; flex-direction: column; gap: 14px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.ctl-bia { position: relative; width: min(100%, 240px); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 16px; border: 1px solid var(--vien); background: #000 center / cover no-repeat; cursor: pointer; display: grid; place-items: center; }
.ctl-phat { width: 60px; height: 60px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; border: 2px solid var(--vang); }
.ctl-phat svg { width: 28px; height: 28px; }
.ctl-ten { font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--chu); }
.ctl-ds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ctl-ds li { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--mat); border: 1px solid var(--vien); }
.ctl-dau { display: flex; align-items: center; gap: 10px; }
.ctl-dau img { width: 22px; height: 22px; padding: 3px; border-radius: 99px; background: #fff; box-sizing: content-box; }
.ctl-kenh { flex: 1; font-weight: 400; color: var(--chu); }
.ctl-gio { font-size: 12px; color: var(--chu-phu); }
.ctl-loi { font-size: 12px; color: var(--do); }
.tt-mo-dang { margin-top: 8px; }
.tt-dang-form { margin-top: 8px; padding: 14px; border: 1px solid color-mix(in srgb, var(--chinh) 28%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--mat) 86%, transparent); }
.tt-dang-form h4 { margin: 0 0 5px; color: var(--chu); }
.tt-dang-phu { margin: 0 0 14px; color: var(--chu-phu); font-size: 12px; line-height: 1.5; }
.tt-dang-noi { display: grid; gap: 10px; }
.tt-dang-xem { width: min(100%, 280px); max-height: 420px; margin: 0 auto 4px; border-radius: 16px; background: #000; object-fit: contain; }
.tt-caption { min-height: 118px; resize: vertical; }
.tt-tick { display: flex; align-items: flex-start; gap: 10px; color: var(--chu); font-size: 14px; line-height: 1.45; }
.tt-tick input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--chinh); }
.tt-tick:has(input:disabled) { opacity: .5; }
.tt-dong-y a { color: var(--chinh-chu); font-weight: 400; }
.tt-dang-trang-thai { margin: 2px 0; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--chinh) 16%, var(--mat)); color: var(--chu); font-size: 14px; line-height: 1.5; }
.ctl-ds details { font-size: 14px; color: var(--chu); }
.ctl-ds summary { cursor: pointer; color: var(--chinh-chu); font-weight: 400; min-height: 44px; display: flex; align-items: center; }
.ctl-ds details p { white-space: pre-line; color: var(--chu); line-height: 1.5; }
.ctl-sua{display:grid;gap:12px;padding-top:8px;border-top:1px solid var(--vien)}
.ctl-kenh-chon,.lich-cai-dat fieldset{margin:0;padding:0;border:0}.ctl-kenh-chon legend,.lich-cai-dat legend{margin-bottom:8px;font-size:12px;font-weight:400;color:var(--chu-phu)}.lich-cai-dat .truong{margin-top:14px}
#ctl-kenh-chon{display:flex;flex-wrap:wrap;gap:8px}#ctl-kenh-chon label{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 10px;border:1px solid var(--vien);border-radius:12px;background:var(--mat2)}
.lich-cai-dat{width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--vien-sang);border-radius:16px;background:var(--mat);color:var(--chu);overflow:auto}.lich-cai-dat::backdrop{background:rgba(0,0,0,.76);backdrop-filter:blur(6px)}
.lich-cai-dat-than{display:grid;gap:18px;padding:20px}.lich-cai-dat-than>p{margin:0;color:var(--chu-phu)}
.lich-chip{display:flex;flex-wrap:wrap;gap:8px}.lich-chip label{cursor:pointer}.lich-chip input{position:absolute;opacity:0;pointer-events:none}.lich-chip span{display:inline-flex;align-items:center;min-height:42px;padding:0 13px;border:1px solid var(--vien-sang);border-radius:999px;background:var(--mat2);color:var(--chu-phu);font-weight:400}.lich-chip input:checked+span{border-color:var(--chinh);background:color-mix(in srgb,var(--chinh) 22%,var(--mat2));color:var(--tren-chinh)}.lich-chip input:disabled+span{border-color:var(--vien);background:var(--mat);color:var(--chu-mo);cursor:not-allowed}.lich-chon-nhanh{display:flex;gap:8px;margin-top:10px}.lich-chon-nhanh .nut{min-height:38px;padding-inline:12px}
.lich-chip .lich-khong-hop span{display:grid;gap:2px;align-content:center;border-radius:12px;opacity:.72}.lich-chip .lich-khong-hop small{display:block;color:inherit;font-size:12px;font-weight:400;line-height:1.35}
.lich-cong-tac{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px;border:1px solid var(--vien);border-radius:16px;background:var(--mat2)}.lich-cong-tac span{display:grid;gap:3px}.lich-cong-tac small{color:var(--chu-phu)}
.lc-kho{display:grid;gap:7px;margin:4px 0 10px}.lc-kho-dau{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.lc-kho-dau h3{margin:0;font-size:16px}.lc-kho-dau span{font-size:12px;color:var(--chu-phu)}.lc-kho-ds{display:flex;gap:9px;overflow:auto;padding-bottom:3px}.lc-kho-the{flex:0 0 250px;display:grid;grid-template-columns:54px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 9px;padding:7px;border:1px solid var(--vien);border-radius:12px;background:var(--mat2)}.lc-kho-the img{grid-row:1/-1;width:54px;height:72px;object-fit:cover;border-radius:12px;background:var(--mat)}.lc-kho-the strong{align-self:end;line-height:1.25;font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.lc-kho-nut{align-self:start;display:grid;grid-template-columns:1fr 1fr;gap:5px}.lc-kho-nut .nut{min-width:0;min-height:30px;padding-inline:6px;font-size:12px}.lc-kho-de{display:none}
.tt-lc-cho-duyet, .tt-lc-cho-hen { color: var(--vang); } .tt-lc-da-hen { color: var(--chinh-chu); } .tt-lc-da-dang { background: var(--tint); color: var(--nhan-chu); } .tt-lc-loi { color: var(--do); }

/* ---------- tab Quay = màn chuẩn bị (Nhật 10/11/2026, theo Android ManQuay): dòng lượt, thẻ kịch bản, nút Quay ---------- */
#man-quay:not([hidden]) { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 599.98px) { #man-quay:not([hidden]) { padding-top: 8px; } }
.quay-luot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--mat); font-size: 12px; line-height: 1.4; color: var(--chu); }
.quay-luot svg { width: 22px; height: 22px; color: var(--chu-phu); }
.quay-luot.sap-het svg { color: var(--cam-chu); }
.the-kb { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--mat); }
.the-kb textarea.o-nhap { min-height: 116px; }
.kb-tom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0; font-size: 12px; color: var(--chu-phu); font-variant-numeric: tabular-nums; }
.kb-tom .nut-chu { padding: 0 8px; margin-right: -8px; }
.kb-nut { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-goi-y { margin-top: -4px; font-size: 12px; line-height: 1.4; color: var(--chu-phu); }
.kb-goi-y:empty { display: none; }
.kb-goi-y.loi { color: var(--do); }
.kb-goi-y.dang-cho::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 99px; background: var(--chinh); vertical-align: 1px; animation: nhip 1s ease-in-out infinite; }
.kb-tu-y { display: grid; gap: 6px; min-width: 0; }
.kb-y { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.kb-y::-webkit-scrollbar { display: none; }
.kb-y .the-nhan { min-height: 32px; white-space: nowrap; }
.kb-y-trong { font-size: 12px; color: var(--chu-phu); }
.quay-nut-doc { display: grid; gap: 12px; }
.kb { padding: 16px; }  /* cột phụ từ 840 (khung-rong.css), chứa #the-kb */

/* ---------- camera toàn màn (Nhật 10/11/2026, theo camera Android): luôn nền tối, phủ thanh tab và sidebar ---------- */
.may-quay {
  position: fixed; inset: 0; z-index: 80; overflow: hidden; background: #000; color: #fff; color-scheme: dark;
  --chu: #fff; --chu-phu: rgba(235,235,245,.6); --lap: rgba(118,118,128,.24); --vien: rgba(84,84,88,.6); --mat: #1C1C1E; --nhan-chu: var(--nhan-chu-toi);
}
body.camera-mo { overflow: hidden; }
.san-cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.san-cam.guong { transform: scaleX(-1); }
/* không mở được camera: chữ giữa màn, chỉ còn nút Đóng ở dải trên */
.san-cho { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center; background: #000; }
.san-cho-ten { font-size: 16px; font-weight: 600; }
.san-cho-chu { max-width: 320px; margin-bottom: 8px; font-size: 14px; line-height: 1.45; color: var(--chu-phu); }
.may-quay:has(> .san-cho:not([hidden])) :is(.san-duoi, #san-cong-cu) { display: none; }
/* dải trên: Đóng - giờ quay - Công cụ quay */
.san-tren {
  position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center;
  height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0; background: rgba(0,0,0,.35);
}
.san-tron { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; cursor: pointer; }
.san-tron svg { width: 20px; height: 20px; }
.san-tron:disabled { opacity: .4; cursor: default; }
.san-doi-cam { justify-self: start; width: 52px; height: 52px; }  /* đổi camera: icon xoay thay chữ (Nhật 11/11) */
.san-doi-cam svg { width: 26px; height: 26px; }
#san-cong-cu { grid-column: 3; }
.san-dong-ho { grid-column: 2; justify-self: center; padding: 4px 10px; border-radius: 999px; background: #E5243B; color: #fff; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
/* vùng giữa hai dải: khung chữ nhắc dời, đổi cỡ theo % vùng này; màn rộng giữ vùng rộng tối đa 720 ở giữa, gần ống kính */
.san-vung { position: absolute; z-index: 3; top: calc(64px + env(safe-area-inset-top)); bottom: calc(140px + env(safe-area-inset-bottom)); left: max(12px, 50% - 360px); right: max(12px, 50% - 360px); pointer-events: none; }
.tp { position: absolute; display: flex; flex-direction: column; border-radius: 16px; background: rgba(0,0,0,.6); pointer-events: auto; container-type: size; }
.tp.dang-keo { box-shadow: 0 0 0 2px var(--nhan-chu); }
.tp.an-chu .tp-chu { visibility: hidden; }
/* mũi nhắc dòng đang đọc: 30% chiều cao phần chữ */
.tp::before { content: ""; position: absolute; left: 0; top: calc(32px + (100% - 32px) * .3); border: 8px solid transparent; border-left-color: var(--nhan-chu); transform: translateY(-50%); z-index: 2; pointer-events: none; }
.tp-nam { flex: none; display: flex; align-items: center; height: 32px; padding: 0 16px; font-size: 12px; color: var(--chu-phu); cursor: move; touch-action: none; user-select: none; -webkit-user-select: none; }
.tp-nam span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* relative: offsetTop của chữ tính từ khung chữ (không gồm hàng nhãn), dòng đang đọc đứng đúng ngang mũi nhắc */
.tp-chu { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px; scrollbar-width: none; color: rgba(255,255,255,.62); font-weight: 400; line-height: 1.38; cursor: pointer; overscroll-behavior: contain; }
.tp-chu::-webkit-scrollbar { display: none; }
/* khoảng trống cuối chữ chừng 70% khung để dòng cuối vẫn lên tới mũi nhắc (máy chưa có cqh: 40vh) */
.tp-chu::after { content: ""; display: block; height: 40vh; height: 70cqh; }
.tp-chu p { margin: 0 0 .5em; }
.tp-chu span.qua { color: rgba(255,255,255,.42); }
.tp-chu span.dong { color: #fff; }
.tp-co { position: absolute; bottom: -6px; width: 44px; height: 44px; touch-action: none; z-index: 2; }
.tp-co-phai { right: -6px; cursor: nwse-resize; } .tp-co-trai { left: -6px; cursor: nesw-resize; }
.tp-co::after { content: ""; position: absolute; bottom: 12px; width: 14px; height: 14px; border: 3px solid rgba(255,255,255,.8); border-top: 0; }
.tp-co-phai::after { right: 12px; border-left: 0; border-bottom-right-radius: 6px; }
.tp-co-trai::after { left: 12px; border-right: 0; border-bottom-left-radius: 6px; }
.san-dem { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; font-size: 92px; font-weight: 400; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6); pointer-events: none; }
/* dải dưới: lời nhắc, zoom (khi trình duyệt cho), Đổi camera - nút quay */
.san-duoi { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 12px; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.35); }
.san-nhac { max-width: 480px; font-size: 12px; line-height: 1.4; text-align: center; }
.san-zoom { display: flex; gap: 8px; }
.san-hang { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; width: 100%; max-width: 480px; }
.san-chu { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; font-size: 14px; cursor: pointer; }
.san-zoom .san-chu { min-width: 44px; padding: 0 12px; font-variant-numeric: tabular-nums; }
.san-zoom .san-chu[aria-pressed="true"] { background: rgba(255,255,255,.9); color: #000; }
#nut-doi-cam { justify-self: start; }
body.dang-quay #nut-doi-cam { visibility: hidden; }
.nut-quay-do { grid-column: 2; display: grid; place-items: center; width: 76px; height: 76px; padding: 0; border: 4px solid #fff; border-radius: 999px; background: none; cursor: pointer; }
.nut-quay-do span { width: 60px; height: 60px; border-radius: 999px; background: #E5243B; transition: all .2s ease; }
.nut-quay-do.dang-ghi span { width: 26px; height: 26px; border-radius: 6px; }
.nut-quay-do.dang-dem span { animation: nhip .5s infinite; }
.nut-quay-do:disabled { opacity: .45; cursor: default; }
/* bảng Công cụ quay: trượt từ đáy, nút Xong */
.san-bang {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; max-width: 480px; max-height: min(480px, 80%); margin: 0 auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: var(--mat); box-shadow: 0 -8px 40px rgba(0,0,0,.4);
}
.san-bang-dau { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.san-bang-dau p { font-size: 16px; font-weight: 600; }
.san-bang-dau .nut-chu { margin-right: -8px; }
.san-bang-phu { margin: 0 0 8px; font-size: 12px; color: var(--chu-phu); }
.san-bang-dong { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: var(--chu); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.san-bang-nut { color: var(--nhan-chu); }
.san-bang-truot { display: grid; padding-top: 8px; }
.san-bang-truot > span { font-size: 12px; color: var(--chu-phu); }
.san-bang-truot b { color: var(--chu); font-variant-numeric: tabular-nums; }
.san-bang-truot input[type=range] { width: 100%; height: 44px; margin: 0; accent-color: var(--chinh); }
.xem-lai { position: fixed; inset: 0; z-index: 85; background: #000; display: flex; flex-direction: column; }
.xem-lai video { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #000; }
.xem-lai-day { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; background: var(--nen); }
.xem-lai-chu { font-size: 14px; color: var(--chu); text-align: center; }
.xem-lai-hang { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@keyframes xoay { to { transform: rotate(360deg); } }

/* ---------- la bàn thương hiệu (đầu màn Hồ sơ) ---------- */
.la-ban { display: flex; flex-direction: column; gap: 14px; padding: 16px; margin-bottom: 22px; border-radius: 16px; background: var(--mat); border: 1px solid var(--vien); }
/* 6 trục: trên, phải trên, phải dưới, dưới, trái dưới, trái trên (theo chiều kim đồng hồ) */
.lb-dia {
  display: grid; grid-template-columns: 1fr minmax(120px, 150px) 1fr; grid-template-rows: auto auto auto auto;
  grid-template-areas: ". a ." "f g b" "e g c" ". d ."; align-items: center; justify-items: center; gap: 8px;
}
.lb-giua { grid-area: g; width: 100%; aspect-ratio: 1; border-radius: 50%; padding: 8px; position: relative;
  background: repeating-conic-gradient(from 0deg, var(--nhan) 0 5deg, var(--chinh) 5deg 10deg); box-shadow: 0 0 0 2px var(--vang); }
.lb-giua::before, .lb-giua::after { content: ""; position: absolute; left: 50%; top: -14px; bottom: -14px; width: 2px; background: linear-gradient(var(--vang), transparent 22%, transparent 78%, var(--vang)); transform: translateX(-50%); }
.lb-giua::after { transform: translateX(-50%) rotate(90deg); }
.lb-mat { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--nen); border: 3px solid var(--nen); font-weight: 600; font-size: 16px; position: relative; z-index: 1; }
.lb-mat img { width: 100%; height: 100%; object-fit: cover; }
.lb-huong { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--tint); border: 1px solid var(--vien); min-width: 0; max-width: 100%; }
.lb-huong small { font-size: 12px; font-weight: 400; color: var(--chu-phu); line-height: 1.2; }
.lb-huong strong { font-size: 14px; color: var(--chu); line-height: 1.25; }
.lb-0 { grid-area: a; } .lb-1 { grid-area: b; } .lb-2 { grid-area: c; } .lb-3 { grid-area: d; } .lb-4 { grid-area: e; } .lb-5 { grid-area: f; }
.lb-dia[data-so="4"] { grid-template-areas: ". a ." "e g b" "e g b" ". d ."; }
.lb-dia[data-so="4"] .lb-2 { grid-area: d; } .lb-dia[data-so="4"] .lb-3 { grid-area: e; }
.lb-1, .lb-2 { justify-self: start; } .lb-4, .lb-5 { justify-self: end; }
.lb-huong.noi-bat { border-color: var(--vang); box-shadow: 0 0 0 1px var(--vang); }
.lb-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-ds li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--chu-phu); line-height: 1.4; padding-left: 12px; border-left: 2px solid var(--chinh-chu); }
.lb-ds strong { color: var(--chu); font-size: 14px; }

/* ---------- kết nối 6 kênh chính chủ ---------- */
.kenh-ds { display: grid; gap: 12px; margin: 18px 0; min-width: 0; }
.kenh-dang-tai { color: var(--chu-phu); font-size: 14px; padding: 16px 0; }
.kenh-the { min-width: 0; padding: 15px; border: 1px solid var(--vien); border-radius: 16px; background: var(--mat); }
.kenh-icon { display: block; width: 34px; height: 34px; padding: 6px; border-radius: 12px; background: #fff; flex: none; }
.kenh-ten { flex: 1; min-width: 100px; color: var(--chu); font-size: 16px; line-height: 1.25; }
.kenh-chip { display: inline-flex; align-items: center; min-height: 28px; max-width: 100%; padding: 5px 10px; border-radius: 999px; background: var(--mat2); color: var(--chu-phu); font-size: 12px; font-weight: 400; line-height: 1.25; text-align: center; }
.kenh-chip.tt-da-gui, .kenh-chip.tt-cho-bam { background: var(--tint); color: var(--chinh-chu); }
.kenh-chip.tt-da-noi { background: var(--chinh); color: var(--tren-chinh); }
#kt-kenh .man-tieu-de { font-size: 16px; }
.kenh-cho { margin: 6px 0 0; color: var(--chu-phu, #a9a3bd); font-size: 12px; line-height: 1.45; }
.kenh-mona-dau { padding: 16px; border-radius: 16px; background: var(--tint); border: 1px solid var(--vien); }
.kenh-mona-dau h3 { margin: 0 0 5px; color: var(--chu); font-size: 16px; }
.kenh-mona-dau p, .kenh-mona-hotline { margin: 0; color: var(--chu-phu); line-height: 1.5; }
.kenh-mona-the { display: flex; align-items: center; gap: 12px; }
.kenh-mona-chu { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.kenh-mona-nen { color: var(--chu-phu); font-size: 12px; }
.kenh-mona-hotline { padding: 2px 4px 12px; font-weight: 400; }

@media (max-width: 389px) {
  .kenh-the { padding: 13px; }
  .kenh-chip { width: 100%; justify-content: center; }
}

/* ---------- máy rộng: 2 khung, trái danh sách, phải chi tiết ---------- */
@media (min-width: 600px) {
  
  
  
  /* 4 màn: icon trên chữ dưới cho vừa khung trái 320–400px */
  
  
  .nut-noi { display: none; }
  
  
  
  .lb-dia { grid-template-columns: 1fr 112px 1fr; gap: 6px; }
  .lb-huong { padding: 6px 8px; }
  .lb-huong strong { font-size: 12px; }
  .nut-ghi-rong { display: inline-flex; width: 100%; margin-top: 14px; }
  .thong-bao { bottom: 24px; }
  .khung-anh.vuong { max-width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.lc-kenh-truc{display:flex;align-items:center;gap:9px;width:100%;margin:10px 0 14px;padding:11px 13px;border:1px solid var(--vien);border-radius:16px;background:var(--the);color:var(--chu);font:inherit;text-align:left}.lc-kenh-truc strong{margin-left:auto;white-space:nowrap}.lc-kenh-truc>svg{width:16px;height:16px}.lc-kenh-logo{display:flex;align-items:center;gap:5px}.lc-kenh-logo>span{position:relative;display:grid;place-items:center;width:25px;height:25px}.lc-kenh-logo img{display:block;width:23px;height:23px;padding:3px;border-radius:6px;background:#fff}.lc-kenh-logo .chua-noi img{opacity:.4}.lc-kenh-logo i{display:none}.lc-logo img{cursor:pointer}
.lc-kenh-truc[hidden]{display:none}
#man-lich .man-dau{min-height:34px;margin-bottom:2px;flex-wrap:nowrap;align-items:center}#man-lich .man-tieu-de{font-size:16px;line-height:1.2;white-space:nowrap}#man-lich .man-mo-ta{margin:4px 0 12px}.lc-kenh-truc{height:44px;margin:0 0 12px;padding:5px 12px;border-radius:12px}.lc-kenh-logo>span{width:22px;height:22px}.lc-kenh-logo img{width:20px;height:20px}
@media(max-width:420px){.lc-kenh-logo{gap:2px}.lc-kenh-logo>span{width:22px;height:22px}.lc-kenh-logo img{width:20px;height:20px}.lc-kenh-truc strong{font-size:12px}}

.l10-ho-so-sale{display:grid;gap:14px;margin:18px 0;--mn-chinh:#7c3aed;--mn-phu:#f5f0ff}.l10-sale-phan{position:relative;padding:18px;border:1px solid color-mix(in srgb,var(--mn-chinh) 35%,transparent);border-radius:16px;background:linear-gradient(145deg,var(--mn-phu),#fff);color:#241b2f}.l10-sale-phan>span{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--mn-chinh);color:#fff;font-weight:400}.l10-sale-phan h2{margin:10px 0 14px;color:#241b2f;text-wrap:pretty}.l10-sale-phan small{display:block;margin-top:9px;color:var(--mn-chinh);font-weight:400}.l10-sale-phan p,.l10-sale-phan li{color:#241b2f;line-height:1.55}.l10-sale-phan ul{padding-left:20px}.l10-sale-anh img{display:block;width:100%;max-height:420px;object-fit:cover;border-radius:12px;margin-top:8px}

/* ô tích còn lại (đồng ý, chọn kênh...): cùng màu nhấn thay cho xanh mặc định của trình duyệt */
input[type="checkbox"] { accent-color: var(--nut-nhan); }

/* ---------- Khám phá nhanhieu.ai (specs/vo-chung, free.js): danh sách dùng lại .menu-the/.menu-muc của trang Tài khoản ---------- */
.kp { display: grid; gap: 24px; padding-bottom: 24px; }
#kp-video { display: contents; }
.kp section { display: grid; gap: 12px; align-content: start; }
.kp [hidden] { display: none; }
.kp-tieu { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.kp-chu { margin: 0; font-size: 14px; line-height: 1.5; }
#kp-ceo > .kp-tieu:not(:first-child) { margin-top: 12px; }  /* Số thật, Video, Kênh: tách khỏi khối trên */
.kp-phu { margin: 0; font-size: 12px; line-height: 1.5; color: var(--chu-phu); }
.kp .menu-nhom { padding: 4px 16px 0; }
.kp-so { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kp-so > div { display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: var(--mat); }
.kp-so strong { font-size: 16px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.kp-so small { font-size: 12px; color: var(--chu-phu); }
.kp-the { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--mat); }
.kp-hang { display: flex; align-items: center; gap: 12px; }
.kp-hang > div { flex: 1; min-width: 0; }
.kp-nut { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-bai { display: grid; gap: 16px; padding-block: 16px 32px; }
.kp-bai video { width: 100%; max-height: 70dvh; border-radius: 16px; background: #000; }
@media (min-width: 840px) { .kp-so { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
