/* Kho B-roll: tiếp tục ngôn ngữ hình khối của app, màu lấy từ thương hiệu từng khách. */
.br-quota { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; padding:13px 14px; border:1px solid var(--vien); border-radius:12px; background:var(--tint); color:var(--chu); font-size:14px; font-weight:400; }
.br-thanh { display:block; height:7px; overflow:hidden; border-radius:99px; background:var(--mat2); }
.br-thanh > span { display:block; width:0; height:100%; border-radius:inherit; background:var(--chinh); transition:width .25s ease; }
.br-quota.day .br-thanh > span { background:var(--do); }
.br-goi-y { margin-bottom:14px; padding:14px; border:1px solid var(--vien); border-radius:16px; background:var(--mat); }
.br-goi-y > p:last-child { margin-top:10px; color:var(--chu-phu); font-size:12px; }
.br-chip { display:flex; gap:7px; overflow-x:auto; margin-top:10px; padding-bottom:2px; scrollbar-width:none; }
.br-chip::-webkit-scrollbar { display:none; }
.br-chip span { flex:none; display:inline-flex; align-items:center; min-height:34px; padding:0 11px; border-radius:12px; background:var(--mat2); color:var(--chu); font-size:12px; line-height:1; }
.br-nut-chon { margin-bottom:18px; }
.br-ds { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; padding:0; }
/* Thẻ gọn (spec kho-broll-dong-bo mục 5.4): ảnh bìa, nhãn trạng thái ở góc, 2 dòng mô tả, dòng phụ. Cả thẻ là một nút mở trang chi tiết. */
.br-the { display:flex; overflow:hidden; border-radius:16px; background:var(--mat); transition:transform .12s ease; }
.br-the:active { transform:scale(.97); }  /* cả thẻ thu khi nhấn (HE-GIAO-DIEN), không chỉ nút bên trong */
.br-bam { display:flex; flex-direction:column; flex:1; min-width:0; width:100%; padding:0; border:0; border-radius:inherit; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.br-bam:focus-visible { outline-offset:-2px; }  /* overflow:hidden của thẻ sẽ cắt vòng focus nằm ngoài */
.br-bia { position:relative; display:grid; place-items:center; width:100%; aspect-ratio:3/4; overflow:hidden; background:var(--mat2); color:var(--chu-phu); }
.br-bia img, .br-bia video { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:cover; }  /* bìa ngang cũng phủ kín ô 3/4 */
.br-bia svg { width:30px; height:30px; }
.br-nhan { position:absolute; left:8px; top:8px; max-width:calc(100% - 16px); padding:4px 12px; border-radius:10px; background:rgba(0,0,0,.72); color:#fff; font-size:12px; font-weight:400; line-height:1.3; }  /* 10: câu lỗi dài xuống dòng thì là hộp bo, không thành hình bầu dục */
.br-nhan.xanh { color:var(--xanh-tot); }
.br-nhan.cam { color:var(--cam); }
.br-thoi { position:absolute; right:7px; bottom:7px; padding:4px 7px; border-radius:8px; background:rgba(0,0,0,.72); color:#fff; font-size:12px; font-weight:400; line-height:1; }
.br-than { display:flex; flex-direction:column; gap:6px; padding:10px; }
.br-mo-ta { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; color:var(--chu); font-size:12px; font-weight:400; line-height:1.4; overflow-wrap:anywhere; }
.br-mo-ta.cho { display:block; color:var(--chu-phu); }  /* câu chờ là chữ cố định, không cắt dù thẻ hẹp */
.br-mo-ta:empty, .br-thoi:empty, .br-phu[hidden] { display:none; }
.br-phu { display:flex; color:var(--chu-phu); font-size:12px; font-weight:400; line-height:1.3; }
.br-phu-ten { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }  /* nhiều tên thì chỉ phần tên bị cắt */
.br-phu-so { flex:none; white-space:pre; }  /* « - 3 video» hay «chưa dùng» luôn hiện; pre giữ dấu cách đầu */
.br-tien-do { display:block; height:5px; overflow:hidden; border-radius:99px; background:var(--mat2); }
.br-tien-do span { display:block; height:100%; width:0; background:var(--chinh); }
@media (min-width:900px) { .br-ds { grid-template-columns:repeat(3,minmax(0,1fr)); } }
/* Trang chi tiết clip và trang Người (spec kho-broll-dong-bo mục 2, 5.4): ô nhập sẵn, tiêu đề nhóm 12 chữ phụ, nhóm cách nhau 24,
   tiêu đề tới nhóm 8, thẻ và nhóm bo 16, ô và ảnh nhỏ bo 10, chip viên thuốc 32. Lưu thay đổi ghim đáy, chỉ hiện khi có ô bị sửa.
   broll.css nạp trước nen-tang.css: chỗ trùng .nut, .o-nhap thì bộ chọn ở đây cụ thể hơn. */
dialog.trang.br-ct { padding-bottom:0; }  /* khoảng đáy của trang dời vào thân: đệm đáy của dialog làm nút ghim đứng cách đáy 32 */
dialog.trang.br-ct[open] { display:flex; flex-direction:column; }  /* trang ngắn (Người): nút ghim vẫn ở đáy màn */
.br-ct-than { display:flex; flex-direction:column; padding-bottom:calc(32px + env(safe-area-inset-bottom)); }
.br-ct-than:has(~ .br-ct-ghim:not([hidden])) { padding-bottom:8px; }
.br-ct-anh { display:grid; place-items:center; width:100%; max-height:70vh; aspect-ratio:3/4; overflow:hidden; border-radius:16px; background:var(--mat2); color:var(--chu-phu); }
.br-ct-anh img, .br-ct-anh video { width:100%; height:100%; display:block; object-fit:contain; }
.br-ct-anh svg { width:30px; height:30px; }
.br-ct-phu, .br-ct-nhan, .br-ct-tde { margin:0; color:var(--chu-phu); font-size:12px; font-weight:400; line-height:1.4; }
.br-ct-anh + .br-ct-phu, .br-ct-anh + .br-ct-loi { margin-top:8px; }
.br-ct .br-ct-loi { min-height:0; font-size:12px; }
.br-ct .br-ct-loi:empty { display:none; }
.br-ct-than > .nut-vien { margin-top:12px; }
.br-ct-nhom { display:flex; flex-direction:column; gap:8px; margin:24px 0 0; }
.br-ct-nhom > .br-ct-phu { margin-top:-4px; }
.br-ct textarea.o-nhap { line-height:1.45; }
.br-ct-hang { display:flex; align-items:center; gap:8px; }
.br-ct-hang:empty { display:none; }
.br-ct-hang > .nut { flex:1; }
.br-ct .br-ct-mic { background:var(--lap); color:var(--nhan-chu); }
.br-ct-chips { display:flex; flex-wrap:wrap; gap:6px; }
.br-ct-chip { display:inline-flex; align-items:center; min-height:32px; padding:0 4px 0 12px; border:0; border-radius:999px; background:var(--lap); color:var(--chu); font:inherit; font-size:14px; font-weight:400; line-height:1.2; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.br-ct-chip.them { padding:0 12px; color:var(--nhan-chu); cursor:pointer; transition:transform .12s ease; }
.br-ct-chip.them:active { transform:scale(.97); }
.br-ct-chip-x { position:relative; display:grid; place-items:center; width:28px; height:28px; padding:0; border:0; border-radius:999px; background:none; color:var(--chu-phu); font:inherit; font-size:16px; line-height:1; cursor:pointer; }
.br-ct-chip-x::before { content:""; position:absolute; inset:-8px; }  /* chỗ chạm 44 */
.br-ct-chips .br-ct-chip-o { width:auto; min-width:140px; min-height:32px; padding:4px 12px; border-radius:999px; }
.br-ct-bi { display:flex; flex-direction:column; gap:8px; padding:12px 16px; border-radius:16px; background:var(--mat); }
.br-ct-goi-y { display:flex; flex-direction:column; }
.br-ct-goi-y-dong { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:0; border:0; background:none; color:var(--chu); font:inherit; font-size:14px; text-align:left; cursor:pointer; }
.br-ct-goi-y-dong > span:last-child { flex:none; color:var(--nhan-chu); }
.br-ct-doan { display:flex; flex-direction:column; gap:8px; padding:12px 16px 16px; border-radius:16px; background:var(--mat); }
.br-ct-doan-dau { display:flex; align-items:center; gap:12px; font-size:14px; font-variant-numeric:tabular-nums; }
.br-ct-doan-anh { flex:none; display:block; width:56px; height:56px; overflow:hidden; border-radius:10px; background:var(--mat2); }
.br-ct-doan-anh img { width:100%; height:100%; display:block; object-fit:cover; }
.br-ct-doan .br-ct-nhan { margin-top:4px; }
/* nhóm dạng danh sách: dòng 48, đường kẻ thụt trái 16 */
.br-ct-ds { overflow:hidden; border-radius:16px; background:var(--mat); }
.br-ct-dong { display:flex; align-items:center; justify-content:space-between; gap:12px; width:calc(100% - 16px); min-height:48px; margin:0 0 0 16px; padding:10px 16px 10px 0; border:0; background:none; color:var(--chu); font:inherit; font-size:14px; text-align:left; }
.br-ct-dong > input { flex:none; }
button.br-ct-dong { cursor:pointer; }
button.br-ct-dong:active { background:var(--lap); }
.br-ct-trong { color:var(--chu-phu); }
.br-ct-toi { width:13px; height:13px; color:var(--chu-mo); }
.br-ct-dx { margin-left:16px; padding:12px 16px 4px 0; }
.br-ct-dx > p { font-size:14px; line-height:1.45; }
.br-ct-dx-nut { display:flex; gap:8px; margin-left:-8px; }
.br-ct-khoi { display:flex; flex-direction:column; gap:8px; margin-left:16px; padding:12px 16px 12px 0; }
.br-ct-ds > * + * { border-top:.5px solid var(--vien); }
.br-ct .nut.br-ct-xoa { margin-top:32px; background:var(--mat); color:var(--do); }
.br-ct-ghim { position:sticky; bottom:0; margin-top:auto; z-index:2; padding-block:12px calc(12px + env(safe-area-inset-bottom)); background:var(--nen); }
@media (prefers-reduced-motion:reduce) { .br-thanh > span { transition:none; } }
