/* Giao diện dashboard theo KHUNG tool Nghiên cứu ngách (DeepNiche): menu trái 284 px, header dính 64 px, nội dung
   tối đa 1720 px; thẻ kính mờ bo 18, chữ Be Vietnam Pro + JetBrains Mono, thang vàng. Số đo lấy từ index.css của
   tool ngách (đọc, không chép Tailwind). Giữ các lớp cũ (.the .bang .nhan .nut …) cho Hộp việc / Hàng đợi / Token… */
:root, [data-theme="dark"] {
  --bg: #07070a; --bg-2: #0d0d12; --card: rgba(20,20,27,.72); --card-dac: #101016; --line: rgba(255,255,255,.07);
  --line-strong: rgba(255,255,255,.14); --text: #f3f1ec; --muted: #a3a3b2; --faint: #6f6f80;
  --g-100: #fdecc8; --g-200: #f9d891; --g-300: #f5c26b; --g-400: #eaa944; --g-500: #d99a2b; --g-600: #b77a1c; --g-700: #8f5c16;
  --hong: #fda4af; --hong-dam: #e11d48;
  /* tên cũ (các trang đang dùng) trỏ vào bảng mới */
  --nen: var(--bg); --nen-2: var(--card-dac); --nen-3: var(--bg-2); --nen-4: #15151c; --nen-o: var(--bg-2);
  --vien: var(--line); --vien-2: var(--line-strong); --vien-o: var(--line-strong); --luoi: rgba(255,255,255,.07); --luoi-2: rgba(255,255,255,.035); --net-dut: #3A3A48;
  --chu: var(--text); --chu-2: #E2DFD8; --chu-3: #C2BFB8; --chu-phu: var(--muted); --chu-mo: var(--faint);
  --vang: var(--g-300); --vang-sang: var(--g-200); --vang-nen: var(--g-300); --chu-tren-vang: #1A1206; --vien-vang: rgba(245,194,107,.3);
  --vang-1: var(--g-200); --vang-2: var(--g-300); --vang-3: var(--g-500);
  /* CHỈ 5 màu (sếp chốt 04/11): trung tính + vàng (nhấn: thương hiệu, đang mở, đang chạy, số chính, biểu đồ)
     + xanh (xong / đạt) + hồng đỏ (cần anh / lỗi / trễ). Kênh, loại việc phân biệt bằng nhãn + biểu tượng, không bằng màu. */
  --trung: #8E8B98; --trung-nhat: rgba(243,241,236,.22);
  --c-vietsub: var(--vang); --c-vn: var(--vang); --c-jp1: var(--vang); --c-jp2: var(--vang);
  --c-edit: var(--trung);
  --dat: #34D399; --loi: #FB7185; --loi-sang: #FDA4AF; --loi-mo: #C9A0AA; --vien-loi: rgba(251,113,133,.35); --nen-loi: #1A1118;
  --chay: var(--vang); --tin: var(--muted); --cho: var(--muted); --vang-dam: var(--g-400);
  --chu-tren-mau: #08151C; --bong: inset 0 1px rgba(255,255,255,.03), 0 20px 40px -24px rgba(0,0,0,.45); --bong-noi: 0 10px 32px rgba(0,0,0,.5);
  --mo-trang: rgba(255,255,255,.04);
  /* ngoại lệ có chủ đích cho 5 màu: tab Voice VN cần phân biệt đoạn "có bản mới" với lỗi / nghi ngờ / đã vá (spec GĐ4 §5) */
  --mau-tim: #A78BFA;
  /* ngoại lệ thứ hai (sếp chốt 23/11): video YouTube Đã đăng = xanh lá tô đặc, Sẵn đăng = xanh dương nhạt — nhìn là
     tách được video nào đã lên kênh, video nào chờ anh đăng (trước đây cùng một màu xanh xong) */
  --dat-dac: #3FB98A; --chu-tren-dat: #04281D; --lam: #7DB4F5;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f5f2; --bg-2: #ffffff; --card: rgba(255,255,255,.85); --card-dac: #fefefd; --line: rgba(15,15,20,.09);
  --line-strong: rgba(15,15,20,.16); --text: #121218; --muted: #5d5d6c; --faint: #8b8b99;
  --hong: #be123c; --hong-dam: #e11d48;
  --nen-4: #EFEDE8; --luoi: rgba(15,15,20,.08); --luoi-2: rgba(15,15,20,.04); --net-dut: #B5B2AA;
  --chu-2: #24242C; --chu-3: #3E3E48;
  --vang: #9a6514; --vang-sang: #7E5108; --vang-nen: var(--g-300); --vien-vang: rgba(154,101,20,.3);
  --trung: #A8A49B; --trung-nhat: rgba(18,18,24,.18);
  --dat: #047857; --loi: #be123c; --loi-sang: #be123c; --loi-mo: #9B5867; --vien-loi: rgba(190,18,60,.28); --nen-loi: #FFF4F6;
  --vang-dam: #8F5C0C;
  --chu-tren-mau: #FFFFFF; --bong: 0 1px 2px rgba(20,26,36,.06), 0 20px 40px -28px rgba(20,26,36,.25); --bong-noi: 0 10px 32px rgba(20,26,36,.16);
  --mo-trang: rgba(15,15,20,.04);
  --mau-tim: #6D28D9;
  --dat-dac: #7FD6AE; --chu-tren-dat: #053D2C; --lam: #1E63C4;
  color-scheme: light;
}
/* ---------- bộ biến giao diện chung --ds-* (ui-dong-bo đợt 1: rút từ --bdh-* của Ban điều hành, giữ nguyên giá trị).
   Sắc hero theo nhóm menu: YouTube hồng đỏ (yt) · TikTok vàng (tt, như hero Giám đốc) · Vận hành xanh lá (vh).
   --hs-* = sắc đang dùng (mặc định vàng); lớp .hero-yt / .hero-tt / .hero-vh hoặc .sac-yt / .sac-tt / .sac-vh đổi sắc
   cho hero, huy hiệu vòng và mọi thứ bên trong. Mỗi màu đều có giá trị sáng/tối. */
:root, [data-theme="dark"] {
  --ds-the: rgba(255,255,255,.025); --ds-the-2: rgba(255,255,255,.045); --ds-o: rgba(255,255,255,.035); --ds-o-2: rgba(255,255,255,.07);
  --ds-noi: inset 0 1px rgba(255,255,255,.04);
  --ds-bong: inset 0 1px rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.35), 0 24px 48px -28px rgba(0,0,0,.75);
  --ds-vien-vang: rgba(245,194,107,.26); --ds-vang-chu: var(--g-300); --ds-vang-nen: rgba(245,194,107,.12);
  --ds-chu-hero: #f7f0e2; --ds-phu-hero: rgba(247,240,226,.68); --ds-hero-vien: rgba(245,194,107,.24);
  --ds-hero-nen: radial-gradient(55% 130% at 92% -10%, rgba(245,194,107,.30), transparent 62%),
    radial-gradient(45% 100% at -5% 115%, rgba(183,122,28,.22), transparent 65%),
    linear-gradient(135deg, #1c170e 0%, #100e0b 46%, #0a0a0d 100%);
  --ds-hero-van: rgba(255,255,255,.035);
  --ds-hero-bong: inset 0 1px rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.4), 0 36px 70px -36px rgba(0,0,0,.9), 0 24px 60px -40px rgba(217,154,43,.45);
  --ds-huy-trong: radial-gradient(circle at 35% 28%, #33281a, #0e0c09 72%); --ds-huy-hinh: var(--g-300);
  --ds-kt: #5EEAD4; --ds-kt-dam: #2DD4BF; --ds-kt-nen: rgba(45,212,191,.10); --ds-kt-vien: rgba(94,234,212,.28); --ds-kt-chu: #99F6E4;
  --ds-kt-hero: radial-gradient(55% 130% at 92% -10%, rgba(45,212,191,.20), transparent 62%),
    radial-gradient(45% 100% at -5% 115%, rgba(100,116,139,.26), transparent 65%),
    linear-gradient(135deg, #0e1618 0%, #0c1013 46%, #0a0a0d 100%);
  --ds-kt-huy-trong: radial-gradient(circle at 35% 28%, #17302e, #080d0e 72%);
  --ds-kt-hero-bong: inset 0 1px rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.4), 0 36px 70px -36px rgba(0,0,0,.9), 0 24px 60px -40px rgba(45,212,191,.35);
  --ds-kt-sang: rgba(153,246,228,.45);
  --ds-o-hero: rgba(255,255,255,.045); --ds-o-hero-vien: rgba(255,255,255,.09);
  --ds-bong-sep: linear-gradient(135deg, rgba(245,194,107,.22), rgba(217,154,43,.09)); --ds-bong-sep-vien: rgba(245,194,107,.30);
  --ds-dem-1: #FB7185; --ds-dem-2: #E11D48;
  /* nổi kiểu tab đang chọn (tab đoạn, mục menu đang mở, thanh dưới) */
  --ds-noi-chon: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  --ds-noi-chon-bong: inset 0 1px rgba(255,255,255,.09), 0 1px 2px rgba(0,0,0,.5), 0 8px 18px -10px rgba(0,0,0,.7);
  --ds-noi-chon-vien: var(--line-strong);
  /* đợt 8: bóng hay lặp có giá trị sáng riêng → biến (rãnh lõm, tab nổi gọn trong rãnh cuộn, ô lọc đang chọn, lõi huy hiệu) */
  --ds-ranh-bong: inset 0 1px 3px rgba(0,0,0,.28);
  --ds-noi-chon-bong-gon: inset 0 1px rgba(255,255,255,.09), 0 1px 2px rgba(0,0,0,.5), 0 3px 5px -3px rgba(0,0,0,.6);
  --ds-loc-chon-bong: inset 0 1px rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.3);
  --ds-huy-loi-bong: inset 0 2px 6px rgba(0,0,0,.35), inset 0 -1px rgba(255,255,255,.08);
  /* sắc hero: TikTok = vàng (giống hero Giám đốc) */
  --ds-hero-tt: var(--ds-hero-nen); --ds-hero-tt-vien: var(--ds-hero-vien); --ds-hero-tt-bong: var(--ds-hero-bong);
  --ds-hero-tt-chu: var(--ds-chu-hero); --ds-hero-tt-phu: var(--ds-phu-hero); --ds-hero-tt-nhan: var(--ds-vang-chu);
  --ds-hero-tt-sang: rgba(253,236,200,.6); --ds-hero-tt-van: var(--ds-hero-van);
  --ds-huy-tt-vong: conic-gradient(from 200deg, var(--g-100), var(--g-400), var(--g-700), var(--g-300), var(--g-100));
  --ds-huy-tt-bong: 0 12px 30px -10px rgba(217,154,43,.75), 0 0 0 6px rgba(245,194,107,.07); --ds-huy-tt-nho-bong: 0 6px 16px -8px rgba(217,154,43,.8);
  --ds-huy-tt-trong: var(--ds-huy-trong); --ds-huy-tt-hinh: var(--ds-huy-hinh); --ds-huy-tt-hinh-bong: rgba(245,194,107,.45);
  /* YouTube = hồng đỏ (theo --loi / --hong) */
  --ds-hero-yt: radial-gradient(55% 130% at 92% -10%, rgba(251,113,133,.26), transparent 62%),
    radial-gradient(45% 100% at -5% 115%, rgba(190,18,60,.24), transparent 65%),
    linear-gradient(135deg, #1d0f13 0%, #120b0e 46%, #0a0a0d 100%);
  --ds-hero-yt-vien: rgba(251,113,133,.24);
  --ds-hero-yt-bong: inset 0 1px rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.4), 0 36px 70px -36px rgba(0,0,0,.9), 0 24px 60px -40px rgba(225,29,72,.42);
  --ds-hero-yt-chu: #fbeef0; --ds-hero-yt-phu: rgba(251,238,240,.68); --ds-hero-yt-nhan: #FDA4AF;
  --ds-hero-yt-sang: rgba(254,205,211,.55); --ds-hero-yt-van: rgba(255,255,255,.035);
  --ds-huy-yt-vong: conic-gradient(from 200deg, #FFE4E6, #FB7185, #9F1239, #FDA4AF, #FFE4E6);
  --ds-huy-yt-bong: 0 12px 30px -10px rgba(225,29,72,.62), 0 0 0 6px rgba(251,113,133,.07); --ds-huy-yt-nho-bong: 0 6px 16px -8px rgba(225,29,72,.7);
  --ds-huy-yt-trong: radial-gradient(circle at 35% 28%, #36181f, #0f090b 72%); --ds-huy-yt-hinh: #FDA4AF; --ds-huy-yt-hinh-bong: rgba(251,113,133,.45);
  /* Vận hành = xanh lá (theo --dat) */
  --ds-hero-vh: radial-gradient(55% 130% at 92% -10%, rgba(52,211,153,.20), transparent 62%),
    radial-gradient(45% 100% at -5% 115%, rgba(4,120,87,.26), transparent 65%),
    linear-gradient(135deg, #0d1813 0%, #0b100e 46%, #0a0a0d 100%);
  --ds-hero-vh-vien: rgba(52,211,153,.22);
  --ds-hero-vh-bong: inset 0 1px rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.4), 0 36px 70px -36px rgba(0,0,0,.9), 0 24px 60px -40px rgba(16,185,129,.36);
  --ds-hero-vh-chu: #ecf8f2; --ds-hero-vh-phu: rgba(236,248,242,.68); --ds-hero-vh-nhan: #6EE7B7;
  --ds-hero-vh-sang: rgba(167,243,208,.45); --ds-hero-vh-van: rgba(255,255,255,.035);
  --ds-huy-vh-vong: conic-gradient(from 200deg, #D1FAE5, #34D399, #047857, #6EE7B7, #D1FAE5);
  --ds-huy-vh-bong: 0 12px 30px -10px rgba(16,185,129,.55), 0 0 0 6px rgba(52,211,153,.06); --ds-huy-vh-nho-bong: 0 6px 16px -8px rgba(16,185,129,.7);
  --ds-huy-vh-trong: radial-gradient(circle at 35% 28%, #15302a, #080e0b 72%); --ds-huy-vh-hinh: #6EE7B7; --ds-huy-vh-hinh-bong: rgba(52,211,153,.42);
  /* Quản trị (Tài chính) = trung tính than chì, ánh vàng nhẹ; hero Tài chính đổi sang xanh / hồng / vàng theo lãi · lỗ · đạt mục tiêu */
  --ds-hero-tc: radial-gradient(55% 130% at 92% -10%, rgba(163,163,178,.20), transparent 62%),
    radial-gradient(45% 100% at -5% 115%, rgba(245,194,107,.10), transparent 65%),
    linear-gradient(135deg, #16161b 0%, #0f0f13 46%, #0a0a0d 100%);
  --ds-hero-tc-vien: rgba(255,255,255,.12);
  --ds-hero-tc-bong: inset 0 1px rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.4), 0 36px 70px -36px rgba(0,0,0,.9), 0 24px 60px -40px rgba(163,163,178,.30);
  --ds-hero-tc-chu: #f3f1ec; --ds-hero-tc-phu: rgba(243,241,236,.66); --ds-hero-tc-nhan: #C2BFB8;
  --ds-hero-tc-sang: rgba(255,255,255,.32); --ds-hero-tc-van: rgba(255,255,255,.035);
  --ds-huy-tc-vong: conic-gradient(from 200deg, #f3f1ec, #8E8B98, #3a3a48, #C2BFB8, #f3f1ec);
  --ds-huy-tc-bong: 0 12px 30px -10px rgba(120,120,140,.55), 0 0 0 6px rgba(255,255,255,.04); --ds-huy-tc-nho-bong: 0 6px 16px -8px rgba(120,120,140,.7);
  --ds-huy-tc-trong: radial-gradient(circle at 35% 28%, #2a2a32, #0b0b0e 72%); --ds-huy-tc-hinh: #E2DFD8; --ds-huy-tc-hinh-bong: rgba(255,255,255,.28);
  /* sắc đang dùng: mặc định vàng (huy hiệu ở nhãn mục ngoài hero cũng vàng) */
  --hs-nen: var(--ds-hero-tt); --hs-vien: var(--ds-hero-tt-vien); --hs-bong: var(--ds-hero-tt-bong); --hs-chu: var(--ds-hero-tt-chu);
  --hs-phu: var(--ds-hero-tt-phu); --hs-nhan: var(--ds-hero-tt-nhan); --hs-sang: var(--ds-hero-tt-sang); --hs-van: var(--ds-hero-tt-van);
  --hs-vong: var(--ds-huy-tt-vong); --hs-vong-bong: var(--ds-huy-tt-bong); --hs-nho-bong: var(--ds-huy-tt-nho-bong);
  --hs-trong: var(--ds-huy-tt-trong); --hs-hinh: var(--ds-huy-tt-hinh); --hs-hinh-bong: var(--ds-huy-tt-hinh-bong);
}
[data-theme="light"] {
  --ds-the: #ffffff; --ds-the-2: #ffffff; --ds-o: rgba(15,15,20,.035); --ds-o-2: rgba(15,15,20,.06);
  --ds-noi: inset 0 1px rgba(255,255,255,.9), 0 1px 2px rgba(20,26,36,.05);
  --ds-bong: inset 0 1px rgba(255,255,255,.9), 0 1px 2px rgba(20,26,36,.05), 0 18px 36px -26px rgba(20,26,36,.24);
  --ds-vien-vang: rgba(183,122,28,.28); --ds-vang-chu: var(--g-700); --ds-vang-nen: rgba(245,194,107,.20);
  --ds-chu-hero: #2A1D07; --ds-phu-hero: rgba(42,29,7,.66); --ds-hero-vien: rgba(183,122,28,.24);
  --ds-hero-nen: radial-gradient(55% 130% at 92% -10%, rgba(245,194,107,.48), transparent 62%),
    radial-gradient(45% 100% at -5% 115%, rgba(249,216,145,.40), transparent 65%),
    linear-gradient(135deg, #fffaf0 0%, #fdf5e6 50%, #fbf4e8 100%);
  --ds-hero-van: rgba(143,92,22,.055);
  --ds-hero-bong: inset 0 1px rgba(255,255,255,.95), 0 1px 2px rgba(60,40,10,.06), 0 30px 60px -36px rgba(143,92,22,.38);
  --ds-huy-trong: radial-gradient(circle at 35% 28%, #fffdf7, #f6e5bf 78%); --ds-huy-hinh: var(--g-600);
  --ds-kt: #0F766E; --ds-kt-dam: #0D9488; --ds-kt-nen: rgba(13,148,136,.08); --ds-kt-vien: rgba(13,148,136,.26); --ds-kt-chu: #0F766E;
  --ds-kt-hero: radial-gradient(55% 130% at 92% -10%, rgba(45,212,191,.24), transparent 62%),
    radial-gradient(45% 100% at -5% 115%, rgba(148,163,184,.28), transparent 65%),
    linear-gradient(135deg, #f3fbfa 0%, #f1f6f8 50%, #f6f7f8 100%);
  --ds-kt-huy-trong: radial-gradient(circle at 35% 28%, #fbfffe, #cdeee9 78%);
  --ds-kt-hero-bong: inset 0 1px rgba(255,255,255,.95), 0 1px 2px rgba(10,40,40,.06), 0 30px 60px -36px rgba(13,148,136,.32);
  --ds-kt-sang: #ffffff;
  --ds-o-hero: rgba(255,255,255,.72); --ds-o-hero-vien: rgba(15,15,20,.08);
  --ds-bong-sep: linear-gradient(135deg, rgba(245,194,107,.40), rgba(249,216,145,.22)); --ds-bong-sep-vien: rgba(183,122,28,.26);
  --ds-dem-1: #F43F5E; --ds-dem-2: #BE123C;
  --ds-noi-chon: linear-gradient(180deg, #ffffff, #fbfaf7);
  --ds-noi-chon-bong: 0 1px 2px rgba(20,26,36,.08), 0 6px 14px -8px rgba(20,26,36,.22);
  --ds-noi-chon-vien: rgba(15,15,20,.1);
  --ds-ranh-bong: inset 0 1px 2px rgba(20,26,36,.08);
  --ds-noi-chon-bong-gon: 0 1px 2px rgba(20,26,36,.08), 0 3px 5px -3px rgba(20,26,36,.2);
  --ds-loc-chon-bong: 0 1px 2px rgba(20,26,36,.1);
  --ds-huy-loi-bong: inset 0 2px 5px rgba(143,92,22,.18), inset 0 -1px rgba(255,255,255,.8);
  --ds-hero-tt-sang: #ffffff;
  --ds-hero-yt: radial-gradient(55% 130% at 92% -10%, rgba(251,113,133,.30), transparent 62%),
    radial-gradient(45% 100% at -5% 115%, rgba(254,205,211,.55), transparent 65%),
    linear-gradient(135deg, #fff6f7 0%, #fdf1f3 50%, #fbf5f6 100%);
  --ds-hero-yt-vien: rgba(190,18,60,.20);
  --ds-hero-yt-bong: inset 0 1px rgba(255,255,255,.95), 0 1px 2px rgba(60,10,20,.06), 0 30px 60px -36px rgba(190,18,60,.30);
  --ds-hero-yt-chu: #2b0a12; --ds-hero-yt-phu: rgba(43,10,18,.66); --ds-hero-yt-nhan: #BE123C;
  --ds-hero-yt-sang: #ffffff; --ds-hero-yt-van: rgba(159,18,57,.05);
  --ds-huy-yt-vong: conic-gradient(from 200deg, #FFE4E6, #F43F5E, #9F1239, #FDA4AF, #FFE4E6);
  --ds-huy-yt-bong: 0 12px 30px -10px rgba(225,29,72,.45), 0 0 0 6px rgba(244,63,94,.06); --ds-huy-yt-nho-bong: 0 6px 16px -8px rgba(225,29,72,.55);
  --ds-huy-yt-trong: radial-gradient(circle at 35% 28%, #fffafb, #fbd3da 78%); --ds-huy-yt-hinh: #BE123C; --ds-huy-yt-hinh-bong: rgba(244,63,94,.30);
  --ds-hero-vh: radial-gradient(55% 130% at 92% -10%, rgba(52,211,153,.26), transparent 62%),
    radial-gradient(45% 100% at -5% 115%, rgba(167,243,208,.45), transparent 65%),
    linear-gradient(135deg, #f3fbf7 0%, #eff8f3 50%, #f5f8f6 100%);
  --ds-hero-vh-vien: rgba(4,120,87,.20);
  --ds-hero-vh-bong: inset 0 1px rgba(255,255,255,.95), 0 1px 2px rgba(5,40,30,.06), 0 30px 60px -36px rgba(4,120,87,.28);
  --ds-hero-vh-chu: #052e1f; --ds-hero-vh-phu: rgba(5,46,31,.66); --ds-hero-vh-nhan: #047857;
  --ds-hero-vh-sang: #ffffff; --ds-hero-vh-van: rgba(4,120,87,.05);
  --ds-huy-vh-vong: conic-gradient(from 200deg, #D1FAE5, #10B981, #065F46, #6EE7B7, #D1FAE5);
  --ds-huy-vh-bong: 0 12px 30px -10px rgba(16,185,129,.42), 0 0 0 6px rgba(16,185,129,.06); --ds-huy-vh-nho-bong: 0 6px 16px -8px rgba(16,185,129,.5);
  --ds-huy-vh-trong: radial-gradient(circle at 35% 28%, #fbfffd, #c9eedd 78%); --ds-huy-vh-hinh: #047857; --ds-huy-vh-hinh-bong: rgba(16,185,129,.30);
  --ds-hero-tc: radial-gradient(55% 130% at 92% -10%, rgba(142,139,152,.24), transparent 62%),
    radial-gradient(45% 100% at -5% 115%, rgba(245,194,107,.18), transparent 65%),
    linear-gradient(135deg, #fbfbf9 0%, #f4f3f0 50%, #f6f5f2 100%);
  --ds-hero-tc-vien: rgba(15,15,20,.12);
  --ds-hero-tc-bong: inset 0 1px rgba(255,255,255,.95), 0 1px 2px rgba(20,20,30,.06), 0 30px 60px -36px rgba(40,40,60,.28);
  --ds-hero-tc-chu: #16161c; --ds-hero-tc-phu: rgba(22,22,28,.66); --ds-hero-tc-nhan: #5d5d6c;
  --ds-hero-tc-sang: #ffffff; --ds-hero-tc-van: rgba(15,15,20,.045);
  --ds-huy-tc-vong: conic-gradient(from 200deg, #ffffff, #A8A49B, #4a4a55, #d6d3cc, #ffffff);
  --ds-huy-tc-bong: 0 12px 30px -10px rgba(40,40,60,.35), 0 0 0 6px rgba(15,15,20,.04); --ds-huy-tc-nho-bong: 0 6px 16px -8px rgba(40,40,60,.4);
  --ds-huy-tc-trong: radial-gradient(circle at 35% 28%, #ffffff, #e6e4de 78%); --ds-huy-tc-hinh: #3E3E48; --ds-huy-tc-hinh-bong: rgba(40,40,60,.22);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); overflow-x: clip;
  font: 14px/1.5 "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--vang); text-decoration: none; }
a:hover { color: var(--vang-sang); }
h1 { font-size: 28px; margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
h2 { font-size: 12px; margin: 26px 0 10px; color: var(--chu-phu); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.phu { color: var(--muted); }
.nho { font-size: 12px; }
.mono, .so-lon, .bang td.so { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.an-chu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chu-vang { background: linear-gradient(100deg, var(--g-100) 0%, var(--g-300) 35%, var(--g-500) 70%, var(--g-300) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .chu-vang { background-image: linear-gradient(100deg, var(--g-600) 0%, var(--g-500) 40%, var(--g-700) 75%, var(--g-600) 100%); }

/* ---------- menu trái (≥1024 px cố định; nhỏ hơn: ngăn kéo trượt từ trái) */
.sb { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 284px; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-right: 1px solid var(--line); }
.sb-dau { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px;
  border-bottom: 1px solid var(--line); }
.sb-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.sb-logo:hover { color: var(--text); }
.sb-logo-o { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--chu-tren-vang);
  background: linear-gradient(135deg, var(--g-200), var(--g-300) 45%, var(--g-500)); box-shadow: inset 0 1px rgba(255,255,255,.5); }
img.sb-logo-o { background: none; box-shadow: 0 6px 18px -8px rgba(217,154,43,.6); border-radius: 9px; }
.sb-logo-chu { line-height: 1; min-width: 0; }
.sb-logo-chu b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.025em; }
.sb-logo-chu small { display: block; margin-top: 3px; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.sb-nut-thu, .sb-nut-dong, .sb-nut-mo { border: 0; background: transparent; color: var(--faint); border-radius: 8px; padding: 6px; cursor: pointer;
  display: grid; place-items: center; }
.sb-nut-thu:hover, .sb-nut-dong:hover, .sb-nut-mo:hover { background: var(--mo-trang); color: var(--text); }
.sb-nut-thu .ic, .sb-nut-mo .ic { width: 16px; height: 16px; }
.sb-nut-dong, .sb-nut-mo { display: none; }
.sb-menu { flex: 1; overflow-y: auto; padding: 16px 12px; scrollbar-width: thin; }
.sb-khoi + .sb-khoi { margin-top: 12px; }
.sb-nhom { --nm: var(--faint); width: 100%; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 8px 10px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--nm) 40%, transparent); cursor: pointer; text-align: left;
  background: linear-gradient(to right, color-mix(in srgb, var(--nm) 20%, transparent), color-mix(in srgb, var(--nm) 4%, transparent));
  color: color-mix(in srgb, var(--nm) 70%, var(--text)); font: 900 11px/1.2 "Be Vietnam Pro", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.sb-nhom:hover { background: linear-gradient(to right, color-mix(in srgb, var(--nm) 30%, transparent), color-mix(in srgb, var(--nm) 6%, transparent)); }
.sb-nhom.m-hong { --nm: var(--hong-dam); } .sb-nhom.m-vietsub { --nm: var(--c-vietsub); } .sb-nhom.m-vang { --nm: var(--g-400); }
.sb-nhom.m-tim { --nm: var(--mau-tim); }  /* Quản trị (Tài chính · Ban điều hành · Token): tím — sếp chốt 14/11, không để xám */
.sb-nhom .mui { width: 12px; height: 12px; margin-left: auto; transition: transform .15s; }
.sb-nhom[aria-expanded="false"] .mui { transform: rotate(-90deg); }
.sb-muc { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; padding: 10px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.sb-muc .ic { width: 18px; height: 18px; }
.sb-muc:hover { background: var(--mo-trang); color: var(--text); }
.sb-muc.dang { color: var(--ds-vang-chu); font-weight: 600;  /* ui-dong-bo: kiểu tab đoạn đang chọn — nổi + vệt sáng trong */
  background: linear-gradient(to right, color-mix(in srgb, var(--g-300) 10%, transparent), transparent 70%), var(--ds-noi-chon);
  box-shadow: inset 0 0 0 1px var(--ds-noi-chon-vien), var(--ds-noi-chon-bong); }
.sb-muc.dang .ic { filter: drop-shadow(0 1px 3px rgba(245,194,107,.35)); }
[data-theme="light"] .sb-muc.dang { background: linear-gradient(to right, rgba(245,194,107,.16), transparent 70%), var(--ds-noi-chon); }
[data-theme="light"] .sb-muc.dang .ic { filter: none; }
.sb-ten { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sb-hh { margin-left: auto; padding: 1px 6px; border-radius: 99px; font-size: 9px; font-weight: 900; letter-spacing: .05em;
  background: color-mix(in srgb, var(--loi) 15%, transparent); color: var(--loi-sang); }
.sb-the { margin: 12px; padding: 14px 16px; border-radius: 16px; font-size: 12px; flex: none;
  border: 1px solid color-mix(in srgb, var(--g-300) 20%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--g-300) 10%, transparent), transparent); }
.sb-the-dau { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sb-the-dau .ic { width: 16px; height: 16px; color: var(--vang); }
.sb-the p { margin: 6px 0 10px; color: var(--muted); }
.sb-the .thanh { height: 6px; margin-top: 8px; }
.sb-do { margin-top: 10px; }
.sb-do-dau { display: flex; justify-content: space-between; gap: 8px; }
.sb-do .thanh { margin-top: 4px; }
.sb-do-reset { margin-top: 3px; font-size: 11px; color: var(--muted); }
.sb-the .sb-do + p { margin-top: 10px; }
.nut.nut-nho { min-height: 32px; width: 100%; font-size: 12px; padding: 0 12px; }
html.sb-thu-gon .sb { width: 76px; }
html.sb-thu-gon .sb-logo-chu, html.sb-thu-gon .sb-nut-thu, html.sb-thu-gon .sb-ten, html.sb-thu-gon .sb-hh,
html.sb-thu-gon .sb-nhom, html.sb-thu-gon .sb-the { display: none; }
html.sb-thu-gon .sb-con[hidden] { display: block; }
html.sb-thu-gon .sb-dau { justify-content: center; padding: 0 8px; }
html.sb-thu-gon .sb-muc { justify-content: center; padding: 10px 0; }
html.sb-thu-gon .sb-nut-mo { display: grid; margin: 12px auto; }
.sb-phu { position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* ---------- vùng phải: header dính + nội dung */
.khung-phai { min-width: 0; }
body.co-khung .khung-phai { padding-left: 284px; transition: padding .2s; }
html.sb-thu-gon body.co-khung .khung-phai { padding-left: 76px; }
.hd { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line); }
.hd-nut { width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; flex: none; }
.hd-nut:hover { color: var(--text); background: var(--mo-trang); }
.hd-nut .ic { width: 18px; height: 18px; }
.hd-menu { display: none; }
.hd-tim { display: inline-flex; align-items: center; gap: 10px; height: 40px; width: min(340px, 24vw); flex: none; padding: 0 8px 0 12px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--faint); font: 400 13px "Be Vietnam Pro", sans-serif; cursor: pointer; }
.hd-tim:hover { border-color: color-mix(in srgb, var(--g-300) 40%, transparent); }
.hd-tim .ic { width: 16px; height: 16px; }
.hd-tim span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd { font: 600 10px "JetBrains Mono", monospace; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--faint); white-space: nowrap; }
.hd-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--ds-vien-vang); color: var(--ds-vang-chu); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(245,194,107,.12), rgba(245,194,107,.04)); box-shadow: inset 0 1px rgba(255,255,255,.07), 0 4px 12px -8px rgba(0,0,0,.6); }
[data-theme="light"] .hd-chip { background: linear-gradient(180deg, #fffdf8, #fbf3e3); box-shadow: inset 0 1px #fff, 0 1px 2px rgba(60,40,10,.08); }
.hd-chip .ic { width: 15px; height: 15px; }
/* Ô mốc thời gian = nút mở bảng chọn Ngày / Tuần (máy tính; sếp 06/11: dồn bộ chọn vào đây cho gọn) */
.hd-tg-khung { position: relative; flex: none; }
button.hd-chip { font-family: "Be Vietnam Pro", sans-serif; cursor: pointer; }
button.hd-chip:hover, button.hd-chip[aria-expanded="true"] { background: linear-gradient(180deg, rgba(245,194,107,.2), rgba(245,194,107,.08)); }
[data-theme="light"] button.hd-chip:hover, [data-theme="light"] button.hd-chip[aria-expanded="true"] { background: linear-gradient(180deg, #fff8ea, #f8e9c9); }
.hd-chip .ic-xuong { width: 13px; height: 13px; margin-left: -3px; opacity: .75; transition: transform .2s; }
.hd-chip[aria-expanded="true"] .ic-xuong { transform: rotate(180deg); }
.hd-tg-bang { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; width: min(460px, calc(100vw - 32px)); padding: 14px;
  border-radius: 16px; background: var(--card-dac); border: 1px solid var(--line-strong); box-shadow: var(--ds-bong), var(--bong-noi); }
.hd-tg-bang[hidden] { display: none; }
.hd-tg-bang > [data-chon-tg] { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 12px; width: 100%; }
.hd-tg-bang .nut-doan { min-height: 32px; }
.hd-phai { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.hd-pill { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
/* nút "Đang làm" + bảng công việc chính (mọi trang) */
.hd-tv-khung { position: relative; flex: none; }
.hd-tv { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ds-vien-vang); color: var(--ds-vang-chu); font: 600 12.5px "Be Vietnam Pro", sans-serif; white-space: nowrap;
  background: linear-gradient(180deg, rgba(245,194,107,.12), rgba(245,194,107,.04)); box-shadow: inset 0 1px rgba(255,255,255,.07), 0 4px 12px -8px rgba(0,0,0,.6);
  transition: background-color .16s, border-color .16s; }
.hd-tv:hover, .hd-tv[aria-expanded="true"] { background: linear-gradient(180deg, rgba(245,194,107,.2), rgba(245,194,107,.08)); }
[data-theme="light"] .hd-tv { background: linear-gradient(180deg, #fffdf8, #fbf3e3); box-shadow: inset 0 1px #fff, 0 1px 2px rgba(60,40,10,.08); }
[data-theme="light"] .hd-tv:hover, [data-theme="light"] .hd-tv[aria-expanded="true"] { background: linear-gradient(180deg, #fff8ea, #f8e9c9); }
.hd-tv b { font-size: 12.5px; }
.hd-tv-cham { width: 7px; height: 7px; border-radius: 50%; background: transparent; border: 1.5px dashed var(--chu-mo); }  /* chưa chạy: nét đứt */
.hd-tv.chay .hd-tv-cham { background: var(--vang); border: 0; box-shadow: 0 0 0 3px rgba(245,194,107,.18); animation: chop 1.4s ease-in-out infinite; }
.hd-tv.loi { border-color: var(--vien-loi); }
.tv-bang { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(520px, calc(100vw - 24px)); max-height: min(70vh, 640px);
  overflow: auto; padding: 8px; border-radius: 16px; background: var(--card-dac); border: 1px solid var(--line-strong); box-shadow: var(--ds-bong), var(--bong-noi); }
.tv-dau { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tv-dau b { font-size: 14px; }
.tv-ds { display: flex; flex-direction: column; }
.tv-dong { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px; border-radius: 12px;
  color: inherit; text-decoration: none; }
.tv-dong:hover { background: var(--mo-trang); }
.tv-dong.xong { opacity: .6; }
.tv-dong .vien-mau { align-self: start; margin-top: 1px; }
.tv-giua { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tv-giua b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-phu { font-size: 11.5px; color: var(--chu-phu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-khau { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--chu-2); }
.tv-dong.dang .tv-khau { color: var(--vang); font-weight: 600; }
.tv-khau .cham-chay { margin: 0; width: 7px; height: 7px; flex: none; }
.tv-thanh { display: block; height: 3px; border-radius: 2px; background: var(--luoi); position: relative; overflow: hidden; margin-top: 2px; }
.tv-thanh::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 2px; background: var(--vang); }
.tv-dong.xong .tv-thanh::after { background: var(--dat); } .tv-dong.tre .tv-thanh::after, .tv-dong.can_anh .tv-thanh::after { background: var(--loi); }
.tv-phai { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tv-phai small { font-size: 11.5px; color: var(--chu-phu); white-space: nowrap; }
/* Sức khoẻ máy (sếp 09/11): chấm màu theo mức — rảnh xanh, bận vừa vàng, nặng đỏ; chưa đo = nét đứt */
.hd-may { --mm: var(--chu-mo); border-color: color-mix(in srgb, var(--mm) 40%, transparent); color: var(--text);
  background: color-mix(in srgb, var(--mm) 9%, transparent); }
.hd-may:hover, .hd-may[aria-expanded="true"] { background: color-mix(in srgb, var(--mm) 17%, transparent); }
[data-theme="light"] .hd-may, [data-theme="light"] .hd-may:hover { background: color-mix(in srgb, var(--mm) 10%, #fff); }
.hd-may.ranh { --mm: var(--dat); } .hd-may.vua { --mm: var(--vang); } .hd-may.nang { --mm: var(--loi); }
.hd-may-cham { width: 8px; height: 8px; border-radius: 50%; flex: none; border: 1.5px dashed var(--chu-mo); }
.hd-may:is(.ranh, .vua, .nang) .hd-may-cham { border: 0; background: var(--mm); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mm) 22%, transparent); }
.hd-may.nang .hd-may-cham { animation: chop 1.4s ease-in-out infinite; }
.hd-may-chu { color: var(--chu-phu); font-weight: 500; }
.hd-may-muc { color: var(--mm); }
.hd-may.khong_ro .hd-may-muc { color: var(--chu-phu); }
.hd-may-con { font-size: 11.5px; color: var(--chu-2); }
.hd-may-con:empty { display: none; }
.may-bang { width: min(400px, calc(100vw - 24px)); }
.may-noi { display: grid; gap: 10px; padding: 6px 10px 8px; }
.may-muc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.may-muc b { color: var(--mm, var(--text)); }
.may-dem { margin-top: -4px; font-weight: 600; color: var(--chu-2); font-variant-numeric: tabular-nums; }
.may-sau { margin-top: -6px; }
.may-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.may-o { display: grid; gap: 4px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); }
.may-o small { font-size: 11px; color: var(--chu-phu); }
.may-o b { font-size: 15px; }
.may-o .tv-thanh::after { background: var(--mau, var(--vang)); }
.may-viec { display: grid; gap: 2px; }
.may-dong { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.may-dong span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.may-dong small { flex: none; color: var(--chu-phu); font-size: 11.5px; }
.may-ghi { font-size: 11.5px; color: var(--chu-phu); }
@media (max-width: 767px) {
  .hd-may-chu, .hd-may-muc { display: none; }  /* điện thoại: chấm màu + số phút, không làm dày thanh đầu */
  .hd-may { padding: 0 10px; }
  .hd-tv-chu { display: none; }
  .tv-bang { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; max-height: calc(100vh - 160px); }
}
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--pm, var(--muted)) 30%, transparent); background: color-mix(in srgb, var(--pm, var(--muted)) 10%, transparent);
  color: var(--pm, var(--chu-2)); font-size: 11.5px; font-weight: 600; }
.pill .ic { width: 13px; height: 13px; }
.pill.dat { --pm: var(--dat); } .pill.san { --pm: var(--lam); }
.pill.dat.da-dang { background: var(--dat-dac); border-color: var(--dat-dac); color: var(--chu-tren-dat); } .pill.loi { --pm: var(--loi-sang); } .pill.vang { --pm: var(--vang); } .pill.tin { --pm: var(--c-vietsub); }
.hd-tk { position: relative; }
.hd-avatar { white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer; font: 600 12px "Be Vietnam Pro", sans-serif; }
.hd-avatar:hover { border-color: color-mix(in srgb, var(--g-300) 40%, transparent); }
.hd-chu-cai { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--g-300); color: #000; font-weight: 900; font-size: 12px; }
.hd-menu-tk { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 200px; padding: 6px; border-radius: 14px;
  background: var(--card-dac); border: 1px solid var(--line-strong); box-shadow: var(--bong-noi); }
.hd-menu-dau { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.hd-menu-tk a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--chu-2); font-size: 13px; }
.hd-menu-tk a:hover { background: var(--mo-trang); color: var(--text); }
.hd-menu-tk .ic { width: 16px; height: 16px; }
.noi-dung { max-width: 1720px; margin: 0 auto; padding: 24px 24px 48px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.noi-dung > * { animation: hien .5s cubic-bezier(.2,.8,.2,1) both; }
.noi-dung > :nth-child(2) { animation-delay: .04s; } .noi-dung > :nth-child(3) { animation-delay: .08s; }
.noi-dung > :nth-child(4) { animation-delay: .12s; } .noi-dung > :nth-child(5) { animation-delay: .16s; }
/* số đếm đỏ (tab đoạn, nút lọc): huy hiệu tròn gradient hồng đỏ như tab Ban điều hành */
.dem, .bdh-dem { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; color: #fff; text-align: center;
  font: 700 11px/20px "JetBrains Mono", monospace; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ds-dem-1), var(--ds-dem-2)); box-shadow: inset 0 1px rgba(255,255,255,.3), 0 3px 8px -3px rgba(225,29,72,.7); }

/* ---------- tìm nhanh (Ctrl K) */
.tim { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px;
  background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tim[hidden] { display: none; }
.tim-hop { width: min(620px, 100%); max-height: 70vh; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: var(--card-dac); border: 1px solid var(--line-strong); box-shadow: var(--bong-noi); animation: noi .18s ease both; }
.tim-o { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 56px; border-bottom: 1px solid var(--line); color: var(--faint); }
.tim-o input:focus { outline: none; border: 0; }
.tim-o input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 15px "Be Vietnam Pro", sans-serif; }
.tim-ds { overflow-y: auto; padding: 6px; }
.tim-muc { display: grid; grid-template-columns: 74px minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.tim-muc b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tim-muc .phu { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tim-muc.chon, .tim-muc:hover { background: color-mix(in srgb, var(--g-300) 12%, transparent); color: var(--text); }
.tim-nhom { font: 700 10px "Be Vietnam Pro", sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }

/* ---------- thẻ, nhãn, đầu trang */
/* thẻ / khối (ui-dong-bo đợt 1: cùng chiều sâu khối Ban điều hành — vệt sáng trong 1px + bóng nhiều lớp; điện thoại lề 16) */
.the, .khoi, .bdh-khoi { background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 18px; padding: 22px 24px; box-shadow: var(--ds-bong); min-width: 0; }
.the, .khoi { transition: border-color .2s; }
.the:hover, .khoi:hover { border-color: var(--line-strong); }
@media (max-width: 640px) { .the, .khoi { padding: 16px; border-radius: 16px; } }
.the-trong { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.nhan-muc { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ds-vang-chu); font-weight: 700; }
.nhan-muc .ic { width: 14px; height: 14px; }
.tieu-muc, .bdh-khoi-tieu { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; color: var(--text); }
.dau-khoi, .bdh-khoi-dau { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; align-items: flex-end; margin-bottom: 16px; }
.dau-khoi > div:first-child, .bdh-khoi-dau > div:first-child { min-width: 0; }
.dau-trang { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dau-trang .nhan-muc, .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--g-300) 90%, transparent); }
[data-theme="light"] .dau-trang .nhan-muc, [data-theme="light"] .eyebrow { color: var(--g-700); }
.dau-trang .lon, .dau-trang h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; margin-top: 6px; line-height: 1.2; }
.dau-trang .phu { font-size: 14px; color: var(--muted); max-width: 46rem; }
.luoi { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.hang { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.giua { justify-content: space-between; }
.chu-thich { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: var(--muted); align-items: center; }
.chu-thich > span { display: inline-flex; gap: 6px; align-items: center; }
.mau-o { width: 12px; height: 12px; border-radius: 3px; background: var(--m); flex: none; }
.mau-o.net { background: transparent; border: 1.5px dashed var(--m); }
.mau-vach { width: 16px; border-top: 2px dashed var(--vang); }
.cu { color: var(--vang); font-size: 12px; }
.cu::before { content: "◷ "; }
.o-vuong { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none;
  background: color-mix(in srgb, var(--m, var(--g-300)) 12%, transparent); color: var(--m, var(--vang)); }

.cham-song { width: 8px; height: 8px; border-radius: 50%; background: var(--m, var(--dat)); flex: none; }
.cham-song.nhip { animation: nhip 1.8s ease-out infinite; }

/* ---------- nút (ui-dong-bo đợt 1: cùng công thức nút Ban điều hành, dùng toàn web)
   .nut vàng có chiều sâu · .nut-dat Duyệt vàng kính trong (cùng công thức đầu mục TikTok ở menu) · .nut-ma / .nut-phu ma ·
   .nut-nguy hồng đỏ (đợt 8: bỏ .nut-vien — tab dùng .tab-doan, nút phụ dùng .nut-ma). Rê chuột nổi lên, bấm lún xuống; tắt chuyển động
   thì đứng yên. */
.nut, .nut-phu, .nut-nguy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap; }
.nut { position: relative; font-weight: 700; letter-spacing: -.005em; color: #1A1206; border-color: rgba(143,92,22,.55); text-shadow: 0 1px rgba(255,255,255,.35);
  background: linear-gradient(180deg, var(--g-100) 0%, var(--g-300) 46%, var(--g-500) 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.65), inset 0 -1px rgba(143,92,22,.4), 0 1px 2px rgba(0,0,0,.3), 0 10px 22px -10px rgba(217,154,43,.8);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.nut:hover { transform: translateY(-1px); filter: brightness(1.05) saturate(1.05); color: #1A1206;
  box-shadow: inset 0 1px rgba(255,255,255,.7), inset 0 -1px rgba(143,92,22,.4), 0 2px 4px rgba(0,0,0,.25), 0 16px 30px -12px rgba(217,154,43,.9); }
.nut-dat { --nm: var(--g-300); position: relative; min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
  letter-spacing: -.005em; gap: 6px; text-shadow: none; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--nm) 60%, transparent); color: color-mix(in srgb, var(--nm) 88%, var(--text));
  background: linear-gradient(100deg, color-mix(in srgb, var(--nm) 45%, transparent), color-mix(in srgb, var(--nm) 16%, transparent) 70%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 6px 18px -12px var(--nm); transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.nut-dat:not(.nut) { display: inline-flex; align-items: center; justify-content: center; font-family: inherit; white-space: nowrap; }
.nut-dat:hover { transform: translateY(-1px); color: color-mix(in srgb, var(--nm) 88%, var(--text)); filter: none;
  background: linear-gradient(100deg, color-mix(in srgb, var(--nm) 58%, transparent), color-mix(in srgb, var(--nm) 22%, transparent) 70%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 6px 18px -12px var(--nm); }
[data-theme="light"] .nut-dat, [data-theme="light"] .nut-dat:hover { color: var(--vang-sang); }  /* nền sáng: chữ nâu vàng cho rõ */
.nut:active, .nut-dat:active { transform: translateY(1px); filter: brightness(.96); box-shadow: inset 0 2px 5px rgba(0,0,0,.22), 0 1px 1px rgba(0,0,0,.2); }
.nut:disabled, .nut-dat:disabled { transform: none; filter: grayscale(.3); }
.nut:disabled:hover { transform: none; filter: grayscale(.3);
  box-shadow: inset 0 1px rgba(255,255,255,.65), inset 0 -1px rgba(143,92,22,.4), 0 1px 2px rgba(0,0,0,.3), 0 10px 22px -10px rgba(217,154,43,.8); }
.nut-dat:disabled:hover { transform: none; filter: grayscale(.3); color: color-mix(in srgb, var(--nm) 88%, var(--text));
  background: linear-gradient(100deg, color-mix(in srgb, var(--nm) 45%, transparent), color-mix(in srgb, var(--nm) 16%, transparent) 70%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 6px 18px -12px var(--nm); }
[data-theme="light"] .nut-dat:disabled:hover { color: var(--vang-sang); }
/* biểu tượng trong nút (đợt 8 thống nhất cả web): nút lớn (≥ 44 px: .nut, .nut-phu, .nut-nguy, nút Duyệt lớn ở thanh đầu / hộp thoại)
   18 px; nút nhỏ (36–40 px: .nut-dat, .nut-ma, .nut-nho) 16 px. Ban điều hành giữ 18 cho cả nút nhỏ (luật .bdh ở khối của nó). */
.nut .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.nut-phu .ic, .nut-nguy .ic { width: 18px; height: 18px; }
.nut-dat .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.nut-ma .ic, .nut.nut-nho .ic { width: 16px; height: 16px; }
.nut-ma { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--chu-2); font: 600 13.5px "Be Vietnam Pro", sans-serif; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background-color .16s, border-color .16s, color .16s; }
.nut-ma:hover { background: var(--ds-o-2); border-color: var(--muted); color: var(--text); }
.nut-ma:disabled:hover { background: transparent; border-color: var(--line-strong); color: var(--chu-2); }
.nut-phu { background: transparent; border-color: var(--line-strong); color: var(--chu-2); transition: background-color .16s, border-color .16s, color .16s; }
.nut-phu:hover { background: var(--ds-o-2); border-color: var(--muted); color: var(--text); }
.nut-nguy { border-color: color-mix(in srgb, var(--loi) 50%, transparent); color: var(--loi); background: color-mix(in srgb, var(--loi) 5%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 6px 16px -12px color-mix(in srgb, var(--loi) 70%, transparent); transition: background-color .16s, border-color .16s; }
.nut-nguy:hover { background: color-mix(in srgb, var(--loi) 12%, transparent); border-color: var(--loi); }
.nut[hidden], .nut-phu[hidden], .nut-nguy[hidden], .nut-ma[hidden], .nut-dat[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .nut:hover, .nut:active, .nut-dat:hover, .nut-dat:active { transform: none; } }
button:disabled { opacity: .5; cursor: not-allowed; }
/* Trang Cài đặt: tab con = rãnh tab đoạn, mỗi tab là .tab-doan chung (đợt 8: thôi dùng .nut-vien — cùng cỡ 44 px / chữ 14 như mọi tab);
   cuộn ngang trên điện thoại. Rãnh riêng (không .tabs-doan) vì Cài đặt xếp lưới 5 cột khi 10 tab (khối Cài đặt bên dưới). */
.tab-con { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 4px 0 18px; padding: 5px; border-radius: 16px; background: var(--ds-o);
  border: 1px solid var(--line); box-shadow: var(--ds-ranh-bong); overflow-x: auto; scrollbar-width: none; }
.tab-con::-webkit-scrollbar { display: none; }
.tab-con > .tab-doan { flex: none; }
.tab-con > .tab-doan[aria-selected="true"], .tab-con > .tab-doan.dang { box-shadow: var(--ds-noi-chon-bong-gon); }  /* bóng gọn trong lề 5px của rãnh */
.tab-con > .tab-doan:focus-visible { outline-offset: -3px; }
.nut.dang-gui::after, .nut-phu.dang-gui::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor;
  border-right-color: transparent; animation: quay .8s linear infinite; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--vang) 70%, transparent); outline-offset: 2px; }

/* ---------- nhãn trạng thái (cũ) */
.nhan { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 600; white-space: nowrap; background: color-mix(in srgb, currentColor 14%, transparent); }
.nhan::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nhan.dat { color: var(--dat); } .nhan.loi { color: var(--loi-sang); } .nhan.chay { color: var(--chay); }
.nhan.vang { color: var(--vang); } .nhan.tin { color: var(--tin); } .nhan.cho { color: var(--cho); } .nhan.mo { color: var(--chu-phu); }
.nhan.chay::before { animation: chop 1.2s infinite; }
.nhan.tron::before { display: none; }

/* ---------- thanh, số */
.thanh { height: 8px; border-radius: 999px; background: var(--vien); overflow: hidden; margin-top: 8px; }
.thanh > i { display: block; height: 100%; background: var(--m, var(--dat)); border-radius: inherit; transition: width .4s; }
.thanh.vang > i { background: var(--vang); } .thanh.loi > i { background: var(--loi); }
.thanh.day { height: 10px; } .thanh.vua { height: 12px; }
.so-lon { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.so-lon small { font-size: 15px; color: var(--chu-phu); font-weight: 700; }
.soc { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.24) 0 7px, transparent 7px 14px) !important;
  background-size: 28px 100% !important; animation: soc .9s linear infinite; }
.lan { animation: lan 1.2s cubic-bezier(.2,.8,.2,1) both; }

/* ---------- bảng (cũ + YouTube) */
.bang { width: 100%; border-collapse: collapse; }
.bang th, .bang td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--vien); vertical-align: top; overflow-wrap: break-word; }
.bang th { color: var(--chu-phu); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.bang td.so, .bang th.so { text-align: right; font-variant-numeric: tabular-nums; }
.cuon-ngang { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- chấm trạng thái nhỏ (Duyệt lời, Plan tuần) */
.cham { width: 9px; height: 9px; border-radius: 50%; background: var(--vien-2); }
.cham.xong { background: var(--dat); } .cham.dang { background: var(--chay); } .cham.loi { background: var(--loi); }

/* ô trống (ui-dong-bo đợt 1): khung nét đứt như Ban điều hành, dòng đậm + câu giải thích. .the.trong giữ viền thẻ;
   ô ngày trống của lịch YouTube (.ngay.trong) không đổi. */
.trong, .bdh-trong { text-align: center; padding: 28px 18px; color: var(--muted); }
.trong:where(:not(.the, .ngay)), .bdh-trong { display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 16px; font-size: 13px;
  border: 1.5px dashed var(--net-dut); }
.trong b, .bdh-trong b { display: block; font-size: 14.5px; color: var(--text); }
.the.trong b { margin-bottom: 2px; }
.log { background: var(--nen-o); border: 1px solid var(--vien); border-radius: 12px; padding: 12px; max-height: 420px;
  overflow: auto; font: 12px/1.55 "JetBrains Mono", ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-word; margin: 0; }

input, select, textarea { font: inherit; color: var(--chu); background: var(--nen-o); border: 1px solid var(--vien-o);
  border-radius: 12px; min-height: 40px; padding: 0 12px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--vang) 60%, transparent); border-color: var(--vang); }
/* Danh sách xổ xuống: ô select nhiều chỗ có nền gần trong suốt (vd .cd-trang select = --ds-o), option kế thừa nền đó
   → Chrome vẽ hộp xổ trên nền trắng, chữ sáng gần như biến mất. Option luôn có nền đặc theo giao diện. */
option, optgroup { background: var(--card-dac); color: var(--text); }
option:checked { background: color-mix(in srgb, var(--g-300) 22%, var(--card-dac)); }
option:disabled { color: var(--faint); }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border: 1px solid var(--vien-2);
  border-radius: 999px; font-size: 12px; cursor: pointer; user-select: none; }
.chip input { min-height: auto; margin: 0; }

.thong-bao { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: var(--card-dac); border: 1px solid var(--line-strong);
  border-left: 4px solid var(--tin); padding: 13px 18px; border-radius: 14px; box-shadow: var(--ds-bong), var(--bong-noi); font-weight: 500;
  max-width: min(420px, calc(100vw - 32px)); white-space: pre-line; animation: noi .3s ease both; }
.thong-bao.loi { border-left-color: var(--loi); } .thong-bao.dat { border-left-color: var(--dat); }
.thong-bao[hidden] { display: none; }  /* loại "tin" trùng lớp .tin (display: flex) của Nhắn điều phối: phải ẩn được */

/* ---------- vòng tiến độ (svg .vong của chung.js) */
.vong { width: 108px; height: 108px; }
.vong .ray { fill: none; stroke: var(--vien); stroke-width: 10; }
.vong .chay-vong { fill: none; stroke: var(--m); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 251.3 251.3; }
.vong .chay-vong.vongchay { animation: lenvong 1.4s cubic-bezier(.2,.8,.2,1) both; }
.vong text { fill: var(--chu); font: 700 20px "JetBrains Mono", monospace; }
.vong text.mo { fill: var(--chu-mo); }

/* ---------- Nhắn điều phối */
.ds-tin { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; max-height: 340px; overflow-y: auto; padding-right: 4px; overscroll-behavior: contain; }
.tin { display: flex; }
.tin.cua-anh { justify-content: flex-end; }
.tin.moi { animation: noi .35s ease both; }
.bong-tin { max-width: min(560px, 86%); border-radius: 16px; padding: 10px 14px; font-size: 14px; line-height: 1.5;
  background: var(--nen-4); color: var(--chu); border: 1px solid var(--vien); overflow-wrap: anywhere; }
.cua-anh .bong-tin { background: var(--vang-nen); color: var(--chu-tren-vang); border-color: var(--vang-nen); }
.bong-tin .noi { white-space: pre-line; }
.bong-tin .dong-ok { color: var(--dat); } .bong-tin .dong-loi { color: var(--loi-sang); } .bong-tin .dong-canh { color: var(--vang); }
.bong-tin .meta { font: 500 11px "JetBrains Mono", monospace; opacity: .72; margin-top: 4px; }
.bong-tin.loi { border-color: var(--vien-loi); }
.bong-tin.cho { color: var(--chu-3); }
.dang-xu-ly { display: inline-flex; gap: 4px; align-items: center; margin-left: 6px; vertical-align: middle; }
.dang-xu-ly i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: chop 1.2s ease-in-out infinite; }
.dang-xu-ly i:nth-child(2) { animation-delay: .2s; } .dang-xu-ly i:nth-child(3) { animation-delay: .4s; }
.goi-y { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.goi-y button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--vien-2); background: var(--nen-4);
  color: var(--chu-2); font: 500 13px "Be Vietnam Pro", sans-serif; cursor: pointer; }
.goi-y button:hover { border-color: var(--vang); color: var(--vang); }
.o-gui { display: flex; gap: 10px; margin-top: 12px; align-items: flex-end; }
.o-nhap { flex: 1; min-width: 0; min-height: 48px; max-height: 160px; border-radius: 14px; border: 1px solid var(--vien-2);
  background: var(--nen-o); color: var(--chu); padding: 12px 16px; font: 500 15px/1.45 "Be Vietnam Pro", sans-serif; resize: none; }
.o-gui .nut { min-height: 48px; }

/* ---------- YouTube "Xưởng YouTube" (ui-dong-bo đợt 3) — trang theo dõi: hero hồng đỏ · 4 ô số · tab kênh · thẻ kênh ·
   cột chính (Cần anh / trễ → Chi tiết từng video) · cột phụ dính hẹp 316 px (Lịch đăng theo ngày, Tuần kế tiếp thu gọn).
   Bảng gọn (nút của sếp trong ô Trạng thái) vừa cột chính ở màn 1440; cột chính hẹp hơn bề rộng tối thiểu của bảng thì
   mỗi video một thẻ (container query của khối bảng, không theo màn hình). */
.yt-hero .hero-dong { margin-bottom: 8px; }
.yt-phu { margin: 0; font-size: 13px; color: var(--hs-phu); overflow-wrap: anywhere; }
.yt-phu .cu { color: var(--hs-chu); }
.yt-hero > .bo-chon { grid-column: 1 / -1; width: min(100%, 520px); }
.yt-tabs .ic { width: 16px; height: 16px; }
.yt-tabs .tab-ngan { display: none; }
/* thẻ kênh: Tất cả = 3 thẻ một hàng; chọn kênh = một thẻ ngang */
.bang-kenh { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.bang-kenh:empty { display: none; }
.bang-kenh > .trong { grid-column: 1 / -1; }
.dong-kenh { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ten so" "thanh thanh" "ghi ghi" "chay chay";
  align-items: center; gap: 8px 14px; min-width: 0; padding: 16px 18px; border-radius: 16px; color: inherit; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--ds-bong); transition: border-color .16s, transform .16s; }
.dong-kenh:hover { border-color: var(--line-strong); }
@media (prefers-reduced-motion: no-preference) { .dong-kenh:hover { transform: translateY(-1px); } }
.dong-kenh.co-loi::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--loi), transparent); opacity: .8; }
.dk-ten { grid-area: ten; display: flex; align-items: center; gap: 12px; min-width: 0; }
.dk-ten > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.dk-ten b { font-size: 14.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-ten small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dong-kenh:hover .dk-ten b { color: var(--ds-vang-chu); }
.dk-thanh { grid-area: thanh; } .dk-thanh .thanh { margin: 0; height: 6px; }
.dk-so { grid-area: so; font-size: 22px; font-weight: 800; letter-spacing: -.03em; text-align: right; white-space: nowrap; color: var(--text); }
.dk-so small { font-size: 13px; font-weight: 600; color: var(--faint); }
.dk-so em { display: block; margin-top: -2px; font: 600 10.5px "Be Vietnam Pro", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dk-ghi { grid-area: ghi; font-size: 12.5px; font-weight: 600; color: var(--dat); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-ghi.loi { color: var(--loi-sang); }
.dk-chay { grid-area: chay; display: flex; align-items: baseline; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ds-vang-chu); overflow-wrap: anywhere; }
.bang-kenh > .dong-kenh:only-child { grid-template-columns: minmax(0, 300px) minmax(120px, 1fr) auto minmax(0, 200px); grid-template-areas: "ten thanh so ghi" "chay chay chay chay";
  column-gap: 22px; }
.bang-kenh > .dong-kenh:only-child .dk-ghi { text-align: right; }
.bang-kenh > .dong-kenh:only-child .dk-so em { display: inline; margin-left: 4px; }
.bang-kenh > .dong-kenh:only-child .dk-chay { padding-left: 52px; }
/* lưới: cột phụ hẹp cố định để bảng 12 cột vừa cột chính */
@container trang (min-width: 880px) {
  .luoi-2.yt-luoi { grid-template-columns: minmax(0, 1fr) 316px; }
  .yt-luoi > .cot { gap: 20px; }
}
.yt-luoi .dau-khoi { margin-bottom: 14px; }
/* Cần anh / trễ: thẻ nhấn hồng đỏ, thẻ việc từng video (2 cột khi đủ chỗ); không có gì = xanh */
.yt-can { position: relative; border-color: color-mix(in srgb, var(--loi) 32%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--loi) 7%, transparent), transparent 200px), var(--card); }
.yt-can::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--loi), transparent); }
.yt-can:hover { border-color: var(--vien-loi); }
.yt-can.khong, .yt-can.khong:hover { border-color: var(--line); background: var(--card); }
.yt-can.khong::before { background: linear-gradient(90deg, transparent, var(--dat), transparent); opacity: .7; }
.yt-ds-can { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.yt-the-can { gap: 10px; }
.yt-the-can .the-viec-tieu { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-can-nghia { margin-top: 2px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-the-can .hang-nhan { grid-template-columns: 92px minmax(0, 1fr); }
.yt-the-can .hang-nhan > :last-child { font-size: 13px; }
.yt-the-can .jp-han { margin-top: 0; }
.yt-can-tt { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.yt-the-can .chan-the { align-items: center; padding-top: 10px; }
.yt-the-can .jp-nut { margin-left: 0; }
.yt-ngay-chip { gap: 5px; } .yt-ngay-chip .ic { width: 12px; height: 12px; color: var(--muted); }
.yt-ngay-chip.tre { color: var(--loi-sang); border-color: var(--vien-loi); } .yt-ngay-chip.tre .ic { color: currentColor; }
.yt-can-link { font-size: 12.5px; font-weight: 600; }
.yt-trong { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 16px; border-radius: 14px; text-align: center;
  background: var(--ds-o); border: 1px solid color-mix(in srgb, var(--dat) 22%, var(--line)); color: var(--muted); font-size: 13px; }
.yt-trong b { font-size: 14px; color: var(--dat); }
/* Chi tiết từng video: bảng gọn (cột chính) → thẻ từng video khi khối hẹp hơn bảng */
.yt-bang { container: ytb / inline-size; }
.yt-goi-y { margin: -6px 0 4px; }
.ten-nhom { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-weight: 700; color: var(--m); margin-top: 22px; }
#yt-bang-ve > .ten-nhom:first-child { margin-top: 10px; }
.ten-nhom::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--m); }
.ten-nhom .phu { font-weight: 500; color: var(--chu-phu); margin-left: 2px; }
.ten-nhom[id^="bang-"] { scroll-margin-top: 80px; }   /* chừa thanh .hd dính 64px */
/* Nhãn "Kênh 1 / Kênh 2" cạnh tên kênh Nhật — sếp 13/11 chọn kiểu "viên viền chuyển sắc" (số nhỏ): viên tối, viền vàng
   chuyển sắc + ánh sáng nhẹ, chữ "Kênh" xám, số vàng chuyển sắc. Nền viên phải ĐẶC (viền = nền border-box lộ ra quanh padding-box) */
.nhan-kenh { --nk-nen: #17130f; --nk-so: linear-gradient(180deg, var(--g-100), var(--g-400));
  display: inline-flex; flex: none; align-items: baseline; gap: 4px; height: 19px; padding: 0 9px; border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(var(--nk-nen), var(--nk-nen)) padding-box,
    linear-gradient(120deg, var(--g-100), var(--g-500) 45%, rgba(245,194,107,.15)) border-box;
  box-shadow: 0 0 12px -3px rgba(245,194,107,.45); font-size: 10.5px; font-weight: 600; line-height: 17px; letter-spacing: 0;
  color: var(--muted); white-space: nowrap; }
/* sếp 13/11 "số lệch chữ Kênh": chữ + số chung đường chân chữ (baseline), cao dòng = lòng viên nên tự cân giữa */
.nhan-kenh > span { display: inline; line-height: inherit; }
.nk-so { font-size: 11px; font-weight: 800; font-variant-numeric: lining-nums; background: var(--nk-so); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .nhan-kenh { --nk-nen: #fff; --nk-so: linear-gradient(180deg, var(--g-500), var(--g-700)); box-shadow: 0 0 10px -4px rgba(183,122,28,.4); }
/* bảng kênh trong hero (sếp 13/11: nhỏ hơn, cân trong viên): viên thấp, lề trái = phải; nhắc lại inline-flex hàng ngang
   để thắng luật .dk-ten > span:last-child (cột dọc) */
.dk-ten > span.nhan-kenh { display: inline-flex; flex-direction: row; justify-content: center; gap: 3px; height: 15px; padding: 0 7px;
  font-size: 9px; line-height: 13px; box-shadow: 0 0 8px -3px rgba(245,194,107,.4); }
.dk-ten > span.nhan-kenh .nk-so { font-size: 9.5px; }
.tn-so { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.tn-so b { color: var(--loi-sang); }
.cuon-yt { container-type: inline-size; margin-top: 6px; }  /* size container: 100cqw = bề rộng nhìn thấy (dòng trạng thái JP) */
.bang-yt { border-collapse: separate; border-spacing: 0; min-width: 714px; width: 100%; table-layout: fixed; }
.bang-yt col.c-ngay { width: 58px; } .bang-yt col.c-tt { width: 192px; }  /* col.c-khau: giãn theo bề ngang, xem khối "bảng kiểu ngách" */
.bang-yt th { line-height: 1.3; text-align: center; padding: 10px 6px; border-bottom: 1px solid var(--vien); }
.bang-yt td { padding: 10px 6px; border-bottom: 1px solid var(--luoi-2); text-align: center; font-size: 13px; color: var(--chu-2); }
.bang-yt td.o-khau { padding: 8px 0; }
.bang-yt .o-khau .st { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
.bang-yt .l { text-align: left; }
.bang-yt .o-ngay { font-size: 12px; color: var(--chu-2); padding-left: 2px; padding-right: 2px; }
.bang-yt .o-ngay.tre, .yt-the-vd .ngay-the.tre { color: var(--loi-sang); }
.bang-yt tr.co-ghi { cursor: pointer; }
.bang-yt tr.co-ghi:hover td { background: color-mix(in srgb, var(--vang) 4%, transparent); }
.bang-yt tr.ghi-mo td { background: var(--nen-3); color: var(--chu-3); font-size: 12px; text-align: left; padding: 8px 12px; }
.bang-yt tr.jp-dong td { white-space: normal; }
.bang-yt .jp-hang { position: sticky; left: 0; box-sizing: border-box; width: calc(100cqw - 24px); max-width: calc(100cqw - 24px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.bang-yt .jp-nhan { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.bang-yt .jp-nhan.loi, .bang-yt .jp-han.loi { color: var(--loi-sang); } .bang-yt .jp-nhan.dat { color: var(--dat); }
/* Khâu JP đang chạy: chấm vàng nhấp nháy, dòng video tô nhẹ, ô khâu có vòng sáng (tắt chuyển động thì đứng yên) */
.cham-chay { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--vang); margin-right: 7px;
  vertical-align: 1px; flex: none; animation: chop 1.4s ease-in-out infinite; }
.jp-nhan.dang, .bang-yt .jp-nhan.dang { color: var(--vang); font-weight: 600; }
.bang-yt tr.jp-chay td, .bang-yt tr.ghi-mo.jp-chay td { background: color-mix(in srgb, var(--vang) 7%, transparent); }
.st.jp-o-chay { box-shadow: 0 0 0 2px color-mix(in srgb, var(--vang) 60%, transparent); }
/* nút của sếp (kiểu nút ma nhỏ): dưới nhãn trạng thái trong bảng, chân thẻ trên điện thoại / thẻ Cần anh */
.jp-nut { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.jp-nut .nut-ma { min-height: 30px; padding: 0 10px; font-size: 12px; border-radius: 9px; }
.bang-yt .o-tt .jp-nut { display: flex; margin: 7px 0 0; }
.bang-yt .o-tt .jp-nut .nut-ma { min-height: 28px; padding: 0 8px; }
/* ô Video: số + nhãn hội viên, tiêu đề gốc 1 dòng, nghĩa tiếng Việt 1 dòng */
.so-vd { font-weight: 700; display: flex; gap: 6px; align-items: center; color: var(--chu); }
.nhan-hv { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--vien-2); color: var(--chu-phu); }
.bang-yt .tieu { font-size: 12.5px; color: var(--chu-2); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; overflow-wrap: anywhere; }  /* tên dài xuống tối đa 2 dòng (cột khâu giãn ra, cột tên hẹp lại — sếp 09/11) */
.nghia { font-size: 11.5px; color: var(--chu-phu); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bang-yt .ghi-nut { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center;
  font: 700 11px "JetBrains Mono", monospace; border: 1px solid var(--vien-2); color: var(--chu-phu); margin-left: 2px; }
/* ô Trạng thái: nhãn màu được xuống dòng, hạn bên dưới */
.pill-tt { white-space: normal; line-height: 1.35; text-align: left; }
.pill-tt .cham-chay { margin-right: 0; }
.jp-han { display: inline-block; font-size: 11px; color: var(--chu-phu); margin-top: 5px; }
.jp-han.loi { color: var(--loi-sang); }
/* thẻ từng video (khối bảng hẹp: điện thoại, cửa sổ nhỏ) */
.yt-the-ds { display: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-top: 10px; }
.yt-the-vd { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px 14px; border-radius: 14px;
  background: var(--ds-the); border: 1px solid var(--line); box-shadow: var(--ds-noi); }
.yt-the-vd.co-loi { border-color: color-mix(in srgb, var(--loi) 30%, var(--line)); box-shadow: inset 3px 0 0 var(--loi), var(--ds-noi); }
.yt-the-vd.jp-chay { border-color: var(--ds-vien-vang); background: linear-gradient(180deg, var(--ds-vang-nen), transparent 120px), var(--ds-the); }
.yt-the-vd .dau-the { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.yt-the-vd .o-video { min-width: 0; }
.yt-the-vd .tieu { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-the-vd .nghia { font-size: 12px; }
.yt-the-vd .ngay-the { font-size: 12px; flex: none; color: var(--chu-2); }
.yt-the-vd .dai-khau { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.yt-the-vd .dai-khau > span { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.yt-the-vd .dai-khau small { font-size: 9.5px; color: var(--chu-mo); white-space: nowrap; }
.yt-the-vd .chan-the { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.yt-the-vd .chan-the .jp-han { margin-top: 0; }
.ghi-may { font-size: 11.5px; color: var(--chu-3); }
@container ytb (max-width: 713px) { .yt-bang .cuon-yt { display: none; } .yt-bang .yt-the-ds { display: grid; } }
.st { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px;
  font: 700 13px "JetBrains Mono", monospace; flex: none; }
.st.x { background: color-mix(in srgb, var(--dat) 18%, var(--nen-2)); color: var(--dat); }
.st.d { background: color-mix(in srgb, var(--c-vietsub) 18%, var(--nen-2)); color: var(--c-vietsub); }
.st.d.chop-nhe { animation: chop 1.4s ease-in-out infinite; }
.st.n { background: color-mix(in srgb, var(--loi) 20%, var(--nen-2)); color: var(--loi-sang); }
.st.c { border: 1.5px dashed var(--net-dut); }
.st.q { border: 1.5px dashed var(--net-dut); color: var(--chu-mo); }
.st.nho, .bang-yt .o-khau .st.nho { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
/* Lịch đăng (cột phụ): danh sách theo ngày — "thứ + ngày" | nhãn video tô theo trạng thái thật */
.yt-ct-lich { gap: 6px 12px; margin: -4px 0 6px; font-size: 11.5px; }
.yt-ct-lich .mau-o { width: 10px; height: 10px; }
.yt-ct-lich .cham-chay { margin-right: 0; }
.ngay-dang { display: flex; flex-direction: column; }
.ngay-dang .ngay { display: grid; text-align: left; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.ngay-dang .ngay:first-child { border-top: 0; }
.ngay-dang .ngay.hom-nay { margin: 2px -10px; padding: 10px; border: 1px solid var(--ds-vien-vang); border-radius: 12px;
  background: linear-gradient(100deg, var(--ds-vang-nen), transparent 75%); }
.ngay-dang .ngay.hom-nay + .ngay { border-top: 0; }
.ng-dau { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding-top: 4px; }
.ng-dau b { font-size: 13px; font-weight: 700; color: var(--text); }
.ng-dau .mono { font-size: 11.5px; color: var(--faint); }
.ng-nay { margin-top: 4px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #1A1206;
  background: linear-gradient(180deg, var(--g-200), var(--g-400)); }
.ng-ds { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ng-trong { padding-top: 5px; font-size: 12px; color: var(--faint); }
.ngay-dang .ngay.trong .ng-dau b { color: var(--muted); font-weight: 600; }
.ngay-dang .vd { --t: var(--faint); display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 6px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--t) 9%, var(--ds-the)); border: 1px solid color-mix(in srgb, var(--t) 26%, transparent); }
.ngay-dang .vd.dat { --t: var(--dat); background: var(--dat-dac); border-color: var(--dat-dac); }
.ngay-dang .vd.dat > b, .ngay-dang .vd.dat > span { color: var(--chu-tren-dat) !important; }
.ngay-dang .vd.san { --t: var(--lam); } .ngay-dang .vd.san > span { color: var(--t); font-weight: 600; } .ngay-dang .vd.dang { --t: var(--vang); } .ngay-dang .vd.loi { --t: var(--loi-sang); }
.ngay-dang .vd.cho, .ngay-dang .vd.trong-cho { background: transparent; border: 1px dashed var(--net-dut); }
.ngay-dang .vd b { flex: none; font-size: 12.5px; font-weight: 700; color: var(--text); }
.ngay-dang .vd span { min-width: 0; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ngay-dang .vd.dat > span, .ngay-dang .vd.dang > span, .ngay-dang .vd.loi > span { color: var(--t); font-weight: 600; }
.ngay-dang .vd .cham-chay { margin-right: 5px; }
details.lich-ke { margin-top: 8px; border-top: 1px solid var(--line); }
details.lich-ke > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding-top: 6px; }
details.lich-ke > summary::-webkit-details-marker { display: none; }
details.lich-ke > summary::after { content: "▾"; margin-left: 6px; font-size: 12px; color: var(--muted); transition: transform .15s; }
details.lich-ke:not([open]) > summary::after { transform: rotate(-90deg); }
details.lich-ke[open] > summary { margin-bottom: 4px; }
.lk-tom { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
/* hẹp (1 cột): Cần anh → Lịch đăng → Chi tiết (lịch dễ đọc trước bảng dài) */
@container trang (max-width: 879px) {
  .yt-luoi #yt-can { order: 1; } .yt-luoi #yt-lich { order: 2; } .yt-luoi #yt-bang { order: 3; }
}
@container trang (max-width: 720px) {
  .yt-hero > .bo-chon { width: 100%; }
  .yt-tabs .ic, .yt-tabs .tab-dai { display: none; }
  .yt-tabs .tab-ngan { display: inline; }
  .yt-tabs .tab-doan { padding: 0 10px; gap: 6px; }
  .yt-so .so-phu { display: none; }
  .yt-so .so-nhan { letter-spacing: .04em; }
  .bang-kenh { gap: 10px; }
  .dong-kenh, .bang-kenh > .dong-kenh:only-child { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ten so" "thanh thanh" "ghi ghi" "chay chay";
    padding: 12px 14px; gap: 6px 12px; }
  .bang-kenh > .dong-kenh:only-child .dk-ghi { text-align: left; }
  .bang-kenh > .dong-kenh:only-child .dk-chay { padding-left: 0; }
  .dk-ten .o-vuong { width: 34px; height: 34px; border-radius: 10px; }
  .dk-so { font-size: 19px; }
  .ngay-dang .ngay.trong { display: none; }  /* điện thoại: chỉ ngày có video / có lịch đăng */
}

/* ---------- TikTok */
.vien-mau { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: var(--m);
  background: color-mix(in srgb, var(--m) 16%, var(--nen-2)); white-space: nowrap; }
.ds-dong { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.cong-cu .the-trong + .the-trong { margin-top: 14px; }
.cong-cu .the-trong.vang { border-color: var(--vien-vang); }
.cong-cu .the-trong.loi { border-color: var(--vien-loi); }
.cong-tac { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; border: 0;
  background: transparent; color: var(--chu); font: 600 13px "Be Vietnam Pro", sans-serif; padding: 0; }
/* công tắc (ui-dong-bo đợt 7): rãnh lõm có viền, núm trắng có bóng; bật = xanh có quầng — cùng kiểu nút gạt .cd-tich của Cài đặt */
.cong-tac .ray-ct { width: 46px; height: 28px; border-radius: 99px; background: var(--ds-o-2); border: 1px solid var(--line-strong); position: relative; flex: none;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.45); transition: background .2s, border-color .2s, box-shadow .2s; }
.cong-tac .ray-ct::after { content: ""; position: absolute; left: 2px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #f4f4f6;
  box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .2s; }
[data-theme="light"] .cong-tac .ray-ct { background: #dcd9d2; box-shadow: inset 0 1px 2px rgba(20,26,36,.18); }
[data-theme="light"] .cong-tac .ray-ct::after { background: #fff; box-shadow: 0 1px 3px rgba(20,26,36,.25); }
.cong-tac[aria-checked="true"] .ray-ct { border-color: color-mix(in srgb, var(--dat) 70%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dat) 80%, #fff), var(--dat)); box-shadow: inset 0 1px 2px rgba(0,0,0,.2), 0 4px 12px -6px var(--dat); }
.cong-tac[aria-checked="true"] .ray-ct::after { transform: translateX(18px); background: #fff; }
.cong-tac:focus-visible { outline: 2px solid var(--g-400); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .cong-tac .ray-ct, .cong-tac .ray-ct::after { transition: none; } }
.dong-token { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 84px; gap: 12px; align-items: center; font-size: 13px; }
.dong-token > span:first-child { color: var(--chu-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dong-token .thanh { margin: 0; }
.dong-token .so { text-align: right; font-weight: 700; }
.dong-token.co-loai { grid-template-columns: minmax(0, 230px) minmax(0, 1fr) 84px; }
.dong-token .ten-lo { display: flex; align-items: center; gap: 8px; }
/* Chọn ngày (TikTok) / tuần (YouTube) ở đầu trang */
/* Bộ chọn ngày / tuần / loại ở đầu trang: nhãn + các nút liền nhau, cột đều để các hàng thẳng nhau. Dùng chung 3 trang. */
.dau-trang:has(.bo-chon) > div:first-child { flex: 1 1 320px; min-width: 0; }
.bo-chon { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 8px; width: min(100%, 440px); min-width: 0; }
.nhan-chon { font-size: 11px; font-weight: 600; color: var(--muted); }
.doan { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 3px; min-width: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--ds-o); }  /* bộ chọn đoạn = bộ lọc đoạn (.loc-doan) */
.doan > span { display: contents; }
.nut-doan { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 26px; padding: 0 3px;
  border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 11.5px "Be Vietnam Pro", sans-serif; white-space: nowrap; cursor: pointer;
  transition: color .15s, background-color .15s; }
.nut-doan:hover { color: var(--text); }
.nut-doan.dang { color: var(--ds-vang-chu); background: var(--ds-the-2); box-shadow: var(--ds-loc-chon-bong); }
.nut-doan .so-loc { font-size: 10px; font-weight: 500; color: var(--faint); }
.nut-doan.dang .so-loc { color: inherit; }
.nut-doan .cham-song { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; }  /* chấm ở góc, không chiếm chỗ của chữ */
.o-chon-ngay .ic { width: 12px; height: 12px; }
/* Ô ngày phủ trong suốt lên nút: bấm chỗ nào cũng mở lịch của trình duyệt, phím vẫn dùng được */
.o-chon-ngay input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; color-scheme: dark; }
.o-chon-ngay input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
[data-theme="light"] .o-chon-ngay input { color-scheme: light; }
.o-chon-ngay:has(input:focus-visible) { outline: 2px solid color-mix(in srgb, var(--vang) 70%, transparent); outline-offset: 2px; }
@media (max-width: 720px) {
  .bo-chon { grid-template-columns: minmax(0, 1fr); gap: 4px; width: 100%; }
  .bo-chon .doan + .nhan-chon { margin-top: 6px; }
  /* điện thoại giữ nút cao 44px cho dễ bấm */
  .nut-doan { flex-direction: column; gap: 0; min-height: 44px; padding: 2px; line-height: 1.25; white-space: normal; font-size: 12.5px; }
  .nut-doan .so-loc { font-size: 11px; }
  .o-chon-ngay .ic { display: none; }
  .dong-token.co-loai { grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 64px; }
}

/* ---------- biểu đồ SVG */
.bd { width: 100%; height: auto; display: block; }
.bd .luoi-bd { stroke: var(--luoi); }
.bd .muc-tieu { stroke: var(--vang); stroke-width: 1.5; stroke-dasharray: 6 5; }
.bd .vs { fill: var(--c-vietsub); } .bd .et { fill: var(--c-edit); }
.bd .cot { transform-origin: 50% 100%; transform-box: fill-box; }
.bd.moc .cot { animation: moc .9s cubic-bezier(.2,.8,.2,1) both; }
.bd text { font: 500 12px "JetBrains Mono", monospace; fill: var(--chu-phu); }
.bd text.tong { font-weight: 700; fill: var(--chu-2); }
.bd text.nay { fill: var(--vang); }


/* ---------- chuyển động */
@keyframes nhip { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--m, var(--dat)) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes lenvong { from { stroke-dashoffset: 251.3; } to { stroke-dashoffset: var(--o); } }
@keyframes soc { from { background-position: 0 0; } to { background-position: 28px 0; } }
@keyframes chop { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes hien { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes noi { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lan { from { width: 0; } }
@keyframes moc { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bat { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes quay { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- trang chủ: lô TikTok — mỗi lô một thẻ cùng bố cục (dải ô trên, số dưới); đang chạy nổi bật, xong mờ */
.ds-lo-tc { display: flex; flex-direction: column; gap: 8px; container-type: inline-size; }
.lo-dong { display: grid; grid-template-columns: minmax(200px, 260px) minmax(300px, 1fr) minmax(220px, 320px) 96px; gap: 6px 20px;
  align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--vien); background: var(--nen-3); min-width: 0; }
.lo-dong.chay { border-color: color-mix(in srgb, var(--m) 38%, var(--vien));
  background: linear-gradient(90deg, color-mix(in srgb, var(--m) 9%, var(--nen-3)), var(--nen-3) 60%);
  box-shadow: inset 3px 0 0 var(--m); }
.lo-dong.can { border-color: var(--vien-loi); box-shadow: inset 3px 0 0 var(--loi); }
.lo-dong.xong { background: transparent; }
.lo-dong.xong > :not(.lo-link) { opacity: .74; }
/* wrap: thiếu chỗ thì nhãn trạng thái xuống dòng, tên lô không bị bóp còn "TÙ…" (sếp 06/11, dòng Việt hoá · Duyệt lời) */
.lo-ten { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.lo-ten b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%; }
.lo-dong.chay .lo-ten b { font-size: 16px; }
.lo-ten .nhan { flex: none; }
.lo-tien { display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-width: 0; }
.lo-so { font-size: 12px; color: var(--chu-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dai-lo { display: flex; gap: 2px; flex: none; min-width: 60px; height: 6px; }  /* mảnh (sếp 06/11: thanh dày quá) */
.dai-lo > i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--luoi); }
.dai-lo.chong { gap: 0; border-radius: 4px; overflow: hidden; background: var(--luoi); }
.dai-lo.chong > i { flex: none; border-radius: 0; }
.dai-lo > i.giao { background: var(--dat); }
.dai-lo > i.render { background: var(--c-vn); }
.dai-lo > i.viet { background: color-mix(in srgb, var(--chu-3) 55%, var(--nen-3)); }
.dai-lo > i.cho { background: var(--luoi); box-shadow: inset 0 0 0 1px var(--vien-2); }
.dai-lo > i.thieu { background: color-mix(in srgb, var(--loi) 28%, transparent); box-shadow: inset 0 0 0 1px var(--loi); }
.lo-dong.chay .dai-lo > i.render, .lo-dong.chay .dai-lo > i.viet { animation: tho 2.4s ease-in-out infinite; }
.dai-lo.trong-o { background: var(--luoi); border-radius: 4px; }
.lo-gio { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--chu-phu); min-width: 0; }
.lo-dong.chay .lo-gio { color: var(--chu-2); }
.canh { font: 600 11.5px "JetBrains Mono", monospace; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.canh.loi { color: var(--loi-sang); background: color-mix(in srgb, var(--loi) 14%, transparent); }
.canh.tin { color: var(--c-vietsub); background: color-mix(in srgb, var(--c-vietsub) 12%, transparent); cursor: help; }
.canh.vang { color: var(--vang); background: color-mix(in srgb, var(--vang) 14%, transparent); cursor: help; }
.lo-link { justify-self: end; font-size: 13px; font-weight: 600; color: var(--chu-3); padding: 10px 4px; white-space: nowrap; }
.lo-link:hover, .lo-link:focus-visible { color: var(--vang); }
.lo-them { font-size: 13px; color: var(--chu-phu); padding: 4px 16px 0; }
.lo-them a { color: var(--vang); font-weight: 600; }
@container (max-width: 1060px) {
  .lo-dong { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .lo-tien, .lo-gio { grid-column: 1 / -1; }
  .lo-link { grid-row: 1; grid-column: 2; padding: 6px 2px; }
  .lo-dong.xong .lo-gio > span:not(.canh) { display: none; }  /* dòng xong: tên + dải mỏng + số (+ cảnh báo) */
  .lo-dong.xong .lo-gio:not(:has(.canh)) { display: none; }
}
@container (max-width: 520px) {
  .lo-so { white-space: normal; }
}

/* ---------- trang chủ: lịch chạy hôm nay (mỗi lô một dòng, vị trí theo %) */
.lich { position: relative; font-size: 13px; }
.lich-tren { height: 26px; margin-left: var(--cot); position: relative; }
.nay-chu { position: absolute; bottom: 4px; transform: translateX(-50%); white-space: nowrap; padding: 2px 9px; border-radius: 99px;
  background: var(--vang-nen); color: var(--chu-tren-vang); font: 700 11px "JetBrains Mono", monospace; }
.nay-chu.dau { transform: translateX(-8px); } .nay-chu.cuoi { transform: translateX(calc(-100% + 8px)); }
.lich-than { position: relative; overflow-x: clip; }
.lich-ray > * { box-sizing: border-box; }
.lich-nen { position: absolute; left: var(--cot); right: 0; top: 0; bottom: 0; pointer-events: none; }
.lich-nen > i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--luoi); }
.lich-nen > i.phu { background: var(--luoi-2); }
.lich-nen > .nay { position: absolute; top: -4px; bottom: 0; width: 2px; margin-left: -1px; background: var(--vang); z-index: 1;
  animation: chop 1.6s ease-in-out infinite; }
.lich-dong { display: grid; grid-template-columns: var(--cot) minmax(0, 1fr); align-items: center; height: 40px;
  border-top: 1px solid var(--luoi-2); }
.lich-nen + .lich-dong { border-top: 0; }
.lich-nhan { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 12px; height: 100%;
  position: sticky; left: 0; z-index: 3; background: var(--nen-2); }
.lich-nhan .vien-mau { width: 70px; text-align: center; overflow: hidden; text-overflow: ellipsis; flex: none; padding: 3px 6px; }
.lich.hep .lich-nhan .vien-mau { width: auto; padding: 3px 5px; } .lich.hep .vien-mau .vm-chu { display: none; }
.lich.hep .lich-nhan { box-shadow: inset 3px 0 0 var(--m); padding-left: 10px; }
.lich-nhan .ten { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lich-ray { position: relative; height: 100%; z-index: 2; }  /* trên vạch "bây giờ", dưới cột tên dính khi cuộn ngang */
.lich-ray > .doan { position: absolute; top: 9px; height: 22px; min-width: 6px; border-radius: 6px; background: var(--c);
  display: flex; align-items: center; justify-content: center; overflow: hidden; z-index: 2; }
.lich-ray > .doan.cat { border-top-left-radius: 0; border-bottom-left-radius: 0; }
/* đoạn hẹp: nhãn thời gian nổi giữa đoạn (viền màu đoạn, nền thẻ) để mọi đoạn đều có giờ — thẻ riêng vẽ sau mọi đoạn
   nên đoạn kế bên không đè được */
.lich-ray > .nhan-noi { position: absolute; top: calc(50% - 9px); transform: translateX(-50%); z-index: 4; white-space: nowrap;
  padding: 0 5px; line-height: 16px; border-radius: 6px; background: var(--nen-2); border: 1px solid var(--c);
  font: 700 10.5px "JetBrains Mono", monospace; color: var(--chu); }
.lich-ray > .doan.cat::before { content: "‹"; position: absolute; left: 3px; color: var(--chu-tren-mau); font-weight: 800; opacity: .7; }
.lich-ray > .doan b { font: 700 11.5px "JetBrains Mono", monospace; color: var(--chu-tren-mau); white-space: nowrap; padding: 0 8px; }
.lich-ray > .doan.mo { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.22) 0 7px, transparent 7px 14px);
  background-size: 28px 100%; animation: soc .9s linear infinite; }
.lich-ray > .noi { position: absolute; top: 19px; height: 2px; background: color-mix(in srgb, var(--c) 55%, transparent); z-index: 1; }
.lich-ray > .du-kien { position: absolute; top: 9px; height: 22px; border: 1.5px dashed var(--c); border-left: 0;
  border-radius: 0 6px 6px 0; background: color-mix(in srgb, var(--c) 8%, transparent); z-index: 1; }
.lich-ray > .moc { position: absolute; top: 13px; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg);
  border: 2px solid var(--c); background: var(--nen-2); border-radius: 2px; z-index: 2; }
.lich-dong.tay.xong .moc { background: var(--c); }
.lich-dong.dang { --c: var(--m); } .lich-dong.xong { --c: var(--dat); } .lich-dong.hong { --c: var(--loi); }
.lich-dong.tam { --c: var(--chu-mo); } .lich-dong.tay { --c: var(--dat); } .lich-dong.tay:not(.xong) { --c: var(--chu-3); }
.lich-dong.rong .trong-chu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--chu-phu); }
.lich-truc { position: relative; height: 24px; margin-left: var(--cot); border-top: 1px solid var(--luoi); }
.lich-truc > span { position: absolute; top: 6px; transform: translateX(-50%); font: 500 11.5px "JetBrains Mono", monospace; color: var(--chu-mo); }
.lich-truc > span.dau { transform: none; } .lich-truc > span.cuoi { transform: translateX(-100%); }
.lich-chu { margin-top: 10px; }

/* ---------- lịch hôm nay: 3 cột thẳng hàng (tên | thanh | thông tin) — chữ không còn trôi quanh thanh */
.lich-dong { grid-template-columns: var(--cot) minmax(0, 1fr) var(--tt); height: 48px; }
.lich-nen { right: var(--tt); }
.lich-tren, .lich-truc { margin-right: var(--tt); }
.lich-ray > .doan { top: calc(50% - 11px); }
.lich-ray > .du-kien { top: calc(50% - 11px); }
.lich-ray > .noi { top: calc(50% - 1px); }
.lich-ray > .moc { top: calc(50% - 7px); }
.lich-tt { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; padding-left: 14px;
  height: 100%; align-content: center; min-width: 0; border-left: 1px solid var(--luoi-2); }
.lich-tt .pill { grid-row: 1 / span 2; justify-self: start; }
.lich-so { font-size: 12px; font-weight: 600; color: var(--chu-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lich-tt-phu { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lich-dong.xong .lich-tt-phu { color: var(--dat); } .lich-dong.hong .lich-tt-phu { color: var(--loi-sang); }
.lich-dong.dang .lich-tt-phu { color: var(--vang); }
.lich-ray > .doan b { font-size: 11px; padding: 0 6px; }
/* điện thoại: mỗi dòng là thẻ 3 tầng rộng hết màn (tên + trạng thái / thanh giờ / số + giờ), không cuộn ngang;
   trục giờ ở đầu khối, lưới giờ + vạch "bây giờ" vẽ trong từng thanh */
.lich.hep .lich-truc { border-top: 0; border-bottom: 1px solid var(--luoi); height: 22px; }
.lich.hep .lich-truc > span { top: 2px; font-size: 10.5px; }
.lich.hep .lich-tren { height: 24px; }
.lich.hep .lich-dong { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nhan pill" "ray ray" "so phu";
  height: auto; padding: 10px 0 9px; row-gap: 6px; column-gap: 8px; align-items: center; }
.lich.hep .lich-dong .lich-nhan { grid-area: nhan; height: auto; padding: 0; background: none; position: static; box-shadow: none; }
.lich.hep .lich-nhan .vien-mau { width: auto; padding: 2px 7px; } .lich.hep .vien-mau .vm-chu { display: inline; }
.lich.hep .lich-ray { grid-area: ray; height: 26px; border-radius: 7px; background: var(--nen-3); }
.lich.hep .lich-ray > [data-v] { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--luoi-2); }
.lich.hep .lich-ray > [data-v].phu { display: none; }
.lich.hep .lich-ray > .nay { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--vang); z-index: 4; }
.lich.hep .lich-ray > .doan { top: 3px; height: 20px; }
.lich.hep .lich-ray > .du-kien { top: 3px; height: 20px; }
.lich.hep .lich-ray > .noi { top: 12px; }
.lich.hep .lich-ray > .moc { top: 6px; }
.lich.hep .lich-tt { display: contents; }
.lich.hep .lich-tt .pill { grid-area: pill; justify-self: end; }
.lich.hep .lich-so { grid-area: so; font-size: 11.5px; }
.lich.hep .lich-tt-phu { grid-area: phu; justify-self: end; font-size: 11.5px; }
.lich.hep .lich-dong.an-bot { display: none; }
.lich-them { margin-top: 10px; width: 100%; justify-content: center; }
.chu-thich .mau-moc { width: 10px; height: 10px; transform: rotate(45deg); border: 2px solid var(--dat); border-radius: 2px; }
@keyframes tho { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Nhắn điều phối: ô chat nổi (chỉ sếp, mọi trang) */
body.co-chat .noi-dung { padding-bottom: 104px; }
.chat-nut { position: fixed; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--chu-tren-vang); background: linear-gradient(135deg, var(--vang-1), var(--vang-2) 55%, var(--vang-3));
  box-shadow: 0 10px 28px -6px rgba(245,194,107,.45), 0 4px 14px rgba(0,0,0,.4); transition: transform .18s ease; }
.chat-nut:hover { transform: translateY(-2px); }
.chat-nut:focus-visible { outline: 3px solid var(--vang-sang); outline-offset: 3px; }
.chat-nut .ic { width: 26px; height: 26px; }
.chat-nut .ic-dong { display: none; }
.chat-nut[aria-expanded="true"] .ic-mo { display: none; } .chat-nut[aria-expanded="true"] .ic-dong { display: block; }
.chat-dem { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
  background: var(--loi); color: #fff; font: 700 12px "JetBrains Mono", monospace; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--nen); }
.chat-dem.cho { background: var(--nen-4); color: var(--vang); min-width: 22px; padding: 0; }
.chat-dem.cho::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: chop 1.2s infinite; }
.chat-khung { position: fixed; right: calc(20px + env(safe-area-inset-right)); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 61;
  width: 384px; height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 20px;
  background: var(--card-dac); border: 1px solid var(--line-strong); box-shadow: var(--ds-bong), var(--bong-noi), 0 0 0 1px rgba(0,0,0,.2);
  overflow: hidden; transform-origin: bottom right; animation: bat-chat .22s ease both; }
.chat-khung[hidden] { display: none; }
@keyframes bat-chat { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.chat-dau { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--line); flex: none;
  background: linear-gradient(180deg, var(--ds-vang-nen), transparent); }
/* huy hiệu vòng nhỏ (kiểu .huy.nho) vẽ bằng nền 2 lớp: lõi tối trong viền, vòng gradient ở viền */
.chat-dau .o-vuong { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; color: var(--hs-hinh);
  background: var(--hs-trong) padding-box, var(--hs-vong) border-box; box-shadow: var(--hs-nho-bong); }
.chat-dau .o-vuong .ic { width: 18px; height: 18px; filter: drop-shadow(0 1px 3px var(--hs-hinh-bong)); }
.chat-dau .ten { font-weight: 700; font-size: 15px; }
.chat-dau .tt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--chu-phu); }
.chat-dau > div:nth-child(3) { flex: 1; min-width: 0; }
.chat-x, .chat-lui { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--chu-3);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.chat-x:hover, .chat-lui:hover { background: var(--ds-o-2); color: var(--chu); }
.chat-x .ic, .chat-lui .ic { width: 20px; height: 20px; }
.chat-lui { display: none; }
.chat-khung .ds-tin { flex: 1; max-height: none; margin: 0; padding: 14px 14px 6px; }
.chat-khung .goi-y { flex: none; flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 8px 28px 4px 14px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.chat-khung .goi-y::-webkit-scrollbar { display: none; }
.chat-khung .goi-y button { min-height: 34px; font-size: 12.5px; white-space: nowrap; flex: none; border-radius: 12px; border-color: var(--line);
  background: var(--ds-o); color: var(--chu-2); }
.chat-khung .goi-y button:hover { border-color: var(--ds-vien-vang); color: var(--ds-vang-chu); background: var(--ds-vang-nen); }
.chat-khung .o-gui { flex: none; margin: 0; padding: 10px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  flex-wrap: wrap; row-gap: 6px; background: var(--ds-o); }
.chat-khung .o-nhap { box-sizing: border-box; min-height: 44px; height: 44px; max-height: 124px; padding: 11px 14px; font-size: 14px;
  line-height: 20px; resize: none; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.chat-khung .o-nhap::-webkit-scrollbar { width: 6px; } .chat-khung .o-nhap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.chat-meo { flex-basis: 100%; font-size: 11px; color: var(--faint); padding-left: 4px; }
.chat-khung .o-gui .nut { min-height: 44px; padding: 0 14px; }
.chat-khung .o-gui .nut span { display: none; }
.chat-khung .o-nhap { border-radius: 14px; background: var(--ds-the-2); }
.chat-khung .o-nhap:focus { border-color: var(--ds-vien-vang); outline: none; box-shadow: 0 0 0 3px rgba(245,194,107,.12); }
.chat-khung .bong-tin { max-width: 88%; font-size: 13.5px; line-height: 1.6; border-radius: 6px 18px 18px 18px; background: var(--ds-the-2);
  border-color: var(--line); box-shadow: var(--ds-noi); }
.chat-khung .cua-anh .bong-tin { border-radius: 18px 18px 6px 18px; background: var(--ds-bong-sep); border-color: var(--ds-bong-sep-vien); color: var(--text);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 8px 18px -12px rgba(217,154,43,.55); }
.chat-khung .bong-tin.loi { border-color: var(--vien-loi); }
@media (max-width: 768px) {
  body.co-chat .noi-dung { padding-bottom: 92px; }
  .chat-nut { right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .chat-khung { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); animation-name: bat-chat-dt; }
  .chat-lui { display: flex; }
  .chat-x { display: none; }
  .chat-dau { padding-left: 6px; }
  body.chat-mo { overflow: hidden; }
  body.chat-mo .chat-nut { display: none; }
}
@keyframes bat-chat-dt { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- trang chủ kiểu trang Tổng quan của tool ngách */
h2.tieu-muc { margin: 4px 0 0; color: var(--text); text-transform: none; font-size: 18px; letter-spacing: -.025em; font-weight: 700; }
.lien-ket { font-size: 12px; font-weight: 600; color: var(--vang); white-space: nowrap; }
.lien-ket:hover { color: var(--vang-sang); }
/* điện thoại: khối ít xem (data-gon) thu 1 dòng tóm tắt — chạm để mở; máy tính không có dòng này */
.dong-gon { display: none; }
@media (max-width: 767px) {
  [data-gon] > .dong-gon { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 34px; padding: 0; margin: 0;
    background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  [data-gon]:not(.mo) { padding-top: 12px; padding-bottom: 12px; }
  [data-gon]:not(.mo) > :not(.dong-gon) { display: none !important; }
  /* đang mở: nút thành "Thu gọn ▴" ở CUỐI khối (không để hàng trống trên đầu) */
  [data-gon].mo { display: flex; flex-direction: column; }
  [data-gon].mo > .dong-gon { order: 99; justify-content: center; margin-top: 10px; min-height: 36px;
    border-top: 1px solid var(--luoi-2); padding-top: 6px; color: var(--chu-phu); font-size: 12.5px; }
  [data-gon].mo > .dong-gon .dg-tieu, [data-gon].mo > .dong-gon .dg-tom { display: none; }
  .dg-thu { display: none; } [data-gon].mo .dg-thu { display: inline; }
  .dg-tieu { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vang); }
  .dg-tom { flex: 1; min-width: 0; font-size: 13px; color: var(--chu-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dg-tom.loi { color: var(--loi-sang); } .dg-tom.dat { color: var(--dat); }
  .dg-mui { flex: none; font-size: 13px; color: var(--chu-phu); transition: transform .15s; }
  [data-gon].mo .dg-mui { transform: rotate(180deg); }
}
/* điện thoại: các khối thu gọn (Đã giao, Telegram, Công cụ, 7 ngày) xếp liền nhau ở CUỐI trang (sếp 06/11);
   cột của .luoi-2 đã là display: contents dưới 880 px nên thứ tự (order) chạy trong lưới.
   Cần anh (sếp 08/11): chỉ hiện khi có việc → mở sẵn, đứng ĐẦU ngay dưới hero */
@media (max-width: 767px) {
  .tc-luoi [data-gon] { order: 90; }
  #can-anh { order: -1; }
  [data-gon]:not(.mo) { margin-top: -8px; }  /* các dòng thu gọn sát nhau thành một cụm */
}

/* ---------- Tổng quan: khối YouTube = mỗi kênh 1 dòng, mỗi video 1 nhãn "#20 · Dựng" (thanh mảnh = số khâu đã xong) */
#yt-the { display: flex; flex-direction: column; gap: 0; }
.dong-yt-tc { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--luoi-2); }
.dong-yt-tc:first-child { border-top: 0; padding-top: 4px; }
.dyt-ten { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; min-width: 0; padding-top: 4px; }
.dyt-ten b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.dyt-ten:hover b { color: var(--vang); }
.dyt-ten small { font-size: 12px; color: var(--chu-phu); }
.dyt-ds { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.vd-yt { --t: var(--chu-mo); position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 7px; border-radius: 9px;
  font-size: 12px; color: var(--chu-2); background: color-mix(in srgb, var(--t) 9%, var(--nen-3)); border: 1px solid color-mix(in srgb, var(--t) 26%, transparent);
  overflow: hidden; white-space: nowrap; }
.vd-yt b { font-size: 12px; font-weight: 800; color: var(--chu); }
.vd-yt > i { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p); background: var(--t); opacity: .8; }
.vd-yt.dat { --t: var(--dat); background: var(--dat-dac); border-color: var(--dat-dac); }
.vd-yt.dat, .vd-yt.dat b, .vd-yt.dat > span { color: var(--chu-tren-dat); } .vd-yt.dat > span { font-weight: 600; } .vd-yt.dat > i { opacity: 0; }
.vd-yt.san { --t: var(--lam); } .vd-yt.san > span { color: var(--lam); font-weight: 600; }
.vd-yt .ic { width: 13px; height: 13px; margin-right: -2px; stroke-width: 2.4; }
.vd-yt.dang { --t: var(--vang); } .vd-yt.dang > span { color: var(--vang); font-weight: 600; }
.vd-yt.loi { --t: var(--loi-sang); } .vd-yt.loi > span { color: var(--loi-sang); }
.vd-yt .cham-chay { margin: 0; width: 7px; height: 7px; }
@media (max-width: 767px) {
  .dong-yt-tc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dyt-ten { flex-direction: row; align-items: baseline; justify-content: space-between; padding-top: 0; }
}
/* ---------- Tổng quan (ui-dong-bo đợt 2): "Bàn điều phối hôm nay" — trang theo dõi.
   Hero vàng: huy hiệu la bàn | chào + tiêu đề + ngày giờ + dòng trạng thái + nút "Việc cần anh (N)" | 3 vòng tiến độ (#o-vong).
   Vòng đã nói Vietsub / Việt hoá / YouTube nên không có dải ô số riêng (tránh lặp số). Dưới hero: .luoi-2 — cột chính
   (Cần anh → Lô TikTok → YouTube → Lịch) · cột phụ dính (Đã giao theo người, 7 ngày, Telegram, Công cụ). */
.hero.tc-hero { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "huy chu vong" "huy tt vong" "huy nut vong";
  grid-template-rows: auto auto auto; align-content: center; align-items: start; row-gap: 0; }  /* lề + khe cột như mọi hero (đợt 8) */
.hero.tc-hero > .huy { grid-area: huy; }
.hero.tc-hero > .hero-chu { grid-area: chu; }
.hero.tc-hero > .tc-tt { grid-area: tt; margin-top: 14px; }
.hero.tc-hero > .tc-nut-can { grid-area: nut; justify-self: start; margin-top: 18px; }
.hero.tc-hero > .tc-vong { grid-area: vong; align-self: center; }
.hero.tc-hero > .dtc-chip { grid-area: chip; }
.hero.tc-hero > .bo-chon { grid-area: bo; }
.tc-hero .hero-tieu { text-wrap: balance; }
.tc-ngay { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 13.5px; color: var(--hs-phu); }
.tc-ngay .ic { width: 15px; height: 15px; color: var(--hs-nhan); }
.tc-ngay b { font-size: 13.5px; font-weight: 700; color: var(--hs-chu); }
.tc-ngay > span:last-child { padding-left: 10px; border-left: 1px solid var(--hs-vien); }
/* dòng trạng thái: chấm vàng chỉ khi máy đang chạy thật; rảnh = nét đứt */
a.tc-chay:hover { border-color: var(--g-400); }  /* đợt 8: chip là .hero-pill chung (cùng cỡ mọi hero), .tc-chay chỉ còn hover của link */
.tc-chay > span:not(.hero-pill-phu, .cham-chay) { flex: none; white-space: nowrap; }  /* thiếu chỗ thì tên việc rút "…", câu chính không xuống dòng */
.tc-nut-can .dem { margin-left: 2px; }
.tc-nut-can.khong { min-height: 48px; color: var(--dat); border-color: color-mix(in srgb, var(--dat) 35%, transparent); }
/* 3 vòng lồng nhau trong ô kính bên phải hero; chú thích 3 dòng "tên · số" + dòng phụ */
.tc-vong { display: grid; grid-template-columns: auto minmax(196px, 236px); align-items: center; gap: 22px; padding: 16px 22px 16px 16px; border-radius: 18px;
  background: var(--ds-o-hero); border: 1px solid var(--ds-o-hero-vien); box-shadow: inset 0 1px rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
#o-vong .vs { --k: var(--vang); } #o-vong .et { --k: var(--trung); } #o-vong .yt { --k: var(--g-200); }
#o-vong .du { --k: var(--dat); } #o-vong .tre { --k: var(--loi); } #o-vong .cu { --k: var(--chu-mo); }
[data-theme="light"] #o-vong .yt { --k: var(--g-400); }
.vtq { width: 184px; height: 184px; display: block; }
.vtq circle { fill: none; stroke-width: 11; stroke-linecap: butt; }
.vtq .vtq-nen { stroke: var(--vien); }
.vtq .vtq-cung { stroke: var(--k); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--k) 35%, transparent)); }
.vtq .vtq-cung.vs, .vtq .vtq-cung.et { stroke-linecap: round; }
.vtq .vtq-cung.chay { animation: vtq-day 1.3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vtq-day { from { stroke-dasharray: 0 var(--c); } }  /* dùng chung với vòng đầu tab TikTok (.tg-vong) */
.vtq-so { text-anchor: middle; fill: var(--hs-chu, var(--chu)); font: 900 24px "JetBrains Mono", monospace; letter-spacing: -.03em; }
.vtq-phu { text-anchor: middle; fill: var(--hs-phu, var(--chu-phu)); font: 600 10px "JetBrains Mono", monospace; }
.vtq-chu-thich { display: flex; flex-direction: column; min-width: 0; }
.vtq-dong { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-areas: "c t n" ". s s"; column-gap: 8px; row-gap: 2px;
  align-items: center; min-width: 0; padding: 10px 0; color: inherit; text-decoration: none; }
.vtq-dong:first-child { padding-top: 0; } .vtq-dong:last-child { padding-bottom: 0; }
.vtq-dong + .vtq-dong { border-top: 1px solid var(--ds-o-hero-vien); }
a.vtq-dong:hover .vtq-ten { color: var(--ds-vang-chu); }
.vtq-cham { grid-area: c; width: 10px; height: 10px; border-radius: 50%; background: var(--k); box-shadow: 0 0 8px color-mix(in srgb, var(--k) 45%, transparent); }
.vtq-ten { grid-area: t; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hs-phu);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtq-n { grid-area: n; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--hs-chu); white-space: nowrap; line-height: 1.1; }
.vtq-n small { font-size: 12.5px; font-weight: 600; color: var(--hs-phu); opacity: .8; }
.vtq-chu { grid-area: s; font-size: 12px; color: var(--hs-phu); line-height: 1.4; overflow-wrap: anywhere; text-wrap: pretty; }
.vtq-chu.loi { color: var(--loi-sang); }
.vtq-dong.du .vtq-n { color: var(--dat); } .vtq-dong.tre .vtq-n { color: var(--loi-sang); }
.dtc-gon, .dtc-chip { display: none; }

/* cột chính */
.tc-luoi { gap: 20px; }
@container trang (min-width: 880px) { .tc-luoi > .cot { gap: 20px; } }
.tc-luoi .dau-khoi { margin-bottom: 14px; }
.tc-luoi .cot-dinh .dau-khoi { align-items: center; }
/* Việc cần anh: thẻ nhấn hồng đỏ, xếp đầu; mỗi việc một dòng thẻ (2 cột khi đủ chỗ); không có gì = xanh */
.tc-can { position: relative; scroll-margin-top: 84px; border-color: color-mix(in srgb, var(--loi) 32%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--loi) 8%, transparent), transparent 180px), var(--card); }
.tc-can::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--loi), transparent); }
.tc-can:hover { border-color: var(--vien-loi); }
.tc-can.khong { border-color: var(--line); background: var(--card); }
.tc-can.khong::before { background: linear-gradient(90deg, transparent, var(--dat), transparent); opacity: .7; }
.tc-can.nhay { animation: tc-nhay 1.8s ease-out 1; }
@keyframes tc-nhay { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--loi) 60%, transparent), var(--ds-bong); }
  60% { box-shadow: 0 0 0 12px transparent, var(--ds-bong); } 100% { box-shadow: var(--ds-bong); } }
@media (prefers-reduced-motion: reduce) { .tc-can.nhay { outline: 2px solid var(--loi); outline-offset: 3px; } }
.ds-can { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.tc-can-muc { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 14px; border-radius: 13px; color: inherit; text-decoration: none;
  background: var(--ds-the); border: 1px solid color-mix(in srgb, var(--loi) 16%, var(--line)); box-shadow: var(--ds-noi); transition: border-color .15s, transform .15s; }
a.tc-can-muc:hover, a.tc-can-muc:focus-visible { border-color: var(--vien-loi); }
@media (prefers-reduced-motion: no-preference) { a.tc-can-muc:hover { transform: translateY(-1px); } }
.tc-can-dau { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 800 13px "JetBrains Mono", monospace;
  background: linear-gradient(180deg, var(--ds-dem-1), var(--ds-dem-2)); box-shadow: inset 0 1px rgba(255,255,255,.3), 0 3px 8px -3px rgba(225,29,72,.7); }
.tc-can-dau .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.tc-can-chu { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-can-chu b { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tc-can-chu small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-can-mui { flex: none; font-size: 18px; line-height: 1; color: var(--faint); }
a.tc-can-muc:hover .tc-can-mui { color: var(--loi-sang); }
.tc-can-muc.xong { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--dat) 28%, var(--line)); }
.tc-can-muc.xong .tc-can-dau { background: linear-gradient(180deg, #6ee7b7, #10b981); box-shadow: inset 0 1px rgba(255,255,255,.35), 0 3px 8px -3px rgba(16,185,129,.7); }
.tc-can-them { grid-column: 1 / -1; padding: 4px 2px 0; font-size: 12.5px; font-weight: 600; color: var(--loi-sang); }
/* Lô TikTok: bộ lọc đoạn + chú thích một hàng */
.tc-loc-hang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: -2px 0 14px; }
.tc-loc-hang .loc-nut .ic { width: 14px; height: 14px; }
.tc-loc-hang .chu-thich { font-size: 11.5px; gap: 6px 12px; }
.tc-loc-hang .mau-o { width: 10px; height: 10px; }
/* Lịch, cỡ "vừa" (cột giữa của lưới 2 cột): nhãn loại chỉ còn biểu tượng */
.lich.vua .lich-nhan .vien-mau { width: auto; padding: 3px 5px; }
.lich.vua .vien-mau .vm-chu { display: none; }
.lich.vua .lich-tt { padding-left: 10px; column-gap: 6px; }
.lich.hep .nay-chu.cuoi, .lich.vua .nay-chu.cuoi { transform: translateX(-100%); }  /* nhãn "Bây giờ" cuối ngày không tràn khung (lịch cuộn lệch) */
/* ô trống trong thẻ: nền lõm nhạt, không vẽ khung nét đứt lồng trong thẻ */
.tc-trong { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border-radius: 14px; text-align: center;
  background: var(--ds-o); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.tc-trong b { font-size: 14px; color: var(--text); }

/* cột phụ: Đã giao (thẻ nhấn vàng, theo người) */
.tc-giao-pt { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--ds-vang-chu); background: var(--ds-vang-nen);
  border: 1px solid var(--ds-vien-vang); }
.tc-giao-pt:empty { display: none; }
.tc-giao-pt.du { color: var(--dat); background: color-mix(in srgb, var(--dat) 12%, transparent); border-color: color-mix(in srgb, var(--dat) 35%, transparent); }
.thanh.tc-giao-thanh { height: 10px; margin: 0; background: var(--ds-o-2); }
.tc-giao-tom { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.tc-giao-tom b { color: var(--text); font-weight: 800; }
.tc-ng-ds { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.tc-ng { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ten so" "thanh thanh" "phu phu"; align-items: baseline; row-gap: 5px; }
.tc-ng-ten { grid-area: ten; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--text); }
.tc-ng-so { grid-area: so; font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--text); }
.tc-ng-thanh { grid-area: thanh; display: flex; height: 6px; border-radius: 999px; background: var(--ds-o-2); overflow: hidden; }
.tc-ng-thanh > i { display: block; height: 100%; }
.tc-ng-thanh > i.vs { background: linear-gradient(90deg, var(--g-200), var(--g-400)); }
.tc-ng-thanh > i.vh { background: var(--trung); }
.tc-ng small { grid-area: phu; font-size: 11.5px; color: var(--faint); }
/* 7 ngày thu nhỏ */
#bay-ngay .chu-thich { font-size: 11px; gap: 4px 10px; }
/* Telegram hôm nay: bảng tin, mới nhất trên cùng, trục dọc mảnh */
.ds-tg { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; margin-right: -8px; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.tg-muc { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; }
.tg-gio { padding-top: 1px; font-size: 11.5px; color: var(--faint); text-align: right; }
.tg-noi { position: relative; padding: 0 0 14px 16px; border-left: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--chu-2); overflow-wrap: anywhere; }
.tg-noi::before { content: ""; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong);
  box-shadow: 0 0 0 3px var(--card-dac, var(--card)); }
.tg-muc:last-child .tg-noi { padding-bottom: 2px; border-left-color: transparent; }
.tg-muc.noi .tg-noi { color: var(--loi-sang); } .tg-muc.noi .tg-noi::before { background: var(--loi); }
.tg-noi em { font-style: normal; color: var(--faint); }
.tc-tg-dem { font-size: 11.5px; color: var(--faint); }
/* Công cụ trên máy (chỉ sếp) */
.ds-cc { display: flex; flex-direction: column; gap: 8px; }
.dong-cc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 13px;
  background: var(--ds-the); border: 1px solid var(--line); box-shadow: var(--ds-noi); }
.dong-cc > div { display: flex; flex-direction: column; min-width: 0; }
.dong-cc b { font-size: 13.5px; font-weight: 700; }
.dong-cc .phu.nho { font-size: 11.5px; color: var(--faint); }
.dong-cc .cc-phai { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.dong-cc .nut-ma { min-height: 36px; padding: 0 14px; font-size: 13.5px; }  /* nút Chạy TTGET: nút nhỏ chung 36 px */

/* bề rộng vùng nội dung: hẹp hơn 1100 thì vòng nhỏ lại; dưới 1000 khối vòng xuống hàng riêng, chú thích 3 cột */
@container trang (max-width: 1100px) {
  .vtq { width: 160px; height: 160px; }
  .tc-vong { gap: 18px; grid-template-columns: auto minmax(186px, 220px); }
}
@container trang (max-width: 1000px) {
  .hero.tc-hero { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "huy chu" "huy tt" "huy nut" "vong vong"; }
  .hero.tc-hero > .tc-vong { grid-column: 1 / -1; margin-top: 22px; grid-template-columns: auto minmax(0, 1fr); }
  .tc-vong .vtq-chu-thich { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc-vong .vtq-dong { padding: 2px 18px; grid-template-areas: "c t" ". n" ". s"; grid-template-columns: 10px minmax(0, 1fr); }
  .tc-vong .vtq-dong:first-child { padding-left: 0; }
  .tc-vong .vtq-dong + .vtq-dong { border-top: 0; border-left: 1px solid var(--ds-o-hero-vien); }
  .tc-vong .vtq-n { font-size: 26px; }
}
/* ---------- Xưởng mini (sếp 09/11; 13/11 thêm bàn YT Đức, 25/11 dừng kênh Đức → lại 4 bàn): 4 bàn trong khoảng trống giữa lời chào và ô vòng. Chỉ hiện khi vùng nội dung đủ rộng để
   lời chào vẫn 1 dòng (hero KHÔNG cao thêm: xưởng cao đúng bằng ô vòng = 184 + 2×16 padding + 2 viền); hẹp hơn / điện thoại
   thì ẩn hẳn, lưới hero giữ như cũ. Khung = ô kính như .tc-vong, chữ như .vtq-ten / .vtq-chu, nét như biểu tượng nét,
   màu theo luật 5 màu: vàng = đang chạy thật, xanh = đủ chỉ tiêu, rảnh = nét đứt mờ. */
.tc-xuong { display: none; }
@container trang (min-width: 1500px) {
  .hero.tc-hero { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "huy chu xuong vong" "huy tt xuong vong" "huy nut xuong vong"; }
  .hero.tc-hero > .tc-xuong { display: block; grid-area: xuong; align-self: center; justify-self: end; width: 100%; max-width: 620px; height: 218px;
    container-type: inline-size; }
}
/* .tc-xuong chỉ là chỗ đặt (đo bề rộng); khung kính nằm ở .xg-khung để ô quá hẹp thì ẩn cả khung, không để hộp rỗng */
.xg-khung { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 100%; padding: 16px 4px; border-radius: 18px;
  background: var(--ds-o-hero); border: 1px solid var(--ds-o-hero-vien); box-shadow: inset 0 1px rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@container (max-width: 299px) { .xg-khung { display: none; } }
.xg-ban { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 0 6px;
  color: var(--hs-phu); text-decoration: none; text-align: center; }
.xg-ban + .xg-ban { border-left: 1px solid var(--ds-o-hero-vien); }
.xg-hinh { width: 100%; max-width: 132px; height: auto; max-height: 118px; min-height: 0; overflow: visible; margin-bottom: 10px; }
.xg-hinh path, .xg-hinh rect, .xg-hinh circle, .xg-hinh ellipse { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; }
.xg-ten { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--hs-phu); white-space: nowrap; }
.xg-ten .cham-chay { margin: 0; width: 7px; height: 7px; }
.xg-phu { max-width: 100%; font-size: 12px; line-height: 1.4; color: var(--hs-phu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.xg-ban:hover .xg-ten { color: var(--ds-vang-chu); }
/* rảnh: nét đứt + mờ (luật "trạng thái chỉ hiện khi thật", như .hero-pill.ranh) */
.xg-ban.ranh .xg-ng, .xg-ban.ranh .xg-nen { opacity: .58; }
.xg-ban.ranh .xg-dut { stroke-dasharray: 3 3; }
.xg-ban.ranh .xg-phu { color: var(--muted); }
.xg-z { fill: currentColor; stroke: none; font: 700 7px "Be Vietnam Pro", sans-serif; }
/* đang chạy: nét vàng, màn hình sáng nhẹ + quầng như cung vòng tiến độ, đèn bàn chiếu quầng vàng nhạt */
.xg-ban.dang { color: var(--vang); }
.xg-ban.dang .xg-ten { color: var(--hs-chu); }
.xg-ban.dang .xg-nen { color: var(--hs-phu); }
.xg-ban.dang .xg-hinh .xg-man { fill: color-mix(in srgb, var(--vang) 16%, transparent); }
.xg-ban.dang .xg-hinh { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--vang) 30%, transparent)); }
.xg-hinh .xg-den { fill: color-mix(in srgb, var(--vang) 13%, transparent); stroke: none; }
.xg-hinh .xg-mo { opacity: .55; }
.xg-hinh .xg-thanh-nen { stroke: color-mix(in srgb, var(--vang) 30%, transparent); }
.xg-hinh .xg-xong { stroke: var(--dat); opacity: 0; }
.xg-hinh .xg-dau-doc { stroke: var(--hs-chu); }
.xg-hinh .xg-dt { fill: color-mix(in srgb, var(--vang) 35%, transparent); }
.xg-hinh .xg-cham3 { stroke-width: 2.2; }
.xg-hinh .xg-bdn { color: var(--vang); opacity: 0; }
.xg-hinh .xg-tia, .xg-hinh .xg-bx, .xg-hinh .xg-phao { opacity: 0; }
.xg-hinh .xg-phao { stroke: var(--vang); } .xg-hinh .xg-phao.xanh { stroke: var(--dat); }
.xg-ban.vui .xg-phu { color: var(--dat); }
/* đủ chỉ tiêu mà đang rảnh: cúp xanh */
.xg-hinh .xg-cup { stroke: var(--dat); }
.xg-ban.du .xg-phu { color: var(--dat); }
/* bàn trong ô hẹp (~330 px ở màn 1920 có menu trái; đặt từ hồi 5 bàn, giữ cho 4 bàn): chữ nhỏ lại, bớt lề để tên bàn không bị cắt */
@container (max-width: 420px) {
  .xg-khung { padding-inline: 2px; }
  .xg-ban { padding: 0 3px; }
  .xg-ten { font-size: 10.5px; letter-spacing: .02em; gap: 4px; }
  .xg-phu { font-size: 11px; }
}
/* chuyển động nhỏ (biên độ 1–5px, nhịp .3–5s); giảm chuyển động thì đứng yên ở tư thế chính */
@media (prefers-reduced-motion: no-preference) {
  .xg-hinh .xg-tA { animation: xg-go .32s ease-in-out infinite alternate; transform-origin: 24px 27px; }
  .xg-hinh .xg-tB { animation: xg-go .32s ease-in-out infinite alternate-reverse; transform-origin: 24px 27px; opacity: .55; }
  .xg-hinh .xg-lac { animation: xg-lac 1.6s ease-in-out infinite; transform-origin: 24px 43px; }
  .xg-hinh .xg-gat { animation: xg-gat .9s ease-in-out infinite; transform-origin: 24px 20px; } .xg-hinh .xg-gat.cham { animation-duration: 4s; }
  .xg-hinh .xg-lac .xg-gat { animation-duration: 3s; }
  .xg-hinh .xg-go { stroke-dasharray: 14; animation: xg-viet 2.4s steps(7) infinite; }
  .xg-hinh .xg-go.d2 { animation-delay: .8s; } .xg-hinh .xg-go.d3 { animation-delay: 1.6s; }
  .xg-hinh .xg-ct { animation: xg-nhap .8s steps(1) infinite; }
  .xg-hinh .xg-thanh { stroke-dasharray: 16; animation: xg-thanh 4s linear infinite; }
  .xg-hinh .xg-xong { animation: xg-xong 4s linear infinite; }
  .xg-hinh .xg-eq { transform-box: fill-box; transform-origin: bottom; animation: xg-eq .5s ease-in-out infinite alternate; }
  .xg-hinh .xg-mieng { transform-box: fill-box; transform-origin: center; animation: xg-mieng .35s steps(2) infinite; }
  .xg-hinh .xg-song { opacity: 0; animation: xg-song 1.2s ease-out infinite; } .xg-hinh .xg-song.s2 { animation-delay: .4s; }
  .xg-hinh .xg-tia { animation: xg-tia 1.6s ease-out infinite; }
  .xg-hinh .xg-tho { animation: xg-tho 3s ease-in-out infinite; }
  .xg-hinh .xg-z { opacity: 0; animation: xg-z 3s ease-in-out infinite; } .xg-hinh .xg-z.z2 { animation-delay: 1.5s; }
  .xg-hinh .xg-uong { animation: xg-uong 4s ease-in-out infinite; transform-origin: 24px 27px; }
  .xg-hinh .xg-hoi { animation: xg-hoi 2.4s ease-in-out infinite; }
  .xg-hinh .xg-vuon { animation: xg-vuon 3.2s ease-in-out infinite; transform-origin: 24px 26px; }
  .xg-hinh .xg-luot { animation: xg-luot 1.8s ease-in-out infinite; }
  .xg-hinh .xg-bong { animation: xg-bong 5s ease-in-out infinite; }
  .xg-hinh .xg-bdn { animation: xg-bdn 5s ease-in-out infinite; }
  .xg-hinh .xg-chuot { animation: xg-chuot 1.4s ease-in-out infinite alternate; }
  .xg-hinh .xg-truot { animation: xg-truot 1.4s ease-in-out infinite alternate; }
  .xg-hinh .xg-ngon { animation: xg-ngon .3s steps(2) infinite; }
  .xg-hinh .xg-rung { animation: xg-rung .25s steps(2) infinite; }
  .xg-hinh .xg-gu { animation: xg-gu 1.2s ease-in-out infinite; transform-origin: 24px 20px; }
  .xg-hinh .xg-chai { animation: xg-chai 3.5s ease-in-out infinite; transform-origin: 24px 27px; }
  .xg-hinh .xg-lat { animation: xg-lat 3s ease-in-out infinite; transform-origin: 33px 22px; }
  .xg-hinh .xg-not { opacity: 0; animation: xg-not 2.4s ease-out infinite; } .xg-hinh .xg-not.n2 { animation-delay: 1.2s; }
  .xg-hinh .xg-dua { animation: xg-dua 2.2s ease-in-out infinite; transform-origin: 24px 27px; }
  .xg-hinh .xg-nem { animation: xg-nem 3s ease-in-out infinite; transform-origin: 24px 27px; }
  .xg-hinh .xg-bx { animation: xg-bx 3s linear infinite; }
  .xg-hinh .xg-by { animation: xg-by 3s infinite; }
  .xg-hinh .xg-nhay { animation: xg-nhay .5s ease-in-out infinite alternate; transform-origin: 24px 50px; }
  .xg-hinh .xg-phao { transform-box: fill-box; transform-origin: center; animation: xg-phao 1.8s ease-out infinite; }
  .xg-hinh .xg-cup { animation: xg-nhap 2s ease-in-out infinite; }
}
@keyframes xg-go { to { transform: rotate(-4deg); } }
@keyframes xg-lac { 50% { transform: rotate(1.5deg); } }
@keyframes xg-gat { 50% { transform: rotate(7deg); } }
@keyframes xg-viet { 0% { stroke-dashoffset: 14; } 60%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes xg-nhap { 50% { opacity: .3; } }
@keyframes xg-thanh { from { stroke-dashoffset: 16; } 85%, to { stroke-dashoffset: 0; } }
@keyframes xg-xong { 0%, 84% { opacity: 0; } 88%, 98% { opacity: 1; } 100% { opacity: 0; } }
@keyframes xg-eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes xg-mieng { 50% { transform: scaleY(.2); } }
@keyframes xg-song { 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(3px); } }
@keyframes xg-tia { 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), -9px); } }
@keyframes xg-tho { 50% { transform: translateY(1.2px); } }
@keyframes xg-z { 40% { opacity: 1; } 100% { opacity: 0; transform: translate(3px, -4px); } }
@keyframes xg-uong { 0%, 50%, 100% { transform: rotate(0); } 62%, 85% { transform: rotate(-14deg); } }
@keyframes xg-hoi { 0% { opacity: 0; transform: translateY(1px); } 50% { opacity: .9; } 100% { opacity: 0; transform: translateY(-3px); } }
@keyframes xg-vuon { 0%, 100% { transform: scaleY(.55); } 40%, 60% { transform: scaleY(1); } }
@keyframes xg-luot { 50% { transform: translateY(-1px); } }
@keyframes xg-bong { 0%, 55% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes xg-bdn { 0%, 58% { opacity: 0; } 66%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes xg-chuot { to { transform: translateX(-2.5px); } }
@keyframes xg-truot { to { transform: translateX(-4px); } }
@keyframes xg-ngon { 50% { transform: translateY(-1px); } }
@keyframes xg-rung { 50% { transform: translateY(-.8px); } }
@keyframes xg-gu { 50% { transform: rotate(5deg) translateY(.5px); } }
@keyframes xg-chai { 0%, 45%, 100% { transform: rotate(0); } 58%, 85% { transform: rotate(-22deg); } }
@keyframes xg-lat { 0%, 60% { transform: scaleX(1); } 80%, 100% { transform: scaleX(-1); } }
@keyframes xg-not { 20% { opacity: 1; } 100% { opacity: 0; transform: translate(4px, -8px); } }
@keyframes xg-dua { 0%, 100% { transform: rotate(0); } 45%, 60% { transform: rotate(-24deg); } }
@keyframes xg-nem { 0%, 30% { transform: rotate(0); } 40% { transform: rotate(-40deg); } 55%, 100% { transform: rotate(-10deg); } }
@keyframes xg-bx { 0%, 38% { opacity: 0; transform: translateX(0); } 40% { opacity: 1; transform: translateX(0); } 78% { opacity: 1; transform: translateX(30px); } 80%, 100% { opacity: 0; transform: translateX(30px); } }
@keyframes xg-by { 0%, 40% { transform: translateY(0); animation-timing-function: ease-out; } 58% { transform: translateY(-14px); animation-timing-function: ease-in; } 78%, 100% { transform: translateY(27px); } }
@keyframes xg-nhay { to { transform: translateY(-5px); } }
@keyframes xg-phao { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(200deg); } }
/* điện thoại (cùng mốc với bộ chọn Ngày / Tuần ở thanh trên — chung.js): hero gọn, 1 dòng "Tổng quan · T7 07/11 · 23:23"
   + chip mở chọn Ngày / Tuần; vòng ~ nửa màn + chú thích; trạng thái + nút Việc cần anh rộng hết */
@media (max-width: 767px) {
  .hero.tc-hero { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "huy chu chip" "vong vong vong" "tt tt tt" "nut nut nut" "bo bo bo";
    align-items: center; gap: 0 12px; padding: 14px 14px 16px; border-radius: 18px; }
  .hero.tc-hero > .huy { width: 38px; height: 38px; padding: 2px; align-self: center; box-shadow: var(--hs-nho-bong); }
  .hero.tc-hero > .hero-chu { align-self: center; }
  #dau-tc .hero-nhan, #dau-tc .hero-tieu, #ngay-gio { display: none; }
  /* huy hiệu + chip chiếm chỗ: "Tổng quan" và ngày giờ xếp 2 tầng sát nhau (một dòng thì ngày bị cắt mất) */
  .dtc-gon { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .dtc-gon b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
  .dtc-gon span { font-size: 12px; color: var(--hs-phu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .dtc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; font: 600 12.5px "Be Vietnam Pro", sans-serif;
    border: 1px solid var(--ds-vien-vang); background: var(--ds-o-hero); color: var(--ds-vang-chu); cursor: pointer; white-space: nowrap; }
  .dtc-chip .ic { width: 14px; height: 14px; }
  .hero.tc-hero > .tc-vong { grid-column: 1 / -1; margin-top: 14px; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 12px; padding: 12px 12px 12px 8px; }
  .vtq { width: 100%; height: auto; aspect-ratio: 1; }
  .tc-vong .vtq-chu-thich { display: flex; flex-direction: column; }
  .tc-vong .vtq-dong, .tc-vong .vtq-dong:first-child { padding: 8px 0; grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-areas: "c t n" ". s s"; column-gap: 6px; }
  .tc-vong .vtq-dong:first-child { padding-top: 0; } .tc-vong .vtq-dong:last-child { padding-bottom: 0; }
  .tc-vong .vtq-dong + .vtq-dong { border-left: 0; border-top: 1px solid var(--ds-o-hero-vien); }
  .vtq-cham { width: 8px; height: 8px; }
  .vtq-ten { font-size: 10.5px; letter-spacing: .03em; }
  .tc-vong .vtq-n { font-size: 17px; } .vtq-n small { font-size: 11px; }
  .vtq-chu { font-size: 11px; line-height: 1.35; }
  .hero.tc-hero > .tc-tt { grid-column: 1 / -1; margin-top: 12px; }
  .hero.tc-hero > .tc-nut-can { grid-column: 1 / -1; width: 100%; justify-self: stretch; margin-top: 10px; min-height: 48px; }
  .hero.tc-hero > .bo-chon { grid-column: 1 / -1; width: 100%; margin-top: 12px; }
  #dau-tc:not(.mo-chon) .bo-chon { display: none; }
}
/* ---------- TikTok "Xưởng TikTok" (ui-dong-bo đợt 5) — trang theo dõi, sếp lấy làm ví dụ: đầu trang kiểu bàn Giám đốc.
   Hero vàng: huy hiệu nốt nhạc | nhãn + "Xưởng TikTok · Thứ … dd/mm" + dòng trạng thái (giao · đang chạy · chờ anh) | ô kính
   vòng tiến độ (#tt-nguoi, quầng sáng như huy hiệu) + chú thích từng loại. Dưới hero: dải ô số theo người + ô Chờ duyệt lời
   (không còn khoảng trống nửa trang) · tab loại · .luoi-2 (cột chính: Chờ anh duyệt lời → Các lô theo nhóm; cột phụ dính:
   Nguồn đang về, 14 ngày). Thẻ lô .tt-lo riêng của trang này; dải ô .dai-lo / nhãn .vien-mau / .nhan dùng chung Tổng quan. */
.tt-trang .khoi { scroll-margin-top: 84px; }
.tt-hero .hero-tieu { text-wrap: balance; }
.tt-hero > .bo-chon { grid-column: 1 / -1; width: min(100%, 440px); }
.hero-dong button.hero-pill { font: inherit; cursor: pointer; }
.hero-pill b { font-variant-numeric: tabular-nums; }
.tt-cho:hover, .tt-cho:focus-visible { border-color: var(--loi); }
/* ô kính vòng tiến độ: đĩa lõi tối có quầng vàng (cùng bóng huy hiệu) + chú thích "● Vietsub 30/45" */
.tt-vong { display: grid; grid-template-columns: auto minmax(150px, 186px); align-items: center; gap: 20px; padding: 14px 20px 14px 14px;
  border-radius: 20px; background: var(--ds-o-hero); border: 1px solid var(--ds-o-hero-vien); box-shadow: inset 0 1px rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tt-vong:empty { display: none; }
.tt-vong .vs { --k: var(--vang); } .tt-vong .et { --k: var(--trung); } .tt-vong .du { --k: var(--dat); }
.tt-vong-dia { display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; background: var(--hs-trong);
  border: 1px solid var(--ds-vien-vang); box-shadow: var(--hs-vong-bong), inset 0 2px 8px rgba(0,0,0,.35); }
[data-theme="light"] .tt-vong-dia { box-shadow: var(--hs-vong-bong), inset 0 2px 6px rgba(143,92,22,.16); }
.tg-vong { width: 116px; height: 116px; display: block; }
.tg-vong circle { fill: none; stroke-width: 10; stroke-linecap: butt; }
.tg-vong .vtq-nen { stroke: var(--ds-o-2); }
.tg-vong .vtq-cung { stroke: var(--k); stroke-linecap: round; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--k) 45%, transparent)); }
.tg-vong .vtq-cung.chay { animation: vtq-day 1.3s cubic-bezier(.2,.8,.2,1) both; }
.tg-so { text-anchor: middle; fill: var(--hs-chu); font: 900 22px "JetBrains Mono", monospace; letter-spacing: -.03em; }
.tg-phu { text-anchor: middle; fill: var(--hs-phu); font: 600 9.5px "JetBrains Mono", monospace; }
.tt-vong-ct { display: flex; flex-direction: column; min-width: 0; }
.tt-vong-nhan { padding-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hs-nhan);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-vong-dong { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding: 9px 0;
  border-top: 1px solid var(--ds-o-hero-vien); }
.tt-vong-dong:last-child { padding-bottom: 0; }
.tt-vong-cham { width: 9px; height: 9px; border-radius: 50%; background: var(--k); box-shadow: 0 0 8px color-mix(in srgb, var(--k) 50%, transparent); }
.tt-vong-dong > span { font-size: 12.5px; font-weight: 700; color: var(--hs-phu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-vong-dong b { font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--hs-chu); white-space: nowrap; }
.tt-vong-dong b small { font-size: 12px; font-weight: 600; color: var(--hs-phu); }
.tt-vong-dong.du b { color: var(--dat); }
.tt-vong-trong { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 12.5px; color: var(--hs-phu); }
.tt-vong-trong b { font-size: 14px; color: var(--hs-chu); }
/* dải ô số: mỗi người một ô (bấm = lọc loại) + ô Chờ duyệt lời hồng đỏ; tự chia đều theo bề ngang */
.so-dai.tt-so { grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr)); gap: 12px; }
.tt-so:empty { display: none; }
.tt-so > .tt-so-trong { grid-column: 1 / -1; padding: 16px; }
.tt-so button.so-o { font: inherit; text-align: left; color: inherit; cursor: pointer;  /* lề / khe như mọi .so-o (đợt 8) */
  transition: border-color .16s, transform .16s; }
.tt-so button.so-o:hover, .tt-so button.so-o:focus-visible { border-color: var(--line-strong); }
.tt-so button.so-o:focus-visible { outline: 2px solid var(--g-400); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .tt-so button.so-o:hover { transform: translateY(-1px); } }
.tt-so .so-nhan { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-so .so-lon small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--faint); }
.tt-so .so-phu { overflow-wrap: anywhere; line-height: 1.4; }
.tg-dong.vs { --k: var(--vang); } .tg-dong.et { --k: var(--trung); }
.tg-cham { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 8px color-mix(in srgb, var(--k) 50%, transparent); }
.tg-dong.het .so-lon { color: var(--dat); }
.tg-thanh { display: block; height: 4px; border-radius: 99px; background: var(--ds-o-2); overflow: hidden; }
.tg-thanh > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--k), #fff 25%), var(--k)); }
.tg-dong.het .tg-thanh > i { background: linear-gradient(90deg, #6ee7b7, #10b981); }
.tt-o-duyet .so-nhan .ic { width: 14px; height: 14px; flex: none; }
.tt-o-duyet.loi { border-color: var(--vien-loi); background: linear-gradient(145deg, color-mix(in srgb, var(--loi) 11%, transparent), transparent 70%), var(--card); }
.tt-o-duyet.loi::after { background: linear-gradient(90deg, transparent, var(--loi), transparent); }
.tt-o-duyet.loi .so-nhan { color: var(--loi-sang); }
.tt-o-duyet.loi .so-lon { color: var(--loi-sang); }
.tt-o-duyet.dat .so-nhan .ic { color: var(--dat); }
.tt-so button.tt-o-duyet:hover { border-color: var(--loi); }
.tt-loc .ic { width: 16px; height: 16px; }
/* lưới: cột phụ hẹp cố định (nguồn + biểu đồ) */
@container trang (min-width: 880px) {
  .luoi-2.tt-luoi { grid-template-columns: minmax(0, 1fr) 352px; }
  .tt-luoi > .cot { gap: 20px; }
}
.tt-luoi { gap: 20px; }
.tt-luoi .dau-khoi { margin-bottom: 14px; }
.tt-luoi .cot-dinh .dau-khoi { margin-bottom: 12px; }
.tt-tat-ca { min-height: 36px; padding: 0 14px; }
/* Chờ anh duyệt lời: khối nhấn hồng đỏ (vạch sáng mép trên); không có lô = trung tính, vạch xanh */
.tt-duyet { position: relative; border-color: color-mix(in srgb, var(--loi) 30%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--loi) 7%, transparent), transparent 180px), var(--card); }
.tt-duyet::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--loi), transparent); }
.tt-duyet:hover { border-color: var(--vien-loi); }
.tt-duyet.khong { border-color: var(--line); background: var(--card); }
.tt-duyet.khong::before { background: linear-gradient(90deg, transparent, var(--dat), transparent); opacity: .7; }
/* thẻ lô: đầu thẻ (loại · tên đậm · trạng thái | nút) · dải ô · dòng số đậm + giờ / cảnh báo; lô xong gọn một hàng */
.ds-lo-tc.tt-ds-lo { gap: 10px; }
.tt-lo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dau nut" "dai dai" "chan chan";
  align-items: center; gap: 12px 14px; min-width: 0; padding: 16px 18px; border-radius: 16px; background: var(--ds-the); border: 1px solid var(--line);
  box-shadow: var(--ds-noi), 0 12px 26px -20px rgba(0,0,0,.7); transition: border-color .16s; }
[data-theme="light"] .tt-lo { box-shadow: var(--ds-noi), 0 10px 22px -18px rgba(20,26,36,.25); }
.tt-lo:hover { border-color: var(--line-strong); }
.tt-lo-dau { grid-area: dau; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.tt-lo-ten { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; color: var(--text); overflow-wrap: anywhere; }
.tt-lo-dau .nhan { flex: none; }
.tt-lo-nut { grid-area: nut; justify-self: end; display: flex; gap: 8px; }
.tt-lo-dai { grid-area: dai; min-width: 0; }
.tt-lo-dai .thanh.lo-thanh { margin: 0; height: 6px; }
.tt-lo-chan { grid-area: chan; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; min-width: 0; }
.tt-lo-so { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.tt-lo-so b { font-weight: 800; color: var(--text); }
.tt-lo-gio { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--faint); min-width: 0; }
.tt-lo.chay { border-color: var(--ds-vien-vang); background: linear-gradient(100deg, var(--ds-vang-nen), transparent 62%), var(--ds-the);
  box-shadow: inset 3px 0 0 var(--g-400), var(--ds-noi), 0 12px 26px -18px rgba(217,154,43,.55); }
.tt-lo.chay .tt-lo-gio { color: var(--chu-2); }
.tt-lo.chay .dai-lo > i.render, .tt-lo.chay .dai-lo > i.viet, .tt-lo.chay .dai-lo > i.duyet { animation: tho 2.4s ease-in-out infinite; }
.tt-lo.can { border-color: var(--vien-loi); background: linear-gradient(100deg, color-mix(in srgb, var(--loi) 9%, transparent), transparent 62%), var(--ds-the);
  box-shadow: inset 3px 0 0 var(--loi), var(--ds-noi), 0 12px 26px -20px rgba(0,0,0,.6); }
.tt-lo.xong { padding: 11px 16px; background: transparent; box-shadow: none; }
.tt-lo.xong .tt-lo-ten { font-size: 14.5px; }
/* lô xong: hàng 1 = loại · tên · Xong | số | nút; hàng 2 = dải ô mảnh; ghi chú giao (nếu có) dưới cùng, bỏ giờ giao cuối */
.tt-lo.xong { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dau nut" "so so" "dai dai" "gio gio"; gap: 8px 14px; }
.tt-lo.xong .tt-lo-chan { display: contents; }
.tt-lo.xong .tt-lo-so { grid-area: so; }
.tt-lo.xong .tt-lo-gio { grid-area: gio; }
.tt-lo.xong .tt-lo-gio > span:not(.canh) { display: none; }
.tt-lo.xong .tt-lo-gio:not(:has(.canh, a)) { display: none; }
@container (min-width: 600px) {
  .tt-lo.xong { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "dau so nut" "dai dai dai" "gio gio gio"; }
  .tt-lo.xong .tt-lo-so { white-space: nowrap; }
}
/* nút trong thẻ lô (TikTok + Tổng quan, đợt 8): Duyệt = vàng kính (.nut-dat), Chi tiết = nút ma, cỡ nút nhỏ chung 36 px — đè kiểu chữ trần .lo-link */
.tt-trang a.lo-link { justify-self: auto; }
a.lo-link.nut-dat, a.lo-link.nut-ma { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
a.lo-link.nut-dat { color: color-mix(in srgb, var(--nm) 88%, var(--text)); }
[data-theme="light"] a.lo-link.nut-dat { color: var(--vang-sang); }
a.lo-link.nut-ma { color: var(--chu-2); }
a.lo-link.nut-ma:hover { color: var(--text); }
.lo-phu { font-size: 12.5px; font-weight: 600; color: var(--chu-3); }  /* "Xem lời" của lô Việt hoá đã duyệt */
.lo-phu:hover, .lo-phu:focus-visible { color: var(--vang); }
.ds-nhom.chay { color: var(--ds-vang-chu); }
.ds-nhom + .tt-lo { margin-top: -2px; }
/* Chú thích màu: nút ma "Chú thích" mở bảng nổi (mặc định gập, cả máy tính) */
.tt-ct { position: relative; }
.tt-ct > summary { list-style: none; min-height: 36px; padding: 0 14px; user-select: none; }
.tt-ct > summary::-webkit-details-marker { display: none; }
.tt-ct > summary .ic { width: 15px; height: 15px; }
.tt-ct[open] > summary { background: var(--ds-o-2); border-color: var(--muted); color: var(--text); }
.chu-thich.tt-ct-bang { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: max-content; max-width: min(340px, calc(100vw - 48px));
  display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 18px; padding: 14px 16px; border-radius: 14px;
  background: var(--card-dac); border: 1px solid var(--line-strong); box-shadow: var(--ds-bong), var(--bong-noi); }
/* Nguồn đang về: danh sách tin (chấm · loại + tên + số video / dòng phụ · trạng thái) */
.tt-nguon-ds { display: flex; flex-direction: column; min-width: 0; }
.dong-nguon { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: start; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.dong-nguon:first-child { border-top: 0; padding-top: 2px; }
.dong-nguon:last-child { padding-bottom: 0; }
.dong-nguon .cham-song { width: 10px; height: 10px; margin-top: 7px; }
.dong-nguon-chu { min-width: 0; }
.dong-nguon-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.dong-nguon-dau b { font-size: 14px; font-weight: 800; color: var(--text); }
.dong-nguon-dau .mono { font-size: 12px; color: var(--muted); }
.dong-nguon-chu small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--faint); overflow-wrap: anywhere; }
.dong-nguon-tt { margin-top: 2px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--m);
  background: color-mix(in srgb, var(--m) 12%, transparent); }
/* ô trống gọn (nét đứt, không lồng thẻ to) */
.trong.tt-trong-gon { padding: 16px 14px; font-size: 12.5px; }
.trong.tt-trong-gon b { font-size: 13.5px; }
.tt-14-ct { margin: -4px 0 6px; font-size: 11.5px; gap: 6px 12px; }
.tt-14-ct .mau-o { width: 10px; height: 10px; }
/* cột phụ hẹp: chữ trục 9 px cho 14 nhãn ngày không chồng nhau (khung vẽ 1:1 theo bề rộng thật) */
.tt-14 .bd text { font-size: 9px; } .tt-14 .bd text.tong { font-size: 9.5px; }
/* vùng nội dung hẹp: ô kính vòng xuống hàng riêng (vòng | chú thích ngang) */
@container trang (max-width: 1000px) {
  .hero.tt-hero { grid-template-columns: auto minmax(0, 1fr); }
  .tt-hero > .tt-vong { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); justify-self: stretch; }
  .tt-vong-ct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .tt-vong-nhan { grid-column: 1 / -1; }
}
/* điện thoại: hero gọn (huy hiệu nhỏ cạnh tiêu đề), ô kính vòng rộng hết, ô số 2 cột */
@container trang (max-width: 560px) {
  .tt-hero .hero-dong { margin-left: -68px; }  /* hàng chip lùi về mép trái, dưới huy hiệu 52 px (+ khe 16) — cỡ hero điện thoại chung */
  .tt-vong { gap: 14px; padding: 12px 14px 12px 12px; }
  .tt-vong-dia { width: 104px; height: 104px; }
  .tg-vong { width: 94px; height: 94px; }
  .tt-vong-ct { display: flex; }
  .tt-vong-dong b { font-size: 18px; }
  .so-dai.tt-so { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tt-so .so-nhan { font-size: 10.5px; letter-spacing: .04em; }
  .tt-so .so-lon small { font-size: 13px; }
  .tt-so .so-phu { font-size: 11px; }
  .tt-lo { padding: 14px; gap: 10px 12px; }
  .tt-lo.xong { padding: 10px 12px; }
  .chu-thich.tt-ct-bang { grid-template-columns: max-content; }
  .tt-so > .tt-o-duyet:nth-child(odd) { grid-column: 1 / -1; }  /* ô lẻ cuối hàng: rộng hết, không để nửa hàng trống */
  .tt-luoi .dau-khoi { flex-wrap: nowrap; align-items: flex-start; }
  .tt-luoi .dau-khoi > div:first-child { flex: 1; }
  .tt-luoi .dau-khoi .tieu-muc { font-size: 16.5px; }
}
.o-vuong.o-nho { width: 32px; height: 32px; border-radius: 10px; }
.o-vuong.o-nho .ic { width: 17px; height: 17px; }
/* biểu đồ kiểu ngách: lưới mảnh, chữ trục 10 px nhạt, cột bo 3 */
.bd .luoi-bd { stroke: var(--line); }
.bd text { font: 500 10.5px "JetBrains Mono", monospace; fill: var(--faint); }
.bd text.tong { font-size: 11.5px; font-weight: 700; fill: var(--chu-2); }
.bd text.nay { fill: var(--vang); font-weight: 700; }
.bd .muc-tieu { stroke: var(--g-300); }
/* bảng kiểu ngách: hàng 44, chữ 13, đầu cột 11 viết hoa nhạt, rê chuột nền trắng 3% */
.bang th, .bang-yt th { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.bang td { font-size: 13px; height: 44px; vertical-align: middle; }
.bang tbody tr:hover td, .bang-yt tbody tr:hover td { background: rgba(255,255,255,.03); }
[data-theme="light"] .bang tbody tr:hover td, [data-theme="light"] .bang-yt tbody tr:hover td { background: rgba(15,15,20,.03); }
.bang-yt td { height: 44px; }
/* tên khâu không dính nhau: cột khâu 36px (bảng gọn ui-dong-bo đợt 3) — nhãn ngắn chữ thường cỡ 10, không lề trong */
.bang-yt thead th:not(.l):not(.r) { font-size: 10px; letter-spacing: 0; text-transform: none; padding-left: 0; padding-right: 0; }
/* sếp 09/11: cột tên video thừa chỗ, cột khâu díu nhau → cột khâu giãn theo bề ngang bảng (40–96 px, phần còn lại cho tên
   video ≥ ~270 px; hẹp thì 36 px như cũ), đầu cột ghi tên đủ (Kiểm Voice, Description…); bảng hẹp (< 1080 px) mới lùi về tên ngắn */
.bang-yt col.c-khau { width: clamp(36px, calc((100cqw - 540px) / 9), 96px); }
.bang-yt thead th.o-khau-dau:not(.l):not(.r) { font-size: 11.5px; font-weight: 600; padding-left: 4px; padding-right: 4px; color: var(--chu-2); }
.bang-yt .kh-ngan { display: none; }
@container (max-width: 1079px) {
  .bang-yt .kh-day { display: none; }
  .bang-yt .kh-ngan { display: inline; }
  .bang-yt thead th.o-khau-dau:not(.l):not(.r) { font-size: 10px; color: var(--faint); }
}

/* ---------- bề ngang: 6 ô ≥1400, 3 ô 768–1399, 2 ô điện thoại; menu thành ngăn kéo < 1024; không cuộn ngang trang */
/* 6 ô một hàng khi vùng nội dung ≥ 1180 px (màn ~1500 px trở lên cùng menu trái), không thì 3 ô; điện thoại 2 ô */
@media (max-width: 1279px) {
  .hd-pill .an-hep { display: none; }
}
@media (max-width: 1023px) {
  .sb { width: min(300px, 86vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--bong-noi);
    background: var(--bg-2); padding-left: env(safe-area-inset-left); }
  body.sb-ngan .sb { transform: none; }
  body.sb-ngan { overflow: hidden; }
  body.co-khung .khung-phai, html.sb-thu-gon body.co-khung .khung-phai { padding-left: 0; }
  html.sb-thu-gon .sb { width: min(300px, 86vw); }
  html.sb-thu-gon .sb-logo-chu, html.sb-thu-gon .sb-ten, html.sb-thu-gon .sb-hh, html.sb-thu-gon .sb-the { display: revert; }
  html.sb-thu-gon .sb-nhom { display: flex; } html.sb-thu-gon .sb-muc { justify-content: flex-start; padding: 10px 12px; }
  html.sb-thu-gon .sb-dau { justify-content: space-between; padding: 0 16px; } html.sb-thu-gon .sb-nut-mo { display: none; }
  html.sb-thu-gon .sb-con[hidden] { display: none; }
  .sb-nut-thu { display: none; }
  .sb-nut-dong { display: grid; }
  .hd-menu { display: grid; }
  .hd { padding: 0 16px; gap: 8px; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) { .sb { will-change: transform; } }
@media (max-width: 768px) {
  .noi-dung { padding: 16px 16px 48px; gap: 16px; }
  .hd { padding: 0 12px; }
  .hd-tim { width: 40px; padding: 0; justify-content: center; flex: none; }
  .hd-tim span, .hd-tim kbd, .hd-chip, .hd-ten { display: none; }
  .hd-pill .pill:not(:first-child) { display: none; }
  .hd-avatar { padding: 3px; }
  .the, .khoi { padding: 16px; border-radius: 16px; }
  .dau-trang .lon { font-size: 22px; }
  .bong-tin { max-width: 92%; }
  .dong-token { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 64px; }
  .o-gui .nut span { display: none; }
  .vong { width: 80px; height: 80px; }
}
/* điện thoại: link chữ nhỏ ("Chi tiết từng video →", "Tab TikTok →", tên lô trong bảng) có vùng chạm ≥ 40px (sếp 06/11) */
@media (max-width: 767px) {
  .lien-ket, .vung-cham { display: inline-flex; align-items: center; min-height: 40px; }
  .bang td > a:first-child, .dong-token .ten-lo { display: inline-flex; align-items: center; min-height: 36px; }
  .ds-lo-tc + .lien-ket, #tt-lo-chay ~ a { min-height: 40px; }
}
/* chú thích màu dài: điện thoại gập vào nút "Chú thích", máy tính luôn mở (nút ẩn) */
details.ct-gon > summary { list-style: none; display: none; }
details.ct-gon > summary::-webkit-details-marker { display: none; }
@media (max-width: 767px) {
  details.ct-gon > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; color: var(--chu-phu);
    padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); min-height: 32px; }
  details.ct-gon[open] > summary { margin-bottom: 8px; }
}

/* ================================================================ 5 màu (đè các chỗ còn tô theo loại / kênh) */
.vien-mau { color: var(--chu-3); background: var(--mo-trang); border: 1px solid var(--line); }
/* Đầu mục menu: gradient nổi như tool ngách, YouTube hồng đỏ, TikTok vàng, Vận hành xanh, Quản trị tím */
.sb-nhom.m-hong { --nm: var(--loi); } .sb-nhom.m-vietsub { --nm: var(--g-300); } .sb-nhom.m-vang { --nm: var(--dat); }
.sb-nhom.m-tim { --nm: var(--mau-tim); }  /* Quản trị: tím (sếp chốt 14/11/2026 — thanh nhóm phải có màu, không xám) */
.sb-nhom { border-color: color-mix(in srgb, var(--nm) 45%, transparent);
  background: linear-gradient(100deg, color-mix(in srgb, var(--nm) 30%, transparent), color-mix(in srgb, var(--nm) 8%, transparent) 70%, transparent);
  color: color-mix(in srgb, var(--nm) 80%, var(--text)); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 6px 18px -12px var(--nm); }
.sb-nhom:hover { background: linear-gradient(100deg, color-mix(in srgb, var(--nm) 40%, transparent), color-mix(in srgb, var(--nm) 12%, transparent) 70%, transparent); }
.lo-dong.chay { --m: var(--vang); }
.lich-dong.dang { --c: var(--vang); }
.lich-ray > .du-kien { border-color: var(--faint); background: transparent; }
.lich-dong.tay, .lich-dong.tay:not(.xong) { --c: var(--chu-3); }
.lich-dong.tay.xong .moc { background: var(--chu-3); }
.chu-thich .mau-moc { border-color: var(--chu-3); }
.lich.hep .lich-nhan { box-shadow: inset 3px 0 0 var(--line-strong); }
.dai-lo > i.render { background: color-mix(in srgb, var(--vang) 70%, transparent); }
.dai-lo > i.viet { background: color-mix(in srgb, var(--vang) 35%, transparent); }
/* Việt hoá: lời đã duyệt (chưa có voice) — nhạt hơn "viết lời / voice"; em hỏi lại — viền đỏ như "thiếu" */
.dai-lo > i.duyet { background: color-mix(in srgb, var(--vang) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vang) 40%, transparent); }
.dai-lo > i.hoi { background: color-mix(in srgb, var(--loi) 28%, transparent); box-shadow: inset 0 0 0 1px var(--loi); }
.lo-dong.chay .dai-lo > i.duyet { animation: tho 2.4s ease-in-out infinite; }
.bd .vs { fill: var(--vang); } .bd .et { fill: var(--trung); }
.canh.tin { color: var(--chu-3); background: var(--mo-trang); }
.pill.tin { --pm: var(--muted); }

/* gradient kiểu tool ngách trên đúng 5 màu: thanh, vòng, cột, đoạn lịch — sáng → đậm của chính màu đó */
.thanh > i { background-image: linear-gradient(90deg, color-mix(in srgb, var(--m, var(--dat)), #fff 22%), color-mix(in srgb, var(--m, var(--dat)), #000 14%)); }
.vong .vg-sang { stop-color: color-mix(in srgb, var(--m), #fff 30%); } .vong .vg-dam { stop-color: color-mix(in srgb, var(--m), #000 22%); }
.vong .chay-vong { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--m) 35%, transparent)); }
.bd .vs { fill: url(#bd-vang); } .bd .et { fill: url(#bd-trung); }
.bd .bdt-sang { stop-color: color-mix(in srgb, var(--trung), #fff 25%); } .bd .bdt-dam { stop-color: var(--trung); }
.lich-dong.dang .doan { background: linear-gradient(90deg, var(--g-200), var(--g-300) 40%, var(--g-500)); --chu-doan: #1a1206; }
.lich-dong.xong .doan { background: linear-gradient(90deg, #6ee7b7, #34d399 45%, #059669); }
.lich-dong.hong .doan { background: linear-gradient(90deg, #fda4af, #fb7185 45%, #e11d48); }
.lich-dong.tam .doan { background: linear-gradient(90deg, color-mix(in srgb, var(--trung), #fff 20%), var(--trung)); }
.lich-dong.dang .doan b { color: #1a1206; }
.dai-lo > i.giao { background: linear-gradient(180deg, #6ee7b7, #34d399 55%, #10b981); }
.lo-dong.chay { background: linear-gradient(90deg, rgba(245,194,107,.10), rgba(143,92,22,.04) 55%, var(--bg-2)); }
.lo-dong.can { background: linear-gradient(90deg, rgba(251,113,133,.10), transparent 55%), var(--bg-2); }

/* nhãn loại lô: khác nhau bằng chữ + biểu tượng + độ đậm, vẫn trong bảng màu (vàng cho Vietsub, trung tính cho edit tay) */
.vien-mau { display: inline-flex; align-items: center; gap: 4px; }
.vien-mau .ic { width: 12px; height: 12px; stroke-width: 2.2; }
.vien-mau.t-vietsub { color: var(--vang); background: color-mix(in srgb, var(--g-300) 14%, transparent); border-color: color-mix(in srgb, var(--g-300) 35%, transparent); }
.vien-mau.t-viet_hoa { color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); border-color: var(--line-strong); }
.vien-mau.t-yt_jp { color: var(--vang); background: transparent; border-color: color-mix(in srgb, var(--g-300) 45%, transparent); }
.vien-mau.t-khac { color: var(--faint); background: transparent; border: 1px dashed var(--line-strong); }
.lich-nhan .vien-mau { justify-content: center; gap: 3px; }
.lo-dong .thanh.lo-thanh { margin: 0; height: 6px; flex: none; min-width: 60px; }
@container (max-width: 520px) {
  .lo-ten { flex-wrap: wrap; row-gap: 6px; }
  .lo-ten b { white-space: normal; }
  .lo-dong .thanh.lo-thanh { flex: none; width: 100%; }
}

/* ================================================================ Duyệt lời Việt hoá (Bàn duyệt GĐ2 — thay trang artifact)
   Cùng khung / thẻ / nút / pill của dashboard; 4 màu: trung tính, vàng (máy đang lo), xanh (xong), hồng đỏ (cần anh). */
/* Font vẽ khung xem trước: bản WOFF2 nhẹ (Fraunces 360 → 30 KB, Patrick 215 → 63 KB) — Fraunces ghim đúng thông số mặc định
   mà tool dựng video (Pillow) vẽ: opsz 9, wght 900, SOFT 0, WONK 1. Cách tạo lại: docs/thay-doi/2026-11-06-duyet-loi-tai-nhanh.md.
   ?v= đổi khi thay file (static có ?v= được cache 1 năm). TTF gốc của tool chỉ còn là đường lùi. */
@font-face { font-family: "DL Fraunces"; src: url("../fonts/dl-fraunces.woff2?v=1") format("woff2"), url("/media/duyet-loi-font/fraunces") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "DL Patrick"; src: url("../fonts/dl-patrick.woff2?v=1") format("woff2"), url("/media/duyet-loi-font/patrick") format("truetype"); font-display: swap; }
/* ui-dong-bo đợt 5 — danh sách lô: hero vàng "Bàn duyệt lời Việt hoá" + 3 ô số + bộ lọc đoạn + thẻ lô kiểu thẻ đề xuất.
   Bàn làm việc (trang làm việc, không hero): thanh đầu gọn dính khi cuộn (huy hiệu nhỏ · ‹ về · tên lô · chip số · Duyệt cả lô
   vàng kính) + băng trạng thái mảnh · dải video tab đoạn có chấm đã sửa / em hỏi · khung 9:16 trái dính ngay dưới thanh đầu
   (--dl-dau-cao do duyet_loi.js đo) | form phải chia thẻ (Chữ trên hình · Câu voice · Ghi chú) · thanh dưới kính có chiều sâu. */
.dl-noi { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dl-dau-trai { min-width: 0; }
.dl-ve-viet-hoa { color: inherit; text-decoration: none; }
.dl-ve-viet-hoa:hover { color: var(--text); }
.dl-chu-loi { color: var(--loi-sang); }
.dl-gian { flex: 1; }
.dl-nut-nho { min-height: 40px; padding: 0 14px; font-size: 13px; }
/* ---- danh sách lô */
.dl-hero > .so-dai { min-width: 420px; }
.dl-loc .dl-loc-so { font-size: 12px; font-weight: 600; color: var(--faint); }
.dl-loc .tab-doan.dang .dl-loc-so { color: var(--ds-vang-chu); }
.dl-ds-khoi .dau-khoi { margin-bottom: 14px; }
.dl-ds-lo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.dl-ds-lo > .trong { grid-column: 1 / -1; }
a.dl-lo { color: var(--text); text-decoration: none; gap: 10px; }
a.dl-lo:hover { color: var(--text); border-color: var(--line-strong); }
a.dl-lo.can:hover { border-color: var(--g-300); }
@media (prefers-reduced-motion: no-preference) { a.dl-lo { transition: border-color .16s, transform .16s; } a.dl-lo:hover { transform: translateY(-1px); } }
a.dl-lo:focus-visible { outline: 2px solid var(--g-400); outline-offset: 2px; }
.dl-lo-luc { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.dl-lo-ten { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.dl-lo .dai-lo { height: 6px; }
.dl-lo-so { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.dl-lo-so b { font-weight: 800; color: var(--text); }
.dl-lo .chan-the { align-items: center; }
.dl-lo-goi-y { flex: 1 1 160px; min-width: 0; font-size: 12.5px; color: var(--faint); }
.dl-lo-nut { pointer-events: none; }
a.dl-lo.can { border-color: var(--ds-vien-vang); }
a.dl-lo.cu { opacity: .86; }
/* ---- bàn làm việc: thanh đầu gọn, dính khi cuộn (máy tính) */
.dl-dau { position: sticky; top: 72px; z-index: 20; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 12px 16px; border-radius: 18px;
  border: 1px solid var(--hs-vien); background: var(--hs-nen); box-shadow: var(--hs-bong); }
.dl-dau::after { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--hs-sang), transparent); }
.dl-dau-hang { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; }
.dl-dau-huy { flex: none; }
.dl-dau .dl-dau-trai { flex: 0 1 auto; display: flex; flex-direction: column; gap: 1px; }
.dl-dau .nhan-muc { font-size: 11px; letter-spacing: .14em; color: var(--hs-nhan); }
.dl-tieu { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--hs-chu); text-transform: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-phu { flex: 1 1 260px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--hs-phu); }
.dl-so-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--ds-o-hero);
  border: 1px solid var(--ds-o-hero-vien); color: var(--hs-phu); white-space: nowrap; }
.dl-so-chip b { font-size: 13px; font-weight: 800; color: var(--hs-chu); }
.dl-so-chip.loi, .dl-so-chip.loi b { color: var(--loi-sang); }
.dl-so-chip.loi { border-color: var(--vien-loi); }
.dl-nut { flex: none; margin-left: auto; flex-wrap: nowrap; }
.dl-nut .nut-ma { min-height: 40px; }
.dl-nut .dl-nut-duyet { min-height: 44px; padding: 0 20px; font-size: 14px; }
.nut-dat.dl-nut-duyet .ic { width: 18px; height: 18px; }  /* Duyệt cả lô 44 px = nút lớn */
/* băng trạng thái mảnh trong thanh đầu: biểu tượng · câu đậm + giải thích mờ (tối đa 2 dòng) · nút nhỏ */
.dl-bang-ve { display: flex; flex-direction: column; gap: 6px; }
.dl-bang-ve:empty { display: none; }
.dl-bang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 8px 7px 12px; border-radius: 12px; font-size: 13px;
  border: 1px solid var(--line); background: var(--ds-o-hero); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.dl-bang > .ic { flex: none; width: 17px; height: 17px; color: var(--muted); }
.dl-bang > div { flex: 1 1 260px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.dl-bang > div > b { font-size: 13px; font-weight: 700; color: var(--text); }
.dl-bang > div > .phu { flex: 1 1 240px; min-width: 0; font-size: 12.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dl-bang .thanh { flex: 1 0 100%; height: 4px; max-width: 360px; margin: 3px 0 0; }
.dl-bang .dl-nut-nho { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.dl-bang > .dl-gian { display: none; }  /* chữ băng giãn hết chỗ, nút dồn phải — không chia đôi chỗ với khoảng trống */
.dl-bang.vang { border-color: var(--ds-vien-vang); background: linear-gradient(90deg, color-mix(in srgb, var(--g-300) 14%, transparent), transparent 70%), var(--ds-o-hero);
  box-shadow: inset 3px 0 0 var(--g-400); }
.dl-bang.vang > .ic { color: var(--vang); }
.dl-bang.dat { border-color: color-mix(in srgb, var(--dat) 35%, transparent); box-shadow: inset 3px 0 0 var(--dat); }
.dl-bang.dat > .ic { color: var(--dat); }
.dl-bang.loi { border-color: var(--vien-loi); background: linear-gradient(90deg, color-mix(in srgb, var(--loi) 12%, transparent), transparent 70%), var(--ds-o-hero);
  box-shadow: inset 3px 0 0 var(--loi); }
.dl-bang.loi > .ic { color: var(--loi-sang); }
.dl-loi { flex: 1 0 100%; margin: 4px 0 0; font: 12px/1.5 "JetBrains Mono", monospace; white-space: pre-wrap; word-break: break-word; color: var(--chu-3); max-height: 84px; overflow: auto; }
.dl-ghi-lo { padding: 0 4px; }
.dl-ghi-lo summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
.dl-ghi-lo textarea { width: 100%; margin-top: 8px; padding: 10px 12px; resize: vertical; }
/* ---- dải video: tab đoạn trong rãnh lõm, tab đang mở nổi lên; chấm xanh = anh đã sửa, chấm đỏ = em hỏi */
.dl-dai { align-self: flex-start; max-width: 100%; display: flex; gap: 4px; overflow-x: auto; padding: 5px; min-width: 0; border-radius: 16px; background: var(--ds-o); border: 1px solid var(--line);
  box-shadow: var(--ds-ranh-bong); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.dl-tab { position: relative; flex: none; display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 9px; padding: 5px 14px 5px 5px;
  border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font: inherit; min-height: 58px; }
.dl-tab:hover { color: var(--text); background: var(--ds-o-2); }
.dl-tab[aria-selected="true"] { color: var(--text); border-color: var(--ds-noi-chon-vien); background: var(--ds-noi-chon); box-shadow: var(--ds-noi-chon-bong-gon); }
.dl-tab:focus-visible { outline: 2px solid var(--g-400); outline-offset: -3px; }
.dl-tab img, .dl-tab-anh { grid-row: span 2; width: 26px; height: 46px; object-fit: cover; border-radius: 6px; background: var(--nen-4); }
.dl-tab[aria-selected="true"] img { box-shadow: 0 0 0 1.5px var(--g-300); }
.dl-tab-ten { font-size: 13px; font-weight: 800; color: inherit; }
.dl-tab-tt { font-size: 11.5px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.dl-tab-tt.ban { color: var(--vang); } .dl-tab-tt.luu { color: var(--dat); } .dl-tab-tt.hoi { color: var(--loi-sang); }
.dl-tab-tt.bo { text-decoration: line-through; }
.dl-tab.bo img { filter: grayscale(1); opacity: .6; }
.dl-cham { position: absolute; top: 6px; left: 25px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card-dac); }
.dl-cham.sua { background: var(--dat); } .dl-cham.hoi { background: var(--loi); }
/* ---- vùng làm việc: khung 9:16 trái (dính ngay dưới thanh đầu) | form phải chia thẻ */
.dl-lam { --dl-xem-top: calc(84px + var(--dl-dau-cao, 0px)); display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.dl-lam > .trong { grid-column: 1 / -1; }
.dl-lam.xem-tha .dl-xem { position: static; }  /* màn thấp: dat_xem() thôi cho khung dính (không nằm dưới thanh dưới) */
.dl-xem { position: sticky; top: var(--dl-xem-top); display: grid; gap: 10px; justify-items: center; padding: 16px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--ds-bong); }
.dl-dt { width: min(100%, 300px, calc((100dvh - var(--dl-xem-top) - 190px) * 9 / 16)); min-width: 160px; aspect-ratio: 9 / 16; background: #000; border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 6px #000, 0 0 0 7px var(--line-strong), 0 22px 44px -20px rgba(0,0,0,.7); }
.dl-dt canvas { width: 100%; height: 100%; display: block; }
.dl-chu-thich { text-align: center; text-wrap: balance; font-size: 12px; }
.dl-form { display: grid; gap: 14px; min-width: 0; }
.dl-form-dau { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 0 4px; }
.dl-form-dau h2 { margin: 0; font-size: 20px; }
.dl-nhom-the { display: grid; gap: 14px; min-width: 0; padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--ds-bong); }
.dl-nhom-dau { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dl-nhom-dau .huy.nho { width: 30px; height: 30px; padding: 1.5px; }
.dl-nhom-dau .huy svg { width: 54%; height: 54%; }
.dl-nhom-dau b { font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.dl-nhom-dau .dl-goi-y { margin-left: auto; }
.dl-o { display: grid; gap: 6px; min-width: 0; }
.dl-o > label, .dl-nhan-o { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dl-goi-y { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; color: var(--faint); text-align: right; }
.dl-o input[type="text"], .dl-o textarea { width: 100%; padding: 9px 12px; font-size: 15px; line-height: 1.45; background: var(--ds-the-2); }
.dl-o textarea { resize: vertical; min-height: 64px; padding-top: 10px; }
.dl-o input:disabled, .dl-o textarea:disabled { opacity: .8; }
.dl-da-sua { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 10.5px; letter-spacing: .02em;
  color: var(--vang); background: color-mix(in srgb, var(--g-300) 14%, transparent); text-transform: none; }
.dl-nhap { font-size: 12.5px; color: var(--faint); overflow-wrap: anywhere; }
.dl-nhap span { color: var(--muted); font-weight: 600; }
.dl-dong-ho { font-size: 12px; color: var(--muted); }
.dl-dong-ho.qua { color: var(--loi-sang); font-weight: 700; }
.dl-nhom { display: grid; gap: 6px; padding: 10px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.dl-dong { display: flex; gap: 6px; }
.dl-dong input { flex: 1; min-width: 0; }
.dl-dong .nut-phu { min-width: 40px; padding: 0; }
.dl-ds-pa { display: grid; gap: 6px; }
.dl-pa { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--ds-the); color: var(--text);
  font: 400 14px/1.45 "Be Vietnam Pro", sans-serif; cursor: pointer; box-shadow: var(--ds-noi); }
.dl-pa:hover:not(:disabled) { border-color: var(--vang); }
.dl-pa.on { border-color: var(--ds-vien-vang); background: linear-gradient(100deg, var(--ds-vang-nen), transparent 70%), var(--ds-the); box-shadow: inset 3px 0 0 var(--g-400); }
.dl-pa-k { display: inline-block; margin-right: 6px; font-size: 11.5px; font-weight: 700; color: var(--vang); }
.dl-nhac { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; font-size: 13px; border: 1px solid var(--vien-loi);
  background: color-mix(in srgb, var(--loi) 8%, transparent); }
.dl-nhac b { color: var(--loi-sang); }
.dl-co { padding: 10px 12px; border-radius: 10px; font-size: 14px; border-left: 3px solid var(--loi); background: color-mix(in srgb, var(--loi) 9%, transparent); }
.dl-bo { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.dl-bo input { width: 18px; height: 18px; min-height: 0; accent-color: var(--loi); }
@keyframes dl-nhay { from { box-shadow: 0 0 0 6px color-mix(in srgb, var(--vang) 35%, transparent); border-color: var(--vang); } }
.dl-nhay { animation: dl-nhay 1.2s ease-out; }
/* ---- thanh dưới (dính đáy): kính có chiều sâu — vệt sáng mép trên + bóng hắt lên */
.dl-thanh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 60%), color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 -14px 34px -18px rgba(0,0,0,.75); padding-bottom: env(safe-area-inset-bottom); }
[data-theme="light"] .dl-thanh { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7)); box-shadow: inset 0 1px #fff, 0 -12px 30px -18px rgba(20,26,36,.25); }
.dl-thanh[hidden] { display: none; }
body.co-khung .dl-thanh { left: 284px; } html.sb-thu-gon body.co-khung .dl-thanh { left: 76px; }
.dl-thanh-trong { max-width: 1720px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 24px; }
body.co-chat .dl-thanh-trong { padding-right: 96px; }
.dl-tt { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-tt.ban { color: var(--vang); } .dl-tt.luu { color: var(--dat); }
.dl-thanh kbd { margin-left: 4px; border-color: color-mix(in srgb, var(--chu-tren-vang) 30%, transparent); color: var(--chu-tren-vang); }
body.co-dl-thanh .noi-dung { padding-bottom: 110px; }
body.co-dl-thanh .chat-nut { bottom: calc(76px + env(safe-area-inset-bottom)); }
body.co-dl-thanh .thong-bao { bottom: calc(150px + env(safe-area-inset-bottom)); }
/* hộp xác nhận / nhan.log */
.dl-hop { border: 1px solid var(--line-strong); border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 32px)); max-width: none;
  background: linear-gradient(180deg, var(--ds-the-2), transparent 120px), var(--card-dac); color: var(--text);
  box-shadow: var(--ds-bong), var(--bong-noi); }  /* đợt 4: chiều sâu thẻ (vệt sáng mép trên + bóng nhiều lớp) — dùng chung Duyệt lời / Voice VN */
.dl-hop::backdrop { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dl-hop:has(.dl-hop-rong) { width: min(760px, calc(100vw - 32px)); }
.dl-hop-trong { display: grid; gap: 14px; padding: 22px; }
.dl-hop-trong ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.dl-hop-trong p { margin: 0; }
.dl-hop-dau { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dl-hop-dau .tieu-muc { margin: 0; }
.dl-hop-nut { justify-content: flex-end; }
.dl-hop-nut .nut-dat { min-height: 44px; padding: 0 20px; font-size: 14px; }  /* Duyệt trong hộp thoại (Duyệt lời, Voice VN) cao bằng nút Huỷ */
@media (max-width: 1023px) { body.co-khung .dl-thanh, html.sb-thu-gon body.co-khung .dl-thanh { left: 0; } }
/* vùng nội dung hẹp (máy tính nhỏ / menu trái mở): thanh đầu gọn một hàng, khung xem trước nhỏ lại */
@container trang (max-width: 1000px) {
  .dl-hero > .so-dai { min-width: 0; }
  .dl-lam { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 18px; }
  .dl-dau .dl-phu { flex-basis: 100%; order: 3; }
}
@container trang (max-width: 760px) {
  .dl-lam { grid-template-columns: minmax(0, 236px) minmax(0, 1fr); gap: 16px; }
  .dl-xem { padding: 12px; }
  .dl-dt { min-width: 160px; }
}
@container trang (max-width: 600px) {  /* điện thoại: 1 cột, thanh đầu và khung xem trước không dính */
  .dl-dau { position: static; }
  .dl-lam { grid-template-columns: minmax(0, 1fr); }
  .dl-xem { position: static; }
  .dl-dt { width: min(100%, 230px); }
}
@media (max-width: 768px) {
  .dl-thanh-trong { padding: 8px 12px; gap: 6px; }
  body.co-chat .dl-thanh-trong { padding-right: 12px; }
  body.co-dl-thanh .chat-nut { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .dl-an-hep { display: none; }
  .dl-dau { padding: 12px; gap: 10px; }
  .dl-dau .dl-dau-huy { display: none; }
  .dl-dau .dl-dau-trai { flex: 1 1 100%; }
  .dl-tieu { font-size: 18px; white-space: normal; }
  .dl-dau .dl-phu { flex-basis: 100%; }
  .dl-nut { order: 4; width: 100%; margin-left: 0; }  /* điện thoại: ‹ + Duyệt cả lô thành một hàng rộng, dễ bấm */
  .dl-nut .dl-nut-duyet { flex: 1; padding: 0 14px; }
  .dl-nhom-the { padding: 14px; }
  .dl-nhom-dau .dl-goi-y { display: none; }
  .dl-o > label, .dl-nhan-o { flex-direction: column; gap: 2px; }
  .dl-goi-y { text-align: left; }
  .dl-lo-ten { font-size: 16.5px; }
  .dau-trang .hang { width: 100%; }  /* giữ như cũ: hàng nút đầu trang (Hàng đợi, Hộp việc, Token, Chi tiết việc) rộng hết */
}
@media (prefers-reduced-motion: no-preference) {
  .dl-tab, .dl-pa { transition: border-color .12s, background .12s; }
}

/* ---------- thanh menu dưới: chỉ điện thoại, mục chính trong tầm ngón cái (ngăn kéo 3 gạch vẫn giữ đủ mục).
   Nằm dưới ngăn kéo (40), chat (60) và tìm nhanh (70); mọi thứ dính đáy khác được đẩy lên đúng bằng chiều cao thanh. */
.thanh-duoi { display: none; }
@media (max-width: 768px) {
  body.co-thanh-duoi { --cao-thanh-duoi: calc(60px + env(safe-area-inset-bottom)); }
  .thanh-duoi { position: fixed; inset: auto 0 0 0; z-index: 36; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-2) 92%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
  .td-muc { height: 60px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--muted); font-size: 11.5px; font-weight: 600; line-height: 1.2; -webkit-tap-highlight-color: transparent; }
  .td-muc:hover { color: var(--text); }
  .td-muc .ic { width: 22px; height: 22px; }
  .td-muc span { max-width: 100%; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .td-muc { position: relative; isolation: isolate; }
  .td-muc.dang, .td-muc.dang:hover { color: var(--ds-vang-chu); font-weight: 700; }
  .td-muc.dang::before { content: ""; position: absolute; inset: 6px 4px; z-index: -1; border-radius: 14px; background: var(--ds-noi-chon);
    box-shadow: inset 0 0 0 1px var(--ds-noi-chon-vien), var(--ds-noi-chon-bong); }
  .td-muc.dang .ic { filter: drop-shadow(0 1px 3px rgba(245,194,107,.35)); }
  [data-theme="light"] .td-muc.dang .ic { filter: none; }
  .td-muc:focus-visible { outline: 2px solid var(--vang); outline-offset: -4px; border-radius: 12px; }
  body.co-thanh-duoi .noi-dung { padding-bottom: calc(48px + var(--cao-thanh-duoi)); }
  body.co-thanh-duoi.co-chat .noi-dung { padding-bottom: calc(92px + var(--cao-thanh-duoi)); }
  body.co-thanh-duoi.co-dl-thanh .noi-dung { padding-bottom: calc(110px + var(--cao-thanh-duoi)); }
  body.co-thanh-duoi .chat-nut { bottom: calc(14px + var(--cao-thanh-duoi)); }
  body.co-thanh-duoi.co-dl-thanh .chat-nut { bottom: calc(70px + var(--cao-thanh-duoi)); }
  body.co-thanh-duoi .thong-bao { bottom: calc(14px + var(--cao-thanh-duoi)); }
  body.co-thanh-duoi.co-chat .thong-bao { bottom: calc(80px + var(--cao-thanh-duoi)); }
  body.co-thanh-duoi.co-dl-thanh .thong-bao { bottom: calc(136px + var(--cao-thanh-duoi)); }
  body.co-thanh-duoi .dl-thanh { bottom: var(--cao-thanh-duoi); padding-bottom: 0; }
}

/* ==================== Plan tuần (GĐ5) — khối riêng, chỉ lớp pt-* / .md (gộp với phiên khác: giữ nguyên cả khối) */
/* "Bàn lập plan" (ui-dong-bo đợt 3, trang làm việc): hero gọn hồng đỏ (tuần ‹ ›, trạng thái, chip số, Duyệt plan vàng kính +
   Lập ngay) · tab VN / JP · cột chính: xung đột (thẻ chờ anh) rồi plan dạng thẻ văn bản kiểu Báo cáo tuần · cột phụ dính bên
   PHẢI: khung chat kiểu Họp với Giám đốc, lời dặn ở đầu khung. Điện thoại: tab Plan / Chat (body[data-pt-dt]). */
.pill.net { --pm: var(--muted); background: transparent; border: 1.5px dashed var(--net-dut); }  /* chưa chạy: nét đứt, không vàng */
.chu-loi { color: var(--loi-sang); }
/* ---- hero gọn */
.pt-hero .hero-tieu { margin-bottom: 8px; }
.pt-hero-dong { gap: 8px; }
.pt-tuan { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--ds-o-hero); border-color: var(--ds-o-hero-vien); }
.pt-tuan .nut-doan { width: 32px; min-height: 30px; padding: 0; border-radius: 9px; color: var(--hs-phu); }
.pt-tuan .nut-doan:hover { color: var(--hs-chu); background: var(--ds-o-2); }
.pt-tuan .ic { width: 16px; height: 16px; }
.pt-toi .ic { transform: scaleX(-1); }
.pt-tuan-chu { padding: 0 8px; font-size: 13px; font-weight: 700; color: var(--hs-chu); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-tt { display: contents; }
.pt-hero .tt-phu b { color: var(--hs-chu); font-weight: 800; }
.pt-hero .tt-phu.loi { color: var(--loi-sang); border-color: var(--vien-loi); }
.pt-hero .tt-phu.loi b { color: inherit; }
.pt-hero-nut { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.pt-hero-nut .nut-ma { min-height: 44px; border-color: var(--ds-o-hero-vien); background: var(--ds-o-hero); color: var(--hs-chu); }
.pt-hero-nut .nut-ma .ic, .pt-hero-nut .nut-dat .ic { width: 18px; height: 18px; }  /* nút hero 44 px = nút lớn */
.pt-hero-nut .nut-dat { min-height: 44px; padding: 0 20px; font-size: 14px; }
.pt-duyet-ngan { display: none; }  /* điện thoại: "Duyệt plan" gọn, máy tính nhãn đủ nhóm · tuần · số video */
/* ---- tab nhóm VN / JP */
.pt-the .pt-cham { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--faint); }
.pt-the .pt-cham.vang { background: var(--vang); animation: chop 1.4s ease-in-out infinite; }
.pt-the .pt-cham.loi { background: var(--loi-sang); box-shadow: 0 0 0 3px color-mix(in srgb, var(--loi) 18%, transparent); }
.pt-the .pt-cham.dat { background: var(--dat); }
.pt-the .pt-cham.net { background: transparent; border: 1.5px dashed var(--net-dut); }
.pt-the-mo { font-size: 11.5px; font-weight: 500; color: var(--faint); }
.pt-the[aria-selected="true"] .pt-the-mo { color: var(--muted); }
/* ---- lưới: plan trái (rộng) · chat phải dính */
@container trang (min-width: 880px) {
  .luoi-2.pt-khung { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); }
}
/* xung đột: thẻ việc chờ anh, xếp đầu cột chính */
.pt-xd { display: grid; gap: 12px; }
.pt-xd-cu { color: var(--muted); }
.pt-xd-the .hang-nhan { grid-template-columns: 84px minmax(0, 1fr); }
.pt-xd-the .chan-the { align-items: center; }
/* ---- khối plan: thẻ văn bản kiểu Báo cáo tuần */
.pt-plan { padding-bottom: 28px; }
.pt-plan-dau { align-items: center; }
.pt-tabs { margin-bottom: 18px; }
.pt-tabs:empty { display: none; }
.pt-tabs .tab-doan { min-height: 38px; padding: 0 14px; font-size: 13px; }
.pt-tabs .so-loc { font-size: 10.5px; font-weight: 600; color: var(--faint); }
.pt-tabs .tab-doan[aria-selected="true"] .so-loc { color: var(--ds-vang-chu); }
.pt-tabs .pt-tab-nguyen { display: none; }  /* điện thoại: Nguyên file là tab cuối của thanh cuộn */
.pt-nut-nguyen.chon { border-color: var(--ds-vien-vang); color: var(--ds-vang-chu); }
.pt-noi-dung { max-width: 76ch; font-size: 14.5px; line-height: 1.72; color: var(--chu-2); }
.pt-noi-dung > .pt-muc h2, .pt-noi-dung > .pt-muc h3 { color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.pt-noi-dung > .pt-muc > h2:first-child, .pt-noi-dung > .pt-muc > h3:first-child { margin-top: 0; }
.pt-noi-dung h4 { position: relative; padding-left: 14px; }  /* vạch vàng như Báo cáo tuần (không flex: tiêu đề có chữ đậm / code bên trong) */
.pt-noi-dung h4::before { content: ""; position: absolute; left: 0; top: .28em; width: 4px; height: 1em; border-radius: 2px; background: linear-gradient(180deg, var(--g-200), var(--g-500)); }
.pt-noi-dung li::marker { color: var(--g-400); }
[data-theme="light"] .pt-noi-dung li::marker { color: var(--g-600); }
.pt-noi-dung b, .pt-noi-dung strong { color: var(--text); }
.md { overflow-wrap: anywhere; }
.md h2, .md h3, .md h4, .md h5, .md h6 { color: var(--chu); text-transform: none; letter-spacing: -.01em; margin: 14px 0 8px; line-height: 1.35; }
.md h2 { font-size: 19px; } .md h3 { font-size: 16.5px; } .md h4 { font-size: 15px; } .md h5, .md h6 { font-size: 13.5px; }
.md p, .md ul, .md ol, .md blockquote { margin: 6px 0; }
.md ul, .md ol { padding-left: 22px; }
.md blockquote { padding: 4px 12px; border-left: 3px solid var(--vien-vang); color: var(--chu-2); }
.md code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .88em; padding: 1px 5px; border-radius: 6px; background: var(--mo-trang); }
.md hr { border: 0; border-top: 1px dashed var(--vien); margin: 14px 0; }
.md table { border-collapse: collapse; font-size: 13px; line-height: 1.5; min-width: 100%; }
.md th, .md td { border: 1px solid var(--vien-2); padding: 6px 9px; vertical-align: top; text-align: left; overflow-wrap: normal; min-width: 64px; }
.md th { background: var(--nen-4); font-weight: 600; white-space: nowrap; }
.md td { max-width: 420px; }
.bang-cuon { overflow-x: auto; max-width: 100%; margin: 8px 0; border-radius: 10px; }
.pt-muc { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px dashed var(--line-strong); }
.pt-muc:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.pt-muc.vua-doi { box-shadow: 0 0 0 2px var(--vang); border-radius: 10px; }
@media (prefers-reduced-motion: no-preference) { .pt-muc, .pt-video { transition: box-shadow .8s ease-out, border-color .2s; } }
.pt-ten-file { font-size: 13px; color: var(--chu-phu); margin: 0 0 6px; font-family: "JetBrains Mono", monospace; overflow-wrap: anywhere; }
.pt-trong { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border-radius: 14px; text-align: center;
  background: var(--ds-o); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pt-trong b { font-size: 14.5px; color: var(--text); }
/* thẻ từng video: tóm tắt, bấm mở brief */
.pt-luoi-video { display: flex; flex-direction: column; gap: 10px; }  /* danh sách 1 cột: mở brief không xô lưới */
.pt-video { padding: 14px 16px; border-radius: 14px; background: var(--ds-the); border: 1px solid var(--line); box-shadow: var(--ds-noi); font-size: 14px; line-height: 1.6; }
.pt-video:hover { border-color: var(--line-strong); }
.pt-video[open] { border-color: var(--ds-vien-vang); background: linear-gradient(180deg, var(--ds-vang-nen), transparent 160px), var(--ds-the); }
.pt-video:not([open]) .pt-o > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-video.vua-doi { box-shadow: 0 0 0 2px var(--vang); }
.pt-video summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.pt-video summary::-webkit-details-marker { display: none; }
.pt-video-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pt-mo { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ds-vang-chu); }
.pt-mo::after { content: "▾"; font-size: 11px; transition: transform .15s; }
.pt-video[open] .pt-mo { font-size: 0; }
.pt-video[open] .pt-mo::after { font-size: 11px; transform: rotate(180deg); }
.pt-video-td { font-size: 15.5px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; color: var(--text); overflow-wrap: anywhere; }
.pt-video-nghia { font-size: 12.5px; color: var(--muted); }
.pt-o { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 3px 16px; font-size: 12.5px; line-height: 1.5; margin-top: 2px; color: var(--chu-2); }
.pt-o > span { min-width: 0; overflow-wrap: anywhere; }
.pt-o i { color: var(--faint); font-style: normal; font-weight: 600; }
.pt-brief { margin: 12px 0; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.pt-video > .nut-ma { min-height: 36px; padding: 0 14px; }
/* ---- khung chat (cột phụ dính): đầu khung · lời dặn · tin · ô soạn dính đáy; cao vừa màn hình, chừa nút chat nổi */
.pt-chat.khung-chat { height: max(480px, calc(100dvh - 104px)); }
body.co-chat .pt-chat.khung-chat { height: max(480px, calc(100dvh - 172px)); }
.pt-chat-dau h2 { margin: 1px 0 0; font-weight: 500; letter-spacing: 0; text-transform: none; }
/* lời dặn: ô gọn viền nét đứt ngay dưới đầu khung chat */
.pt-dan { flex: none; display: grid; gap: 4px; margin: 12px 14px 0; padding: 10px 12px; border: 1px dashed var(--vien-2); border-radius: 14px; background: var(--ds-o); }
.pt-dan:focus-within { border-color: var(--ds-vien-vang); }
.pt-dan-nhan { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--chu-2); }
.pt-dan-hang { display: flex; gap: 8px; align-items: flex-end; }
.pt-dan textarea { flex: 1; min-width: 0; resize: none; border: 0; background: transparent; padding: 4px 0; line-height: 1.45; min-height: 30px;
  outline: none; overflow-y: hidden; }
.pt-dan textarea:disabled { opacity: .75; }
.pt-dan .nut-ma { min-height: 34px; padding: 0 14px; border-radius: 10px; font-size: 12.5px; }
/* tin nhắn: của anh = bong bóng bên phải; của em = chữ, dấu sao bên trái (khung chat chung tô thêm bong bóng / huy hiệu) */
.pt-tin { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; min-height: 0; padding: 4px 6px 4px 0;
  overscroll-behavior: contain; }
.pt-tin-sep { align-self: flex-end; max-width: 85%; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pt-bong { background: var(--nen-4); border: 1px solid var(--line); border-radius: 18px 18px 6px 18px; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.pt-bong .pill { align-self: flex-start; }
.pt-tin-sep.loi .pt-bong { border-color: var(--vien-loi); }
.pt-tin-chu { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.pt-tin-em { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.pt-sao { width: 22px; height: 22px; flex: none; fill: var(--vang); margin-top: 1px; }
.pt-tin-than { flex: 1; min-width: 0; font-size: 14px; line-height: 1.6; }
.pt-tin-than > :first-child { margin-top: 0; }
.pt-tin-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; color: var(--chu-mo); }
.pt-tin-sep .pt-tin-meta { justify-content: flex-end; }
.pt-chat .pt-tin-ai { margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--ds-vang-chu); }
.pt-chat .pt-tin-ai + .pt-tin-meta { margin-top: 0; }
.pt-chat .pt-tin-than li::marker { color: var(--g-400); }
.pt-canh-chrome { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--vien-vang); border-radius: 12px; font-size: 13px;
  background: color-mix(in srgb, var(--vang) 8%, transparent); overflow-wrap: anywhere; }  /* câu cần Chrome mà lượt không có */
.pt-canh-chrome b { color: var(--vang); }
.pt-canh-chrome .phu { margin-top: 4px; }
.nut-gui-lai { min-height: 30px; padding: 0 12px; font-size: 12px; border-radius: 999px; }
.pt-dang { align-items: center; }
.pt-dang-chu { color: var(--chu-phu); font-style: italic; font-size: 13.5px; }
@media (prefers-reduced-motion: no-preference) { .pt-dang .pt-sao { animation: quay 3s linear infinite; } }
/* khung trống: lời chào giữa khung + câu gợi ý */
.pt-chao { margin: auto; max-width: 440px; padding: 20px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pt-chao .pt-sao { width: 34px; height: 34px; margin-bottom: 4px; }
.khung-chat-tin .pt-chao .pt-sao { width: 44px; height: 44px; padding: 10px; }
.pt-chao-tieu { font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.pt-goi-y { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.pt-goi-y-nut { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--ds-the-2);
  color: var(--chu-2); font: 500 12.5px "Be Vietnam Pro", sans-serif; cursor: pointer; text-align: left; }
.pt-goi-y-nut:hover { border-color: var(--ds-vien-vang); color: var(--ds-vang-chu); }
.pt-chat-dong { flex: none; text-align: center; margin: 0; padding: 8px 14px 12px; }
/* ô soạn: dính đáy khung (nền lõm như .khung-chat-soan), ô chữ tự giãn, nút gửi tròn vàng */
.pt-soan { flex: none; padding: 12px 14px 12px; border-top: 1px solid var(--line); background: var(--ds-o); }
.pt-soan-khung { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 8px 14px; border: 1px solid var(--line-strong);
  border-radius: 16px; background: var(--ds-the-2); cursor: text; transition: border-color .15s, box-shadow .15s; }
.pt-soan-khung:focus-within { border-color: var(--ds-vien-vang); box-shadow: 0 0 0 3px rgba(245,194,107,.12); }
.pt-soan textarea { width: 100%; resize: none; border: 0; background: transparent; padding: 4px 0; line-height: 1.5; min-height: 30px;
  max-height: 220px; font-size: 14px; outline: none; overflow-y: hidden; }
.pt-soan-day { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pt-soan-day .phu { font-size: 11px; color: var(--faint); }
.pt-ve-bai { align-self: flex-start; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.pt-nut-gui { margin-left: auto; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid rgba(143,92,22,.55); border-radius: 50%;
  cursor: pointer; color: #1A1206; background: linear-gradient(180deg, var(--g-100) 0%, var(--g-300) 46%, var(--g-500) 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.65), 0 1px 2px rgba(0,0,0,.3), 0 8px 16px -8px rgba(217,154,43,.8); }
.pt-nut-gui .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.pt-nut-gui:hover { filter: brightness(1.06); }
.pt-nut-gui:focus-visible { outline: 2px solid var(--vang); outline-offset: 2px; }
/* ---- điện thoại: tab Plan / Chat (tab đoạn, dính dưới thanh trên) */
.trang .pt-tab-dt { display: none; }
@media (max-width: 767px) {
  .pt-hero-nut { justify-content: stretch; }
  .pt-hero-nut > * { flex: 1 1 auto; }
  .pt-hero-nut .nut-dat { white-space: normal; text-align: center; line-height: 1.3; }
  .pt-duyet-dai { display: none; } .pt-duyet-ngan { display: inline; }
  .pt-the-mo { display: none; }
  .pt-xd-the .hang-nhan { grid-template-columns: minmax(0, 1fr); }
  .trang .pt-tab-dt { display: flex; position: sticky; top: 64px; z-index: 5; align-self: stretch;
    background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .pt-tab-dt .tab-doan { flex: 1 1 0; }
  .pt-tab-dt .ic { width: 16px; height: 16px; }
  body[data-pt-dt="plan"] #pt-chat, body[data-pt-dt="chat"] #pt-plan, body[data-pt-dt="chat"] #pt-xd { display: none; }
  .pt-plan { padding: 14px; border-radius: 16px; }
  /* tab Chat: khung cao vừa phần màn hình giữa thanh tab Plan/Chat (dính dưới header 64px) và thanh menu dưới —
     tin chiếm phần giữa, ô soạn luôn ở đáy khung, không bị thanh dưới che (sếp 07/11: khung chat dài hơn) */
  .pt-chat.khung-chat, body.co-chat .pt-chat.khung-chat { height: calc(100dvh - 64px - 56px - 8px - var(--cao-thanh-duoi, 0px) - 10px); min-height: 380px; border-radius: 16px; }
  .pt-chat .pt-chat-dau { display: none; }  /* thanh tab "Chat" đã nói đang ở đâu: dành chỗ cho tin nhắn */
  .pt-dan { margin: 10px 10px 0; }
  .pt-tin.khung-chat-tin { padding: 14px 12px; }
  body[data-pt-dt="chat"] .chat-nut { display: none; }  /* nút Nhắn điều phối nổi che nút gửi của chat plan */
  .pt-nut-nguyen { display: none; }
  .pt-tabs .pt-tab-nguyen { display: inline-flex; }
  .pt-noi-dung { font-size: 14px; line-height: 1.65; }
  .md td { max-width: 260px; }
  .pt-soan textarea, .pt-dan textarea { font-size: 16px; }  /* iOS không tự phóng to khi chạm ô nhập */
  .pt-soan-day .phu { display: none; }  /* điện thoại không có Shift+Enter */
  /* ô soạn một hàng: chữ bên trái, nút gửi bên phải (như app chat trên điện thoại); chip "Về bài #N" nằm hàng trên */
  .pt-soan { padding: 8px 10px; }
  .pt-soan-khung { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: end; padding: 6px 6px 6px 14px; }
  .pt-ve-bai { grid-column: 1 / -1; justify-self: start; }
  .pt-soan textarea { padding: 7px 0; }
  .pt-nut-gui { width: 40px; height: 40px; }
  .khung-chat-tin .pt-tin-sep { max-width: 92%; }
}
/* ==================== hết Plan tuần (GĐ5) */
/* ---------- Duyệt voice VN = "Bàn duyệt voice" (ui-dong-bo đợt 4, trang làm việc; GĐ4a): thanh đầu gọn hồng đỏ dính khi cuộn
   (huy hiệu micro · tên bài · chip hạn / số đoạn · chip Lỗi / Nghi ngờ / Đã vá · việc máy · Duyệt vàng kính hoặc khối Đã duyệt xanh)
   · 2 cột ngược: cột bài hẹp trái (thẻ bài + chip trạng thái, bài chờ duyệt lên đầu) · vùng làm việc rộng phải: khối nghe (sóng âm
   trong giếng sâu, hàng nút, 3 nút màu kính) rồi khối đoạn (lọc đoạn dạng đoạn, bảng đoạn).
   Màu đoạn: hồng đỏ = lỗi · vàng = nghi ngờ · tím = có bản mới · xanh = đã vá / đọc đúng (cùng màu trên sóng và viền hàng).
   Điện thoại (≤ 820 px, khớp DT trong voice_vn.js): ô chọn bài trên cùng, thanh đầu không dính, mỗi đoạn thành thẻ, thanh nghe dính đáy. */
.chu-loi { color: var(--loi-sang); } .chu-dat { color: var(--dat); }
.nhan.ban-moi { color: var(--mau-tim); }  /* không dùng .tim: đó là hộp Tìm nhanh (position: fixed) */
.vv { display: grid; grid-template-columns: minmax(244px, 288px) minmax(0, 1fr); grid-template-areas: "dau dau" "cot chinh";
  gap: 18px 20px; align-items: start; }
.vv [hidden] { display: none !important; }  /* .nut / .vv-than … đặt display: thuộc tính hidden phải thắng */
.vv input[type="checkbox"], .vv-hop input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; flex: none;
  accent-color: var(--vang); cursor: pointer; }
.vv-chon-dt { display: none; grid-area: chon; }
.vv-chon-dt select { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 14px; font-weight: 700; font-size: 14px;
  background-color: var(--ds-the-2); border: 1px solid var(--ds-vien-vang); box-shadow: var(--ds-noi), 0 8px 18px -14px rgba(217,154,43,.7); }

/* ---- thanh đầu gọn (hero gọn hồng đỏ), dính ngay dưới header; khe 12px phía trên do dải nền chung dưới .hd che (bộ giao diện chung).
   Chọn .hero.gon.vv-dau: luật .hero / .hero.gon ở bộ giao diện chung (đứng sau khối này) đặt position: relative và padding */
.hero.gon.vv-dau { grid-area: dau; position: sticky; top: 76px; z-index: 20; padding: 14px 20px; gap: 10px 18px; }
.hero.gon.vv-dau .hero-tieu { overflow-wrap: anywhere; }  /* huy hiệu 44 · nhãn 11 · tiêu đề 20 như mọi .hero.gon (đợt 8) */
.vv-dau-dong { gap: 6px 8px; }
.vv-han, .vv-dem { display: contents; }
.vv-dau .tt-phu { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; white-space: nowrap; }
.vv-dau .tt-phu b { color: var(--hs-chu); font-weight: 800; }
.vv-dau .tt-phu.loi { color: var(--loi-sang); border-color: var(--vien-loi); background: color-mix(in srgb, var(--loi) 12%, var(--ds-o-hero)); }
.vv-dau .tt-phu.vang { color: var(--ds-vang-chu); border-color: var(--ds-vien-vang); }
.vv-dau .tt-phu.dat { color: var(--dat); border-color: color-mix(in srgb, var(--dat) 40%, transparent); background: color-mix(in srgb, var(--dat) 9%, var(--ds-o-hero)); }
.vv-dau .tt-phu.loi b, .vv-dau .tt-phu.vang b, .vv-dau .tt-phu.dat b { color: inherit; }
.vv-dem-o:first-child { margin-left: 4px; }  /* tách nhóm đếm khỏi chip hạn */
.vv-viec { display: contents; }
.vv-viec .hero-pill { min-height: 26px; padding: 2px 12px; font-size: 12.5px; font-weight: 600; }
.vv-viec .hero-pill .phu { color: var(--hs-phu); font-weight: 500; }
.vv-viec .vv-cho { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px dashed currentColor; }
.vv-viec-ly { max-width: 420px; font-size: 12.5px; font-weight: 500; color: var(--hs-phu); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vv-dau-nut { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-end; gap: 10px; }
/* Duyệt voice: vàng kính (.nut-dat), lý do chưa duyệt nhỏ ngay dưới chữ */
.vv-duyet.nut-dat { flex-direction: column; justify-content: center; gap: 1px; min-height: 50px; padding: 4px 22px; font-size: 14.5px; line-height: 1.2;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.3), 0 10px 22px -12px var(--nm); }
.vv-duyet-chu { display: inline-flex; align-items: center; gap: 8px; }
.vv-duyet .ic { width: 18px; height: 18px; }
.vv-duyet small { font-size: 11px; font-weight: 600; opacity: .85; }
.vv-duyet small:empty { display: none; }
/* chưa duyệt được: nút trung tính (không vàng, không bóng, không sáng khi rê) — chỉ dòng lý do nổi màu */
.vv-duyet.nut-dat:disabled, .vv-duyet.nut-dat:disabled:hover { opacity: 1; transform: none; filter: none; cursor: not-allowed;
  background: var(--ds-o-hero); border-color: var(--ds-o-hero-vien); color: var(--hs-phu); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.vv-duyet.nut-dat:disabled small { opacity: 1; color: var(--loi-sang); }
/* đã duyệt: khối xanh lá đứng đúng chỗ nút Duyệt, to bằng nút (sếp chọn) */
.vv-da-duyet { display: inline-flex; flex-direction: column; justify-content: center; min-height: 50px; padding: 4px 20px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--dat) 60%, transparent); color: var(--dat); line-height: 1.2;
  background: linear-gradient(100deg, color-mix(in srgb, var(--dat) 26%, transparent), color-mix(in srgb, var(--dat) 9%, transparent) 75%);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 10px 22px -14px var(--dat); }
.vv-da-duyet-chu { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.vv-da-duyet-chu .ic { width: 18px; height: 18px; }
.vv-da-duyet small { font-size: 11.5px; font-weight: 600; color: var(--hs-phu); }
.vv-da-duyet small:empty { display: none; }
.vv-dau-nut .nut-nguy { min-height: 50px; padding: 0 16px; }
.vv-dau .nut-phu.vv-nho { border-color: var(--ds-o-hero-vien); background: var(--ds-o-hero); color: var(--hs-chu); }

/* ---- cột bài: thẻ bài có chiều sâu, chip trạng thái; dính dưới thanh đầu, danh sách cuộn riêng */
.vv-cot { grid-area: cot; position: sticky; top: calc(94px + var(--vv-dau-cao, 96px)); display: flex; flex-direction: column; gap: 12px;
  padding: 16px 12px 12px; max-height: calc(100vh - 114px - var(--vv-dau-cao, 96px)); min-height: 0; }
.vv-cot-dau { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.vv-cot-so { font-size: 11.5px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.vv-ds { list-style: none; margin: 0; padding: 2px; display: grid; gap: 8px; min-height: 0; overflow: auto; scrollbar-width: thin; }
.vv-ds-trong { padding: 20px 12px; }
.vv-bai { position: relative; width: 100%; min-height: 44px; display: grid; gap: 8px; padding: 12px 13px; border-radius: 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: var(--ds-the); box-shadow: var(--ds-noi); color: var(--text); font: inherit;
  transition: border-color .15s, background-color .15s, box-shadow .15s; }
.vv-bai:hover { border-color: var(--line-strong); background: var(--ds-the-2); }
.vv-bai.dang { border-color: var(--ds-vien-vang); background: linear-gradient(100deg, var(--ds-vang-nen), transparent 80%), var(--ds-the-2);
  box-shadow: inset 3px 0 0 var(--g-400), var(--ds-noi), 0 10px 22px -16px rgba(217,154,43,.7); }
.vv-bai:focus-visible { outline: 2px solid var(--g-400); outline-offset: 2px; }
.vv-bai.xong:not(.dang) { opacity: .72; }
.vv-bai-dau { display: flex; gap: 9px; align-items: flex-start; min-width: 0; }
.vv-bai-dau .stt { flex: none; min-width: 40px; height: 22px; font-size: 11.5px; }
.vv-ten-bai { min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.38; letter-spacing: -.005em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vv-bai-phu { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; font-size: 12px; color: var(--muted); }
.vv-chip { gap: 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.vv-chip b { font-weight: 800; }
.vv-chip .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.vv-chip .cham-chay { margin: 0; width: 7px; height: 7px; }
.vv-chip .vv-cho { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px dashed currentColor; }
.vv-chip.chay { color: var(--ds-vang-chu); border-color: var(--ds-vien-vang); background: var(--ds-vang-nen); }
.vv-chip.vang { color: var(--ds-vang-chu); border-color: var(--ds-vien-vang); }
.vv-chip.net { background: transparent; border: 1.5px dashed var(--net-dut); color: var(--muted); }
.vv-chip.loi { color: var(--loi-sang); border-color: var(--vien-loi); background: color-mix(in srgb, var(--loi) 9%, transparent); }
.vv-chip.loi .chu-loi { color: inherit; }
.vv-chip.dat { color: var(--dat); border-color: color-mix(in srgb, var(--dat) 40%, transparent); background: color-mix(in srgb, var(--dat) 8%, transparent); }
.vv-han-bai { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.vv-han-bai.loi { color: var(--loi-sang); }
.vv-bai-phu .nhan-hv { margin: 0; }

/* ---- vùng làm việc */
.vv-chinh { grid-area: chinh; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vv-than { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vv-may { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
/* sóng âm cả bài trong giếng sâu (rãnh lõm như tab đoạn) */
.vv-song-boc { position: relative; padding: 10px; border-radius: 16px; background: var(--ds-o); border: 1px solid var(--line);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.4), inset 0 -1px rgba(255,255,255,.04); }
[data-theme="light"] .vv-song-boc { background: color-mix(in srgb, var(--nen-4) 70%, #fff); box-shadow: inset 0 1px 4px rgba(20,26,36,.1), inset 0 -1px #fff; }
#vv-song { display: block; width: 100%; height: 104px; border-radius: 10px; cursor: pointer; touch-action: pan-y; }
.vv-gio { position: absolute; top: 14px; right: 14px; padding: 2px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; pointer-events: none;
  background: color-mix(in srgb, var(--bg-2) 82%, transparent); border: 1px solid var(--line); color: var(--chu-2); }
.vv-chu-thich { margin-top: -4px; }
.vv-chu-thich .mau-o { width: 10px; height: 10px; }
.vv-nut { display: grid; gap: 12px; }
.vv-nut-hang { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vv-nut .nut-phu { min-height: 44px; padding: 0 15px; }
.vv-phat { min-width: 112px; background: var(--ds-the-2); box-shadow: inset 0 1px rgba(255,255,255,.06), 0 1px 2px rgba(0,0,0,.3), 0 8px 16px -12px rgba(0,0,0,.8); }
.vv-phat .ic { color: var(--ds-vang-chu); fill: currentColor; stroke: none; }
[data-theme="light"] .vv-phat { box-shadow: 0 1px 2px rgba(20,26,36,.08), 0 6px 14px -10px rgba(20,26,36,.25); }
.vv-dong-tick { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 14px; margin-left: auto; }
.vv-nut-doan { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.vv-nut-chinh, .vv-nut-phu { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vv-nut-doan .vv-nut-hang { column-gap: 14px; }
.vv-nut .vv-nut-phu .nut-phu { min-height: 40px; padding: 0 13px; font-size: 13.5px; }
/* 3 nút hay dùng (sếp 07/11): Sinh lại tím · Sửa cách đọc vàng · Vá xanh — cùng màu dải đoạn trên sóng; công thức kính như .nut-dat */
.vv-nut .nut-phu.vv-mau { min-height: 46px; padding: 0 18px; font-weight: 700; }
.vv-nut .nut-phu.vv-mau:not(:disabled) { border-color: color-mix(in srgb, var(--m) 55%, transparent); color: color-mix(in srgb, var(--m) 90%, var(--text));
  background: linear-gradient(100deg, color-mix(in srgb, var(--m) 34%, transparent), color-mix(in srgb, var(--m) 11%, transparent) 72%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.3), 0 10px 20px -13px var(--m);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s; }
.vv-nut .nut-phu.vv-mau:not(:disabled):hover { transform: translateY(-1px); border-color: var(--m);
  background: linear-gradient(100deg, color-mix(in srgb, var(--m) 46%, transparent), color-mix(in srgb, var(--m) 17%, transparent) 72%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 2px 4px rgba(0,0,0,.25), 0 14px 26px -14px var(--m); }
.vv-nut .nut-phu.vv-mau:not(:disabled):active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0,0,0,.22); }
[data-theme="light"] .vv-nut .nut-phu.vv-mau:not(:disabled) { color: color-mix(in srgb, var(--m) 72%, #1a1206);
  box-shadow: inset 0 1px rgba(255,255,255,.8), 0 1px 2px rgba(20,26,36,.08), 0 8px 16px -12px var(--m); }
.vv-nut .vv-mau .ic { width: 18px; height: 18px; }
.vv-so-tick { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vv-so-tick b { color: var(--ds-vang-chu); font-weight: 800; }
/* trạng thái lưu tick: Đã lưu (xanh mờ) · Đang lưu… · Chưa lưu — đang thử lại (đỏ) */
.vv-luu { color: var(--muted); font-weight: 600; }
.vv-luu:empty { display: none; }
.vv-luu.da { color: color-mix(in srgb, var(--dat) 80%, var(--muted)); }
.vv-luu.loi, .vv-thanh-luu.loi { color: var(--loi-sang); }
.vv-thanh-luu { flex: none; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.vv-thanh-luu:empty { display: none; }
.vv-bo-tick { min-height: 32px; padding: 0 8px; border: 0; background: none; color: var(--ds-vang-chu); font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
.vv-tach { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 4px; font-size: 13px; color: var(--chu-2); cursor: pointer; }
.vv-ly-do { margin-top: -2px; padding: 9px 12px; border-radius: 12px; font-weight: 600; color: var(--loi-sang);
  background: color-mix(in srgb, var(--loi) 7%, transparent); border: 1px solid color-mix(in srgb, var(--loi) 22%, transparent); }
.vv-ly-do.sach { color: var(--dat); background: color-mix(in srgb, var(--dat) 7%, transparent); border-color: color-mix(in srgb, var(--dat) 24%, transparent); }
.vv-ly-do:empty { display: none; }
/* lời nhắc KHÔNG chặn Duyệt (sếp 09/11): đoạn máy đánh lỗi / bản mới không vá — vàng nhắc, không đỏ chặn */
.vv-ly-do.nhac { color: var(--vang-sang); background: color-mix(in srgb, var(--vang) 8%, transparent); border-color: var(--vien-vang); }
.vv-so-doan { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; margin: 2px 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 12px; color: inherit; background: color-mix(in srgb, currentColor 12%, transparent); border: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.vv-so-doan:hover, .vv-so-doan:focus-visible { background: color-mix(in srgb, currentColor 22%, transparent); }
@media (pointer: coarse) { .vv-so-doan { min-height: 32px; padding: 0 10px; } }
.vv-nang { display: flex; align-items: flex-start; gap: 8px; margin-top: -2px; padding: 9px 12px; border-radius: 12px; font-weight: 600;
  color: var(--loi-sang); background: color-mix(in srgb, var(--loi) 7%, transparent); border: 1px solid var(--vien-loi); }
.vv-nang[hidden] { display: none; }
.vv-nang .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.vv-nang .mono { font-weight: 700; }
.vv-hop-nhac { padding: 10px 12px; border-radius: 12px; color: var(--vang-sang); background: color-mix(in srgb, var(--vang) 8%, transparent); border: 1px solid var(--vien-vang); }

/* ---- khối đoạn: nhãn + lọc đoạn · bảng đoạn (cuộn riêng để sóng vẫn trong tầm mắt) · phím tắt */
.vv-doan-khoi { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.vv-loc-hang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.vv-loc-hang .nhan-muc { margin: 0; }
.vv-bang { display: grid; gap: 8px; align-content: start; max-height: max(340px, calc(100vh - 300px - var(--vv-dau-cao, 96px))); overflow: auto;
  overscroll-behavior: contain; scrollbar-width: thin; padding: 4px 6px 4px 4px; }  /* đủ chỗ viền .an không bị cắt */
.vv-bang-trong { padding: 28px 12px; text-align: center; }
.vv-dong { display: grid; grid-template-columns: 44px 40px 46px 112px minmax(0, 1fr) auto; column-gap: 10px; align-items: start;
  padding: 5px 10px 5px 4px; border-radius: 14px; border: 1px solid var(--line); border-left: 3px solid var(--line-strong);
  background: var(--ds-the); box-shadow: var(--ds-noi); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.vv-dong:hover { border-top-color: var(--line-strong); border-right-color: var(--line-strong); border-bottom-color: var(--line-strong); background: var(--ds-the-2); }
.vv-dong.loi { border-left-color: var(--loi); } .vv-dong.nghi { border-left-color: var(--vang); }
.vv-dong.moi { border-left-color: var(--mau-tim); } .vv-dong.xong { border-left-color: var(--dat); }
.vv-dong.tick { background: linear-gradient(100deg, color-mix(in srgb, var(--vang) 8%, transparent), transparent 70%), var(--ds-the); }
.vv-dong.phat { background: linear-gradient(100deg, color-mix(in srgb, var(--vang) 15%, transparent), color-mix(in srgb, var(--vang) 4%, transparent)), var(--ds-the-2);
  border-top-color: var(--ds-vien-vang); border-right-color: var(--ds-vien-vang); border-bottom-color: var(--ds-vien-vang);
  box-shadow: var(--ds-noi), 0 10px 22px -16px rgba(217,154,43,.7); }
/* câu vừa bấm (Sửa câu sẽ sửa câu này): viền vàng ngoài, không đổi nền tick / đang phát */
.vv-dong.an { outline: 2px solid color-mix(in srgb, var(--vang) 75%, transparent); outline-offset: 1px; }
/* nghe bản mới (sếp 24/11): đã nghe = nhạt đi · vừa nghe = vàng nhạt giữ tới lần phát sau · đang phát = vàng đậm + vạch trái dày.
   Vạch trái vẽ bằng bóng trong (inset) để không đổi bề rộng viền → chữ không xô. */
.vv-dong.da-nghe { background: var(--ds-the-2); border-left-color: color-mix(in srgb, var(--mau-tim) 38%, transparent); }
.vv-dong.da-nghe .vv-cau, .vv-dong.da-nghe .vv-khac, .vv-dong.da-nghe .vv-uv { opacity: .6; }
.vv-dong.da-nghe.tick { background: linear-gradient(100deg, color-mix(in srgb, var(--vang) 8%, transparent), transparent 70%), var(--ds-the-2); }
.vv-dong.vua-nghe { background: linear-gradient(100deg, color-mix(in srgb, var(--vang) 13%, transparent), color-mix(in srgb, var(--vang) 4%, transparent)), var(--ds-the);
  border-color: color-mix(in srgb, var(--vang) 55%, transparent); box-shadow: var(--ds-noi), inset 4px 0 0 color-mix(in srgb, var(--vang) 70%, transparent); }
.vv-dong.uv-phat { background: linear-gradient(100deg, color-mix(in srgb, var(--vang) 30%, transparent), color-mix(in srgb, var(--vang) 12%, transparent)), var(--ds-the);
  border-color: var(--vang); box-shadow: inset 6px 0 0 var(--vang), 0 0 0 3px color-mix(in srgb, var(--vang) 22%, transparent), 0 12px 26px -16px rgba(217,154,43,.8); }
.vv-nhan-cot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.vv-meta > .vv-nhan-cot { margin-top: 11px; justify-self: start; }
.vv-nghe-o:empty { display: none; }
.nhan.vv-nhan-phat { color: var(--ds-vang-chu); font-weight: 700; background: color-mix(in srgb, var(--vang) 24%, transparent); }
.nhan.vv-nhan-phat::before { animation: chop 1.2s infinite; }
.nhan.vv-nhan-vua { color: var(--ds-vang-chu); font-weight: 700; background: color-mix(in srgb, var(--vang) 14%, transparent); }
.nhan.vv-nhan-vua::before, .nhan.vv-nhan-da::before { display: none; }
.vv-dong.da-nghe .vv-nut-uv:not(.dang) { opacity: .75; }
.vv-tick { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.vv-meta { display: contents; }
.vv-meta > * { align-self: start; margin-top: 13px; }
.vv-meta > .nhan { margin-top: 11px; justify-self: start; }
.vv-so { font-size: 12.5px; font-weight: 700; color: var(--text); }
.vv-moc { font-size: 12.5px; color: var(--muted); }
.vv-noi { min-width: 0; padding: 10px 0 6px; }
.vv-cau { font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; text-wrap: pretty; }
mark.vv-sai { padding: 0 2px; border-radius: 4px; color: inherit; background: color-mix(in srgb, var(--loi) 24%, transparent);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.vv-khac { margin-top: 4px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.vv-khac b { font-weight: 700; color: var(--chu-2); }
.vv-khac .cung b { color: var(--loi-sang); }
.vv-uv { margin-top: 8px; padding: 7px 11px; border-radius: 10px; font-size: 12.5px; overflow-wrap: anywhere;
  border: 1px dashed color-mix(in srgb, var(--mau-tim) 55%, transparent); background: color-mix(in srgb, var(--mau-tim) 8%, transparent); }
.vv-uv-dau { font-weight: 700; color: var(--mau-tim); }
.vv-wer { white-space: nowrap; }
.vv-uv-cau { display: block; margin-top: 2px; color: var(--muted); }
.vv-dong-nut { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 4px 0; }  /* nút xếp dọc: câu giữ đủ rộng */
.vv-dong-nut .nut-phu { justify-content: flex-start; }
.nut-phu.vv-nho { min-height: 36px; padding: 0 12px; gap: 6px; border-radius: 10px; font-size: 12.5px; }
.vv-nho .ic { width: 16px; height: 16px; }
.vv-nut-uv { border-color: color-mix(in srgb, var(--mau-tim) 55%, transparent); color: var(--mau-tim);
  background: color-mix(in srgb, var(--mau-tim) 7%, transparent); }
.vv-nut-uv:hover { border-color: var(--mau-tim); color: var(--mau-tim); }
.vv-nut-uv.dang { background: color-mix(in srgb, var(--mau-tim) 17%, transparent); }
.nut-phu.vv-nut-bo:not(:disabled):hover { border-color: var(--loi); color: var(--loi-sang); }
.vv-phim { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-top: 2px; }
.vv-phim kbd { font-family: inherit; font-size: 12px; line-height: 1.3; }
.vv-trong { gap: 6px; padding: 56px 16px; }
.vv-trong .huy.nho { margin-bottom: 8px; }
/* Chọn / bỏ tất cả theo tab đang xem: ô thẳng cột ô tick của hàng (hàng: viền 1 px + vạch trái 3 px + đệm 4 px) */
.vv-chon-hang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: -6px 0 -10px; }
.vv-tien-nghe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-right: 12px; font-size: 13px; font-weight: 600; color: var(--chu-2); }
.vv-tien-nghe[hidden] { display: none; }
.vv-tien-nghe b { color: var(--mau-tim); font-weight: 800; }
.vv-tien-nghe.het, .vv-tien-nghe.het b { color: var(--dat); }
.vv-toi-chua { border-color: color-mix(in srgb, var(--mau-tim) 55%, transparent); color: var(--mau-tim); background: color-mix(in srgb, var(--mau-tim) 7%, transparent); }
.vv-toi-chua:hover { border-color: var(--mau-tim); color: var(--mau-tim); }
.vv-toi-chua span { font-size: 16px; line-height: 1; }
.vv-chon-het { display: flex; align-items: center; gap: 10px; align-self: start; margin: 0 0 0 11px; padding-right: 12px;
  font-size: 13px; font-weight: 600; color: var(--chu-2); cursor: pointer; border-radius: 12px; }
.vv-chon-het b { color: var(--ds-vang-chu); font-weight: 800; }
.vv-chon-het .phu { font-weight: 500; }
.vv-chon-het:hover { color: var(--text); }
.vv-chon-het.khoa { cursor: default; opacity: .6; }
/* thanh nghe dính đáy (cuộn qua dạng sóng thì hiện): nút đoạn trước / phát / đoạn sau · thanh tua phẳng · giờ */
.vv-thanh { display: none; }
.noi-dung > .vv-thanh { animation: none; }  /* nằm ngoài .vv (fixed không bị khung cha giữ); không chạy lại hiệu ứng hiện trang mỗi lần bật */
.vv-thanh-nut { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vv-thanh-o { width: 44px; min-height: 40px; padding: 0; flex: none; justify-content: center; border-radius: 12px; }
.vv-thanh-o .ic { width: 18px; height: 18px; }
.vv-thanh-phat { width: 52px; }
.vv-thanh-gio { flex: 1; min-width: 0; text-align: right; font-size: 12px; font-weight: 600; color: var(--chu-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vv-song-mini { display: block; width: 100%; height: 18px; cursor: pointer; touch-action: none; }
@media (min-width: 821px) {
  .vv-thanh:not([hidden]) { display: flex; align-items: center; gap: 14px; position: fixed; z-index: 35; bottom: 14px;
    left: var(--vv-thanh-trai, 24px); width: var(--vv-thanh-rong, calc(100% - 48px)); padding: 8px 16px 8px 10px;
    border: 1px solid var(--line-strong); border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 94%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.75); }
  [data-theme="light"] .vv-thanh:not([hidden]) { box-shadow: 0 10px 28px -12px rgba(20,26,36,.3); }
  .vv-thanh-nut { display: contents; }
  .vv-thanh-o { order: 0; }
  #vv-song-mini { order: 1; flex: 1; min-width: 120px; }
  .vv-thanh-gio { order: 2; flex: none; min-width: 168px; font-size: 12.5px; }
  .vv-thanh-luu { order: 3; }
  body.co-vv-thanh .noi-dung { padding-bottom: 100px; }
  body.co-vv-thanh .chat-nut { bottom: 92px; }
  body.co-vv-thanh .thong-bao { bottom: 164px; }
}

/* ---- hộp thoại (khung .dl-hop chung): đầu hộp có huy hiệu vòng theo việc */
.noi-dung > .vv-hop { animation: none; }  /* hiệu ứng hiện trang chạy lại mỗi lần mở hộp (display đổi) — hộp mờ nửa giây */
.vv-hop-dau { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.vv-hop-dau .huy.nho { width: 40px; height: 40px; }
.vv-hop-dau .huy svg { width: 50%; height: 50%; }
.vv-hop h2.tieu-muc { margin: 0; font-size: 17px; line-height: 1.35; text-transform: none; letter-spacing: -.015em; overflow-wrap: anywhere; }
.vv-hop p { margin: 0; }
/* grid-auto-rows max-content: khung cuộn có max-height thì hàng tự động bị ép về min-height 44 px → chữ chồng lên nhau (sếp 09/11) */
.vv-hop-ds { display: grid; grid-auto-rows: max-content; gap: 6px; max-height: 46vh; overflow: auto; }
.vv-hop-chon { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ds-the); box-shadow: var(--ds-noi); cursor: pointer; overflow-wrap: anywhere; }
.vv-hop-chon:has(input:checked) { border-color: var(--ds-vien-vang); background: linear-gradient(100deg, var(--ds-vang-nen), transparent 80%), var(--ds-the); }
.vv-hop-chon > input { margin-top: 1px; }
.vv-hop-cau { display: block; margin-top: 2px; }
.vv-hop-xn { border-color: var(--vien-loi); }
.vv-hop-xn[hidden] { display: none; }
.vv-hop-o { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--chu-2); }
.vv-hop-o .o-nhap { width: 100%; font-weight: 500; }
.vv-hop-o textarea.o-nhap { resize: vertical; max-height: 40vh; }
.vv-hop-o input.o-nhap { min-height: 46px; padding: 0 14px; }
.vv-dem-tu { min-height: 18px; margin-top: -6px; color: var(--muted); }
/* Sửa cách đọc nhiều từ: mỗi dòng "từ · đọc là · xoá", số đoạn chứa từ ngay dưới */
.vv-ds-tu { display: grid; gap: 6px; }
.vv-tu-dau { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; font-weight: 600; color: var(--chu-2); }
#vv-ds-tu { display: grid; grid-auto-rows: max-content; gap: 10px; max-height: 46vh; overflow: auto; padding: 2px; }
.vv-tu-dong { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 4px 8px; align-items: center; }
.vv-tu-dong .o-nhap { width: 100%; min-height: 46px; padding: 0 14px; }
.vv-tu-dong .vv-dem-tu { grid-column: 1 / -1; margin-top: 0; min-height: 0; }
.vv-tu-dong .vv-dem-tu:empty { display: none; }
.vv-xoa-tu { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; }
.vv-xoa-tu:hover { border-color: var(--loi); color: var(--loi-sang); }
.vv-xoa-tu .ic { width: 16px; height: 16px; }
.vv-them-tu { justify-self: start; min-height: 40px; padding: 0 14px; }
#vv-cd-loi:empty { display: none; }
.vv-dem-tu b { color: var(--ds-vang-chu); }
.vv-hop-nut { flex-direction: row-reverse; justify-content: flex-start; }
/* vùng nội dung hẹp (vd 1024 px còn menu trái): cột bài nhường chỗ cho vùng làm việc — ô chọn bài trên cùng như điện thoại — đặt sau luật .vv-cot để display: none thắng */
@container trang (max-width: 760px) {
  .vv { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chon" "dau" "chinh"; gap: 14px; }
  .vv-cot { display: none; }
  .vv-chon-dt { display: block; }
}
/* vùng nội dung hẹp trên máy tính (vd 1024 px còn menu trái): thanh đầu vẫn dính nhưng gọn MỘT hàng (~70 px) — bỏ nhãn trên,
   tên bài một dòng, chip một hàng (thừa thì cuộn ngang trong thanh), Duyệt chỉ còn biểu tượng + "Duyệt" (lý do vẫn ở title và
   dòng #vv-ly-do). Điện thoại (≤ 820 px) có bố cục riêng ở khối dưới. */
@media (min-width: 821px) {
  @container trang (max-width: 760px) {
    .trang .hero.gon.vv-dau { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 14px; }
    .trang .hero.gon.vv-dau > .huy { width: 38px; height: 38px; align-self: center; }
    .hero.gon.vv-dau .hero-nhan { display: none; }
    .hero.gon.vv-dau .hero-tieu { margin: 0 0 6px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hero.gon.vv-dau .vv-dau-dong { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
    .hero.gon.vv-dau .vv-dau-dong::-webkit-scrollbar { display: none; }
    .vv-dau-dong .tt-phu, .vv-dau-dong .hero-pill { flex: none; }
    .vv-dau-dong .vv-viec-ly { flex: none; max-width: 240px; -webkit-line-clamp: 1; }
    .hero.gon.vv-dau .vv-viec > * { order: -1; }  /* việc máy (chấm vàng khi chạy thật) đứng đầu hàng chip: không bị cuộn khuất */
    .vv-dau .vv-dai { display: none; }
    .trang .hero.gon.vv-dau > .vv-dau-nut { grid-column: auto; flex-wrap: nowrap; gap: 8px; }
    .vv-duyet.nut-dat, .vv-da-duyet, .vv-dau-nut .nut-nguy { min-height: 44px; padding: 0 14px; }
    .vv-duyet small, .vv-da-duyet small { display: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .vv-nut .nut-phu.vv-mau:not(:disabled):hover, .vv-nut .nut-phu.vv-mau:not(:disabled):active { transform: none; }
}
@media (pointer: coarse) {
  .nut-phu.vv-nho, .vv-loc .loc-nut, .vv-bo-tick { min-height: 44px; }
}
@media (max-width: 820px) {
  .vv { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chon" "dau" "chinh"; gap: 12px; }
  .vv-cot { display: none; }
  .vv-chon-dt { display: block; }
  .hero.gon.vv-dau { position: relative; top: auto; z-index: auto; box-shadow: var(--hs-bong); }
  /* thanh đầu điện thoại: huy hiệu nhỏ cạnh nhãn + tên bài; chip và nút trải hết bề ngang thẻ */
  .hero.gon.vv-dau { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 12px; padding: 14px; }
  .trang .hero.gon.vv-dau > .huy { grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; align-self: center; }  /* 44 như mọi .hero.gon */
  .vv-dau > .hero-chu { display: contents; }
  .hero.gon.vv-dau .hero-nhan { grid-column: 2; grid-row: 1; align-self: end; }
  .hero.gon.vv-dau .hero-tieu { grid-column: 2; grid-row: 2; margin: 0; }
  .hero.gon.vv-dau .vv-dau-dong { grid-column: 1 / -1; grid-row: 3; margin-top: 2px; }
  .hero.gon.vv-dau > .vv-dau-nut { grid-column: 1 / -1; grid-row: 4; }
  .vv-an-dt { display: none; }
  .vv-dau-nut { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .vv-dau-nut:has(> .nut-nguy:not([hidden])) { grid-template-columns: minmax(0, 1fr) auto; }  /* sếp: Đã duyệt · Bỏ duyệt chung một hàng */
  .vv-da-duyet { align-items: center; text-align: center; }
  .vv-viec-ly { max-width: 100%; }
  .vv-chinh, .vv-than { gap: 12px; }
  .vv-may, .vv-doan-khoi { padding: 14px; gap: 12px; }
  .vv-song-boc { padding: 7px; border-radius: 14px; }
  #vv-song { height: 72px; }
  .vv-gio { top: 10px; right: 10px; }
  /* nút: Phát · Kiểm lại một hàng; dòng tick; 3 nút chính có màu (icon trên chữ); 3 nút phụ nhỏ hơn */
  .vv-nut { gap: 10px; }
  .vv-nut-nghe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vv-nut .vv-nut-nghe .nut-phu { min-height: 42px; padding: 0 10px; font-size: 13px; }
  .vv-dong-tick { grid-column: 1 / -1; justify-content: space-between; margin-left: 0; min-height: 36px; }
  .vv-tach { font-size: 12.5px; }
  .vv-nut-doan { gap: 6px; padding-top: 10px; }
  .vv-nut-doan .vv-nut-hang { display: grid; gap: 6px; }
  .vv-nut-chinh, .vv-nut-phu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .vv-nut .vv-nut-chinh .nut-phu { min-height: 58px; padding: 4px; gap: 4px; flex-direction: column; font-size: 12.5px; line-height: 1.2; }  /* icon trên chữ: đủ chỗ cho "Sửa cách đọc" */
  .vv-nut .vv-nut-phu .nut-phu { min-height: 40px; padding: 0 6px; gap: 5px; font-size: 12.5px; border-color: var(--line); color: var(--chu-2); }
  .vv-nut .vv-nut-phu .ic { width: 14px; height: 14px; }
  .vv-nut-chinh .nut-phu span, .vv-nut-phu .nut-phu span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vv-bo-tick { min-height: 36px; }
  .vv-loc-hang { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .loc-doan.vv-loc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vv-loc .loc-nut { min-height: 44px; justify-content: center; }
  /* thanh nghe dính ngay trên thanh menu dưới khi đã cuộn qua dạng sóng */
  .vv-thanh:not([hidden]) { display: grid; gap: 6px; position: fixed; left: 0; right: 0; z-index: 35;
    bottom: var(--cao-thanh-duoi, env(safe-area-inset-bottom)); padding: 8px 12px 10px; border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-2) 96%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -10px 24px -16px rgba(0,0,0,.7); }
  .vv-chon-het { margin-left: 7px; }  /* bảng điện thoại không đệm: chỉ vạch trái 3 px + đệm 4 px của hàng */
  #vv-song-mini { height: 22px; }  /* thanh tua trơn, cao vừa ngón tay kéo */
  /* lặp lớp để thắng body.co-thanh-duoi.co-chat … (0,3,1) ở khối thanh dưới mà không phụ thuộc thứ tự */
  body.co-vv-thanh.co-vv-thanh.co-vv-thanh .noi-dung { padding-bottom: calc(130px + var(--cao-thanh-duoi, 0px)); }
  body.co-vv-thanh.co-vv-thanh.co-vv-thanh .chat-nut { bottom: calc(108px + var(--cao-thanh-duoi, 0px)); }
  body.co-vv-thanh.co-vv-thanh.co-vv-thanh .thong-bao { bottom: calc(170px + var(--cao-thanh-duoi, 0px)); }
  .vv-bang { max-height: none; overflow: visible; padding: 0; }
  .vv-dong { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "tick meta" "tick noi" "nut nut"; padding: 4px 12px 10px 4px; }
  .vv-tick { grid-area: tick; }
  .vv-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 10px; }
  .vv-meta > *, .vv-meta > .nhan, .vv-meta > .vv-nhan-cot { margin-top: 0; }
  .vv-nhan-cot { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .vv-tien-nghe { margin: 0 0 0 7px; }
  .vv-noi { grid-area: noi; padding: 6px 0 2px; }
  .vv-dong-nut { grid-area: nut; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding: 6px 0 0 48px; }
  .nut-phu.vv-nho { min-height: 44px; padding: 0 16px; }
  .vv-phim { display: none; }
}

/* ================================================================ BỘ GIAO DIỆN CHUNG (ui-dong-bo đợt 1)
   Rút từ Ban điều hành để mọi trang dùng chung một ngôn ngữ: hero gradient nhiều lớp + huy hiệu vòng, ô số, tab đoạn,
   bộ lọc đoạn, lưới 2 cột, thẻ việc, thẻ nhấn vàng, khung chat, bảng thành thẻ, ô trống nét đứt, danh sách chấm vàng.
   Lớp .bdh-* tương ứng của Ban điều hành là bí danh (cùng luật) — sửa ở đây là Ban điều hành đổi theo.
   Bố cục co giãn theo bề rộng vùng nội dung: bọc trang bằng <div class="trang"> (container "trang"; .bdh cũng là "trang").
   .trang PHẢI là khối (block) con trực tiếp, rộng hết vùng nội dung (vd ngay trong .noi-dung) — container inline-size bỏ qua
   bề rộng của con, nên đặt nó trong phần tử co theo nội dung (flex hàng, inline-block, cột lưới auto) là nó co về 0.
   Thiếu .trang thì mọi luật @container trang (hero gọn, ô số 2 cột, tab giãn, lưới 2 cột, hang-nhan xếp dọc) không chạy.
   Màu đều có giá trị sáng/tối qua biến --ds-* / --hs-* ở đầu file. */
.trang { container: trang / inline-size; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.trang [hidden] { display: none !important; }  /* .nut / .so-o… đặt display riêng nên thuộc tính hidden phải thắng */

/* ---- sắc theo nhóm menu (đặt lên .hero, hoặc .sac-* bọc cả trang để huy hiệu nhãn mục cùng sắc) */
.hero-tt, .sac-tt { --hs-nen: var(--ds-hero-tt); --hs-vien: var(--ds-hero-tt-vien); --hs-bong: var(--ds-hero-tt-bong); --hs-chu: var(--ds-hero-tt-chu);
  --hs-phu: var(--ds-hero-tt-phu); --hs-nhan: var(--ds-hero-tt-nhan); --hs-sang: var(--ds-hero-tt-sang); --hs-van: var(--ds-hero-tt-van);
  --hs-vong: var(--ds-huy-tt-vong); --hs-vong-bong: var(--ds-huy-tt-bong); --hs-nho-bong: var(--ds-huy-tt-nho-bong);
  --hs-trong: var(--ds-huy-tt-trong); --hs-hinh: var(--ds-huy-tt-hinh); --hs-hinh-bong: var(--ds-huy-tt-hinh-bong); }
.hero-yt, .sac-yt { --hs-nen: var(--ds-hero-yt); --hs-vien: var(--ds-hero-yt-vien); --hs-bong: var(--ds-hero-yt-bong); --hs-chu: var(--ds-hero-yt-chu);
  --hs-phu: var(--ds-hero-yt-phu); --hs-nhan: var(--ds-hero-yt-nhan); --hs-sang: var(--ds-hero-yt-sang); --hs-van: var(--ds-hero-yt-van);
  --hs-vong: var(--ds-huy-yt-vong); --hs-vong-bong: var(--ds-huy-yt-bong); --hs-nho-bong: var(--ds-huy-yt-nho-bong);
  --hs-trong: var(--ds-huy-yt-trong); --hs-hinh: var(--ds-huy-yt-hinh); --hs-hinh-bong: var(--ds-huy-yt-hinh-bong); }
.hero-vh, .sac-vh { --hs-nen: var(--ds-hero-vh); --hs-vien: var(--ds-hero-vh-vien); --hs-bong: var(--ds-hero-vh-bong); --hs-chu: var(--ds-hero-vh-chu);
  --hs-phu: var(--ds-hero-vh-phu); --hs-nhan: var(--ds-hero-vh-nhan); --hs-sang: var(--ds-hero-vh-sang); --hs-van: var(--ds-hero-vh-van);
  --hs-vong: var(--ds-huy-vh-vong); --hs-vong-bong: var(--ds-huy-vh-bong); --hs-nho-bong: var(--ds-huy-vh-nho-bong);
  --hs-trong: var(--ds-huy-vh-trong); --hs-hinh: var(--ds-huy-vh-hinh); --hs-hinh-bong: var(--ds-huy-vh-hinh-bong); }
.hero-tc, .sac-tc { --hs-nen: var(--ds-hero-tc); --hs-vien: var(--ds-hero-tc-vien); --hs-bong: var(--ds-hero-tc-bong); --hs-chu: var(--ds-hero-tc-chu);
  --hs-phu: var(--ds-hero-tc-phu); --hs-nhan: var(--ds-hero-tc-nhan); --hs-sang: var(--ds-hero-tc-sang); --hs-van: var(--ds-hero-tc-van);
  --hs-vong: var(--ds-huy-tc-vong); --hs-vong-bong: var(--ds-huy-tc-bong); --hs-nho-bong: var(--ds-huy-tc-nho-bong);
  --hs-trong: var(--ds-huy-tc-trong); --hs-hinh: var(--ds-huy-tc-hinh); --hs-hinh-bong: var(--ds-huy-tc-hinh-bong); }

/* ---- hero: nền nhiều lớp, vân chéo mảnh, vệt sáng mép trên; lưới huy hiệu | chữ | nút (hoặc ô số) */
.hero, .bdh-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 18px 24px; padding: 30px 32px; border-radius: 20px; color: var(--hs-chu); border: 1px solid var(--hs-vien);
  background: var(--hs-nen); box-shadow: var(--hs-bong); }
.hero::before, .bdh-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(118deg, var(--hs-van) 0 1px, transparent 1px 12px);
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 75%); mask-image: linear-gradient(100deg, transparent 15%, #000 75%); }
.hero::after, .bdh-hero::after { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--hs-sang), transparent); }
.hero-chu { min-width: 0; }
.hero-nhan, .bdh-hero-nhan { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hs-nhan); }
.hero-tieu { margin: 4px 0 10px; font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: inherit; text-transform: none; }
.hero-dong, .bdh-hero-tt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--hs-phu); }
.hero-dong > :empty, .bdh-hero-tt > :empty { display: none; }
.hero-dong > .nhan { min-height: 27px; padding: 3px 10px; font-size: 12.5px; }  /* nhãn trạng thái trong hero cao bằng chip .tt-phu (đợt 8) */
.tt-phu, .bdh-tt-phu { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-variant-numeric: tabular-nums; background: var(--ds-o-hero);
  border: 1px solid var(--ds-o-hero-vien); color: var(--hs-phu); }
.hero-nut, .bdh-hero-nut { min-height: 52px; padding: 0 24px; font-size: 15px; }
.hero-nut .ic, .bdh-hero-nut .ic { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.hero-nut .ic.net { fill: none; stroke: currentColor; }  /* biểu tượng nét (IC / bieu_tuong) trong nút hero */
/* hero gọn cho trang làm việc: vùng làm việc mới là chính */
.hero.gon { gap: 12px 18px; padding: 18px 22px; border-radius: 18px; }
.hero.gon > .huy { width: 44px; height: 44px; padding: 2px; box-shadow: var(--hs-nho-bong); }
.hero.gon .hero-nhan { font-size: 11px; letter-spacing: .16em; }
.hero.gon .hero-tieu { margin: 2px 0 6px; font-size: 20px; letter-spacing: -.025em; }
.hero.gon .hero-nut { min-height: 44px; padding: 0 20px; font-size: 14px; }
/* nhãn trạng thái trong hero (ui-dong-bo đợt 3, YouTube / Plan tuần): .dang = đang chạy thật (viền vàng + chấm .cham-chay),
   .ranh = chưa chạy / rảnh (nét đứt, không vàng), .loi = cần anh, .dat = xong */
.hero-pill { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; min-height: 30px; padding: 4px 13px; border-radius: 999px;
  font-size: 13px; color: var(--hs-chu); background: var(--ds-o-hero); border: 1px solid var(--ds-o-hero-vien); text-decoration: none; }
.hero-pill .cham-chay { margin: 0; flex: none; }
.hero-pill b { font-weight: 700; white-space: nowrap; }
.hero-pill-phu { min-width: 0; color: var(--hs-phu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-pill-phu::before { content: "· "; }
.hero-pill.dang { border-color: var(--ds-vien-vang); }
.hero-pill.ranh { background: transparent; border: 1.5px dashed var(--net-dut); color: var(--muted); }
.hero-pill.loi { color: var(--loi-sang); border-color: var(--vien-loi); background: color-mix(in srgb, var(--loi) 10%, var(--ds-o-hero)); }
.hero-pill.dat { color: var(--dat); border-color: color-mix(in srgb, var(--dat) 40%, transparent); }

/* ---- huy hiệu vòng: vòng gradient theo sắc, lõi tối (sáng: lõi kem), hình sáng; .nho = đĩa nhỏ cạnh nhãn mục */
.huy, .bdh-huy { width: 72px; height: 72px; flex: none; border-radius: 50%; padding: 3px; background: var(--hs-vong); box-shadow: var(--hs-vong-bong); }
.huy { display: inline-block; vertical-align: middle; }
.huy > span, .bdh-huy > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--hs-trong);
  box-shadow: var(--ds-huy-loi-bong); }
.huy svg, .bdh-huy svg { width: 46%; height: 46%; fill: var(--hs-hinh); filter: drop-shadow(0 1px 4px var(--hs-hinh-bong)); }
.huy svg.ic { fill: none; stroke: currentColor; color: var(--hs-hinh); stroke-width: 1.9; }
.huy.nho, .bdh-huy.nho { width: 40px; height: 40px; padding: 2px; box-shadow: var(--hs-nho-bong); }
.nhan-muc:has(> .huy) { gap: 10px; }
.nhan-muc .huy.nho { width: 30px; height: 30px; padding: 1.5px; }
.nhan-muc .huy svg { width: 54%; height: 54%; }
.nhan.net { background: transparent; border: 1.5px dashed var(--net-dut); color: var(--muted); padding: 2px 9px; }  /* chưa chạy: nét đứt */
.nhan.net::before { display: none; }

/* ---- ô số (KPI): dải riêng hoặc ngay trong hero; .chinh vàng · .loi hồng đỏ · .dat xanh · .vang chữ vàng */
.so-dai, .bdh-kpi { display: grid; grid-template-columns: repeat(var(--so-cot, 4), minmax(0, 1fr)); gap: 14px; }
.hero .so-dai { grid-template-columns: repeat(var(--so-cot, 3), minmax(96px, 1fr)); gap: 10px; }
.so-o { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--ds-bong); }
.so-o::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.so-o.chinh { border-color: var(--ds-vien-vang); background: linear-gradient(145deg, var(--ds-vang-nen), transparent 70%), var(--card); }
.so-o.chinh::after { background: linear-gradient(90deg, transparent, var(--g-300), transparent); }
.so-nhan { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.so-o .so-lon { font-size: 32px; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.so-phu { font-size: 12px; color: var(--faint); }
.so-o.loi .so-lon { color: var(--loi-sang); } .so-o.vang .so-lon { color: var(--vang); } .so-o.dat .so-lon { color: var(--dat); }
.hero .so-o, .bdh-hero .so-o { padding: 14px 16px; background: var(--ds-o-hero); border-color: var(--ds-o-hero-vien); box-shadow: inset 0 1px rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .so-lon, .bdh-hero .so-lon { font-size: 26px; color: var(--hs-chu); }
.hero .so-o.loi .so-lon, .bdh-hero .so-o.loi .so-lon { color: var(--loi-sang); } .hero .so-o.dat .so-lon, .bdh-hero .so-o.dat .so-lon { color: var(--dat); }
.hero .so-nhan, .bdh-hero .so-nhan { color: var(--hs-phu); }
.hero .so-phu, .bdh-hero .so-phu { color: var(--hs-phu); opacity: .85; }

/* ---- tab đoạn (rãnh lõm, tab đang chọn nổi lên) + số đếm đỏ .dem; bộ lọc đoạn nhỏ trong đầu khối */
.tabs-doan, .bdh-tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 5px; border-radius: 16px; background: var(--ds-o);
  border: 1px solid var(--line); box-shadow: var(--ds-ranh-bong); max-width: 100%; }
.tab-doan, .bdh-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent;
  border-radius: 12px; background: transparent; color: var(--muted); font: 600 14px "Be Vietnam Pro", sans-serif; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: color .16s, background-color .16s, box-shadow .16s; }
.tab-doan:hover, .bdh-tab:hover { color: var(--text); }
.tab-doan[aria-selected="true"], .tab-doan.dang, .bdh-tab[aria-selected="true"] { color: var(--text); border-color: var(--ds-noi-chon-vien);
  background: var(--ds-noi-chon); box-shadow: var(--ds-noi-chon-bong); }
.tabs-doan { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }  /* nhiều tab / số đếm: cuộn ngang */
.tabs-doan::-webkit-scrollbar { display: none; }
.tabs-doan > .tab-doan { flex: none; }
.tabs-doan > .tab-doan[aria-selected="true"], .tabs-doan > .tab-doan.dang { box-shadow: var(--ds-noi-chon-bong-gon); }  /* bóng gọn trong lề 5px của rãnh cuộn */
.tab-doan:focus-visible, .bdh-tab:focus-visible, .loc-nut:focus-visible, .bdh-loc-nut:focus-visible {
  outline: 2px solid var(--g-400); outline-offset: 2px; }  /* M7: viền vàng như .bdh-xem-day */
.tabs-doan > .tab-doan:focus-visible { outline-offset: -3px; }  /* rãnh cuộn cắt viền ngoài */
.tab-doan .ic { width: 17px; height: 17px; }
.tab-doan[aria-selected="true"] .ic, .tab-doan.dang .ic { color: var(--ds-vang-chu); }
.loc-doan, .bdh-loc { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--ds-o); border: 1px solid var(--line); max-width: 100%;
  overflow-x: auto; scrollbar-width: none; }
.loc-doan:empty, .bdh-loc:empty { display: none; }
.loc-doan::-webkit-scrollbar, .bdh-loc::-webkit-scrollbar { display: none; }
.loc-nut, .bdh-loc-nut { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font: 600 12.5px "Be Vietnam Pro", sans-serif; cursor: pointer; transition: color .15s, background-color .15s; }
.loc-nut span, .bdh-loc-nut span { font-size: 11px; color: var(--faint); }
.loc-nut:hover, .bdh-loc-nut:hover { color: var(--text); }
.loc-nut.dang, .bdh-loc-nut.dang { color: var(--ds-vang-chu); background: var(--ds-the-2); box-shadow: var(--ds-loc-chon-bong); }
.loc-nut.dang span, .bdh-loc-nut.dang span { color: inherit; }
.loc-nut span.dem { color: #fff; font-size: 10.5px; }

/* ---- lưới 2 cột: việc chính trái 2fr · bối cảnh phải 1fr (≥ 880 px vùng nội dung); hẹp = 1 cột theo thứ tự trong HTML.
   .nguoc = cột hẹp đứng trước (Voice VN); .cot-dinh = cột phụ dính khi cuộn */
.luoi-2, .bdh-luoi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.luoi-2 > .cot, .bdh-cot { display: contents; }

/* ---- thẻ việc: đầu thẻ (số thứ tự, chip, trạng thái) · tiêu đề đậm · hàng nhãn | nội dung · chân (đo / nút) */
.the-viec, .bdh-dx, .bdh-loi { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px 20px; border-radius: 16px;
  background: var(--ds-the); border: 1px solid var(--line); box-shadow: var(--ds-noi); transition: border-color .2s, box-shadow .2s; }
.the-viec:hover, .bdh-dx:hover, .bdh-loi:hover { border-color: var(--line-strong); }
.the-viec.t-cho, .bdh-dx.t-cho_duyet { border-color: var(--ds-vien-vang); background: linear-gradient(180deg, var(--ds-vang-nen), transparent 140px), var(--ds-the); }
.the-viec.t-cho::before, .bdh-dx.t-cho_duyet::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--g-300), transparent); }
.the-viec.t-loi { border-color: var(--vien-loi); box-shadow: inset 3px 0 0 var(--loi), var(--ds-noi); }
.the-viec.t-dat { box-shadow: inset 3px 0 0 var(--dat), var(--ds-noi); }
.the-viec.t-xong { background: transparent; }
.the-viec.gon { gap: 8px; }
.the-viec-dau, .bdh-the-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.the-viec-dau > .ve-phai { margin-left: auto; }
.the-viec-tieu { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.38; letter-spacing: -.015em; color: var(--text); text-transform: none;
  overflow-wrap: anywhere; text-wrap: pretty; }
.hang-nhan, .bdh-dx-hang { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.hang-nhan > :first-child, .bdh-dx-nhan { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.hang-nhan > :first-child .ic, .bdh-dx-nhan .ic { width: 15px; height: 15px; stroke-width: 2; color: var(--ds-vang-chu); align-self: center; }
.hang-nhan > :last-child, .bdh-dx-noi { min-width: 0; font-size: 14px; line-height: 1.55; color: var(--chu-2); overflow-wrap: anywhere; text-wrap: pretty; }
.hang-nhan > :last-child p, .bdh-dx-noi p { margin: 0; }
.hang-nhan b, .bdh-dx-noi b { color: var(--text); font-weight: 700; }
.the-viec .chan-the, .bdh-dx-chan { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; padding-top: 12px;
  border-top: 1px dashed var(--line-strong); }
.nut-hang { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.chip-nho, .bdh-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  color: var(--chu-2); background: var(--ds-o); border: 1px solid var(--line-strong); }
.stt, .bdh-stt { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 8px; font-size: 12px; font-weight: 800;
  color: #1A1206; background: linear-gradient(180deg, var(--g-200), var(--g-400)); box-shadow: inset 0 1px rgba(255,255,255,.55), 0 2px 6px -2px rgba(217,154,43,.6); }

/* ---- thẻ nhấn vàng (kiểu Trọng tâm tuần): vạch vàng mép trái + quầng sáng */
.the-nhan { position: relative; overflow: hidden; border-color: var(--ds-vien-vang);
  background: linear-gradient(100deg, var(--ds-vang-nen), transparent 60%), var(--card);
  box-shadow: inset 3px 0 0 var(--g-400), var(--ds-bong), -12px 0 32px -20px rgba(234,169,68,.7); }
.the-nhan:hover { border-color: var(--ds-vien-vang); }
[data-theme="light"] .the-nhan { box-shadow: inset 3px 0 0 var(--g-500), var(--ds-bong); }

/* ---- danh sách chấm vàng */
.ds-gon { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.ds-gon li { position: relative; padding-left: 16px; }
.ds-gon li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--g-400); }
.ds-gon li b { color: var(--text); font-weight: 700; }

/* ---- khung chat (kiểu Họp với Giám đốc): đầu khung có huy hiệu nhỏ, vùng tin cuộn riêng, ô soạn dính đáy.
   Tin dùng lớp .pt-tin-sep / .pt-bong / .pt-tin-em / .pt-tin-than / .pt-sao như chat Plan tuần. */
.bdh-hop, .khung-chat { display: flex; flex-direction: column; min-width: 0; height: clamp(460px, 72dvh, 640px); overflow: hidden; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--ds-bong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.khung-chat-dau, .bdh-hop-dau { display: flex; align-items: center; gap: 12px; flex: none; padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ds-vang-nen), transparent); }
.khung-chat-dau b, .bdh-hop-dau b { font-size: 15px; letter-spacing: -.01em; }
.khung-chat-tin { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 16px; padding: 18px 16px 18px 18px; }
.khung-chat-tin .pt-tin-sep { align-self: flex-end; max-width: 86%; }
.khung-chat-tin .pt-bong, .bdh .hop-tin .pt-bong { background: var(--ds-bong-sep); border-color: var(--ds-bong-sep-vien); border-radius: 18px 18px 6px 18px; color: var(--text);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 8px 18px -12px rgba(217,154,43,.55); }
.khung-chat-tin .pt-tin-sep.loi .pt-bong, .bdh .hop-tin .pt-tin-sep.loi .pt-bong { border-color: var(--vien-loi); }
.khung-chat-tin .pt-tin-em, .bdh .hop-tin .pt-tin-em { gap: 10px; }
.khung-chat-tin .pt-tin-em:not(.pt-dang) .pt-tin-than { flex: 0 1 auto; max-width: calc(100% - 38px); padding: 10px 14px; border-radius: 6px 18px 18px 18px;
  background: var(--ds-the-2); border: 1px solid var(--line); box-shadow: var(--ds-noi); font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
.khung-chat-tin .pt-sao { width: 28px; height: 28px; padding: 6px; margin-top: 0; border-radius: 50%; fill: var(--hs-hinh); background: var(--hs-trong);
  box-shadow: 0 0 0 1.5px var(--ds-vien-vang), 0 4px 10px -4px rgba(217,154,43,.6); }
.khung-chat-soan, .bdh-soan { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 10px; flex: none; padding: 12px 14px 10px;
  border-top: 1px solid var(--line); background: var(--ds-o); }
.khung-chat-soan .o-nhap, .bdh-soan .o-nhap { height: 48px; min-height: 48px; max-height: 140px; padding: 11px 14px; font-size: 14px; border-radius: 14px; background: var(--ds-the-2); }
.khung-chat-soan .o-nhap:focus, .bdh-soan .o-nhap:focus { border-color: var(--ds-vien-vang); outline: none; box-shadow: 0 0 0 3px rgba(245,194,107,.12); }
.khung-chat-soan .nut, .bdh-soan .nut { min-height: 48px; padding: 0 20px; }
@supports (field-sizing: content) { .khung-chat-soan .o-nhap, .bdh-soan .o-nhap { height: auto; field-sizing: content; } }
/* ---- bảng thành thẻ khi vùng nội dung hẹp (≤ 640 px, container "trang" như mọi luật chung — đợt 8, trước là @media màn hình):
   mỗi hàng một thẻ, nhãn cột lấy từ td[data-nhan]. Bảng .bang-the phải nằm trong .trang. */
@container trang (max-width: 640px) {
  .cuon-ngang:has(> .bang-the) { overflow: visible; }
  .bang-the { min-width: 0; }
  .bang-the thead { display: none; }
  .bang-the, .bang-the tbody, .bang-the tr, .bang-the td { display: block; width: 100%; }
  .bang-the tr { margin-bottom: 10px; padding: 8px 14px; border-radius: 14px; background: var(--ds-the); border: 1px solid var(--line); box-shadow: var(--ds-noi); }
  .bang-the tr:last-child { margin-bottom: 0; }
  .bang-the td { position: relative; height: auto; min-height: 30px; padding: 6px 0 6px 104px; border: 0; text-align: left; }
  .bang-the td + td { border-top: 1px solid var(--line); }
  .bang-the td::before { content: attr(data-nhan); position: absolute; left: 0; top: 8px; width: 96px; font: 600 10.5px "Be Vietnam Pro", sans-serif;
    letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
  .bang-the td:not([data-nhan]) { padding-left: 0; }
  .bang-the td:not([data-nhan])::before { display: none; }
  .bang-the tbody tr:hover td { background: transparent; }
}

/* ---- thanh đầu dính ngay dưới header (Duyệt lời .dl-dau top 72px, Voice VN .vv-dau top 76px; đợt 5 vòng sửa 1): khe giữa header 64px
   và thanh đầu được tô bằng một dải nền var(--bg) treo dưới .hd, nên nội dung cuộn qua không lộ ra ở khe. Chỉ khi thanh thật sự dính
   (máy tính); điện thoại thanh đầu không dính nên không có dải. Cao dải = top của thanh − 64 (--khe-dinh). */
body:has(.dl-dau) { --khe-dinh: 8px; }
body:has(.vv-dau) { --khe-dinh: 12px; }
@media (min-width: 769px) {
  body:has(.dl-dau, .vv-dau) .hd::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 1px); height: var(--khe-dinh, 0px);
    background: var(--bg); pointer-events: none; }
}

/* ---- nhãn nhóm trong danh sách thẻ (kiểu nhóm đề xuất Ban điều hành: CHỮ HOA · số · vạch mảnh); đợt 5 rút lên chung */
.bdh-nhom, .ds-nhom { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bdh-nhom:first-child, .ds-nhom:first-child { margin-top: 0; }
.bdh-nhom b, .ds-nhom b { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--ds-o-2); color: var(--chu-2); font-size: 11px; text-align: center; letter-spacing: 0; }
.bdh-nhom::after, .ds-nhom::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- co giãn theo bề rộng vùng nội dung (container "trang") */
@container trang (min-width: 880px) {
  .luoi-2, .bdh-luoi { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); align-items: stretch; }
  .luoi-2.nguoc { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }
  .luoi-2 > .cot, .bdh-cot { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .luoi-2 > .cot-dinh { position: sticky; top: 80px; align-self: start; }  /* cột cao hơn màn hình: cot_dinh() ở chung.js đổi top (âm) để dính theo đáy */
  body.co-chat .luoi-2 > .cot-dinh { --cot-dinh-day: 92px; }  /* dính theo đáy thì chừa chỗ nút chat nổi (58px + 20px lề) */
}
@container trang (max-width: 1000px) {
  .hero:has(> .so-dai) { grid-template-columns: auto minmax(0, 1fr); }
  .hero > .so-dai { grid-column: 1 / -1; }
}
@container trang (max-width: 720px) {
  .hero, .bdh-hero { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 22px 20px; border-radius: 18px; }
  .hero > .huy, .bdh-huy { width: 52px; height: 52px; align-self: start; }
  .hero-tieu { font-size: 22px; margin: 2px 0 8px; }
  .hero-nut, .bdh-hero-nut { grid-column: 1 / -1; width: 100%; }
  .hero > :not(.huy, .hero-chu) { grid-column: 1 / -1; }  /* nút / ô số / nút ma xuống hàng riêng, rộng hết hero */
  .hero.gon { padding: 16px; gap: 12px 14px; }
  .hero.gon .hero-tieu { font-size: 19px; }
  .so-dai, .bdh-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .so-o { padding: 14px 16px; }
  .so-o .so-lon { font-size: 26px; }
  .hero .so-lon, .bdh-hero .so-lon { font-size: 22px; }
  .hero .so-dai { grid-template-columns: repeat(var(--so-cot, 3), minmax(0, 1fr)); gap: 8px; }
  .hero .so-o, .bdh-hero .so-o { padding: 12px; }
  .hero .so-nhan, .bdh-hero .so-nhan { font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 600; }
  .hero .so-phu, .bdh-hero .so-phu { display: none; }
  .the-viec, .bdh-dx, .bdh-loi { padding: 14px 16px; }
}
@container trang (max-width: 560px) {
  .hang-nhan { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .hang-nhan > :first-child { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
}
@container trang (max-width: 520px) {
  .tabs-doan, .bdh-tabs { align-self: stretch; }
  .tab-doan, .bdh-tab { flex: 1 1 0; padding: 0 12px; }
  .tabs-doan > .tab-doan { flex: 1 0 0; }  /* đủ chỗ: chia đều; thiếu chỗ: giữ bề rộng chữ và cuộn ngang */
}
/* ================================================================ hết bộ giao diện chung */

/* ================================================================ Vận hành (ui-dong-bo đợt 6): Hộp việc · Hàng đợi & máy ·
   Token · Tiến độ · Chi tiết việc. Sắc xanh lá của nhóm Vận hành (.sac-vh trên .trang, .hero-vh). Đặt SAU bộ giao diện chung để
   luật riêng trang thắng luật chung cùng độ đặc hiệu. Lớp: .hv-* Hộp việc, .pm-* Phòng máy (Hàng đợi), .cp-* Token, .td-* Tiến độ,
   .vc-* Chi tiết việc; .pm-dem / .pm-bang / .pm-trong dùng chung cho tab đoạn + bảng của Hàng đợi, Token, Chi tiết việc. */
/* ---- dùng chung: số đếm mờ trong tab đoạn, khối bảng, hàng trống */
.pm-dem { display: inline-flex; align-items: center; gap: 2px; font: 600 12px "JetBrains Mono", monospace; color: var(--faint); }
.tab-doan[aria-selected="true"] .pm-dem { color: var(--ds-vang-chu); }
.pm-dem:empty { display: none; }
.pm-dem .cham-chay { width: 7px; height: 7px; margin-right: 5px; }
.pm-bang { padding: 6px 20px 10px; }
.pm-bang .bang th { padding-top: 14px; }
.pm-bang .bang tbody tr:last-child td { border-bottom: 0; }
.pm-bang .bang td { vertical-align: middle; }
.pm-bang .bang th, .pm-bang .bang td.mono { white-space: nowrap; }
.bang tr.pm-trong td { padding: 16px 0 10px; border-bottom: 0; }
.bang tr.pm-trong .trong { padding: 22px 16px; }
@container trang (max-width: 640px) {  /* bảng thành thẻ (.bang-the): khối bọc trong suốt (không thẻ lồng thẻ), số canh trái, nút hàng cuối canh phải, hàng trống không vẽ thẻ */
  .pm-bang { padding: 0; background: none; border: 0; box-shadow: none; }
  .pm-bang::before, .pm-bang::after { display: none; }
  .bang-the td.so { text-align: left; }
  .bang-the td.pm-nut { text-align: right; }
  .bang-the tr.pm-trong { padding: 0; background: none; border: 0; box-shadow: none; }
  .bang-the tr.pm-trong td { padding: 0; }
}
@container trang (max-width: 520px) {
  .pm-tabs .ic, .cp-tabs .ic { display: none; }
  .pm-tabs .tab-doan, .cp-tabs .tab-doan { gap: 6px; padding: 0 10px; font-size: 13.5px; }
  /* hero có dòng trạng thái dài (Phòng máy, Chi phí Claude): huy hiệu nhỏ cạnh nhãn + tiêu đề, dòng trạng thái rộng hết hero */
  .pm-hero, .cp-hero { row-gap: 4px; }
  .pm-hero .hero-chu, .cp-hero .hero-chu { display: contents; }
  .pm-hero > .huy, .cp-hero > .huy { grid-row: 1 / span 2; align-self: center; }
  .pm-hero .hero-nhan, .cp-hero .hero-nhan { grid-column: 2; align-self: end; }
  .pm-hero .hero-tieu, .cp-hero .hero-tieu { grid-column: 2; margin: 0; align-self: start; }
  .pm-hero .hero-dong, .cp-hero .hero-dong, .cp-hero .cp-phu { grid-column: 1 / -1; }
  .pm-hero .hero-dong, .cp-hero .hero-dong { margin-top: 10px; }
  .pm-hero .pm-hero-nut, .cp-hero .cp-tong { margin-top: 10px; }
  .pm-hero-nut { justify-content: stretch; }
  .pm-hero-nut > * { flex: 1 1 auto; justify-content: center; }
}

/* ---- Hộp việc: hero gọn, câu trả lời to · bộ lọc đoạn · thẻ kiểu đề xuất trong lưới 2 cột · ô trống đẹp */
.hv-tom-tat { min-width: 0; }
.hv-hero .hero-tieu.hv-tra-loi { font-size: 26px; margin: 2px 0 8px; letter-spacing: -.03em; }
.hv-tra-loi b { color: var(--hs-nhan); font-weight: 800; }
a.hero-pill.hv-xem-hang { color: var(--hs-chu); font-weight: 600; transition: border-color .16s, background-color .16s; }
a.hero-pill.hv-xem-hang:hover { border-color: var(--hs-vien); color: var(--hs-chu); }
.hv-loc .hv-dem { font-size: 12px; font-weight: 600; color: var(--faint); }
.hv-nhom { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.luoi-hv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@container trang (min-width: 561px) { .hv-the .hang-nhan { grid-template-columns: 96px minmax(0, 1fr); } }
.hv-loai { gap: 6px; } .hv-loai .ic { width: 13px; height: 13px; color: var(--ds-vang-chu); }
.hv-loai.loi { color: var(--loi-sang); border-color: var(--vien-loi); } .hv-loai.loi .ic { color: currentColor; }
.hv-chan { display: inline; padding: 2px 8px; border-radius: 8px; font-size: 13px; color: var(--loi-sang);
  background: color-mix(in srgb, var(--loi) 9%, transparent); border: 1px solid var(--vien-loi); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hv-chu-loi, .hv-chu-loi b { color: var(--loi-sang); }
.hv-the .chan-the { align-items: center; }
.hv-lan { font-size: 12px; color: var(--faint); }
.hv-lan:empty { display: none; }
.hv-the .nut-hang { align-items: center; }
.hv-ct { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hv-ct:hover { color: var(--ds-vang-chu); }
.hv-trong { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px 40px; text-align: center; border-radius: 20px;
  color: var(--muted); border: 1px solid var(--line); box-shadow: var(--ds-bong);
  background: radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--dat) 12%, transparent), transparent 70%), var(--card); }
.hv-trong .huy { margin-bottom: 8px; }
.hv-trong > b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.hv-trong b b, .hv-trong span b { color: var(--text); }
.hv-trong .nut-ma { margin-top: 10px; }
@container trang (min-width: 760px) { .luoi-hv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container trang (max-width: 520px) {
  .hv-loc .ic { display: none; }
  .hv-loc .tab-doan { gap: 5px; padding: 0 6px; font-size: 12.5px; }
  .hv-loc .dem { min-width: 18px; height: 18px; font-size: 10.5px; }
  .hv-hero .hero-tieu.hv-tra-loi { font-size: 24px; }
}

/* ---- Hàng đợi & máy = Phòng máy: hero có nhịp điều phối + nút · 3 thẻ máy kiểu bảng điều khiển phần cứng · thẻ công cụ · tab bảng */
.pm-hero-nut { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pm-hero-nut .nut { min-height: 44px; }
.pm-nhip .cham-song { width: 9px; height: 9px; }
.pm-may { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.pm-o { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 20px 18px; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: var(--ds-bong);
  background: linear-gradient(180deg, var(--ds-the-2), var(--ds-the)), var(--card); }
.pm-o::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;  /* lưới mảnh của mặt máy */
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 100%;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.pm-o::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.pm-o > * { position: relative; }
.pm-o-dau { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-strong); }
.pm-o-nhan { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 11px "JetBrains Mono", monospace;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pm-o-nhan b { color: var(--text); font-weight: 700; letter-spacing: .04em; }
.pm-o-dau .ic { width: 18px; height: 18px; color: var(--hs-hinh); flex: none; }
.pm-den { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--chu-mo); }
.pm-den.dat { background: var(--dat); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dat) 18%, transparent), 0 0 10px color-mix(in srgb, var(--dat) 70%, transparent); }
.pm-den.chay { background: var(--vang); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vang) 18%, transparent), 0 0 10px color-mix(in srgb, var(--vang) 70%, transparent);
  animation: chop 1.4s ease-in-out infinite; }
.pm-den.loi { background: var(--loi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--loi) 18%, transparent), 0 0 10px color-mix(in srgb, var(--loi) 60%, transparent); }
.pm-den.tat { background: transparent; border: 1.5px dashed var(--net-dut); }  /* chưa chạy: nét đứt, không vàng */
.pm-o .so-lon { font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--text); }
.pm-o .so-lon small { margin-left: 4px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.thanh.pm-tai { position: relative; height: 10px; margin: 0; background: var(--ds-o-2); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
[data-theme="light"] .thanh.pm-tai { box-shadow: inset 0 1px 2px rgba(20,26,36,.12); }
.thanh.pm-tai::after { content: ""; position: absolute; inset: 0; pointer-events: none;  /* vạch chia 10% như đồng hồ tải */
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--card) calc(10% - 1px) 10%); opacity: .55; }
.pm-o-phu { font-size: 12px; color: var(--faint); }
.pm-o-phu b { color: var(--chu-2); }
.pm-muc { display: flex; flex-direction: column; gap: 6px; }
.pm-muc + .pm-muc { margin-top: 4px; }
.pm-muc-dau { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 600; color: var(--chu-2); }
.pm-muc-dau b { font-size: 15px; color: var(--text); }
.pm-nhan-viec .nhan { font-size: 13.5px; padding: 6px 14px; }
.pm-cong-cu { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 24px; align-items: start; padding: 16px 20px; }
.pm-nhan { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-vang-chu); }
.pm-nhan .ic { width: 14px; height: 14px; }
.pm-nhan-phu { font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--faint); }
.pm-loc { display: flex; flex-direction: column; gap: 8px; padding-right: 24px; border-right: 1px dashed var(--line-strong); }
.pm-loc select { min-width: 190px; }
.pm-them { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pm-them-o { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pm-them-o #tv-dm { width: 180px; }
.pm-goi-y { font-size: 12px; color: var(--faint); }
.pm-tabs .ic { width: 16px; height: 16px; }
.pm-viec > a { font-weight: 700; color: var(--text); }
.pm-viec > a:hover { color: var(--ds-vang-chu); }
.pm-viec .phu.nho:empty { display: none; }
.pm-may-chip { height: 22px; margin-left: 4px; vertical-align: 1px; }
.pm-nut { text-align: right; }
.nut-nguy.pm-dung { min-height: 36px; padding: 0 14px; font-size: 13.5px; }  /* nút nhỏ chung 36 px (đợt 8) */
.nut-nguy.pm-dung .ic { width: 16px; height: 16px; }
@container trang (max-width: 900px) {
  .pm-cong-cu { grid-template-columns: minmax(0, 1fr); }
  .pm-loc { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 0 14px; border-right: 0; border-bottom: 1px dashed var(--line-strong); }
}
@container trang (max-width: 520px) { .pm-may { gap: 12px; } }

/* ---- Token = Chi phí Claude: hero có số lớn nhất · ô số theo dây chuyền · biểu đồ 14 ngày rộng hết · 2 cột · tab bảng */
.cp-phu { margin: 10px 0 0; max-width: 62ch; font-size: 12.5px; line-height: 1.55; color: var(--hs-phu); }
.cp-tong { display: flex; flex-direction: column; gap: 4px; min-width: 250px; padding: 18px 24px; border-radius: 18px; background: var(--ds-o-hero);
  border: 1px solid var(--ds-o-hero-vien); box-shadow: inset 0 1px rgba(255,255,255,.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cp-tong-nhan { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hs-nhan); }
.cp-tong-so { font-size: 46px; font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
.cp-tong-ss { font-size: 12.5px; color: var(--hs-phu); }
.cp-tong-ss:empty { display: none; }
.cp-tot { color: var(--dat); } .cp-xau { color: var(--loi-sang); }
.cp-khoi-dc { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.so-dai.cp-dc { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.cp-dc > .trong { grid-column: 1 / -1; }
.cp-o { gap: 8px; }
.cp-o .so-nhan { display: inline-flex; align-items: center; gap: 8px; }
.cp-cham { width: 9px; height: 9px; border-radius: 3px; background: var(--m); flex: none; box-shadow: 0 0 8px color-mix(in srgb, var(--m) 50%, transparent); }
.cp-o .so-lon small { margin-left: 3px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.cp-o .so-phu b { color: var(--chu-2); }
.cp-o .so-phu b.cp-tot { color: var(--dat); } .cp-o .so-phu b.cp-xau { color: var(--loi-sang); }
.cp-thanh { position: relative; display: block; min-width: 0; }
.cp-thanh .thanh { margin: 0; }
.cp-vach { position: absolute; left: var(--moc); top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text); opacity: .75; }
.cp-thanh-trong { height: 10px; border-radius: 999px; border: 1.5px dashed var(--net-dut); }
.cp-vach-mau { display: inline-block; width: 2px; height: 12px; margin-right: 7px; vertical-align: -2px; border-radius: 2px; background: var(--text); opacity: .75; }
.cp-14 .dau-khoi { align-items: center; }
.cp-ti-trong b { color: var(--text); font-weight: 700; }
.cp-ti-ghi { color: var(--faint); }
.cp-ti-trong:empty { display: none; }
.cp-bieu-do { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 10px; align-items: end; height: 220px; padding-bottom: 2px;
  background: repeating-linear-gradient(0deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%) 0 0 / 100% calc(100% - 22px) no-repeat; }
.cp-cot { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; min-width: 0; }
.cp-chong { width: 100%; max-width: 44px; display: flex; flex-direction: column-reverse; border-radius: 8px 8px 3px 3px; overflow: hidden; min-height: 2px;
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 8px 18px -10px rgba(0,0,0,.6); transition: filter .16s; }
[data-theme="light"] .cp-chong { box-shadow: inset 0 1px rgba(255,255,255,.6), 0 6px 14px -10px rgba(20,26,36,.35); }
.cp-chong > i { display: block; min-height: 2px; }
.cp-chong > i + i { box-shadow: inset 0 -1px rgba(0,0,0,.25); }
.cp-cot:hover .cp-chong { filter: brightness(1.12); }
.cp-so { font-size: 10.5px; font-weight: 600; color: var(--chu-phu); white-space: nowrap; }
.cp-ngay { height: 16px; font-size: 10.5px; color: var(--chu-mo); white-space: nowrap; }
.cp-cot.nay .cp-ngay { align-self: flex-end; color: var(--ds-vang-chu); font-weight: 700; }  /* cột cuối: nhãn "Hôm nay" tràn sang trái, không ra ngoài biểu đồ */
/* sáng: sắc vàng nhạt (yt_vn g-200) gần màu thẻ → viền trong mảnh cho từng đoạn, ô chú thích và chấm ô số vẫn thấy rõ */
[data-theme="light"] .cp-chong > i { box-shadow: inset 0 0 0 1px rgba(20,26,36,.14); }
[data-theme="light"] .cp-ti-trong .mau-o, [data-theme="light"] .cp-cham { box-shadow: inset 0 0 0 1px rgba(20,26,36,.22); }
.cp-tong-pham-vi { max-width: 34ch; font-size: 11px; line-height: 1.45; color: var(--hs-phu); opacity: .85; }
.cp-tong-pham-vi b { color: var(--hs-chu); }
.cp-hai { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@container trang (min-width: 880px) { .cp-hai { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cp-ds-khoi .dau-khoi { align-items: center; }
.cp-moc-ghi { display: inline-flex; align-items: center; font-size: 12px; color: var(--muted); }
.cp-moc-ghi:empty { display: none; }
.cp-ds.ds-dong { margin-top: 0; gap: 14px; }
.cp-ds .dong-token.co-loai { grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 84px; }
.cp-ds .dong-token .so small { display: block; font-size: 10.5px; font-weight: 500; color: var(--faint); }
.cp-ds .dong-token .ten-lo > span:last-child { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.cp-usd { font-weight: 700; color: var(--text); }
.cp-tabs .ic { width: 16px; height: 16px; }
@container trang (max-width: 720px) {
  .cp-tong { min-width: 0; padding: 14px 18px; }
  .cp-tong-so { font-size: 38px; }
  .cp-bieu-do { gap: 3px; height: 170px; }
  .cp-so { display: none; }
  .cp-ngay { font-size: 9.5px; }
  .cp-cot:nth-child(odd) .cp-ngay { visibility: hidden; }  /* nhãn ngày cách 1, không dính; "Hôm nay" (cột 14) luôn hiện */
  .cp-ds .dong-token.co-loai { grid-template-columns: minmax(0, 1fr) 76px; gap: 6px 12px; }
  .cp-ds .dong-token .ten-lo { grid-column: 1 / -1; min-height: 0; }
  .cp-tong-pham-vi { max-width: none; }
}
/* điện thoại: thẻ bảng Theo ngày / Theo việc gọn — 2 cột ô (nhãn nhỏ trên, số dưới), ô đầu (ngày / tên việc) là tiêu đề rộng hết */
@container trang (max-width: 640px) {
  .cp-trang .bang-the tbody tr:not(.pm-trong) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; padding: 10px 14px 12px; }
  .cp-trang .bang-the tbody tr:not(.pm-trong) td { min-height: 0; padding: 4px 0 2px; border: 0; }
  .cp-trang .bang-the tbody tr:not(.pm-trong) td::before { position: static; display: block; width: auto; margin-bottom: 1px; font-size: 9.5px; }
  .cp-trang .bang-the tbody tr:not(.pm-trong) td:not([data-nhan]) { grid-column: 1 / -1; padding: 0 0 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
    font-weight: 700; color: var(--text); }
}

/* ---- Tiến độ: hero gọn · thẻ mục tiêu (vòng + số) · lô theo dây chuyền, mỗi lô một thẻ có thanh từng khâu */
.td-muc-tieu { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.td-mt { display: flex; align-items: center; gap: 22px; }
.td-mt .vong { width: 96px; height: 96px; flex: none; }
.td-mt-chu { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.td-mt .so-lon { font-size: 38px; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.td-mt .so-lon small { margin-left: 4px; font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.td-mt-phu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.td-mt-phu b { color: var(--text); }
.td-mt.dat { border-color: color-mix(in srgb, var(--dat) 30%, var(--line)); }
.td-lo-ds, .td-nhom { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.td-lo-ds { gap: 22px; }
.td-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.td-lo-ten { font-size: 16px; font-weight: 800; letter-spacing: -.015em; }
.td-lo-ten a { color: var(--text); }
.td-lo-ten a:hover { color: var(--ds-vang-chu); }
.td-lo-ngay { font-size: 12px; color: var(--faint); }
.td-lo.chay { border-color: var(--ds-vien-vang); box-shadow: inset 3px 0 0 var(--vang), var(--ds-noi);
  background: linear-gradient(180deg, var(--ds-vang-nen), transparent 120px), var(--ds-the); }
.td-lo.xong { background: transparent; }
.td-khau { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px 14px; }
.td-k { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 6px; font-size: 12px; color: var(--muted); }
.td-k b { font-size: 14px; color: var(--text); }
.td-k b small { font-size: 11px; font-weight: 500; color: var(--faint); }
.td-k .thanh { grid-column: 1 / -1; height: 6px; margin-top: 4px; }

/* ---- Chi tiết việc: hero gọn · thẻ kết luận nhấn vàng · dòng thời gian | bảng phiên · log thu gọn */
.vc-ve { color: inherit; }
.vc-ve:hover { color: var(--hs-chu); }
.vc-ket { display: flex; flex-direction: column; gap: 12px; }
.vc-ket-noi { display: flex; flex-direction: column; gap: 10px; }
.vc-ly-do { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: -.01em; color: var(--text); overflow-wrap: anywhere; }
.vc-loi { color: var(--loi-sang); }
.vc-phu { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.vc-hai { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@container trang (min-width: 1000px) { .vc-hai { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.vc-tong { font-size: 12.5px; color: var(--muted); }
.vc-tong b { color: var(--text); }
@media (min-width: 641px) { .vc-phien .bang td, .vc-phien .bang th { padding-left: 6px; padding-right: 6px; } }
.vc-lan { white-space: nowrap; }
.vc-lan .chip-nho { margin-left: 8px; height: 22px; }
.vc-lan .chip-nho.vc-tb { border-style: dashed; }
.nut-ma.vc-chep { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.dong-thoi-gian { list-style: none; margin: 0; padding: 0; }
.dong-thoi-gian li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px;
  padding: 0 0 16px 24px; font-size: 13px; }
.dong-thoi-gian li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--line-strong); box-sizing: border-box; }
.dong-thoi-gian li::after { content: ""; position: absolute; left: 7px; top: 19px; bottom: 2px; width: 1px; background: var(--line); }
.dong-thoi-gian li:first-child::before { border-color: var(--hs-hinh); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dat) 18%, transparent); }
.dong-thoi-gian li:last-child { padding-bottom: 0; }
.dong-thoi-gian li:last-child::after { display: none; }
.dong-thoi-gian li > .nhan { justify-self: start; }
.dong-thoi-gian li > span:last-child { grid-column: 1 / -1; min-width: 0; color: var(--chu-2); line-height: 1.55; overflow-wrap: anywhere; }
.vc-gio { font-size: 12px; color: var(--faint); }
.dong-thoi-gian li.vc-trong { padding-left: 0; display: block; }
.dong-thoi-gian li.vc-trong::before, .dong-thoi-gian li.vc-trong::after { display: none; }
.vc-log > summary { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; list-style: none; border-radius: 10px; }
.vc-log > summary::-webkit-details-marker { display: none; }
.vc-log > summary:focus-visible { outline: 2px solid var(--g-400); outline-offset: 4px; }
.vc-log-so { font: 500 12px "JetBrains Mono", monospace; color: var(--faint); }
.vc-log-mo { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 10px; border: 1px solid var(--line-strong);
  color: var(--muted); background: var(--ds-o); }
.vc-log-mo .ic { width: 16px; height: 16px; transition: transform .2s; }
.vc-log[open] .vc-log-mo .ic { transform: rotate(180deg); }
.vc-log > summary:hover .vc-log-mo { color: var(--text); }
.vc-log .log { margin-top: 14px; max-height: 480px; }
/* ================================================================ hết Vận hành (đợt 6) */

/* ================================================================ Cài đặt "Phòng cài đặt" (ui-dong-bo đợt 7) — trang cấu hình
   Đầu trang gọn (huy hiệu bánh răng, không hero to, không ô số) · tab con = tab đoạn có biểu tượng (máy tính đủ chỗ thì một hàng,
   thiếu thì xuống hàng — không tab nào bị giấu; điện thoại cuộn ngang) · mỗi tab: lưới 2 cột (thẻ cài đặt | thẻ "Cách em chạy" dính).
   Thẻ cài đặt .cd-the: đầu thẻ huy hiệu nhỏ + tiêu đề · hàng .cd-hang "nhãn (+ giải thích mờ) | ô nhập" · chân .cd-chan (ghi chú + Lưu).
   Ô tích .cd-tich vẫn là checkbox của form, vẽ thành nút gạt. Nick: thẻ kiểu thẻ lỗi Kỹ thuật + ô mức dùng có thanh. Máy: lưới thẻ
   công cụ. Nhân viên: thẻ tài khoản. Nhật ký: bảng thành thẻ trên điện thoại. Sắc xanh Vận hành (.sac-vh trên .trang). Lớp .cd-* / .dn-*. */
.cd-dau { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cd-dau > .huy { width: 58px; height: 58px; }
.cd-dau-chu { min-width: 0; }
.cd-dau-nhan { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hs-nhan); }
.cd-dau h1 { margin: 2px 0 2px; font-size: 26px; letter-spacing: -.03em; }
.cd-dau .phu { margin: 0; font-size: 13.5px; }

/* hai tầng (sếp chốt 09/11/2026): hàng MỤC LỚN = rãnh tab đoạn dạng nút (4 mục, luôn một hàng); hàng TAB CON = kiểu khác hẳn:
   chữ trên một đường kẻ ngang hết bề rộng, tab đang mở chữ sáng + gạch chân màu Vận hành (không nền, không viền) — nhìn là biết
   đâu tầng lớn, đâu tầng con. Chỉ hiện tab của mục đang mở (cai_dat.js ẩn bớt). Hẹp = cuộn ngang, tab đang mở tự cuộn vào tầm nhìn. */
.cd-dieu-huong { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
.cd-trang .tab-con { margin: 0; gap: 3px; overscroll-behavior-x: contain; }
.cd-trang .tab-con[hidden], .cd-trang .tab-con > .tab-doan[hidden] { display: none; }
.cd-trang .cd-loai { align-self: flex-start; }
.cd-trang .cd-loai > .tab-doan { min-height: 46px; padding: 0 18px; gap: 8px; font-size: 14.5px; }
/* đường kẻ là bóng trong (không border) để gạch chân tab đè lên đúng nó mà không bị overflow cuộn ngang cắt */
.cd-trang .cd-tab-con { width: auto; gap: 24px; padding: 0 4px; border: 0; border-radius: 0; background: none; box-shadow: inset 0 -1px var(--line); }
.cd-trang .cd-tab-con > .tab-doan { position: relative; min-height: 42px; padding: 0 2px; gap: 7px; border: 0; border-radius: 0; background: none;
  box-shadow: none; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.cd-tab-con > .tab-doan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px 2px 0 0;
  background: transparent; transition: background-color .16s; }
.cd-tab-con > .tab-doan .ic { width: 15px; height: 15px; }
.cd-trang .cd-tab-con > .tab-doan:hover { color: var(--text); }
.cd-trang .cd-tab-con > .tab-doan[aria-selected="true"] { color: var(--text); font-weight: 700; background: none; border: 0; box-shadow: none; }
.cd-tab-con > .tab-doan[aria-selected="true"]::after { background: var(--hs-nhan); }
.cd-tab-con > .tab-doan[aria-selected="true"] .ic { color: var(--hs-nhan); }
@container trang (max-width: 640px) {
  /* điện thoại: 4 mục chia cột đều, bỏ biểu tượng — vừa một màn, không phải cuộn tìm mục */
  .cd-trang .cd-loai { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; align-self: stretch; }
  .cd-trang .cd-loai > .tab-doan { min-width: 0; padding: 0 4px; font-size: 13px; }
  .cd-loai > .tab-doan .ic { display: none; }
  .cd-trang .cd-tab-con { gap: 18px; padding: 0 2px; }
}

/* lưới 2 cột của tab: form / danh sách (2fr) | thẻ giải thích dính (1fr); hẹp = 1 cột, thẻ giải thích xuống dưới */
.cd-luoi > .cot { min-width: 0; }
.cd-nhom { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
#cd-vh-o, #cd-bdh-o { display: contents; }

/* thẻ cài đặt */
.khoi.cd-the { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.cd-the-dau { display: flex; align-items: center; gap: 14px; padding: 18px 22px 16px; min-width: 0; }
.cd-the-dau > div { min-width: 0; }
.cd-the-dau b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; color: var(--text); }
.cd-the-dau p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.cd-the-dau > .huy.nho, .cd-tieu > .huy.nho { flex: none; }
.cd-than { display: flex; flex-direction: column; min-width: 0; }
.cd-hang { display: grid; grid-template-columns: minmax(150px, 34%) minmax(0, 1fr); gap: 8px 24px; align-items: center; min-width: 0; padding: 14px 22px;
  border-top: 1px solid var(--line); }
.cd-nhan { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cd-nhan b { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.cd-nhan small { font-size: 12.5px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.cd-o { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.cd-hang-chon, .cd-hang:has(.cd-luoi-so) { align-items: start; }
.cd-hang-chon .cd-nhan { padding-top: 11px; }
.cd-hang-chon .cd-o { flex-direction: column; align-items: stretch; }
.cd-hang-chon select { align-self: flex-start; min-width: min(240px, 100%); }
.cd-giai { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.cd-hang-rong { align-items: start; }
.cd-hang-rong .cd-nhan { padding-top: 11px; }
.cd-hang-rong textarea { width: 100%; }
.cd-cho { padding: 22px; font-size: 13px; color: var(--faint); }

/* ô nhập trong trang: bo 12, nền lõm, viền vàng + quầng khi gõ */
.cd-trang input:not([type="checkbox"]), .cd-trang select, .cd-trang textarea { min-height: 44px; border-radius: 12px; background: var(--ds-o);
  border: 1px solid var(--line-strong); box-shadow: inset 0 1px 2px rgba(0,0,0,.28); color: var(--text); transition: border-color .16s, box-shadow .16s; }
[data-theme="light"] .cd-trang input:not([type="checkbox"]), [data-theme="light"] .cd-trang select, [data-theme="light"] .cd-trang textarea {
  background: #fff; box-shadow: inset 0 1px 2px rgba(20,26,36,.07); }
.cd-trang textarea { padding: 10px 12px; resize: vertical; line-height: 1.5; }
.cd-trang select { padding-right: 32px; cursor: pointer; }
/* Chrome mới (customizable select): hộp xổ của trang Cài đặt cùng kiểu thẻ — nền đen xám đặc, bo 12, dòng rê chuột
   sáng nhẹ, dòng đang chọn vàng. Trình duyệt cũ / iPhone giữ hộp chọn gốc (đã có nền đặc ở luật option chung). */
@supports (appearance: base-select) {
  .cd-trang select, .cd-trang select::picker(select) { appearance: base-select; }
  .cd-trang select { display: inline-flex; align-items: center; gap: 10px; padding-right: 12px; }
  .cd-trang select::picker-icon { color: var(--muted); transition: rotate .16s; }
  .cd-trang select:open::picker-icon { rotate: 180deg; }
  .cd-trang select::picker(select) { margin-top: 6px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px;
    background: var(--card-dac); color: var(--text); box-shadow: var(--bong-noi); }
  .cd-trang select option { min-height: 38px; padding: 0 12px; border-radius: 8px; background: transparent; gap: 10px; cursor: pointer; }
  .cd-trang select option:hover, .cd-trang select option:focus-visible { background: var(--ds-o-2); outline: none; }
  .cd-trang select option:checked { background: color-mix(in srgb, var(--g-300) 16%, transparent); color: var(--g-200); font-weight: 600; }
  [data-theme="light"] .cd-trang select option:checked { color: var(--vang-sang); }
  .cd-trang select option::checkmark { color: var(--g-300); }
}
.cd-trang input:not([type="checkbox"]):focus, .cd-trang select:focus, .cd-trang textarea:focus { outline: none; border-color: var(--g-400);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-400) 24%, transparent); }
.cd-o-dv { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cd-o-dv input { width: 132px; flex: none; font-variant-numeric: tabular-nums; }
.cd-o-dv input[type="time"] { width: 150px; }
.cd-o-dv > span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cd-khoang { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.cd-khoang > span:not(.cd-o-dv) { white-space: nowrap; }
.cd-khoang-phu { font-size: 13px; color: var(--muted); }
.cd-mui { color: var(--faint); font-weight: 700; }
.cd-luoi-so { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; width: 100%; }
.cd-o-so { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cd-o-ten { font-size: 12px; font-weight: 600; color: var(--chu-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-o-so .cd-o-dv input { flex: 1; width: auto; min-width: 0; }

/* công tắc: checkbox thật, appearance none, vẽ rãnh + núm bằng nền (chạy cả Firefox); bật = xanh như .cong-tac */
.cd-tich { grid-template-columns: minmax(0, 1fr) auto; cursor: pointer; }
.cd-tich:hover { background: var(--ds-o); }
.cd-tich input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; width: 48px; height: 28px; min-height: 0; margin: 0; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; justify-self: end;
  background: radial-gradient(circle closest-side, #f4f4f6 0 93%, transparent 100%) 3px 50% / 22px 22px no-repeat, var(--ds-o-2);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.45); transition: background-position .2s ease, background-color .2s, border-color .2s; }
.cd-tich input[type="checkbox"]:checked { border-color: color-mix(in srgb, var(--dat) 70%, transparent);
  background: radial-gradient(circle closest-side, #fff 0 93%, transparent 100%) 21px 50% / 22px 22px no-repeat,
    linear-gradient(180deg, color-mix(in srgb, var(--dat) 80%, #fff), var(--dat)); box-shadow: inset 0 1px 2px rgba(0,0,0,.2), 0 4px 12px -6px var(--dat); }
[data-theme="light"] .cd-tich input[type="checkbox"]:not(:checked) { background: radial-gradient(circle closest-side, #fff 0 93%, transparent 100%) 3px 50% / 22px 22px no-repeat, #dcd9d2;
  box-shadow: inset 0 1px 2px rgba(20,26,36,.18); }
.cd-tich input[type="checkbox"]:focus-visible { outline: 2px solid var(--g-400); outline-offset: 2px; }
.cd-tich input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .5; }
@media (prefers-reduced-motion: reduce) { .cd-tich input[type="checkbox"] { transition: none; } }

/* chân thẻ: ghi chú mờ trái · Lưu phải */
.cd-chan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 22px; margin-top: auto;
  border-top: 1px dashed var(--line-strong); background: var(--ds-o); }
.cd-chan > span { min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.cd-chan .nut { min-width: 116px; }
.cd-chan .nut .ic { stroke-width: 2.6; }

/* thẻ "Cách em chạy" (cột phụ): bước đánh số vàng + gạch đầu dòng mờ */
.khoi.cd-ghi { padding: 18px 22px 20px; background: linear-gradient(180deg, var(--ds-o), transparent 120px), var(--card); }
.cd-ghi .cd-the-dau { padding: 0 0 14px; align-items: flex-start; }
.cd-buoc { counter-reset: buoc; list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.cd-buoc li { counter-increment: buoc; position: relative; padding-left: 38px; min-height: 24px; font-size: 13.5px; line-height: 1.5; color: var(--chu-2); }
.cd-buoc li::before { content: counter(buoc); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 24px; border-radius: 8px;
  font-size: 12px; font-weight: 800; color: #1A1206; background: linear-gradient(180deg, var(--g-200), var(--g-400));
  box-shadow: inset 0 1px rgba(255,255,255,.55), 0 2px 6px -2px rgba(217,154,43,.6); }
.cd-ghi-ds { padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 13px; line-height: 1.55; color: var(--muted); }
.cd-buoc:last-child { margin-bottom: 0; }

/* đầu khối trong tab (Máy, Nhân viên, Nhật ký): huy hiệu nhỏ + tiêu đề + câu mờ */
.cd-tieu { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; min-width: 0; margin-bottom: 14px; }
.cd-tieu > div { min-width: 0; }
.cd-tieu b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.cd-tieu p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Nick Claude: form thêm nick ở cột phụ (hàng xếp dọc), mã lệnh vàng */
.cd-them-nick .cd-hang, .cd-them-tk .cd-hang { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 22px; }
.cd-them-nick .cd-o input, .cd-them-tk .cd-o input { width: 100%; }
.cd-goi-y { margin: 0; padding: 12px 22px 16px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.cd-goi-y code { padding: 1px 6px; border-radius: 6px; font: 600 12px "JetBrains Mono", monospace; color: var(--ds-vang-chu); background: var(--ds-o-2);
  overflow-wrap: anywhere; }
.cd-them-nick .cd-chan .nut, .cd-them-tk .cd-chan .nut { flex: 1 0 auto; }
.cd-ds-nick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.cd-nick { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 20px; border-radius: 16px;
  background: var(--ds-the); border: 1px solid var(--line); box-shadow: var(--ds-noi); transition: border-color .2s; }
.cd-nick:hover { border-color: var(--line-strong); }
.cd-nick.t-dung { border-color: color-mix(in srgb, var(--dat) 32%, var(--line)); box-shadow: inset 3px 0 0 var(--dat), var(--ds-noi); }
.cd-nick.t-limit { border-color: var(--vien-vang); box-shadow: inset 3px 0 0 var(--vang), var(--ds-noi); }
.cd-nick.t-loi { border-color: var(--vien-loi); box-shadow: inset 3px 0 0 var(--loi), var(--ds-noi); }
.cd-nick-dau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cd-nick-ten { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.cd-nick-ten b { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; color: var(--text); overflow-wrap: anywhere; }
.cd-nick-ten .ic { width: 18px; height: 18px; color: var(--hs-hinh); }
.cd-cac-do { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cd-muc { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--ds-o); border: 1px solid var(--line); }
.cd-muc-dau { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cd-muc-dau b { font-size: 21px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--text); }
.cd-muc .thanh { margin: 0; }
.cd-muc small { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-loi { padding: 10px 14px; border-radius: 12px; border-left: 3px solid var(--loi); background: color-mix(in srgb, var(--loi) 8%, transparent);
  font-size: 13px; line-height: 1.5; color: var(--chu-2); overflow-wrap: anywhere; }
.cd-loi span { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--loi-sang); }
.cd-nick-chan { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.cd-nick-han { font-size: 12px; color: var(--faint); }
.cd-nick-dang { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; font-size: 13px; font-weight: 600; color: var(--dat); }
.cd-nick-dang .ic { width: 16px; height: 16px; }
.cd-nick-han:empty { display: none; }
.cd-nick .nut-hang, .cd-tk .nut-hang, #cd-studio .nut-hang { margin-left: 0; }  /* #cd-studio: số Studio API, Plan tuần */
/* #cd-studio (Plan tuần › Số Studio): lịch báo cáo = ô thứ + ô giờ gọn một dòng; nút ở chân thẻ như các thẻ khác;
   ghi chú kết nối thẳng lề với hàng (padding như .cd-hang) */
.cd-bc-lich { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cd-bc-lich select { width: 160px; min-width: 0; }
#cd-studio .cd-chan .nut-hang { margin-left: auto; }
.cd-ghi-hang { display: flex; flex-direction: column; gap: 8px; padding: 14px 22px; }
.cd-ghi-hang + .cd-ghi-hang, .cd-hang + .cd-ghi-hang { padding-top: 4px; }
.cd-ghi-hang .cd-giai { display: flex; gap: 8px; align-items: flex-start; }
.cd-ghi-hang .cd-giai .ic { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.cd-nick .nut-ma, .cd-nick .nut-nguy, .cd-tk .nut-ma { min-height: 36px; padding: 0 14px; font-size: 13.5px; }  /* nút nhỏ chung 36 px */
.cd-nick .nut-nguy .ic { width: 16px; height: 16px; }
.cd-nick .nut-nguy { margin-left: auto; }

/* Máy & công cụ: lưới thẻ công cụ, chân thẻ là nút lệnh */
.cd-may-luc { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; color: var(--muted);
  background: var(--ds-o); border: 1px solid var(--line); white-space: nowrap; }
.cd-may-luc .ic { width: 14px; height: 14px; }
.cd-may-luc:has(> span:empty) { display: none; }
.cd-may { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.cd-cc { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ds-the-2), var(--ds-the)), var(--card); box-shadow: var(--ds-bong); }
.cd-cc::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.cd-cc.t-can { border-color: var(--vien-loi); box-shadow: inset 3px 0 0 var(--loi), var(--ds-bong); }
.cd-cc-dau { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cd-cc-ten { flex: 1; min-width: 0; }
.cd-cc-ten b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.cd-cc-ten small { display: block; font-size: 12px; color: var(--faint); }
.cd-cc-than { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cd-cc-ds { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cd-cc-ds li { position: relative; padding-left: 15px; font-size: 13px; line-height: 1.5; color: var(--chu-2); overflow-wrap: anywhere; }
.cd-cc-ds li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--hs-hinh); }
.cd-cc-ds b { color: var(--text); }
.cd-cc-ds .chip-nho { height: 20px; padding: 0 7px; font-size: 11px; vertical-align: 1px; }
.cd-cc-phu { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.cd-chu-loi { color: var(--loi-sang); }
.cd-cc-so { display: flex; align-items: baseline; gap: 8px; }
.cd-cc-so b { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; color: var(--text); }
.cd-cc-so span { font-size: 12.5px; color: var(--muted); }
.cd-cc-ct { display: flex; flex-direction: column; gap: 4px; padding: 4px 14px; border-radius: 12px; background: var(--ds-o); border: 1px solid var(--line); }
.cd-cc-ct .cd-cc-phu { padding-bottom: 8px; }
.cd-cc-chan { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.cd-cc-chan .nut, .cd-cc-chan .nut-ma { min-height: 36px; padding: 0 14px; font-size: 13.5px; }  /* nút nhỏ chung 36 px (đợt 8) */
.cd-cc-chan .nut .ic { width: 16px; height: 16px; }
.nut-ma.dang-gui::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: quay .8s linear infinite; }
.khoi.cd-lenh { grid-column: 1 / -1; padding: 18px 22px; }
.cd-lenh .cd-the-dau { padding: 0 0 14px; }
.cd-lenh ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px 12px; }
.cd-lenh li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 14px; border-radius: 12px;
  background: var(--ds-o); border: 1px solid var(--line); }
.cd-lenh li > span { min-width: 0; }
.cd-lenh li b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.cd-lenh li small { font-size: 11.5px; color: var(--faint); }

/* Nhân viên: thẻ tài khoản (chữ cái đầu trong đĩa, chip quyền, chat id + nút ở chân) */
.cd-ds-tk { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.cd-tk { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 20px; border-radius: 16px; background: var(--ds-the); border: 1px solid var(--line);
  box-shadow: var(--ds-noi); }
.cd-tk.t-khoa { box-shadow: inset 3px 0 0 var(--loi), var(--ds-noi); }
.cd-tk-dau { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cd-tk-av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; font-weight: 800; text-transform: uppercase;
  color: var(--hs-hinh); background: var(--hs-trong); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hs-hinh) 35%, transparent), var(--hs-nho-bong); }
.cd-tk.t-sep .cd-tk-av { color: #1A1206; background: linear-gradient(180deg, var(--g-200), var(--g-400)); box-shadow: inset 0 1px rgba(255,255,255,.55), 0 4px 10px -4px rgba(217,154,43,.6); }
.cd-tk-ten { flex: 1; min-width: 0; }
.cd-tk-ten b { display: block; font-size: 15.5px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.cd-tk-ten small { font-size: 12.5px; color: var(--faint); }
.cd-tk-nhom { display: flex; flex-direction: column; gap: 8px; }
.cd-tk-nhan { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cd-tk-quyen { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-tk-quyen .chip { min-height: 32px; padding: 4px 12px 4px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--chu-2); background: var(--ds-o);
  border-color: var(--line); transition: background-color .16s, border-color .16s, color .16s; }
.cd-tk-quyen .chip:has(input:checked) { color: var(--text); border-color: color-mix(in srgb, var(--dat) 45%, transparent); background: color-mix(in srgb, var(--dat) 10%, transparent); }
.cd-tk-quyen .chip:has(input:disabled) { cursor: default; }
.cd-tk-quyen .chip input { accent-color: var(--dat); width: 15px; height: 15px; }
.cd-tk-chan { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.cd-tk-tg { display: flex; flex-direction: column; gap: 5px; flex: 1 1 170px; min-width: 0; max-width: 240px; }
.cd-tk-tg span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cd-tk-tg input { width: 100%; min-height: 38px !important; }

/* Nhật ký: bảng gọn trong khối (dùng .pm-bang chung của Vận hành), cột đối tượng mờ */
.cd-nk .bang td { font-size: 13px; }
.cd-nk .bang th:nth-child(1) { width: 130px; } .cd-nk .bang th:nth-child(2) { width: 22%; } .cd-nk .bang th:nth-child(3) { width: 30%; }
.cd-nk .cd-nk-luc { white-space: nowrap; color: var(--muted); }
.cd-nk .cd-nk-dt { color: var(--muted); overflow-wrap: anywhere; }

@container trang (max-width: 720px) {
  .cd-hang, .cd-chan, .cd-goi-y { padding-left: 16px; padding-right: 16px; }
  .cd-the-dau { padding: 16px 16px 14px; }
  .khoi.cd-ghi, .khoi.cd-lenh { padding: 16px; }
  .cd-nick, .cd-cc, .cd-tk { padding: 16px; }
}
@container trang (max-width: 560px) {
  .cd-dau { gap: 12px; }
  .cd-dau > .huy { width: 46px; height: 46px; }
  .cd-dau h1 { font-size: 22px; }
  .cd-hang:not(.cd-tich) { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cd-hang-chon .cd-nhan, .cd-hang-rong .cd-nhan { padding-top: 0; }
  .cd-o-dv input { width: 120px; }
  .cd-o-dv input[type="time"] { width: 138px; }
  .cd-luoi-so { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cd-chan .nut { flex: 1 0 auto; }
  .cd-tieu { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .cd-tieu > .cd-may-luc { grid-column: 2; justify-self: start; margin-left: 0; }
  .cd-cac-do { gap: 8px; }
  .cd-muc { padding: 10px 12px; }
  .cd-tk-tg { max-width: none; }
}
@container trang (max-width: 640px) {  /* Nhật ký (200 dòng): thẻ gọn 2–3 dòng — "giờ · ai" / thao tác đậm / đối tượng mờ, bỏ nhãn cột */
  .cd-nk .bang-the tr:not(.pm-trong) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 3px 10px; padding: 10px 14px; margin-bottom: 8px; }
  .cd-nk .bang-the tr:not(.pm-trong) td { width: auto; min-height: 0; padding: 0; border: 0; }
  .cd-nk .bang-the tr:not(.pm-trong) td::before { display: none; }
  .cd-nk .bang-the td.cd-nk-luc { font-size: 12px; }
  .cd-nk .bang-the td:nth-child(3), .cd-nk .bang-the td.cd-nk-dt { grid-column: 1 / -1; }
  .cd-nk .bang-the td:nth-child(3) { font-weight: 600; color: var(--text); }
  .cd-nk .bang-the td.cd-nk-dt { font-size: 12.5px; }
  .cd-nk .bang-the td.cd-nk-dt:empty { display: none; }
}

/* ---- Đăng nhập (trang riêng, không base.html): một thẻ giữa màn hình kiểu hero vàng */
.dang-nhap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(60% 50% at 50% 0%, rgba(234,169,68,.10), transparent 70%), var(--bg); }
[data-theme="light"] .dang-nhap { background: radial-gradient(60% 50% at 50% 0%, rgba(234,169,68,.14), transparent 70%), var(--bg); }
.dn-the { position: relative; isolation: isolate; overflow: hidden; width: min(400px, 100%); display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  padding: 34px 30px 28px; border-radius: 24px; color: var(--hs-chu); border: 1px solid var(--hs-vien); background: var(--hs-nen); box-shadow: var(--hs-bong); }
.dn-the::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(118deg, var(--hs-van) 0 1px, transparent 1px 12px);
  -webkit-mask-image: linear-gradient(160deg, transparent 20%, #000 90%); mask-image: linear-gradient(160deg, transparent 20%, #000 90%); }
.dn-the::after { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--hs-sang), transparent); }
.dn-huy { align-self: center; width: 76px; height: 76px; }
.dn-huy img { width: 54%; height: 54%; border-radius: 10px; filter: drop-shadow(0 2px 6px rgba(217,154,43,.45)); }
.dn-dau { margin-bottom: 4px; text-align: center; }
.dn-nhan { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hs-nhan); }
.dn-the h1 { margin: 4px 0 4px; font-size: 26px; letter-spacing: -.03em; color: inherit; }
.dn-dau p { margin: 0; font-size: 13.5px; color: var(--hs-phu); }
.dn-o { position: relative; display: block; }
.dn-o .ic { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--hs-phu); pointer-events: none; }
.dn-o input { width: 100%; min-height: 50px; padding: 0 14px 0 44px; border-radius: 14px; font-size: 15px; color: var(--hs-chu); background: var(--ds-o-hero);
  border: 1px solid var(--ds-o-hero-vien); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); transition: border-color .16s, box-shadow .16s; }
[data-theme="light"] .dn-o input { box-shadow: inset 0 1px 2px rgba(143,92,22,.1); }
.dn-o input::placeholder { color: var(--hs-phu); opacity: .8; }
.dn-o input:focus { outline: none; border-color: var(--g-400); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-400) 26%, transparent); }
.dn-the .nhan.loi { justify-content: center; white-space: normal; padding: 8px 14px; border-radius: 12px; font-size: 13px; line-height: 1.4; text-align: center;
  border: 1px solid var(--vien-loi); }
.dn-the .nhan.loi::before { flex: none; }
.dn-the .nut { width: 100%; min-height: 50px; margin-top: 4px; font-size: 15.5px; }
@media (max-width: 420px) { .dn-the { padding: 28px 20px 22px; border-radius: 20px; } .dn-o input { font-size: 16px; } }
/* ================================================================ hết Cài đặt + Đăng nhập (đợt 7) */

/* ---------- Ban điều hành: Họp với Giám đốc (chat) + Trọng tâm tuần */
.hop-tin { display: flex; flex-direction: column; gap: 16px; margin: 12px 0; max-height: 460px; min-height: 120px; overflow-y: auto;
  overscroll-behavior: contain; padding: 4px 6px 4px 0; }
.hop-tin .pt-tin-sep { align-self: flex-end; max-width: 88%; }
.hop-tin .pt-tin-than { overflow-wrap: anywhere; }
.hop-tin .pt-tin-than h3, .hop-tin .pt-tin-than h4, .hop-tin .pt-tin-than h5 { margin: 8px 0 4px; font-size: 14px; }
.hop-tin .pt-tin-than p, .hop-tin .pt-tin-than ul { margin: 4px 0; }
.hop-tin .pt-tin-than ul { padding-left: 18px; }
.hop-trong { margin: auto; padding: 18px 8px; text-align: center; color: var(--chu-phu); font-size: 13.5px; }
.tt-the { margin-bottom: 14px; }
.tt-the [hidden] { display: none !important; }  /* .nut đặt display riêng nên thuộc tính hidden không đủ */
@media (max-width: 640px) { .hop-tin { max-height: 55vh; } .hop-tin .pt-tin-sep { max-width: 94%; } }

/* ==================== Ban điều hành (sếp 07/11: 2 tab Giám đốc / Kỹ thuật, bàn làm việc "xịn") — chỉ lớp .bdh / .bdh-*.
   Đã rút lên bộ giao diện chung (bí danh trong selector chung): hero, huy hiệu, ô số, tab đoạn, bộ lọc, lưới 2 cột, khối,
   thẻ việc (khung + đầu thẻ + t-cho_duyet), chip, số thứ tự, ô trống, nút.
   Đợt 8 gộp thêm (giống hệt từng khai báo nên chỉ thêm bí danh vào selector chung, Ban điều hành không đổi điểm ảnh nào):
   .bdh-khoi-dau / .bdh-khoi-tieu (→ .dau-khoi / .tieu-muc), .bdh-dx-hang / -nhan / -noi (→ .hang-nhan), .bdh-dx-chan
   (→ .the-viec .chan-the), .bdh-hop / .bdh-hop-dau (→ .khung-chat / .khung-chat-dau), .bdh-soan* (→ .khung-chat-soan*),
   .bdh .hop-tin .pt-bong / .pt-tin-em (→ .khung-chat-tin). Các luật co giãn riêng của chúng (@container bdh) vẫn ở khối này.
   CỐ Ý CÒN RIÊNG vì khác giá trị (gộp là Ban điều hành đổi): .bdh-nhan (không có đĩa/gap như .nhan-muc), .bdh .hop-tin .pt-tin-sep
   (không align-self), .pt-tin-than (không overflow-wrap), .pt-sao (màu --ds-huy-* cố định, chung theo sắc --hs-*), .bdh-buoc
   (chấm vuông, ≠ .ds-gon), .bdh-bang (≤ 640 container riêng), .bdh .tt-the.bdh-o-tt (thêm margin 0). Sửa bên chung thì soát lại
   bên này (và ngược lại). */
.bdh { container: bdh trang / inline-size; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bdh [hidden] { display: none !important; }
.bdh-dau .phu { max-width: 52rem; }
.bdh h2, .bdh h3 { text-transform: none; letter-spacing: -.02em; }
.bdh .nut .ic, .bdh .nut-dat .ic { width: 18px; height: 18px; stroke-width: 2.4; }

/* ---- tab đoạn (segmented) */
#tab-giam-doc[aria-selected="true"] { color: var(--ds-vang-chu); }
#tab-ky-thuat[aria-selected="true"] { color: var(--ds-kt-chu); }
.bdh-pane { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (prefers-reduced-motion: no-preference) { .bdh-pane:not([hidden]) { animation: hien .35s cubic-bezier(.2,.8,.2,1) both; } }

/* ---- hero: nền nhiều lớp (vàng ấm / xanh lạnh), huy hiệu vòng gradient */
/* hero Kỹ thuật: sắc xanh lạnh riêng của Ban điều hành (hero + huy hiệu dùng luật chung .hero / .huy ở bộ giao diện chung) */
.bdh-hero-kt { --hs-nen: var(--ds-kt-hero); --hs-vien: var(--ds-kt-vien); --hs-bong: var(--ds-kt-hero-bong); --hs-nhan: var(--ds-kt-chu);
  --hs-sang: var(--ds-kt-sang); --hs-vong: conic-gradient(from 200deg, #CCFBF1, #2DD4BF, #0F766E, #5EEAD4, #CCFBF1);
  --hs-vong-bong: 0 12px 30px -10px rgba(45,212,191,.55), 0 0 0 6px rgba(45,212,191,.06); --hs-trong: var(--ds-kt-huy-trong);
  --hs-hinh: var(--ds-kt); --hs-hinh-bong: rgba(45,212,191,.4); }
.bdh-hero-kt .bdh-huy svg { fill: none; stroke: var(--ds-kt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 4px rgba(45,212,191,.4)); }
.bdh h2.bdh-hero-tieu { margin: 4px 0 10px; font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: inherit; }
.bdh-luat { display: flex; flex-wrap: wrap; gap: 8px; }
.bdh-luat span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--ds-kt-chu); background: var(--ds-kt-nen); border: 1px solid var(--ds-kt-vien); }
.bdh-luat span::before { content: "\2713"; font-weight: 800; }

/* ---- ô số (KPI) */
.bdh-tom { margin-top: -6px; }
.bdh-kt-so { display: grid; grid-template-columns: repeat(3, minmax(96px, 1fr)); gap: 10px; }

/* ---- khung chính: trái 2fr (Đề xuất, Báo cáo) · phải 1fr (Trọng tâm, Họp); hẹp = một cột theo thứ tự sếp chốt */
.bdh-o-dx { order: 1; } .bdh-o-tt { order: 2; } .bdh-o-bc { order: 3; } .bdh-o-hop { order: 4; }
.bdh-nhan { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ds-vang-chu); }
#bdh-kt .bdh-nhan { color: var(--ds-kt-chu); }
.bdh-dich { animation: dl-nhay 1.2s ease-out 2; }

/* ---- đề xuất */
.bdh-ds-dx { display: flex; flex-direction: column; gap: 12px; }
.bdh-nhom-cho { color: var(--ds-vang-chu); }
.bdh-dx.t-da_lam, .bdh-dx.t-bo, .bdh-dx.t-that_bai { background: transparent; }
.bdh-dx.t-bo .bdh-the-tieu { color: var(--muted); }
.bdh-the-tt { margin-left: auto; }
.bdh h3.bdh-the-tieu { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.38; letter-spacing: -.015em; color: var(--text);
  overflow-wrap: anywhere; text-wrap: pretty; }
/* ---- thẻ đề xuất: TÓM TẮT 3 hàng (nhãn có icon | nội dung) + dải Lợi ích + chân Đo / nút; bản đầy đủ mở riêng */
.bdh-dx-than { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bdh-dx-tom { display: grid; gap: 10px; }
.bdh-h-rui_ro .bdh-dx-nhan .ic { color: var(--loi-mo); }
.bdh-buoc { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.bdh-buoc li { position: relative; padding-left: 17px; }
.bdh-buoc li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 6px; height: 6px; border-radius: 1.5px; background: var(--g-400);
  transform: rotate(45deg); }
.bdh-them { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--faint); }
.bdh-rr { display: inline-flex; align-items: center; height: 21px; margin-right: 8px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
  vertical-align: 1px; border: 1px solid; white-space: nowrap; }
.bdh-rr-thap { color: var(--dat); background: color-mix(in srgb, var(--dat) 12%, transparent); border-color: color-mix(in srgb, var(--dat) 34%, transparent); }
.bdh-rr-trung_binh { color: var(--vang); background: color-mix(in srgb, var(--g-400) 14%, transparent); border-color: color-mix(in srgb, var(--g-400) 40%, transparent); }
.bdh-rr-cao { color: var(--loi-sang); background: color-mix(in srgb, var(--loi) 13%, transparent); border-color: var(--vien-loi); }
.bdh-li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
.bdh-li-nhan { padding-top: 9px; font-size: 12px; font-weight: 700; color: var(--muted); }
.bdh-li-noi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.bdh-li-o { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 7px 12px; border-radius: 10px; background: var(--ds-the-2);
  border: 1px solid var(--line-strong); box-shadow: var(--ds-noi); white-space: nowrap; }
.bdh-li-o b { font-size: 15.5px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--dat); }
.bdh-li-o span { font-size: 12px; color: var(--muted); }
.bdh-li-o.am b { color: var(--loi-sang); }
.bdh-li-chu { flex: 1 1 260px; display: block; min-height: 36px; margin: 0; padding: 7px 12px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.45; color: var(--chu-2); background: var(--ds-vang-nen); border: 1px solid var(--ds-vien-vang); overflow-wrap: anywhere; }
.bdh-li-chu::before { content: "\2726"; margin-right: 8px; font-size: 11px; color: var(--ds-vang-chu); }
.bdh-li-chu b { color: var(--ds-vang-chu); font-weight: 700; }
.bdh-dx-chan-trai { display: grid; justify-items: start; gap: 6px; flex: 1 1 300px; min-width: 0; }
.bdh-do { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bdh-do-nhan { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.bdh-do-ten { font-weight: 600; color: var(--chu-2); }
.bdh-do-so { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.bdh-do-so b { font: 700 13px "JetBrains Mono", monospace; color: var(--text); }
.bdh-do-so b.dich { color: var(--vang); }
.bdh-do-khoa { padding: 1px 6px; border-radius: 5px; font: 500 10.5px "JetBrains Mono", monospace; color: var(--faint); background: var(--ds-o);
  border: 1px solid var(--line); overflow-wrap: anywhere; }
.bdh-kq { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.bdh-kq.dat { color: var(--dat); background: color-mix(in srgb, var(--dat) 12%, transparent); }
.bdh-kq.chua { color: var(--vang); background: color-mix(in srgb, var(--g-400) 14%, transparent); }
.bdh-xem-day { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  color: var(--ds-vang-chu); font: 600 13px "Be Vietnam Pro", sans-serif; }
.bdh-xem-day:hover { text-decoration: underline; text-underline-offset: 3px; }
.bdh-mui { width: 16px; height: 16px; transition: transform .2s; }
[aria-expanded="true"] > .bdh-mui { transform: rotate(180deg); }
.bdh-xem-day:focus-visible, .bdh-dx-mo:focus-visible { outline: 2px solid var(--g-400); outline-offset: 3px; border-radius: 6px; }
.bdh-nut-hang { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.bdh-nut-hang .nut { min-height: 42px; padding: 0 18px; }
.bdh-nut-hang .nut.nut-dat, .bdh-nut-hang .nut-ma { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
/* bản đầy đủ: nhãn trái | chữ dễ đọc (tối đa 72 ký tự/dòng), liệt kê thành danh sách, token code in mono mờ */
.bdh-dd { display: grid; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--ds-o); border: 1px solid var(--line); }
.bdh-dd-muc { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 12px; }
.bdh-dd-muc + .bdh-dd-muc { padding-top: 14px; border-top: 1px solid var(--line); }
.bdh .bdh-dd h4 { margin: 0; padding-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-vang-chu); }
.bdh-dd-noi { max-width: 72ch; min-width: 0; font-size: 14px; line-height: 1.7; color: var(--chu-2); overflow-wrap: anywhere; }
.bdh-dd-noi p { margin: 0 0 8px; }
.bdh-dd-noi > :last-child { margin-bottom: 0; }
.bdh-dd-noi ol, .bdh-dd-noi ul { display: grid; gap: 5px; margin: 0 0 8px; padding-left: 22px; }
.bdh-dd-noi li { padding-left: 2px; }
.bdh-dd-noi li::marker { color: var(--g-400); font-weight: 700; }
[data-theme="light"] .bdh-dd-noi li::marker { color: var(--g-600); }
.bdh-dd-noi b { color: var(--text); }
.bdh-dd-noi code { padding: 0 5px; border-radius: 5px; font: 500 12.5px "JetBrains Mono", monospace; color: var(--muted); background: var(--ds-o-2); }
/* thẻ đã xong / không làm được: gọn một dòng kết quả, bấm tiêu đề để mở */
.bdh-dx.gon { gap: 8px; }
.bdh-dx-mo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; width: 100%; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.bdh-dx-mo .bdh-mui { margin-top: 3px; color: var(--muted); }
.bdh-dx-mo:hover .bdh-mui { color: var(--ds-vang-chu); }
.bdh-dx-kq { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bdh-dx-kq b { font: 700 12.5px "JetBrains Mono", monospace; color: var(--text); }
.bdh-cham { color: var(--faint); }
@container bdh (max-width: 560px) {
  .bdh-dx-hang, .bdh-dd-muc { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .bdh-dx-nhan { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
  .bdh-li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bdh-li-nhan { padding-top: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
  .bdh-li-chu { flex-basis: 100%; }
  .bdh-li-o { flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; padding: 6px 12px; }
  .bdh-li-o b { font-size: 14.5px; }
  .bdh-li-o span { font-size: 11.5px; }
  .bdh-dd { padding: 14px; }
}

/* ---- báo cáo tuần: thẻ văn bản */
.bdh-chon-tuan { display: flex; align-items: center; gap: 8px; }
.bdh-chon-tuan .o-nhap { flex: none; min-height: 40px; padding: 0 12px; border-radius: 12px; font: 600 13px "JetBrains Mono", monospace; cursor: pointer; }
.bdh-van-ban { padding-bottom: 28px; }
.bdh-md { max-width: 74ch; font-size: 14.5px; line-height: 1.72; color: var(--chu-2); overflow-wrap: anywhere; }
.bdh-md h3 { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.25; color: var(--text); }
.bdh-md h4 { display: flex; align-items: center; gap: 10px; margin: 24px 0 8px; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.bdh-md h4::before { content: ""; flex: none; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--g-200), var(--g-500)); }
.bdh-md h5 { margin: 18px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bdh-md p { margin: 8px 0; }
.bdh-md ul { margin: 8px 0; padding-left: 22px; }
.bdh-md li { margin: 5px 0; padding-left: 4px; }
.bdh-md li::marker { color: var(--g-400); }
[data-theme="light"] .bdh-md li::marker { color: var(--g-600); }
.bdh-md b { color: var(--text); font-weight: 700; }

/* ---- trọng tâm tuần: thẻ nhấn vàng */
.bdh .tt-the.bdh-o-tt { margin: 0; position: relative; overflow: hidden; border-color: var(--ds-vien-vang);
  background: linear-gradient(100deg, var(--ds-vang-nen), transparent 60%), var(--card);
  box-shadow: inset 3px 0 0 var(--g-400), var(--ds-bong), -12px 0 32px -20px rgba(234,169,68,.7); }
[data-theme="light"] .bdh .tt-the.bdh-o-tt { box-shadow: inset 3px 0 0 var(--g-500), var(--ds-bong); }
.bdh-o-tt .bdh-khoi-dau { margin-bottom: 10px; align-items: flex-start; flex-wrap: nowrap; }
.bdh-o-tt #tt-ai { margin-top: 3px; }
.bdh-tt-nut { display: flex; gap: 8px; }
.bdh-tt-nut .nut-ma { min-height: 36px; padding: 0 14px; font-size: 13px; }
.bdh-tt-nd { font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--chu-2); overflow-wrap: anywhere; }
.bdh-tt-nd p { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; line-height: 1.4; color: var(--text); }
.bdh-tt-nd p b { color: var(--g-200); } [data-theme="light"] .bdh-tt-nd p b { color: var(--vang-sang); }
.bdh-tt-nd ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.bdh-tt-nd li { position: relative; padding-left: 16px; }
.bdh-tt-nd li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--g-400); }
.bdh-tt-nd li b { color: var(--text); font-weight: 700; }
.bdh-tt-nd h3, .bdh-tt-nd h4, .bdh-tt-nd h5 { margin: 0 0 6px; font-size: 15.5px; }
.bdh-tt-nd.rong { font-size: 13.5px; font-weight: 500; color: var(--muted); }
#tt-form textarea { width: 100%; }
.bdh-tt-hang { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.bdh-tt-hang .nut { min-height: 40px; }
.bdh-tt-hang #tt-dem { margin-left: auto; }

/* ---- họp với Giám đốc: khung chat, ô soạn dính đáy khung */
.bdh .hop-tin { flex: 1; min-height: 0; max-height: none; margin: 0; padding: 18px 16px 18px 18px; gap: 16px; }
.bdh .hop-tin .pt-tin-sep { max-width: 86%; }
.bdh .hop-tin .pt-tin-em:not(.pt-dang) .pt-tin-than { flex: 0 1 auto; max-width: calc(100% - 38px); padding: 10px 14px; border-radius: 6px 18px 18px 18px;
  background: var(--ds-the-2); border: 1px solid var(--line); box-shadow: var(--ds-noi); font-size: 13.5px; line-height: 1.6; }
.bdh .hop-tin .pt-sao { width: 28px; height: 28px; padding: 6px; margin-top: 0; border-radius: 50%; fill: var(--ds-huy-hinh); background: var(--ds-huy-trong);
  box-shadow: 0 0 0 1.5px var(--ds-vien-vang), 0 4px 10px -4px rgba(217,154,43,.6); }
.bdh .hop-tin .pt-tin-ai { margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--ds-vang-chu); }
.bdh .hop-tin .pt-tin-ai + .pt-tin-meta { margin-top: 0; }
.bdh .hop-tin .pt-tin-than li::marker { color: var(--g-400); }
.bdh-soan-goi { grid-column: 1 / -1; font-size: 11px; color: var(--faint); }

/* ---- kỹ thuật: thẻ lỗi + lịch sử */
.bdh-ds-loi { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.bdh-loi.t-cho_duyet, .bdh-loi.t-tai_phat { border-color: var(--vien-loi); box-shadow: inset 3px 0 0 var(--loi), var(--ds-noi); }
.bdh-loi.t-da_sua { box-shadow: inset 3px 0 0 var(--dat), var(--ds-noi); }
.bdh-loi.t-dang_sua { box-shadow: inset 3px 0 0 var(--ds-kt-dam), var(--ds-noi); }
.bdh-ma { padding: 3px 8px; border-radius: 8px; font: 600 12px "JetBrains Mono", monospace; color: var(--chu-2); background: var(--ds-o-2);
  border: 1px solid var(--line); overflow-wrap: anywhere; }
.bdh-loi-so { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.bdh-loi-so > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 12px; border-radius: 12px; background: var(--ds-o); border: 1px solid var(--line); }
.bdh-loi-so b { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.bdh-loi-so span { font-size: 11px; color: var(--faint); }
.bdh-loi-so .loi b { color: var(--loi-sang); }
.bdh-ghi { padding: 10px 14px; border-radius: 12px; border-left: 3px solid var(--ds-kt-dam); background: var(--ds-kt-nen); font-size: 13.5px; line-height: 1.55;
  color: var(--chu-2); overflow-wrap: anywhere; }
.bdh-ghi span { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-kt-chu); }
.bdh-pv { font-size: 13px; color: var(--chu-2); overflow-wrap: anywhere; }
.bdh-loi .bdh-nut-hang { margin-left: 0; padding-top: 4px; }
.bdh-bang { min-width: 900px; }
.bdh-bang td { font-size: 13px; }
.bdh-bang td .phu.nho { margin-top: 2px; overflow-wrap: anywhere; }
.bdh-td-so { color: var(--chu-2); font-weight: 600; }
.bdh-bang td.mono { white-space: nowrap; }

/* ---- bố cục theo bề rộng vùng nội dung (container) */
@container bdh (min-width: 880px) {
  .bdh-o-hop { position: sticky; top: 80px; height: min(680px, calc(100dvh - 170px)); }  /* chừa chỗ nút Nhắn điều phối nổi ở góc dưới */
}
@container bdh (max-width: 1000px) {
  .bdh-hero-kt { grid-template-columns: auto minmax(0, 1fr); }
  .bdh-hero-kt .bdh-kt-so { grid-column: 1 / -1; }
}
@container bdh (max-width: 720px) {
  .bdh h2.bdh-hero-tieu { font-size: 22px; margin: 2px 0 8px; }
  .bdh-kt-so { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bdh-khoi { padding: 16px; border-radius: 16px; }
  .bdh-khoi-dau { align-items: stretch; flex-direction: column; margin-bottom: 14px; }
  .bdh-loc { align-self: stretch; }
  .bdh-loc-nut { flex: 1 0 auto; justify-content: center; }
  .bdh-nut-hang { margin-left: auto; }
  .bdh-md { font-size: 14px; }
  .bdh-md h3 { font-size: 19px; }
  .bdh-o-tt .bdh-khoi-dau { flex-direction: row; }
  .bdh-hop { border-radius: 16px; }
  .bdh .hop-tin { padding: 14px 12px; }
  .bdh .hop-tin .pt-tin-sep { max-width: 92%; }
  .bdh-soan .o-nhap { font-size: 16px; }  /* iOS không tự phóng to khi chạm ô nhập */
  .bdh-soan-goi { display: none; }
}
@container bdh (max-width: 640px) {  /* lịch sử sửa: bảng thành thẻ xếp dọc */
  .bdh-cuon { overflow: visible; }
  .bdh-bang { min-width: 0; }
  .bdh-bang thead { display: none; }
  .bdh-bang, .bdh-bang tbody, .bdh-bang tr, .bdh-bang td { display: block; width: 100%; }
  .bdh-bang tr { margin-bottom: 10px; padding: 8px 14px; border-radius: 14px; background: var(--ds-the); border: 1px solid var(--line); box-shadow: var(--ds-noi); }
  .bdh-bang tr:last-child { margin-bottom: 0; }
  .bdh-bang td { position: relative; height: auto; padding: 6px 0 6px 104px; border: 0; min-height: 30px; }
  .bdh-bang td + td { border-top: 1px solid var(--line); }
  .bdh-bang td::before { content: attr(data-nhan); position: absolute; left: 0; top: 8px; width: 96px; font: 600 10.5px "Be Vietnam Pro", sans-serif;
    letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
  .bdh-bang .bdh-tr-trong td { padding-left: 0; }
  .bdh-bang .bdh-tr-trong td::before { display: none; }
  .bdh-bang tbody tr:hover td { background: transparent; }
}

/* ================================================================ Gọn trang (sếp 08/11/2026)
   1) Khối thông báo chỉ hiện khi có việc (JS đặt hidden) — [hidden] luôn thắng display của khối (vd [data-gon].mo trên điện thoại).
   2) YouTube + TikTok: số liệu lên hero (không còn dải ô số / thẻ kênh dưới hero). Ban điều hành + Vận hành giữ nguyên trên
      máy tính: mọi luật dưới đây chỉ nhắm .yt-hero / .tt-hero, không đụng các dòng gộp chung với .bdh-hero / .bdh-kpi.
   3) Điện thoại (≤ 767 px, độc lập với máy tính): hero mọi trang gọn để thanh trên + hero + tab ≤ ~1/3 màn hình. */
.khoi[hidden], [data-gon][hidden], .tt-xem-lai[hidden], .hero-nut[hidden] { display: none !important; }
.chi-dt { display: none; }  /* chữ chỉ hiện trên điện thoại (cặp với .an-dt) */

/* ---- TikTok: ô số theo người nằm trong hero, dưới tiêu đề, cạnh vòng tiến độ */
.hero.tt-hero { grid-template-areas: "huy chu vong" "huy so vong"; row-gap: 14px; }
.tt-hero > .huy { grid-area: huy; }
.tt-hero > .hero-chu { grid-area: chu; align-self: end; }
.tt-hero > .tt-so { grid-area: so; align-self: start; }
.tt-hero > .tt-vong { grid-area: vong; }
.tt-hero > .bo-chon { grid-area: auto; grid-column: 1 / -1; }
.tt-hero .hero-tieu { margin-bottom: 10px; }
/* số ô = số người đang hiện (--n do tiktok.js đặt): luôn một hàng, chia đều */
.tt-hero .so-dai.tt-so { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; }
.tt-hero .tt-so .so-o { gap: 5px; padding: 10px 12px 11px; border-radius: 14px; }
.tt-hero .tt-so .so-nhan { font-size: 10.5px; letter-spacing: .05em; }
.tt-hero > .tt-vong { grid-template-columns: auto minmax(130px, 164px); gap: 16px; }
.tt-hero .tt-so .so-lon { font-size: 22px; }
.tt-hero .tt-so .so-lon small { font-size: 12.5px; color: var(--hs-phu); }
.tt-hero .tt-so .so-phu { font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.tt-hero .tt-so .tg-thanh { height: 3px; }
.tt-hero .tg-dong.het .so-lon { color: var(--dat); }
.tt-hero .tt-so button.so-o:hover, .tt-hero .tt-so button.so-o:focus-visible { border-color: var(--hs-vien); }
.tt-so-trong { grid-column: 1 / -1; padding: 2px 0; font-size: 12.5px; color: var(--hs-phu); }
.hero-pill.tt-giao small { margin-left: -6px; font-size: 12px; color: var(--hs-phu); font-variant-numeric: tabular-nums; }
/* hàng tab + nút "Xem lại duyệt lời" (chỉ khi không còn lô chờ) */
.tt-loc-hang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.tt-xem-lai { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.tt-xem-lai .ic { width: 16px; height: 16px; }
@container trang (max-width: 1000px) {
  .hero.tt-hero { grid-template-areas: "huy chu" "huy so" "vong vong"; }
  .tt-hero > .tt-so { grid-column: auto; }
}
/* hero YouTube / TikTok gọn (sếp 08/11: "đưa lên đầu thì thu gọn, đầu trang không to quá"): lề nhỏ, huy hiệu 56, tiêu đề 24,
   vòng TikTok 96 px, mỗi kênh YouTube 1 dòng */
.hero.tt-hero, .hero.yt-hero { gap: 12px 22px; padding: 20px 26px; }
.tt-hero > .huy, .yt-hero > .huy { width: 56px; height: 56px; }
.tt-hero .hero-tieu, .yt-hero .hero-tieu { margin: 2px 0 8px; font-size: 24px; }
.hero.tt-hero { row-gap: 10px; }
.tt-hero > .tt-vong { gap: 14px; padding: 10px 16px 10px 10px; border-radius: 16px; }
.tt-hero .tt-vong-dia { width: 92px; height: 92px; }
.tt-hero .tg-vong { width: 84px; height: 84px; }
.tt-hero .tt-vong-nhan { padding-bottom: 4px; font-size: 10.5px; }
.tt-hero .tt-vong-dong { padding: 6px 0; }
.tt-hero .tt-vong-dong b { font-size: 17px; }
.tt-hero .tt-so .so-o { padding: 8px 12px 9px; gap: 4px; }
.tt-hero .tt-so .so-lon { font-size: 20px; }
.yt-phu:empty { display: none; }  /* chỉ hiện khi báo thiếu số (youtube.js) */
/* (.yt-hero phía trước: thắng các luật YouTube viết sau trong khối này) */
.yt-hero .yt-so { margin: 0; }
.yt-hero .yt-so-muc b { font-size: 20px; }
.yt-hero .yt-kenh-bang { gap: 2px; padding: 10px 12px 6px; border-radius: 16px; width: min(460px, 42vw); }
.yt-hero .yt-kenh-dau { padding-bottom: 4px; }
.yt-hero .yt-kenh-bang .dong-kenh, .yt-hero .yt-kenh-bang .bang-kenh > .dong-kenh:only-child { grid-template-columns: minmax(0, 1fr) 72px auto minmax(64px, auto);
  grid-template-areas: "ten thanh so ghi"; align-items: center; gap: 0 12px; padding: 2px 8px; }
.yt-hero .yt-kenh-bang .dk-thanh { padding-left: 0; }
/* dòng kênh gọn (đặt 13/11 cho 5 kênh; 25/11 còn 3 kênh VN, Nhật 1–2 — giữ dòng gọn): đầu trang giữ ~220 px */
.yt-hero .yt-kenh-bang .dk-ten b { font-size: 13.5px; }
.yt-hero .yt-kenh-bang .dong-kenh { padding-block: 1px; line-height: 1.25; }
.yt-hero .yt-kenh-bang .dk-so { font-size: 14px; }
.yt-hero .yt-kenh-bang { gap: 0; padding-block: 8px 4px; }
.yt-hero .yt-kenh-bang .dk-ten .o-vuong { width: 20px; height: 20px; border-radius: 6px; }
.yt-hero .yt-kenh-bang .dk-ten .o-vuong .ic { width: 12px; height: 12px; }
.yt-hero .yt-kenh-bang .dk-so { font-size: 15px; }
@container trang (max-width: 1000px) {
  .yt-hero .yt-kenh-bang { width: auto; }
  .yt-hero .yt-kenh-bang .dong-kenh, .yt-hero .yt-kenh-bang .bang-kenh > .dong-kenh:only-child { grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "ten so" "thanh ghi"; gap: 4px 10px; }
}

/* ---- YouTube: hàng số tuần trong hero + bảng 3 kênh bên phải (Plan tuần ở đầu bảng) */
.hero.yt-hero { grid-template-areas: "huy chu kenh"; }
.yt-hero > .huy { grid-area: huy; }
.yt-hero > .hero-chu { grid-area: chu; }
.yt-hero > .yt-kenh-bang { grid-area: kenh; }
.yt-hero > .bo-chon { grid-area: auto; grid-column: 1 / -1; }
.yt-so { display: flex; flex-wrap: wrap; align-items: stretch; row-gap: 8px; margin: 2px 0 10px; }
.yt-so:empty { display: none; }
.yt-so-muc { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 0 16px; border-left: 1px solid var(--ds-o-hero-vien); }
.yt-so-muc:first-child { padding-left: 0; border-left: 0; }
.yt-so-muc b { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--hs-chu); }
.yt-so-muc > span { font-size: 11.5px; font-weight: 600; color: var(--hs-phu); white-space: nowrap; }
.yt-so-muc.dat b { color: var(--dat); } .yt-so-muc.san b { color: var(--lam); } .yt-so-muc.vang b { color: var(--vang); } .yt-so-muc.loi b { color: var(--loi-sang); }
.yt-so-muc.loi > span { color: var(--loi-sang); }
.yt-kenh-bang { display: flex; flex-direction: column; gap: 4px; width: min(420px, 38vw); min-width: 300px; padding: 12px 14px 8px; border-radius: 18px;
  background: var(--ds-o-hero); border: 1px solid var(--ds-o-hero-vien); box-shadow: inset 0 1px rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.yt-kenh-dau { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; }
.yt-kenh-dau > span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hs-nhan); white-space: nowrap; }
.yt-hero a.yt-nut-plan { min-height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.yt-hero a.yt-nut-plan .ic { width: 15px; height: 15px; }
.yt-kenh-bang .bang-kenh { display: flex; flex-direction: column; gap: 0; }
.yt-kenh-bang .dong-kenh, .yt-kenh-bang .bang-kenh > .dong-kenh:only-child { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ten so" "thanh ghi";
  gap: 5px 12px; padding: 9px 8px; margin: 0 -8px; border-radius: 12px; background: transparent; border: 0; box-shadow: none;
  border-top: 1px solid var(--ds-o-hero-vien); }
.yt-kenh-bang .dong-kenh:first-child { border-top-color: transparent; }
.yt-kenh-bang .dong-kenh:hover { background: color-mix(in srgb, var(--hs-chu) 6%, transparent); transform: none; }
.yt-kenh-bang .dong-kenh.chon { background: color-mix(in srgb, var(--m) 14%, transparent); box-shadow: inset 3px 0 0 var(--m); }
.yt-kenh-bang .dong-kenh.co-loi::before { display: none; }
.yt-kenh-bang .dk-ten { gap: 9px; }
.yt-kenh-bang .dk-ten b { font-size: 13.5px; color: var(--hs-chu); }
.yt-kenh-bang .dong-kenh:hover .dk-ten b { color: var(--hs-chu); }
.yt-kenh-bang .dk-ten .o-vuong { width: 26px; height: 26px; border-radius: 8px; }
.yt-kenh-bang .dk-ten .o-vuong .ic { width: 14px; height: 14px; }
.yt-kenh-bang .dk-ten .cham-chay { flex: none; margin: 0; }
.yt-kenh-bang .dk-so { font-size: 17px; color: var(--hs-chu); }
.yt-kenh-bang .dk-so small { font-size: 12px; color: var(--hs-phu); }
.yt-kenh-bang .dk-thanh { align-self: center; padding-left: 35px; }
.yt-kenh-bang .dk-thanh .thanh { height: 4px; }
.yt-kenh-bang .dk-ghi { font-size: 11.5px; text-align: right; }
.yt-kenh-trong { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 6px; font-size: 12.5px; color: var(--hs-phu); }
.yt-kenh-trong b { font-size: 13.5px; color: var(--hs-chu); }
.yt-tabs .tab-so { display: none; }
@container trang (max-width: 1000px) {
  .hero.yt-hero { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "huy chu" "kenh kenh"; }
  .yt-kenh-bang { width: auto; min-width: 0; }
  .yt-kenh-bang .bang-kenh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; }
  .yt-kenh-bang .dong-kenh, .yt-kenh-bang .dong-kenh:first-child { margin: 0; border-top-color: transparent; }
  .yt-kenh-bang .dk-thanh { padding-left: 0; }
}

/* ---- Điện thoại (≤ 767 px): hero gọn mọi trang — huy hiệu 40 px cạnh tiêu đề 1 dòng, nhãn nhỏ ẩn, chip trạng thái 1 hàng
   (vuốt ngang nếu thừa), bộ chọn Ngày / Tuần gập sau chip góc phải, nút hero thấp lại. Máy tính không đổi. */
@media (max-width: 767px) {
  .trang { gap: 14px; }
  /* .noi-dung … : thắng các luật 2 cột riêng của từng hero (.hero.tt-hero, .hero:has(> .so-dai)… trong @container) */
  .noi-dung .hero, .noi-dung .bdh-hero { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px; border-radius: 16px; }
  .hero > .huy, .bdh-huy, .hero.gon > .huy { width: 40px; height: 40px; padding: 2px; align-self: center; box-shadow: var(--hs-nho-bong); }
  .hero > .huy, .bdh-hero > .bdh-huy { grid-area: auto; grid-column: 1; grid-row: 1; }
  .an-dt { display: none; }
  .chi-dt { display: inline; }
  /* đầu trang chữ (Ban điều hành, Cài đặt…): bỏ đoạn mô tả, tiêu đề nhỏ lại */
  .dau-trang .phu { display: none; }
  .dau-trang h1 { font-size: 22px; }
  /* Token: ô "$ 7 ngày" gọn (bỏ đoạn giải thích phạm vi), bỏ câu mô tả dưới chip */
  .cp-hero .cp-phu, .cp-tong-pham-vi { display: none; }
  .cp-hero .cp-tong { margin-top: 0; padding: 12px 14px; gap: 2px; }
  .cp-tong-so { font-size: 30px; }
  /* Ban điều hành: 4 ô số tuần 2 × 2 gọn (giữ đủ ô) */
  .bdh-kpi { gap: 8px; }
  .bdh-kpi > .so-o { padding: 12px 14px; gap: 4px; }
  .bdh-kpi > .so-o .so-lon { font-size: 22px; }
  .bdh-kpi > .so-o .so-phu { font-size: 11px; }
  .hero .hero-nhan, .bdh-hero-nhan { display: none; }
  .hero .hero-tieu, .hero.gon .hero-tieu, .bdh h2.bdh-hero-tieu { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* chữ hero trải ra lưới hero: hàng 1 = huy hiệu · tiêu đề · chip; chip trạng thái, số… mỗi thứ một hàng rộng hết */
  .hero:not(.tc-hero) > .hero-chu, .bdh-hero > .bdh-hero-chu { display: contents; }
  .hero:not(.tc-hero) > .hero-chu > *, .bdh-hero-chu > * { grid-column: 1 / -1; min-width: 0; }
  .hero:not(.tc-hero) > .hero-chu > .hero-tieu, .bdh-hero-chu > .bdh-hero-tieu { grid-column: 2; grid-row: 1; align-self: center; }
  .hero-dong, .bdh-hero-tt { gap: 6px; margin: 0; }
  .pt-tt { display: contents; }
  .hero-pill { min-height: 26px; padding: 2px 10px; font-size: 12px; gap: 6px; }
  .hero-pill-phu { max-width: 150px; }
  .hero > :not(.huy, .hero-chu, .dtc-chip), .bdh-hero > :not(.bdh-huy, .bdh-hero-chu) { grid-column: 1 / -1; }
  .hero-nut, .bdh-hero-nut, .hero.gon .hero-nut { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
  .hero > .dtc-chip { grid-column: 3; grid-row: 1; align-self: center; }
  .hero-chip-tg span { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
  .hero:not(.mo-chon) > [data-chon-tg] { display: none; }
  .hero.mo-chon > [data-chon-tg] { width: 100%; }
  .tab-doan, .bdh-tab { min-height: 40px; }

  /* Tổng quan: vòng nhỏ cạnh chú thích (không còn nửa màn), bỏ dòng phụ; nút "Việc cần anh" thừa vì khối đứng ngay dưới hero */
  .hero.tc-hero { gap: 0 12px; padding: 14px; }
  .hero.tc-hero > .tc-vong { margin-top: 12px; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 10px 14px 10px 10px; }
  .tc-vong .vtq { width: 96px; height: 96px; aspect-ratio: auto; }
  .tc-vong .vtq-dong, .tc-vong .vtq-dong:first-child { padding: 5px 0; grid-template-areas: "c t n"; }
  .tc-vong .vtq-chu { display: none; }
  .hero.tc-hero > .tc-tt { margin-top: 10px; }
  .hero.tc-hero > .tc-nut-can { display: none; }

  /* TikTok: bỏ vòng (pill "52/60 video đã giao" đã nói), ô người 2 × 2 mỗi ô 1 dòng "● TÙNG PLUS  30/30" + thanh mảnh */
  .tt-hero .hero-dong { margin-left: 0; }
  .tt-hero > .tt-vong { display: none; }
  .hero.tt-hero { grid-template-areas: none; }
  .tt-hero > .tt-so { grid-area: auto; grid-column: 1 / -1; }
  .tt-hero .so-dai.tt-so { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tt-hero .tt-so .so-o { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "nhan nhan" "so thanh";
    align-items: center; gap: 4px 10px; padding: 9px 11px; border-radius: 12px; }
  .tt-hero .tt-so .so-nhan { grid-area: nhan; font-size: 10.5px; letter-spacing: .02em; }
  .tt-hero .tt-so .so-lon { grid-area: so; font-size: 16px; }
  .tt-hero .tt-so .so-lon small { font-size: 11px; }
  .tt-hero .tt-so .tg-thanh { grid-area: thanh; }
  .tt-hero .tt-so .so-phu { display: none; }
  .tt-loc-hang { gap: 8px; }
  .tt-loc-hang > .tabs-doan { flex: 1 1 100%; }
  .tt-xem-lai { width: 100%; justify-content: center; min-height: 40px; }

  /* YouTube: bảng kênh ẩn (số "3/8" lên tab kênh), hàng số tuần nhỏ 1 hàng, bỏ dòng ngày (chip góc phải đã có tuần) */
  .hero.yt-hero { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: none; }
  .yt-hero > .yt-kenh-bang { display: none; }
  .yt-hero .hero-dong { margin-bottom: 0; }
  .yt-so { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; }
  .yt-so-muc { padding: 0 8px; }
  .yt-so-muc b { font-size: 17px; }
  .yt-so-muc > span { font-size: 10.5px; line-height: 1.25; white-space: normal; }
  .yt-tabs .tab-doan { padding: 0 7px; gap: 4px; }  /* 3 tab Tất cả / VN / JP + số: vừa 1 hàng iPhone 375 không cuộn */
  .yt-tabs .tab-doan[data-kenh=""] .dem { display: none; }  /* tab Tất cả: số đỏ là tổng của các tab thị trường — bỏ cho vừa 1 hàng */
  .yt-tabs .tab-so { display: inline; font-size: 11px; font-weight: 700; color: var(--muted); }
  .yt-tabs .tab-doan.dang .tab-so { color: var(--chu-2); }
}

/* ---- Nút sáng / tối: máy tính ở thanh trên; điện thoại chuyển vào menu tài khoản cho thanh trên rộng chỗ (sếp 08/11) */
.hd-menu-sang-toi { display: none; }
@media (max-width: 767px) {
  .hd #doi-giao-dien { display: none; }
  .hd-menu-tk .hd-menu-sang-toi { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px;
    background: none; color: var(--chu-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
  .hd-menu-tk .hd-menu-sang-toi:hover { background: var(--mo-trang); color: var(--text); }
}

/* ---- Điện thoại: Hàng đợi & Token gọn (sếp 08/11 — chỉ điện thoại, máy tính giữ nguyên, đủ thông tin như cũ) */
@media (max-width: 767px) {
  /* Hàng đợi: 3 thẻ máy → hàng 1 Khe Claude | Nhận việc, hàng 2 Giới hạn nick (5 giờ | Tuần cạnh nhau) */
  .pm-may { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pm-may > .pm-o:nth-child(3) { order: 1; }
  .pm-may > .pm-o:nth-child(2) { order: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .pm-may > .pm-o:nth-child(2) > .pm-o-dau { grid-column: 1 / -1; }
  .pm-o { gap: 7px; padding: 10px 12px 11px; border-radius: 14px; }
  .pm-o::after { left: 12px; right: 12px; }
  .pm-o-dau { gap: 7px; padding-bottom: 7px; }
  .pm-o-nhan { font-size: 10px; }
  .pm-o-dau .ic { width: 15px; height: 15px; }
  .pm-o .so-lon { font-size: 24px; }
  .pm-o .so-lon small { font-size: 12px; }
  .thanh.pm-tai { height: 6px; }
  .pm-o-phu { font-size: 11px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pm-muc { gap: 5px; }
  .pm-muc + .pm-muc { margin-top: 0; }
  .pm-muc-dau { font-size: 12px; }
  .pm-muc-dau b { font-size: 14px; }
  .pm-nhan-viec .nhan { font-size: 12px; padding: 4px 10px; }
  /* Lọc + thêm việc tay ít dùng: xuống cuối trang, bỏ dòng giải thích; việc trong hàng (tab) lên ngay dưới thẻ máy */
  .pm-trang > .pm-cong-cu { order: 9; padding: 14px; gap: 12px; }
  .pm-goi-y { display: none; }
  /* thẻ việc: tên (hàng đầu) + các ô 3 cột, nút Dừng góc dưới phải — thay mỗi ô một hàng */
  .pm-trang .bang-the tbody tr:not(.pm-trong) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; padding: 10px 14px 12px; }
  .pm-trang .bang-the tbody tr:not(.pm-trong) td { min-height: 0; padding: 3px 0 0; border: 0; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .pm-trang .bang-the tbody tr:not(.pm-trong) td::before { position: static; display: block; width: auto; margin-bottom: 2px; font-size: 9.5px; }
  .pm-trang .bang-the tbody tr:not(.pm-trong) td:not([data-nhan]):not(.pm-nut) { grid-column: 1 / -1; padding: 0 0 7px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
  .pm-trang .bang-the tbody tr:not(.pm-trong) td.pm-nut { grid-column: -2 / -1; align-self: end; justify-self: end; padding: 0; }
  .pm-trang .bang-the tbody tr:not(.pm-trong) td.pm-nut:empty { display: none; }

  /* Token: ô $ / video mỗi dây chuyền gọn 3 hàng: tên | số · thanh mốc · mốc + lệch | số video + tổng */
  .so-dai.cp-dc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cp-dc > .cp-o { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 11px 14px 12px; }
  .cp-dc > .cp-o .so-lon { font-size: 20px; text-align: right; }
  .cp-dc > .cp-o .so-lon small { font-size: 11.5px; }
  .cp-dc > .cp-o > .cp-thanh { grid-column: 1 / -1; }
  .cp-dc > .cp-o .so-phu { font-size: 11.5px; }
  .cp-dc > .cp-o .so-phu:last-child { text-align: right; }
  .cp-khoi-dc { gap: 8px; }
}

/* ================================================================ Tài chính (chỉ sếp — spec docs/specs/2026-11-14-tai-chinh-design.md
   mục 9). Trang .trang.sac-tc.tc-trang; hero .hero.hero-tc.tc-hq đổi sắc theo tình hình: .tc-s-lai xanh (sắc Vận hành), .tc-s-lo hồng
   (sắc YouTube), .tc-s-dat vàng (đạt mục tiêu), .tc-s-trong / .tc-s-hoa trung tính. Chỉ 5 màu đã chốt, qua biến; thu = vàng, chi =
   trung tính, lãi = xanh, lỗ = hồng — luôn kèm dấu / mũi tên / chữ. Mọi luật bọc trong .tc-trang (tên .tc-hero, .tc-vong,
   .tc-can… đã thuộc trang Tổng quan nên trang này không dùng). Biểu đồ SVG do tai_chinh.js vẽ theo bề rộng thật. */
.hero-tc.tc-s-lai { --hs-nen: var(--ds-hero-vh); --hs-vien: var(--ds-hero-vh-vien); --hs-bong: var(--ds-hero-vh-bong); --hs-chu: var(--ds-hero-vh-chu);
  --hs-phu: var(--ds-hero-vh-phu); --hs-nhan: var(--ds-hero-vh-nhan); --hs-sang: var(--ds-hero-vh-sang); --hs-van: var(--ds-hero-vh-van);
  --hs-vong: var(--ds-huy-vh-vong); --hs-vong-bong: var(--ds-huy-vh-bong); --hs-nho-bong: var(--ds-huy-vh-nho-bong);
  --hs-trong: var(--ds-huy-vh-trong); --hs-hinh: var(--ds-huy-vh-hinh); --hs-hinh-bong: var(--ds-huy-vh-hinh-bong); }
.hero-tc.tc-s-lo { --hs-nen: var(--ds-hero-yt); --hs-vien: var(--ds-hero-yt-vien); --hs-bong: var(--ds-hero-yt-bong); --hs-chu: var(--ds-hero-yt-chu);
  --hs-phu: var(--ds-hero-yt-phu); --hs-nhan: var(--ds-hero-yt-nhan); --hs-sang: var(--ds-hero-yt-sang); --hs-van: var(--ds-hero-yt-van);
  --hs-vong: var(--ds-huy-yt-vong); --hs-vong-bong: var(--ds-huy-yt-bong); --hs-nho-bong: var(--ds-huy-yt-nho-bong);
  --hs-trong: var(--ds-huy-yt-trong); --hs-hinh: var(--ds-huy-yt-hinh); --hs-hinh-bong: var(--ds-huy-yt-hinh-bong); }
.hero-tc.tc-s-dat { --hs-nen: var(--ds-hero-tt); --hs-vien: var(--ds-hero-tt-vien); --hs-bong: var(--ds-hero-tt-bong); --hs-chu: var(--ds-hero-tt-chu);
  --hs-phu: var(--ds-hero-tt-phu); --hs-nhan: var(--ds-hero-tt-nhan); --hs-sang: var(--ds-hero-tt-sang); --hs-van: var(--ds-hero-tt-van);
  --hs-vong: var(--ds-huy-tt-vong); --hs-vong-bong: var(--ds-huy-tt-bong); --hs-nho-bong: var(--ds-huy-tt-nho-bong);
  --hs-trong: var(--ds-huy-tt-trong); --hs-hinh: var(--ds-huy-tt-hinh); --hs-hinh-bong: var(--ds-huy-tt-hinh-bong); }
.tc-trang { --tc-thu: var(--g-300); --tc-thu-nhat: var(--g-100); --tc-chi: var(--trung); --tc-lai: var(--dat); --tc-lo: var(--loi); --tc-vong: var(--card-dac); }
[data-theme="light"] .tc-trang { --tc-thu: var(--g-500); --tc-thu-nhat: var(--g-200); --tc-chi: #7c7884; }
.tc-trang .tc-pane { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tc-trang .tc-ghi { font-size: 12.5px; color: var(--muted); }
.tc-trang .tc-ghi .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.tc-trang .tc-ghi b { color: var(--chu-2); }
.tc-trang .tc-tien { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-trang .tc-tien.lai, .tc-trang b.lai { color: var(--dat); }
.tc-trang .tc-tien.lo, .tc-trang b.lo { color: var(--loi-sang); }
.tc-trang .tc-tien.rong { color: var(--faint); font-weight: 600; }
/* nhãn số: ước tính = viền nét đứt · đã chốt = viền vàng đặc có dấu tích · chưa có số = nét đứt mờ */
.tc-trang .tc-the { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font: 600 11px/1 "Be Vietnam Pro", sans-serif;
  letter-spacing: 0; text-transform: none; white-space: nowrap; vertical-align: middle; flex: none; }
.tc-trang .tc-the .ic { width: 12px; height: 12px; stroke-width: 2.8; }
.tc-trang .tc-the.uoc { color: var(--muted); border: 1px dashed color-mix(in srgb, var(--muted) 75%, transparent); }
.tc-trang .tc-the.chot { color: var(--ds-vang-chu); border: 1px solid var(--ds-vien-vang); background: var(--ds-vang-nen); }
.tc-trang .tc-the.rong { color: var(--faint); border: 1.5px dashed var(--net-dut); }
.tc-trang .tc-the.tay { color: var(--muted); border: 1px solid var(--line-strong); }
.tc-trang .hero .tc-the.uoc { color: var(--hs-phu); border-color: color-mix(in srgb, var(--hs-phu) 70%, transparent); }
.tc-trang .hero .tc-the.chot { color: var(--hs-chu); border-color: color-mix(in srgb, var(--hs-chu) 40%, transparent); background: var(--ds-o-hero); }
.tc-trang .tc-doi { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; white-space: nowrap; }
.tc-trang .tc-doi .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.tc-trang .tc-doi.tot { color: var(--dat); } .tc-trang .tc-doi.xau { color: var(--loi-sang); } .tc-trang .tc-doi.hoa { color: var(--muted); }
.tc-trang .tc-doi-sau { font-weight: 400; color: var(--muted); }
.tc-trang .hero .tc-doi-sau { color: var(--hs-phu); }
.tc-trang .tc-tthai { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  white-space: nowrap; color: var(--muted); background: var(--ds-o-2); flex: none; }
.tc-trang .tc-tthai::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tc-trang .tc-tthai.lai { color: var(--dat); background: color-mix(in srgb, var(--dat) 13%, transparent); }
.tc-trang .tc-tthai.lo { color: var(--loi-sang); background: color-mix(in srgb, var(--loi) 13%, transparent); }
.tc-trang .tc-tthai.dau-tu { color: var(--ds-vang-chu); background: var(--ds-vang-nen); }
.tc-trang .tc-tthai.rong { background: transparent; border: 1.5px dashed var(--net-dut); color: var(--faint); }
.tc-trang .tc-tthai.rong::before { display: none; }
.tc-trang .tc-nut-nho { min-height: 36px; padding: 0 12px; font-size: 12.5px; }
.tc-trang .tc-hoi { border-color: var(--loi); color: var(--loi-sang); }

/* ---- đầu trang: chọn tháng ‹ Tháng 11/2026 › · số cập nhật lúc … · Cập nhật số */
.tc-trang .tc-dau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.tc-trang .tc-thang { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 16px; background: var(--ds-o); border: 1px solid var(--line);
  box-shadow: var(--ds-ranh-bong); }
.tc-trang .tc-thang-nut { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--chu-2); cursor: pointer; }
.tc-trang .tc-thang-nut:hover:not(:disabled) { background: var(--ds-noi-chon); color: var(--text); box-shadow: var(--ds-noi-chon-bong-gon); }
.tc-trang .tc-thang-nut:disabled { opacity: .3; }
.tc-trang .tc-thang-o select { min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text);
  font: 800 17px "Be Vietnam Pro", sans-serif; letter-spacing: -.02em; text-align: center; cursor: pointer; -webkit-appearance: none; appearance: none; }
.tc-trang .tc-thang-o select:hover { background: var(--ds-o-2); }
/* menu chọn tháng nhóm theo năm (spec 14.7) — cùng kiểu hộp xổ của Cài đặt (.cd-trang select::picker): nền thẻ đặc, viền đậm,
   bo 12, dòng 38px bo 8, dòng đang chọn vàng nhạt + dấu tích; tên năm là dòng nhỏ chữ hoa như optgroup, bấm để mở / gập */
.tc-trang .tc-thang-o { position: relative; }
.tc-trang .tc-thang-chon { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px 0 14px; border: 0;
  border-radius: 12px; background: transparent; color: var(--text); font: 800 17px "Be Vietnam Pro", sans-serif; letter-spacing: -.02em; white-space: nowrap; cursor: pointer; }
.tc-trang .tc-thang-chon:hover, .tc-trang .tc-thang-chon[aria-expanded="true"] { background: var(--ds-o-2); }
.tc-trang .tc-thang-mui { width: 16px; height: 16px; color: var(--muted); transition: rotate .16s; }
.tc-trang .tc-thang-chon[aria-expanded="true"] .tc-thang-mui { rotate: 180deg; }
.tc-trang .tc-thang-menu { position: absolute; left: 50%; top: calc(100% + 10px); z-index: 26; translate: -50% 0; width: max(100%, 248px); max-width: calc(100vw - 32px);
  max-height: min(440px, 62vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--card-dac); color: var(--text); box-shadow: var(--bong-noi); }
.tc-trang .tc-tm-nhom + .tc-tm-nhom { margin-top: 2px; padding-top: 2px; border-top: 1px solid var(--line); }
.tc-trang .tc-tm-nam { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--faint); font: 700 11px "Be Vietnam Pro", sans-serif; letter-spacing: .06em; text-transform: uppercase; text-align: left; cursor: pointer;
  position: sticky; top: -6px; z-index: 1; background: var(--card-dac); }  /* cuộn danh sách dài vẫn thấy đang ở năm nào */
.tc-trang .tc-tm-nam small { margin-left: auto; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }
.tc-trang .tc-tm-nam:hover, .tc-trang .tc-tm-nam:focus-visible { background: color-mix(in srgb, var(--text) 6%, var(--card-dac)); color: var(--chu-2); outline: none; }
.tc-trang .tc-tm-mui { width: 14px; height: 14px; flex: none; transition: rotate .16s; }
.tc-trang .tc-tm-nam[aria-expanded="true"] .tc-tm-mui { rotate: 90deg; }
.tc-trang .tc-tm-ds { display: flex; flex-direction: column; gap: 1px; padding-bottom: 4px; }
.tc-trang .tc-tm-ds[hidden] { display: none; }
.tc-trang .tc-tm-thang { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text); font: 500 14px "Be Vietnam Pro", sans-serif; text-align: left; cursor: pointer; }
.tc-trang .tc-tm-thang small { font-size: 11.5px; color: var(--muted); }
.tc-trang .tc-tm-thang:hover, .tc-trang .tc-tm-thang:focus-visible { background: var(--ds-o-2); outline: none; }
.tc-trang .tc-tm-dau { width: 16px; height: 16px; margin-left: auto; color: var(--g-300); stroke-width: 2.4; visibility: hidden; }
.tc-trang .tc-tm-thang[aria-current="true"] { background: color-mix(in srgb, var(--g-300) 16%, transparent); color: var(--g-200); font-weight: 600; }
[data-theme="light"] .tc-trang .tc-tm-thang[aria-current="true"] { color: var(--vang-sang); }
.tc-trang .tc-tm-thang[aria-current="true"] .tc-tm-dau { visibility: visible; }
.tc-trang .tc-tm-nam:focus-visible, .tc-trang .tc-tm-thang:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--vang) 60%, transparent); }
@media (prefers-reduced-motion: reduce) { .tc-trang .tc-thang-mui, .tc-trang .tc-tm-mui { transition: none; } }
.tc-trang .tc-cn { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tc-trang .tc-cn-luc { font-size: 12.5px; color: var(--muted); }
.tc-trang .tc-cn-luc b { color: var(--chu-2); font-weight: 600; }
.tc-trang .tc-cn-nut { min-height: 44px; }
.tc-trang .tc-keo-loi { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; font-size: 13px; color: var(--chu-2);
  border: 1px solid var(--vien-loi); background: color-mix(in srgb, var(--loi) 7%, transparent); }
.tc-trang .tc-keo-loi > .ic { width: 18px; height: 18px; color: var(--loi-sang); margin-top: 1px; }
.tc-trang .tc-keo-loi ul { margin: 4px 0 0; padding-left: 18px; }
.tc-trang .tc-tabs { scroll-margin-top: 76px; }
.tc-trang .tc-tab-dem:not(:empty) { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; justify-content: center; color: var(--loi-sang);
  background: color-mix(in srgb, var(--loi) 14%, transparent); font-size: 11px; }

/* ---- hero: lãi ròng một số lớn · câu nói · chip · vòng mục tiêu */
.tc-trang .hero.tc-hq { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "huy chu mt"; align-items: center; }
.tc-trang .tc-hq > .huy { grid-area: huy; align-self: start; }
.tc-trang .tc-hq-chu { grid-area: chu; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tc-trang .tc-hq-so { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.tc-trang .tc-so-hero { font: 800 60px/1.02 "Be Vietnam Pro", sans-serif; letter-spacing: -.045em; color: var(--hs-nhan); white-space: nowrap; }
.tc-trang .tc-so-hero.rong { font-size: 32px; color: var(--hs-phu); }
.tc-trang .tc-hq-cau { margin: 2px 0 0; max-width: 64ch; font-size: 15.5px; line-height: 1.5; color: var(--hs-chu); text-wrap: pretty; }
.tc-trang .tc-cau-phu { color: var(--hs-phu); }
.tc-trang .tc-hq-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; }
.tc-trang .tc-hq-chip:empty { display: none; }
.tc-trang .tc-hq-chip .tt-phu { display: inline-flex; align-items: center; gap: 5px; }
.tc-trang .tc-hq-chip .tt-phu .ic { width: 14px; height: 14px; }
.tc-trang .tc-chuoi .ic { color: var(--hs-nhan); stroke-width: 2.6; }
.tc-trang .tc-ky-luc { color: var(--hs-chu); border-color: var(--ds-vien-vang); }
.tc-trang .tc-ky-luc .ic, .tc-trang .tc-dat-chu .ic, .tc-trang .tc-vong-sao .ic { fill: var(--g-300); stroke: var(--g-500); stroke-width: 1.2; }
.tc-trang .tc-hq > .tc-hq-mt { grid-area: mt; display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: var(--ds-o-hero); border: 1px solid var(--ds-o-hero-vien); }
.tc-trang .tc-vong-o { position: relative; flex: none; }
.tc-trang .tc-vong-o .vong { display: block; width: 116px; height: 116px; }
.tc-trang .tc-hq .vong text { fill: var(--hs-chu); font-size: 19px; }
.tc-trang .tc-hq .vong text.mo { fill: var(--hs-phu); }
.tc-trang .tc-hq .vong .ray { stroke: color-mix(in srgb, var(--hs-chu) 13%, transparent); }
.tc-trang .tc-vong-sao { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--card-dac); box-shadow: 0 0 0 2px var(--ds-vien-vang), 0 6px 14px -6px rgba(217,154,43,.8); }
.tc-trang .tc-vong-sao .ic { width: 18px; height: 18px; }
.tc-trang .tc-mt-chu { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 150px; max-width: 230px; font-size: 12.5px; color: var(--hs-phu); }
.tc-trang .tc-mt-chu > b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--hs-chu); line-height: 1.1; }
.tc-trang .tc-mt-chu > b.nho { font-size: 16px; }
.tc-trang .tc-mt-nhan { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tc-trang .tc-mt-ke { font-size: 11.5px; font-style: italic; }
.tc-trang .tc-mt-dat { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; color: var(--hs-nhan); }
.tc-trang .tc-mt-dat .ic { width: 15px; height: 15px; }
.tc-trang .tc-dat-chu { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 11px; border-radius: 999px; font-weight: 700; color: var(--hs-chu);
  background: var(--ds-vang-nen); border: 1px solid var(--ds-vien-vang); }
.tc-trang .tc-dat-chu .ic { width: 15px; height: 15px; }
.tc-trang .tc-nhip { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 4px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px;
  font-weight: 600; color: var(--hs-chu); background: var(--ds-o-hero); border: 1px solid var(--ds-o-hero-vien); }
.tc-trang .tc-nhip .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.tc-trang .tc-nhip.tot .ic { color: var(--dat); } .tc-trang .tc-nhip.xau { border-color: var(--vien-loi); } .tc-trang .tc-nhip.xau .ic { color: var(--loi-sang); }
.tc-trang .tc-nhip b { font-weight: 800; }
.tc-trang .tc-chi-dt { display: none; }

/* ---- dải số */
.tc-trang .so-dai.tc-kpi { --so-cot: 5; }
.tc-trang .tc-kpi-o .so-lon { font-size: 30px; }
.tc-trang .tc-kpi-the { display: flex; }
.tc-trang .tc-kpi-the:empty { display: none; }
.tc-trang .tc-kpi-o .so-phu { color: var(--muted); }
.tc-trang .tc-kpi-o .so-phu b { color: var(--chu-2); }
.tc-trang .tc-kpi-o .so-phu b.lai { color: var(--dat); } .tc-trang .tc-kpi-o .so-phu b.lo { color: var(--loi-sang); }

/* ---- Cần anh (ẩn hẳn khi không có việc) */
.tc-trang .khoi.tc-anh { padding: 16px 20px; border-color: var(--vien-loi);
  background: linear-gradient(180deg, color-mix(in srgb, var(--loi) 7%, transparent), transparent 120px), var(--card); }
.tc-trang .tc-khoi-dau { margin-bottom: 10px; }
.tc-trang .tc-nhan-loi { color: var(--loi-sang); }
.tc-trang .tc-cham-loi { width: 8px; height: 8px; border-radius: 50%; background: var(--loi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--loi) 20%, transparent); }
.tc-trang .tc-anh-ds { display: grid; gap: 8px; }
.tc-trang .tc-anh-muc { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  color: var(--text); background: var(--ds-o); border: 1px solid var(--line); transition: border-color .16s; }
.tc-trang .tc-anh-muc:hover { color: var(--text); border-color: var(--vien-loi); }
.tc-trang .tc-anh-chu { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.tc-trang .tc-anh-den { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.tc-trang .tc-anh-den .ic { width: 14px; height: 14px; }

/* ---- 4 thẻ nhóm kênh */
.tc-trang .tc-nhom-khoi { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tc-trang .tc-nhom-ds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.tc-trang .tc-nhom { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 20px; border-radius: 18px; color: var(--text);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--ds-bong); transition: border-color .16s, transform .16s; }
.tc-trang .tc-nhom:hover { color: var(--text); border-color: var(--ds-vien-vang); }
.tc-trang .tc-nhom::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.tc-trang .tc-nhom.tc-k-lai::before { background: linear-gradient(90deg, transparent, var(--tc-lai), transparent); }
.tc-trang .tc-nhom.tc-k-lo::before { background: linear-gradient(90deg, transparent, var(--tc-lo), transparent); }
.tc-trang .tc-nhom.tc-k-dau-tu::before { background: linear-gradient(90deg, transparent, var(--g-300), transparent); }
.tc-trang .tc-nhom.tc-k-rong { background: transparent; border: 1.5px dashed var(--net-dut); box-shadow: none; }
.tc-trang .tc-nhom.tc-k-rong::before { display: none; }
.tc-trang .tc-nhom-dau { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tc-trang .tc-nhom-dau > b { min-width: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.tc-trang .tc-nhom-dau .tc-tthai { margin-left: auto; }
.tc-trang .tc-nhom-dau .huy.nho { width: 32px; height: 32px; padding: 1.5px; }
.tc-trang .tc-nhom-dau .huy svg { width: 52%; height: 52%; }
.tc-trang .tc-nhom-so { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tc-trang .tc-nhom-so .tc-tien { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.tc-trang .tc-nhom-so .tc-tien.rong, .tc-trang .tc-tk-so > .tc-tien.rong { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 12px; font-size: 14px;
  font-weight: 600; letter-spacing: 0; border: 1.5px dashed var(--net-dut); border-radius: 999px; }
.tc-trang .tc-hq-chip .tc-chi-dt { display: none; }
.tc-trang .tc-nhom-cl { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.tc-trang .tc-nhom-cl b, .tc-trang .tc-nhom-cl .tc-tien { font-weight: 700; color: var(--chu-2); }
.tc-trang .tc-nhom-cl .tc-tien.lai { color: var(--dat); } .tc-trang .tc-nhom-cl .tc-tien.lo { color: var(--loi-sang); }
.tc-trang .tc-net { height: 40px; min-width: 0; }
.tc-trang .tc-nhom-kenh { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 10px 0 0; list-style: none; border-top: 1px dashed var(--line-strong); }
.tc-trang .tc-nhom-kenh li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; min-width: 0; }
.tc-trang .tc-nhom-kenh li.dk { flex-direction: column; align-items: stretch; gap: 6px; }
.tc-trang .tc-nk-ten { min-width: 0; color: var(--chu-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-trang .tc-nk-ten small { color: var(--faint); }
.tc-trang .tc-nk-so { display: inline-flex; align-items: baseline; gap: 6px; flex: none; font-weight: 700; }
.tc-trang .tc-nk-so small { font-weight: 500; color: var(--faint); }
.tc-trang .tc-nk-ly { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; color: var(--faint); border: 1.5px dashed var(--net-dut); }
.tc-trang .tc-nhom-xem { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tc-trang .tc-nhom:hover .tc-nhom-xem { color: var(--ds-vang-chu); }
.tc-trang .tc-nhom-xem .ic { width: 14px; height: 14px; }
@media (prefers-reduced-motion: no-preference) { .tc-trang .tc-nhom:hover, .tc-trang .tc-tk-the:hover { transform: translateY(-1px); } }
/* tiến độ điều kiện kiếm tiền (1.000 sub · 4.000 giờ xem) */
.tc-trang .tc-dk { display: grid; gap: 10px; }
.tc-trang .tc-dk.gon { gap: 6px; }
.tc-trang .tc-dk-dau { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.tc-trang .tc-dk-dau b { color: var(--chu-2); font-size: 12px; }
.tc-trang .tc-dk.gon .tc-dk-dau { font-size: 11.5px; }
.tc-trang .tc-dk-thanh { display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: var(--ds-o-2); overflow: hidden; }
.tc-trang .tc-dk-thanh > i { display: block; height: 100%; border-radius: inherit; background: var(--tc-thu); }

/* ---- hai khối cạnh nhau (12 tháng | cầu thang; lời khuyên | tín hiệu); một khối thì rộng hết */
.tc-trang .tc-hai { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@container trang (min-width: 1000px) {
  .tc-trang .tc-hai { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .tc-trang .tc-hai.tc-hai-deu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-trang .tc-hai.mot { grid-template-columns: minmax(0, 1fr); }
}
.tc-trang #tc-cau-ghi { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.tc-trang #tc-cau-ghi:empty { display: none; }
.tc-trang .tc-ct { font-size: 12px; }
.tc-trang .tc-mau { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--tc-chi); flex: none; }
.tc-trang .tc-mau.thu { background: var(--tc-thu); } .tc-trang .tc-mau.thu-nhat { background: var(--tc-thu-nhat); } .tc-trang .tc-mau.chi { background: var(--tc-chi); }
.tc-trang .tc-mau.soc-mau { background: repeating-linear-gradient(45deg, var(--muted) 0 2px, transparent 2px 5px); border: 1px solid var(--line-strong); }
.tc-trang .tc-mau-duong { position: relative; display: inline-block; width: 18px; height: 2px; border-radius: 2px; background: var(--tc-lai); }
.tc-trang .tc-mau-duong::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--tc-lai); }
.tc-trang .tc-mau.trong-mau { background: transparent; border: 1.5px dashed var(--net-dut); }
/* tháng chưa có số chi phí (lịch sử chỉ có thu): chip / dòng phụ nét đứt, không vàng — không phải trạng thái đang chạy */
.tc-trang .tc-chip-thieu { border: 1.5px dashed var(--net-dut); background: transparent; }
/* Cài đặt › Tài chính: danh sách "Thời kỳ trước" (tiktok_ky) — dòng kiểu danh sách chi phí: tháng · thuế % · Gấu % · xoá */
.cd-tc-ky-hang { grid-template-columns: minmax(0, 1fr); }
.cd-tc-ky { display: flex; flex-direction: column; min-width: 0; }
.cd-tc-ky-dong { display: grid; grid-template-columns: minmax(150px, 1.4fr) minmax(104px, 1fr) minmax(104px, 1fr) 44px; align-items: end; gap: 6px 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line); min-width: 0; }
.cd-tc-ky-dong.moi { border-bottom-style: dashed; }
.cd-tc-ky-o { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cd-tc-ky-ten { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.cd-tc-ky-dong:not(:first-child) .cd-tc-ky-ten { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cd-trang .cd-tc-ky-dong select { width: 100%; min-width: 0; }
.cd-tc-ky-pct { width: 100%; }
.cd-tc-ky-pct input { flex: 1; width: auto; min-width: 0; }
.cd-tc-ky-dong.moi select:has(option[value=""]:checked) { border-style: dashed; }
.cd-tc-ky-xoa { width: 44px; min-height: 44px; padding: 0; }
.cd-tc-ky-xoa[hidden] { display: block; visibility: hidden; }
.cd-tc-ky-loi { margin-top: 8px; color: var(--loi-sang); font-weight: 600; }
.cd-tc-ky-loi[hidden] { display: none; }
@media (max-width: 767px) {
  .cd-tc-ky-dong { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; grid-template-areas: "den den den" "thue gau xoa"; }
  .cd-tc-ky-dong > :nth-child(1) { grid-area: den; } .cd-tc-ky-dong > :nth-child(2) { grid-area: thue; }
  .cd-tc-ky-dong > :nth-child(3) { grid-area: gau; } .cd-tc-ky-dong > :nth-child(4) { grid-area: xoa; }
  .cd-tc-ky-dong:not(:first-child) .cd-tc-ky-ten { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .cd-trang .cd-tc-ky-dong input, .cd-trang .cd-tc-ky-dong select { font-size: 16px; }
}
.tc-trang .tc-phu-thieu { color: var(--muted); }
/* diễn giải thu của anh một kênh TikTok (spec 14.8): các bước xếp hàng, tự xuống dòng trên điện thoại; số âm hồng như lỗ */
.tc-trang .tc-dg-pt { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.tc-trang .tc-dg-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 12px; border-radius: 12px; background: var(--ds-o); border: 1px solid var(--line); }
.tc-trang .tc-dg-b small { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.tc-trang .tc-dg-b b { font-size: 16px; font-weight: 800; color: var(--text); white-space: nowrap; }
.tc-trang .tc-dg-b.ket { border-color: var(--ds-vien-vang); background: var(--ds-vang-nen); }
.tc-trang .tc-dg-op { align-self: center; font-style: normal; font-size: 18px; font-weight: 700; color: var(--muted); }
.tc-trang .tc-dg-am { margin: 10px 0 0; color: var(--loi-sang); }
.tc-trang .tc-dg-chi { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.tc-trang .tc-dg-chi-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; font-size: 13px; }
.tc-trang .tc-dg-chi ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.tc-trang .tc-dg-chi li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--chu-2); }
.tc-trang .tc-dg-chi li:last-child { border-bottom: 0; }
.tc-trang .tc-dg-chi li span { min-width: 0; overflow-wrap: anywhere; }
.tc-trang .tc-dg-chi li .tc-tien { font-weight: 700; color: var(--text); white-space: nowrap; }
@media (max-width: 767px) {
  .tc-trang .tc-dg-pt { gap: 6px; }
  .tc-trang .tc-dg-b { padding: 6px 10px; }
  .tc-trang .tc-dg-b b { font-size: 15px; }
  .tc-trang .tc-dg-op { font-size: 15px; }
}
.tc-trang .tc-bang-so { margin-top: 10px; }
.tc-trang .tc-bang-so summary { display: inline-flex; align-items: center; min-height: 40px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tc-trang .tc-bang-so summary:hover { color: var(--text); }
.tc-trang .tc-dong-chon td { background: color-mix(in srgb, var(--g-300) 7%, transparent); }

/* ---- biểu đồ SVG (chữ màu chữ, dấu màu dữ liệu; lưới mảnh lặng) */
.tc-trang .tc-bd { width: 100%; min-width: 0; min-height: 60px; }
.tc-trang .tc-svg { display: block; max-width: 100%; overflow: visible; }
.tc-trang .tc-svg text { font: 500 10.5px "JetBrains Mono", ui-monospace, monospace; fill: var(--muted); }
.tc-trang .tc-svg .tc-bd-truc { fill: var(--faint); }
.tc-trang .tc-svg .tc-bd-nhan.chon { fill: var(--text); font-weight: 800; }
.tc-trang .tc-svg .tc-bd-nhan.mo { fill: var(--faint); opacity: .7; }
.tc-trang .tc-svg .tc-bd-nam { fill: var(--faint); font-size: 9.5px; }
.tc-trang .tc-svg .tc-bd-gt { fill: var(--text); font-size: 11.5px; font-weight: 700; paint-order: stroke; stroke: var(--tc-vong); stroke-width: 3px; stroke-linejoin: round; }
/* nhãn số trên đầu mọi cột (sếp 26/11/2026): nhỏ, nhạt hơn tc-bd-gt; tháng đang chọn / ngày cao nhất đậm; dựng đứng khi khe hẹp */
.tc-trang .tc-svg text.tc-bd-so { font-size: 10px; font-weight: 600; fill: var(--chu-2); paint-order: stroke; stroke: var(--tc-vong); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.tc-trang .tc-svg text.tc-bd-so.dung { font-size: 9px; } .tc-trang .tc-svg text.tc-bd-so.dung.nho { font-size: 8px; stroke-width: 2px; }
.tc-trang .tc-svg text.tc-bd-so.chon { fill: var(--text); font-weight: 800; }
.tc-trang .tc-svg text.tc-bd-so.so-am { fill: var(--tc-lo); }
.tc-trang .tc-svg .tc-bd-hang { font: 500 12.5px "Be Vietnam Pro", sans-serif; fill: var(--chu-2); }
.tc-trang .tc-svg .tc-bd-hang.dam { font-weight: 700; fill: var(--text); }
.tc-trang .tc-bd-luoi { stroke: var(--line); stroke-width: 1; }
.tc-trang .tc-bd-0 { stroke: var(--line-strong); stroke-width: 1; }
.tc-trang .tc-bd-0.mo { stroke: var(--line); }
.tc-trang .tc-bd-noi { stroke: var(--line-strong); stroke-width: 1; }
.tc-trang .tc-c-thu { fill: var(--tc-thu); }
.tc-trang .tc-c-thu.nhat { fill: color-mix(in srgb, var(--tc-thu) 42%, transparent); }
.tc-trang .tc-c-chi, .tc-trang .tc-c-hoa { fill: var(--tc-chi); }
.tc-trang .tc-c-lai { fill: var(--tc-lai); } .tc-trang .tc-c-lo { fill: var(--tc-lo); }
.tc-trang .tc-c-trong { fill: none; stroke: var(--net-dut); stroke-width: 1.2; stroke-dasharray: 3 3; }
.tc-trang .tc-soc-thu-nen { fill: color-mix(in srgb, var(--tc-thu) 26%, transparent); } .tc-trang .tc-soc-thu { fill: var(--tc-thu); }
.tc-trang .tc-soc-chi-nen { fill: color-mix(in srgb, var(--tc-chi) 24%, transparent); } .tc-trang .tc-soc-chi { fill: var(--tc-chi); }
.tc-trang .tc-l-lai { stroke: var(--tc-lai); stroke-width: 2; stroke-linecap: round; }
.tc-trang .tc-d-lai { stroke: var(--tc-vong); stroke-width: 2; fill: var(--tc-chi); }
.tc-trang .tc-d-lai.lai { fill: var(--tc-lai); } .tc-trang .tc-d-lai.lo { fill: var(--tc-lo); }
.tc-trang .tc-bd-chon { fill: var(--ds-o-2); stroke: var(--line); }
.tc-trang .tc-bd-bam { fill: transparent; cursor: pointer; outline: none; }
.tc-trang .tc-bd-bam:hover, .tc-trang .tc-bd-bam:focus-visible { fill: var(--mo-trang); }
.tc-trang .tc-bd-bam:focus-visible { stroke: var(--g-400); stroke-width: 1.5; }
.tc-trang .tc-bd-bam.tinh { cursor: default; }
.tc-trang .tc-net-l { fill: none; stroke: var(--chu-3); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tc-trang .tc-net-l.mo { stroke-dasharray: 3 3; }
.tc-trang .tc-d-lai.mo { fill: var(--tc-vong); stroke: currentColor; stroke-width: 1.75; }
.tc-trang .tc-d-lai.mo.lai { color: var(--tc-lai); } .tc-trang .tc-d-lai.mo.lo { color: var(--tc-lo); } .tc-trang .tc-d-lai.mo.hoa { color: var(--tc-chi); }
.tc-trang .tc-net-trong { stroke: var(--net-dut); stroke-width: 1.5; stroke-dasharray: 4 4; }
.tc-trang .trong.tc-bd-trong-o { padding: 26px 16px; }
.tc-trang .trong.tc-bd-trong-o span { font-size: 12.5px; }
/* thanh chia phần (một tổng → nhiều phần): khối 28px, % in bên trong khi đủ chỗ */
.tc-trang .tc-phan { display: flex; gap: 2px; height: 28px; }
.tc-trang .tc-phan > i { display: flex; align-items: center; min-width: 3px; padding: 0 8px; border-radius: 4px; background: var(--tc-chi); overflow: hidden; }
.tc-trang .tc-phan > i.thu { background: var(--tc-thu); } .tc-trang .tc-phan > i.thu-nhat { background: var(--tc-thu-nhat); }
.tc-trang .tc-phan > i b { font: 700 11.5px "JetBrains Mono", monospace; color: #1A1206; white-space: nowrap; }
.tc-trang .tc-phan > i.chi b { color: var(--bg); }
.tc-trang .tc-phan.trong-o { border: 1.5px dashed var(--net-dut); border-radius: 6px; }
.tc-trang .tc-phan-ct { margin-top: 10px; }
.tc-trang .tc-phan-ct b { color: var(--chu-2); font-weight: 600; }

/* ---- lời khuyên rút gọn + tín hiệu */
.tc-trang .tc-gdn-ds { display: grid; gap: 10px; }
.tc-trang .tc-gdn-muc { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; border-radius: 14px; color: var(--text);
  background: var(--ds-the); border: 1px solid var(--line); transition: border-color .16s; }
.tc-trang .tc-gdn-muc:hover { color: var(--text); border-color: var(--ds-vien-vang); }
.tc-trang .tc-gdn-muc.t-moi { border-color: var(--ds-vien-vang); background: linear-gradient(180deg, var(--ds-vang-nen), transparent 80px), var(--ds-the); }
.tc-trang .tc-gdn-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tc-trang .tc-gdn-td { margin-left: auto; font: 700 13px "JetBrains Mono", monospace; color: var(--chu-2); white-space: nowrap; }
.tc-trang .tc-gdn-td.lai { color: var(--dat); } .tc-trang .tc-gdn-td.lo { color: var(--loi-sang); }
.tc-trang .tc-gdn-td small { font: 500 11px "Be Vietnam Pro", sans-serif; color: var(--faint); }
.tc-trang .tc-gdn-tieu { font-size: 15px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.tc-trang .tc-gdn-hd { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-trang .tc-lk-tt { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--muted);
  background: var(--ds-o-2); white-space: nowrap; }
.tc-trang .tc-lk-tt.t-moi { color: var(--ds-vang-chu); background: var(--ds-vang-nen); }
.tc-trang .tc-lk-tt.t-se_lam { color: var(--ds-vang-chu); background: transparent; border: 1px solid var(--ds-vien-vang); }
.tc-trang .tc-lk-tt.t-da_lam { color: var(--dat); background: color-mix(in srgb, var(--dat) 13%, transparent); }
.tc-trang .tc-th-ds { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tc-trang .tc-th-muc { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--chu-2); }
.tc-trang .tc-th-muc > .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--vang); }
.tc-trang .tc-th-muc.tot > .ic { color: var(--dat); } .tc-trang .tc-th-muc.xau > .ic { color: var(--loi-sang); }

/* ---- YouTube / TikTok: chọn nhóm, tổng kết, chi tiết kênh */
.tc-trang .tc-chon-hang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.tc-trang .tc-chip .loc-nut { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.tc-trang .tc-yt { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tc-trang .tc-yt-tong { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.tc-trang .tc-yt-tong span { display: inline-flex; align-items: center; gap: 6px; }
.tc-trang .tc-yt-tong .tc-tien { font-weight: 700; color: var(--text); } .tc-trang .tc-yt-tong .tc-tien.lai { color: var(--dat); } .tc-trang .tc-yt-tong .tc-tien.lo { color: var(--loi-sang); }
.tc-trang .tc-lech { display: grid; gap: 12px; }
.tc-trang .tc-lech-dong { display: grid; grid-template-columns: minmax(96px, 190px) minmax(0, 1fr) minmax(80px, auto); align-items: center; gap: 6px 14px; }
.tc-trang .tc-lech-ten { min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-trang .tc-lech-ray { position: relative; height: 14px; border-radius: 4px; background: var(--ds-o); }
.tc-trang .tc-lech-ray::before { content: ""; position: absolute; left: var(--z); top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.tc-trang .tc-lech-ray > i { position: absolute; top: 0; bottom: 0; min-width: 2px; border-radius: 4px; background: var(--tc-chi); }
.tc-trang .tc-lech-ray > i.lai { background: var(--tc-lai); } .tc-trang .tc-lech-ray > i.lo { background: var(--tc-lo); }
.tc-trang .tc-lech-so { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; font-weight: 700; }
.tc-trang .tc-lech-so small { font-size: 11px; font-weight: 500; color: var(--faint); }
.tc-trang .tc-td-ten b { display: block; font-size: 13.5px; }
.tc-trang .bang td .tc-the { margin-left: 4px; }
.tc-trang .khoi.tc-kenh { display: flex; flex-direction: column; gap: 16px; }
.tc-trang .tc-kenh-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tc-trang .tc-kenh-dau > div { min-width: 0; margin-right: auto; }
.tc-trang .tc-kenh-dau b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.tc-trang .tc-kenh-dau .tc-ghi { display: block; }
.tc-trang .so-dai.tc-kenh-so .so-lon { font-size: 26px; }
.tc-trang .tc-kenh-luoi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@container trang (min-width: 900px) { .tc-trang .tc-kenh-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tc-trang .tc-kenh-luoi > .rong2 { grid-column: 1 / -1; } }
.tc-trang .tc-kenh-o { min-width: 0; padding: 16px 18px; border-radius: 16px; background: var(--ds-the); border: 1px solid var(--line); box-shadow: var(--ds-noi);
  font-size: 13.5px; line-height: 1.55; color: var(--chu-2); }
.tc-trang .tc-kenh-o p { margin: 6px 0 0; overflow-wrap: anywhere; }
.tc-trang .tc-kenh-o p:first-of-type { margin-top: 0; }
.tc-trang .tc-kenh-o b { color: var(--text); }
.tc-trang .tc-o-tieu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  text-transform: none; color: var(--text); }
.tc-trang .tc-o-tieu .tc-ghi { font-weight: 500; }
.tc-trang .tc-kenh-o .chu-thich { margin-bottom: 8px; }
.tc-trang .tc-kenh-kt { display: grid; gap: 12px; max-width: 520px; }
.tc-trang .tc-kenh-kt p { margin: 0; font-size: 13.5px; color: var(--chu-2); }
.tc-trang .tc-pt { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.tc-trang .tc-pt > span { display: flex; flex-direction: column; font-size: 20px; line-height: 30px; font-weight: 800; letter-spacing: -.02em; }
.tc-trang .tc-pt > span small { font-size: 11px; line-height: 1.3; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.tc-trang .tc-pt > i { font-style: normal; font-size: 18px; line-height: 30px; color: var(--faint); }
.tc-trang .tc-hv-dat { display: flex; align-items: center; gap: 6px; color: var(--dat); font-weight: 600; }
.tc-trang .tc-hv-dat .ic { width: 17px; height: 17px; }
.tc-trang .tc-top { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: top; }
.tc-trang .tc-top li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 140px) auto; align-items: center; gap: 4px 12px; counter-increment: top; }
.tc-trang .tc-top-ten { min-width: 0; font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tc-trang .tc-top-ten::before { content: counter(top) ". "; font: 600 11.5px "JetBrains Mono", monospace; color: var(--faint); }
.tc-trang .tc-top-ten a { color: var(--text); } .tc-trang .tc-top-ten a:hover { color: var(--ds-vang-chu); }
.tc-trang .tc-top-thanh { height: 6px; border-radius: 999px; background: var(--ds-o-2); overflow: hidden; }
.tc-trang .tc-top-thanh > i { display: block; height: 100%; border-radius: inherit; background: var(--tc-thu); }
.tc-trang .tc-top-so { display: flex; flex-direction: column; align-items: flex-end; min-width: 76px; }
.tc-trang .tc-top-so b { font-size: 13.5px; }
.tc-trang .tc-top-so small { font-size: 11px; color: var(--faint); white-space: nowrap; }
.tc-trang .tc-tk-ds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.tc-trang .tc-tk-the { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; padding: 16px 18px; border-radius: 18px;
  font: inherit; text-align: left; color: var(--text); cursor: pointer; background: var(--card); border: 1px solid var(--line); box-shadow: var(--ds-bong);
  transition: border-color .16s, transform .16s; }
.tc-trang .tc-tk-the:hover { border-color: var(--line-strong); }
.tc-trang .tc-tk-the.chon { border-color: var(--ds-vien-vang); background: linear-gradient(180deg, var(--ds-vang-nen), transparent 90px), var(--card); }
.tc-trang .tc-tk-the.chon::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--g-300), transparent); }
.tc-trang .tc-tk-so { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tc-trang .tc-tk-so > .tc-tien { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.tc-trang .tc-tk-db { flex-basis: 100%; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.tc-trang .tc-tk-db b { color: var(--chu-2); }
.tc-trang .tc-tk-gau { font-size: 12.5px; color: var(--chu-2); }
.tc-trang .tc-tk-gau .tc-tien { font-weight: 700; }
.tc-trang .tc-tk-phu { font-size: 12.5px; color: var(--muted); }
.tc-trang .tc-tk-phu:empty { display: none; }
.tc-trang .tc-tk-nguon { font-size: 11.5px; color: var(--faint); }
.tc-trang .tc-tk-nguon:empty { display: none; }
/* dự phòng TikTok (nạp file / nhập tay): khối phụ, viền nét đứt, gập sẵn */
.tc-trang .khoi.tc-du-phong { background: transparent; box-shadow: none; border-style: dashed; padding: 16px 20px; }
.tc-trang .tc-du-phong > summary { display: grid; gap: 3px; min-height: 44px; list-style: none; cursor: pointer; }
.tc-trang .tc-du-phong > summary::-webkit-details-marker { display: none; }
.tc-trang .tc-du-phong > summary b { font-size: 15px; }
.tc-trang .tc-du-phong[open] > summary { margin-bottom: 16px; }
.tc-trang .tc-dp-luoi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@container trang (min-width: 860px) { .tc-trang .tc-dp-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-trang .tc-dp { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border-radius: 14px; background: var(--ds-o); border: 1px solid var(--line); }
.tc-trang .tc-dp p { margin: 0; }
.tc-trang .tc-dp-tieu { margin: 0; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: -.01em; color: var(--text); }
.tc-trang .tc-luoi-o { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px 12px; }
.tc-trang .tc-luoi-o > .rong2, .tc-trang .tc-luoi-o > .tc-tich { grid-column: 1 / -1; }
.tc-trang .tc-o { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.tc-trang .tc-o input, .tc-trang .tc-o select { width: 100%; min-height: 44px; font-size: 15px; }
.tc-trang .tc-o-ngang { flex-direction: row; align-items: center; gap: 8px; }
.tc-trang .tc-o-ngang > span { white-space: nowrap; }
.tc-trang .tc-o-ngang select { min-width: 220px; }
.tc-trang .tc-o-file { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tc-trang .tc-o-file input { width: 100%; min-height: 44px; padding: 9px 10px; font-size: 14px; }
.tc-trang .tc-tich { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13.5px; color: var(--chu-2); cursor: pointer; }
.tc-trang .tc-tich input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--g-400); flex: none; }
.tc-trang .tc-dp-nut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tc-trang .tc-file-kq:empty { display: none; }
.tc-trang .tc-file-xem { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-strong); font-size: 13.5px; }
.tc-trang .tc-file-xem p { margin: 0; }
.tc-trang .tc-file-ds { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tc-trang .tc-file-ds li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.tc-trang .tc-file-ds small { grid-column: 1 / -1; font-size: 11.5px; color: var(--faint); }
.tc-trang .tc-file-ds .tc-file-de { display: flex; align-items: center; gap: 5px; color: var(--loi-sang); }
.tc-trang .tc-file-de .ic { width: 14px; height: 14px; }
.tc-trang .tc-file-canh { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tc-trang .tc-file-canh li { display: flex; gap: 8px; align-items: flex-start; color: var(--chu-2); }
.tc-trang .tc-file-canh .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--vang); }

/* ---- Chi phí: cơ cấu · ba nhóm, thêm / sửa / xoá tại chỗ · mỗi kênh gánh bao nhiêu */
.tc-trang .tc-cp-so { display: inline-flex; align-items: baseline; gap: 8px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.tc-trang .tc-cp-so .tc-ghi { font-weight: 500; letter-spacing: 0; }
.tc-trang .tc-cp-tong > .tc-ghi { margin: 14px 0 0; }
.tc-trang .tc-cp-ds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.tc-trang .tc-cp-nhom-dau { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.tc-trang .tc-cp-nhom-dau .tieu-muc { margin: 0; }
.tc-trang .tc-cp-nhom-dau > b { font-size: 18px; }
.tc-trang .tc-cp-list { margin: 0; padding: 0; list-style: none; }
.tc-trang .tc-cp-dong { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.tc-trang .tc-cp-dong.sua { display: block; }
.tc-trang .tc-cp-ten { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tc-trang .tc-cp-ten > b { font-size: 14.5px; overflow-wrap: anywhere; }
.tc-trang .tc-cp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tc-trang .tc-cp-gan { font-size: 12px; color: var(--muted); }
.tc-trang .tc-lap { gap: 4px; } .tc-trang .tc-lap .ic { width: 12px; height: 12px; }
.tc-trang .tc-cp-tien { display: flex; flex-direction: column; align-items: flex-end; font-size: 16px; font-weight: 700; }
.tc-trang .tc-cp-tien small { font-size: 11px; font-weight: 500; color: var(--faint); white-space: nowrap; }
.tc-trang .tc-cp-nut { display: flex; gap: 6px; }
.tc-trang .tc-cp-nut .nut-ma { min-height: 44px; padding: 0 12px; }
.tc-trang .tc-cp-hoi { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--loi) 7%, transparent); border: 1px solid var(--vien-loi); }
.tc-trang .tc-cp-hoi > span { flex: 1 1 220px; font-size: 13px; color: var(--loi-sang); }
.tc-trang .tc-cp-hoi .nut-nguy, .tc-trang .tc-cp-hoi .nut-ma { min-height: 44px; }
.tc-trang .tc-cp-form { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; background: var(--ds-o); border: 1px dashed var(--ds-vien-vang); }
.tc-trang .tc-cp-them { min-height: 44px; margin-top: 12px; }
.tc-trang .tc-cp-them .ic { stroke-width: 2.4; }
.tc-trang .tc-cp-rong { margin: 6px 0 0; font-size: 13px; color: var(--faint); }
/* danh sách chi phí kiểu bảng (spec mục 13): Tên · Số tiền · Tiền tệ · Gắn vào · Hằng tháng · thao tác; dòng trống luôn ở cuối */
.tc-trang .tc-cpl { --tc-cpl-cot: minmax(150px, 2fr) minmax(128px, 1.2fr) 86px minmax(150px, 1.5fr) 118px 96px; display: flex; flex-direction: column; min-width: 0; }
.tc-trang .tc-cpl-dau, .tc-trang .tc-cpl-dong { display: grid; grid-template-columns: var(--tc-cpl-cot); align-items: center; gap: 4px 10px; min-width: 0; }
.tc-trang .tc-cpl-dau { padding: 6px 0 8px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.tc-trang .tc-cpl-dau .so { text-align: right; }
.tc-trang .tc-cpl-dong { padding: 9px 0; border-bottom: 1px solid var(--line); }
.tc-trang .tc-cpl-dong.nhap { padding: 6px 0; border-bottom-style: dashed; }
.tc-trang .tc-cpl-dong.sua { padding: 8px 10px; margin: 2px -10px; border-radius: 12px; border: 1px dashed var(--ds-vien-vang); background: var(--ds-o); }
.tc-trang .tc-cpl-dong.co-loi { box-shadow: inset 3px 0 0 var(--loi); padding-left: 8px; }
.tc-trang .tc-cpl-o { min-width: 0; font-size: 13.5px; color: var(--chu-2); }
.tc-trang .tc-cpl-o.ten { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tc-trang .tc-cpl-o.ten > b { font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.tc-trang .tc-cpl-o.tien { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; color: var(--text); }
.tc-trang .tc-cpl-o.tien small { font-size: 11px; font-weight: 500; color: var(--faint); white-space: nowrap; }
.tc-trang .tc-cpl-dong.nhap .tc-cpl-o.tien { align-items: stretch; gap: 4px; font-weight: 400; }
.tc-trang .tc-cpl-o.act { display: flex; justify-content: flex-end; gap: 4px; }
.tc-trang .tc-cpl-dong input:not([type="checkbox"]), .tc-trang .tc-cpl-dong select { width: 100%; min-height: 40px; padding: 0 10px; font-size: 14px; border-radius: 10px;
  background: var(--ds-the-2); }
.tc-trang .tc-cpl-dong input[name="so_tien"], .tc-trang .tc-cpl-dong input[name="ty_gia"] { text-align: right; font-family: "JetBrains Mono", monospace; }
/* Ô ngày / tháng trên iPhone: Safari iOS vẽ ô ngày bằng khuôn riêng, tính bề rộng kiểu content-box nên width:100% bị cộng
   thêm lề trong + viền (tràn mép phải đúng 26 px) và căn chữ ra giữa. Bỏ khuôn riêng, dùng bề rộng "lấp đầy" (không phụ
   thuộc box-sizing), chữ về trái như mọi ô khác. */
.tc-trang .tc-o input:is([type="date"], [type="month"]), .tc-trang .tc-cpl-dong input:is([type="date"], [type="month"]) {
  -webkit-appearance: none; appearance: none; display: flex; align-items: center; box-sizing: border-box; min-width: 0; max-width: 100%;
  width: 100%; width: -moz-available; width: -webkit-fill-available; width: stretch; }
.tc-trang input:is([type="date"], [type="month"])::-webkit-date-and-time-value { margin: 0; text-align: left; }
.tc-trang .tc-cpl-dong.nhap:not(.sua) input[name="ten"]:placeholder-shown { border-style: dashed; }
.tc-trang .tc-cpl-tich { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; color: var(--chu-2); cursor: pointer; }
.tc-trang .tc-cpl-tich input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--g-400); flex: none; }
.tc-trang .tc-cpl-lap { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--chu-2); }
.tc-trang .tc-cpl-lap .ic { width: 13px; height: 13px; color: var(--ds-vang-chu); }
.tc-trang .tc-cpl-mot { font-size: 12.5px; color: var(--faint); }
.tc-trang .tc-cpl-icon, .tc-trang .tc-cpl-bo, .tc-trang .tc-cpl-ghi-nut { width: 40px; min-height: 40px; padding: 0; }
.tc-trang .tc-cpl-ghi-nut.co { color: var(--ds-vang-chu); border-color: var(--ds-vien-vang); }
.tc-trang .tc-cpl-ghi { grid-column: 1 / -1; }
.tc-trang .tc-cpl-ghi-chu { flex-basis: 100%; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.tc-trang .tc-cpl-loi { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; color: var(--loi-sang); }
.tc-trang .tc-cpl-dong .tc-cp-hoi { grid-column: 1 / -1; }
.tc-trang .tc-the.tu-so { color: var(--chu-2); border: 1px solid var(--line-strong); background: var(--ds-o-2); }
.tc-trang .tc-cpl-so-ghi { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; color: var(--chu-2);
  background: var(--ds-o); border: 1px solid var(--line); }
.tc-trang .tc-cpl-so-ghi .ic { width: 15px; height: 15px; margin-top: 2px; color: var(--ds-vang-chu); }
.tc-trang .tc-cpl-so-ghi a { font-weight: 700; white-space: nowrap; }
.tc-trang .tc-cpl-claude { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.tc-trang .tc-cpl-chan { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; margin-top: 12px; }
.tc-trang .tc-cpl-goi { margin-right: auto; }
.tc-trang .tc-cpl-loi-nhom { flex-basis: 100%; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--loi-sang);
  background: color-mix(in srgb, var(--loi) 8%, transparent); border: 1px solid var(--vien-loi); }
.tc-trang .tc-cpl-luu { min-height: 44px; }
@container trang (max-width: 760px) {  /* hẹp: mỗi dòng thành một thẻ nhỏ cùng các ô, dòng trống vẫn ở cuối */
  .tc-trang .tc-cpl-dau { display: none; }
  .tc-trang .tc-cpl-dong { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ten ten" "tien tt" "gan gan" "lap act";
    gap: 6px 10px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--ds-the); }
  .tc-trang .tc-cpl-dong.nhap { padding: 10px 12px; border-style: dashed; border-bottom-style: dashed; }
  .tc-trang .tc-cpl-dong.sua { margin: 0 0 10px; }
  .tc-trang .tc-cpl-dong.co-loi { padding-left: 12px; border-color: var(--vien-loi); }
  .tc-trang .tc-cpl-o.ten { grid-area: ten; } .tc-trang .tc-cpl-o.tien { grid-area: tien; } .tc-trang .tc-cpl-o.tt { grid-area: tt; }
  .tc-trang .tc-cpl-o.gan { grid-area: gan; } .tc-trang .tc-cpl-o.lap { grid-area: lap; } .tc-trang .tc-cpl-o.act { grid-area: act; align-self: end; }
  .tc-trang .tc-cpl-dong:not(.nhap) { grid-template-areas: "ten tien" "gan gan" "lap act"; }
  .tc-trang .tc-cpl-dong:not(.nhap) .tc-cpl-o.tt { display: none; }
  .tc-trang .tc-cpl-dong.nhap .tc-cpl-o:not(.ten):not(.act):not(.lap)::before { content: attr(data-nhan); display: block; margin-bottom: 3px; font-size: 11px; font-weight: 600; color: var(--faint); }
  .tc-trang .tc-cpl-dong:not(.nhap) .tc-cpl-o.gan { font-size: 12.5px; color: var(--muted); }
  .tc-trang .tc-cpl-dong.nhap .tc-cpl-o.tien { align-items: stretch; }
}
@media (max-width: 767px) {
  .tc-trang .tc-cpl-dong input:not([type="checkbox"]), .tc-trang .tc-cpl-dong select { min-height: 44px; font-size: 16px; }
  .tc-trang .tc-cpl-icon, .tc-trang .tc-cpl-bo, .tc-trang .tc-cpl-ghi-nut, .tc-trang .tc-cpl-tich { min-height: 44px; min-width: 44px; }
  .tc-trang .tc-cpl-luu { width: 100%; }
}
.tc-trang .tc-cpk { display: grid; gap: 10px; }
.tc-trang .tc-cpk-ray { height: 10px; border-radius: 999px; background: var(--ds-o); overflow: hidden; }
.tc-trang .tc-cpk-ray > i { display: block; height: 100%; border-radius: inherit; background: var(--tc-chi); }

/* ---- Sổ tháng: chốt YouTube · mục tiêu · gọi Giám đốc Tài chính · bảng tháng × kênh */
.tc-trang #tc-stc { display: flex; flex-direction: column; gap: 12px; }
.tc-trang #tc-stc p { margin: 0; }
.tc-trang .tc-chuyen { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; border-radius: 12px; font: 600 13.5px "Be Vietnam Pro", sans-serif;
  text-align: left; color: var(--text); cursor: pointer; background: color-mix(in srgb, var(--loi) 7%, transparent); border: 1px solid var(--vien-loi); }
.tc-trang .tc-chuyen > span { flex: 1; min-width: 0; }
.tc-trang .tc-chuyen .ic { width: 16px; height: 16px; color: var(--loi-sang); }
.tc-trang .tc-da-chot { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tc-trang .tc-da-chot li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px 6px 12px; border-radius: 12px; background: var(--ds-o); font-size: 13.5px; }
.tc-trang .tc-da-chot li > .ic { width: 18px; height: 18px; color: var(--dat); }
.tc-trang .tc-da-chot li > span { flex: 1; min-width: 0; }
.tc-trang .tc-stc-cach { align-self: flex-start; }
.tc-trang #tc-stc-form { display: flex; flex-direction: column; gap: 10px; }
.tc-trang #tc-mt-form { display: flex; flex-direction: column; gap: 12px; }
.tc-trang #tc-mt-form > p { margin: 0; }
.tc-trang .tc-mt-ds { display: grid; }
.tc-trang .tc-mt-dong { display: grid; grid-template-columns: minmax(0, 1fr) 140px; grid-template-areas: "ten o" "tt tt" "thanh thanh"; align-items: center; gap: 4px 12px;
  padding: 10px 0; border-top: 1px solid var(--line); }
.tc-trang .tc-mt-dong:first-child { border-top: 0; }
.tc-trang .tc-mt-ten { grid-area: ten; display: flex; flex-direction: column; }
.tc-trang .tc-mt-ten b { font-size: 14px; } .tc-trang .tc-mt-ten small { font-size: 11.5px; color: var(--faint); }
.tc-trang .tc-mt-o { grid-area: o; position: relative; }
.tc-trang .tc-mt-o input { width: 100%; min-height: 44px; padding-right: 32px; text-align: right; font: 600 15px "JetBrains Mono", monospace; }
.tc-trang .tc-mt-o i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--faint); pointer-events: none; }
.tc-trang .tc-mt-tt { grid-area: tt; font-size: 12px; color: var(--muted); }
.tc-trang .tc-mt-thanh { grid-area: thanh; margin-top: 2px; }
.tc-trang .tc-mt-thanh.dat > i { background: var(--tc-lai); }
.tc-trang .khoi.tc-st-goi { padding: 16px 20px; }
.tc-trang .tc-goi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.tc-trang .tc-goi-chu { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 320px; }
.tc-trang .tc-goi-chu b { display: block; font-size: 15.5px; }
.tc-trang .tc-goi-chu .tc-ghi { display: block; margin-top: 2px; }
.tc-trang .tc-so-bang td.so > * { display: block; width: fit-content; margin-left: auto; }
.tc-trang .tc-so-bang td.so > .tc-the { display: flex; margin-top: 3px; }
.tc-trang .tc-so-bang small { font: 400 11px "Be Vietnam Pro", sans-serif; color: var(--faint); white-space: nowrap; }
.tc-trang .tc-so-bang small.tc-lech-pct { font-family: "JetBrains Mono", monospace; font-size: 10.5px; }
.tc-trang .tc-st-so { font-weight: 700; white-space: nowrap; }
.tc-trang .tc-st-so.uoc { font-weight: 500; color: var(--chu-2); }
.tc-trang .tc-st-trong { color: var(--faint); }
.tc-trang .tc-so-bang th { white-space: nowrap; }
.tc-trang .tc-st-them { caption-side: bottom; padding-top: 12px; text-align: left; }

/* ---- Giám đốc Tài chính */
.tc-trang .khoi.tc-gd-dau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 16px 20px; }
.tc-trang .tc-gd-ten { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tc-trang .tc-gd-ten b { font-size: 16px; }
.tc-trang #tc-gd-tt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.tc-trang .tc-gd-chon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tc-trang .tc-gd-chay { min-height: 44px; }
.tc-trang .tc-gd-chay .ic { stroke-width: 2.2; }
.tc-trang .tc-lk-ds { display: flex; flex-direction: column; gap: 12px; }
.tc-trang .tc-lk-luoi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@container trang (min-width: 900px) { .tc-trang .tc-lk-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-trang .tc-lk.t-moi { border-color: var(--ds-vien-vang); background: linear-gradient(180deg, var(--ds-vang-nen), transparent 140px), var(--ds-the); }
.tc-trang .tc-lk.t-da_lam { box-shadow: inset 3px 0 0 var(--dat), var(--ds-noi); }
.tc-trang .tc-lk.t-bo { opacity: .78; }
.tc-trang .tc-lk .hang-nhan p { margin: 0; }
.tc-trang .tc-lk-so { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tc-trang .tc-lk-so .tc-gdn-td { margin-left: 0; font-size: 15px; }
.tc-trang .tc-lk-bc summary { display: inline-flex; align-items: center; min-height: 36px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tc-trang .tc-lk-bc .ds-gon { font-size: 13px; color: var(--chu-2); }
.tc-trang .tc-lk .chan-the { align-items: center; }
.tc-trang .tc-md { max-width: 78ch; }
.tc-trang .tc-md ol { margin: 8px 0; padding-left: 24px; }
.tc-trang .tc-md ol li::marker { color: var(--g-400); font-weight: 700; }

/* ---- co giãn theo bề rộng vùng nội dung */
@container trang (max-width: 1080px) {
  .tc-trang .hero.tc-hq { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "huy chu" "mt mt"; }
  .tc-trang .tc-hq > .tc-hq-mt { justify-self: start; }
  .tc-trang .tc-mt-chu { max-width: none; }
}
@container trang (max-width: 900px) {
  .tc-trang .so-dai.tc-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-trang .tc-kpi-o.lai-o { display: none; }  /* lãi ròng đã là số lớn của hero ngay trên */
  .tc-trang .so-dai.tc-kenh-so { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container trang (max-width: 640px) {
  .tc-trang .bang-the td { white-space: normal; }
  .tc-trang .tc-so-bang td.so > * { margin-left: 0; }
  /* sổ tháng trên điện thoại: mỗi tháng một thẻ, kênh xếp 2 cột (nhãn trên, số dưới) cho thẻ ngắn lại một nửa */
  .tc-trang .tc-so-bang.bang-the tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; padding: 10px 14px 12px; }
  .tc-trang .tc-so-bang.bang-the td { min-height: 0; padding: 6px 0 4px; border: 0; min-width: 0; }
  .tc-trang .tc-so-bang.bang-the td + td { border-top: 0; }
  .tc-trang .tc-so-bang.bang-the td::before { position: static; display: block; width: auto; margin-bottom: 2px; font-size: 11px; letter-spacing: 0;
    text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tc-trang .tc-so-bang.bang-the td:not([data-nhan]) { grid-column: 1 / -1; padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
  .tc-trang .bang-the tr.tc-dong-chon { border-color: var(--ds-vien-vang); }
  .tc-trang .bang-the tr.tc-dong-chon td { background: transparent; }
  .tc-trang .tc-lech-dong { grid-template-columns: minmax(0, 1fr) auto; }
  .tc-trang .tc-lech-ray { grid-column: 1 / -1; grid-row: 2; }
  .tc-trang .tc-top li { grid-template-columns: minmax(0, 1fr) auto; }
  .tc-trang .tc-top-thanh { grid-column: 1 / -1; grid-row: 2; }
  .tc-trang .tc-cp-dong { grid-template-columns: minmax(0, 1fr) auto; }
  .tc-trang .tc-cp-nut { grid-column: 1 / -1; justify-content: flex-end; }
  .tc-trang .tc-mt-dong { grid-template-columns: minmax(0, 1fr) 120px; }
}
@container trang (max-width: 520px) {
  .tc-trang .tc-tabs .ic { display: none; }
  .tc-trang .tc-tabs .tab-doan { gap: 6px; padding: 0 12px; font-size: 13.5px; }
}
/* ---- điện thoại: hero ≤ 1/3 màn (huy hiệu · nhãn · vòng nhỏ ở hàng đầu, số lớn, một câu, chip), ô nhập 16px, chạm ≥ 44px */
@media (max-width: 767px) {
  .tc-trang .tc-dau { flex-wrap: nowrap; gap: 8px; }
  .tc-trang .tc-thang { flex: 1 1 auto; min-width: 0; justify-content: space-between; }
  .tc-trang .tc-thang-o { min-width: 0; flex: 1; }
  .tc-trang .tc-thang-o select { width: 100%; font-size: 16px; padding: 0 4px; }
  .tc-trang .tc-thang-chon { width: 100%; font-size: 16px; padding: 0 4px; }
  .tc-trang .tc-cn { flex: none; gap: 6px; }
  .tc-trang .tc-cn-luc { max-width: 84px; font-size: 11px; line-height: 1.25; text-align: right; }
  .tc-trang .tc-cn-nut { width: 44px; padding: 0; }
  .tc-trang .tc-cn-nut .tc-an-hep { display: none; }
  .tc-trang .hero.tc-hq { grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "huy nhan mt" "so so mt" "cau cau cau" "chip chip chip"; gap: 2px 12px; align-items: center; }
  .tc-trang .tc-hq-chu { display: contents; }
  .tc-trang .tc-hq > .huy { grid-area: huy; align-self: center; }
  .tc-trang .tc-hq .tc-hq-nhan { display: block; grid-area: nhan; align-self: center; min-width: 0; font-size: 10.5px; letter-spacing: .1em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tc-trang .tc-hq-so { grid-area: so; gap: 4px 10px; }
  .tc-trang .tc-so-hero { font-size: 38px; }
  .tc-trang .tc-so-hero.rong { font-size: 24px; }
  .tc-trang .tc-hq-cau { grid-area: cau; margin-top: 8px; font-size: 13.5px; line-height: 1.45; }
  .tc-trang .tc-hq-chip { grid-area: chip; margin-top: 8px; }
  .tc-trang .tc-hq > .tc-hq-mt { grid-area: mt; grid-column: auto; align-self: center; padding: 0; background: none; border: 0; }
  .tc-trang .tc-mt-chu { display: none; }
  .tc-trang .tc-vong-o .vong { width: 76px; height: 76px; }
  .tc-trang .tc-vong-sao { width: 24px; height: 24px; top: -4px; right: -6px; }
  .tc-trang .tc-vong-sao .ic { width: 15px; height: 15px; }
  .tc-trang .tc-chi-dt, .tc-trang .tc-hq-chip .tc-chi-dt { display: inline-flex; }
  .tc-trang .tc-chi-dt .tc-nhip { margin-top: 0; }
  .tc-trang .tc-kpi-o .so-lon { font-size: 22px; }
  .tc-trang .so-dai.tc-kpi > .so-o { padding: 12px 14px; gap: 4px; }
  .tc-trang .tc-kpi-o .so-phu { font-size: 11.5px; }
  .tc-trang .tc-nhom { padding: 14px 16px; }
  .tc-trang .tc-nhom-so .tc-tien { font-size: 24px; }
  .tc-trang input, .tc-trang select, .tc-trang textarea, .tc-trang .tc-o input, .tc-trang .tc-o select, .tc-trang .tc-mt-o input { font-size: 16px; }  /* iOS không tự phóng to */
  .tc-trang .tc-nut-nho, .tc-trang .loc-nut, .tc-trang .tc-chip .loc-nut { min-height: 44px; }
  .tc-trang .tc-o-ngang { flex-direction: column; align-items: stretch; }
  .tc-trang .tc-o-ngang select { min-width: 0; }
  .tc-trang .tc-gd-chon { width: 100%; }
  .tc-trang .tc-gd-chon > * { flex: 1 1 100%; }
  .tc-trang .khoi.tc-gd-dau, .tc-trang .khoi.tc-st-goi, .tc-trang .khoi.tc-anh, .tc-trang .khoi.tc-du-phong { padding: 14px 16px; }
  .tc-trang .tc-goi .nut { width: 100%; }
  .tc-trang .tc-pt > span { font-size: 18px; line-height: 28px; }
  .tc-trang .tc-pt > i { line-height: 28px; }
}
/* ---- chọn nhiều tháng (kỳ): nút "Nhiều tháng" mở hộp nhỏ dưới ô chọn tháng; xem kỳ thì ô tháng thành nhãn kỳ + nút về một tháng */
.tc-trang .tc-chon-ky { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.tc-trang .tc-ky-nut { min-height: 44px; }
.tc-trang .tc-ky-nut.dang { color: var(--ds-vang-chu); border-color: var(--ds-vien-vang); background: var(--ds-vang-nen); }
.tc-trang .tc-ky-nhan { padding: 0 6px 0 12px; font: 800 16px "Be Vietnam Pro", sans-serif; letter-spacing: -.02em; color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tc-trang .tc-thang.dang-ky { border-color: var(--ds-vien-vang); }
.tc-trang .tc-ky-hop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 25; display: flex; flex-direction: column; gap: 12px; width: min(460px, calc(100vw - 32px));
  padding: 14px; border-radius: 16px; background: var(--card-dac); border: 1px solid var(--line-strong); box-shadow: var(--bong-noi); }
.tc-trang .tc-ky-nhanh { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-trang .tc-ky-nhanh .loc-nut { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--ds-o); }
.tc-trang .tc-ky-nhanh .loc-nut.dang { border-color: var(--ds-vien-vang); }
.tc-trang .tc-ky-nam { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tc-trang .tc-ky-nam[hidden] { display: none; }
.tc-trang .tc-ky-nam .tc-ky-tuy-ten { flex-basis: 100%; }
.tc-trang .tc-ky-nam .loc-nut { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--ds-o); font-variant-numeric: tabular-nums; }
.tc-trang .tc-ky-nam .loc-nut.dang { border-color: var(--ds-vien-vang); }
.tc-trang .tc-ky-nam .loc-nut small { margin-left: 6px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.tc-trang .tc-ky-tuy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.tc-trang .tc-ky-tuy-ten { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tc-trang .tc-ky-xem { min-height: 44px; }
.tc-trang .tc-ky-hop > .tc-ghi { margin: 0; }
.tc-trang .tc-ky-hop > .tc-ghi.loi { color: var(--loi-sang); font-weight: 600; }
.tc-trang .tc-ky-ghi { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--chu-2); background: var(--ds-vang-nen); border: 1px solid var(--ds-vien-vang); }
/* dự báo: dòng riêng, nhạt, nói căn cứ — không đứng vào chỗ số đã xảy ra */
.tc-trang .tc-db { flex-basis: 100%; display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.tc-trang .tc-db .ic { width: 14px; height: 14px; margin-top: 1px; flex: none; color: var(--faint); }
.tc-trang .tc-db b { font-weight: 700; color: var(--chu-2); }
.tc-trang .hero .tc-db, .tc-trang .hero .tc-db b { color: var(--hs-phu); }
.tc-trang .tc-db-chu { color: var(--muted); }
.tc-trang .tc-hq-chip .tt-phu .ic { width: 14px; height: 14px; }
.tc-trang .tc-ct-nay { font-style: italic; color: var(--faint); }
/* mục tiêu: chọn tháng này / tháng sau; tháng đã qua = mục tiêu so với kết quả, chỉ đọc */
.tc-trang .tc-mt-chon .loc-nut span { margin-left: 2px; }
.tc-trang #tc-st-mt { scroll-margin-top: 80px; }
.tc-trang .tc-mt-cu { display: grid; gap: 6px; margin-bottom: 16px; padding: 14px; border-radius: 14px; background: var(--ds-o); border: 1px solid var(--line); }
.tc-trang .tc-mt-cu .tc-o-tieu { margin-bottom: 4px; }
.tc-trang .tc-mt-cu > .tc-ghi { margin: 4px 0 0; }
.tc-trang .tc-mt-kq { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ten tl" "so so" "thanh thanh"; gap: 3px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.tc-trang .tc-mt-kq:first-of-type { border-top: 0; }
.tc-trang .tc-mt-kq .tc-mt-ten { grid-area: ten; }
.tc-trang .tc-mt-kq-so { grid-area: so; font-size: 12.5px; color: var(--muted); }
.tc-trang .tc-mt-kq-so b, .tc-trang .tc-mt-kq-so .tc-tien { color: var(--chu-2); font-weight: 700; }
.tc-trang .tc-mt-kq-tl { grid-area: tl; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tc-trang .tc-mt-kq-tl.dat { color: var(--dat); }
.tc-trang .tc-mt-kq-tl .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.tc-trang .tc-mt-kq .tc-mt-thanh { grid-area: thanh; }
.tc-trang .tc-mt-dat-dt .ic { width: 13px; height: 13px; }
/* ô chọn (select) cùng kiểu Cài đặt: Chrome mới dùng hộp xổ tuỳ biến (nền thẻ đặc, bo 12, dòng chọn vàng) — giữ y luật
   .cd-trang select của Cài đặt; trình duyệt cũ / iPhone giữ hộp chọn gốc (luật option chung đã có nền đặc). */
.tc-trang select { color-scheme: inherit; }
@supports (appearance: base-select) {
  .tc-trang select, .tc-trang select::picker(select) { appearance: base-select; }
  .tc-trang select { display: inline-flex; align-items: center; gap: 10px; }
  .tc-trang select::picker-icon { color: var(--muted); transition: rotate .16s; }
  .tc-trang select:open::picker-icon { rotate: 180deg; }
  .tc-trang select::picker(select) { margin-top: 6px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; max-height: min(420px, 60vh);
    background: var(--card-dac); color: var(--text); box-shadow: var(--bong-noi); }
  .tc-trang select option { min-height: 38px; padding: 0 12px; border-radius: 8px; background: transparent; gap: 10px; cursor: pointer; font: 500 14px "Be Vietnam Pro", sans-serif;
    letter-spacing: 0; text-align: left; }
  .tc-trang select option:hover, .tc-trang select option:focus-visible { background: var(--ds-o-2); outline: none; }
  .tc-trang select option:checked { background: color-mix(in srgb, var(--g-300) 16%, transparent); color: var(--g-200); font-weight: 600; }
  [data-theme="light"] .tc-trang select option:checked { color: var(--vang-sang); }
  .tc-trang select option::checkmark { color: var(--g-300); }
  .tc-trang select optgroup { font: 700 11px "Be Vietnam Pro", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: transparent; }
  .tc-trang .tc-thang-o select { -webkit-appearance: base-select; appearance: base-select; justify-content: center; }
  .tc-trang .tc-thang-o select::picker(select) { min-width: 200px; }
}
@media (max-width: 767px) {
  .tc-trang .tc-chon-ky { flex: 1 1 0; position: static; }
  .tc-trang .tc-dau { position: relative; flex-wrap: wrap; row-gap: 4px; }
  .tc-trang .tc-cn { display: contents; }
  .tc-trang .tc-cn-luc { order: 3; flex-basis: 100%; max-width: none; text-align: left; font-size: 11.5px; }
  .tc-trang .tc-cn-luc br { display: none; }
  .tc-trang .tc-ky-nut { width: 44px; padding: 0; flex: none; }
  .tc-trang .tc-ky-nut .tc-an-hep { display: none; }
  .tc-trang .tc-ky-nhan { font-size: 14px; padding-left: 8px; flex: 1; }
  .tc-trang .tc-ky-hop { left: 0; right: 0; width: auto; }
  .tc-trang .tc-ky-tuy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tc-trang .tc-ky-xem { grid-column: 1 / -1; }
  .tc-trang .tc-ky-nhanh .loc-nut, .tc-trang .tc-ky-nam .loc-nut { min-height: 44px; }
  .tc-trang .tc-tm-thang { min-height: 44px; }
}

/* ---- thanh tab hai tầng (sếp 15/11 — spec 15.3): tầng 1 #tc-muc = 4 ô mục lớn bằng nhau (biểu tượng + tên + MỘT con số sống) +
   nút Giám đốc Tài chính đứng riêng bên phải; mục đang mở nổi lên trong sắc riêng (--sm: vàng · xanh · trung tính / hồng khi có việc
   · tím), có gạch chân sắc. Tầng 2 .tc-con = dải chip của mục (cuộn ngang trên điện thoại). Chỉ biến màu sẵn có, đủ sáng – tối.
   --sm = màu nền / viền của sắc, --sm-chu = màu chữ / biểu tượng đọc được trên nền (sáng: vàng đậm). */
.tc-trang [data-sac="vang"] { --sm: var(--g-300); --sm-chu: var(--g-200); }
[data-theme="light"] .tc-trang [data-sac="vang"] { --sm-chu: var(--vang-sang); }
.tc-trang [data-sac="xanh"] { --sm: var(--dat); --sm-chu: var(--dat); }
.tc-trang [data-sac="trung"] { --sm: var(--trung); --sm-chu: var(--chu-2); }
.tc-trang [data-sac="trung"].co-viec { --sm: var(--loi); --sm-chu: var(--loi-sang); }
.tc-trang [data-sac="tim"] { --sm: var(--mau-tim); --sm-chu: var(--mau-tim); }
.tc-trang .tc-chon-ky[hidden] { display: none; }
.tc-trang .tc-chon-ky[hidden] + .tc-cn { margin-left: auto; }
.tc-trang .tc-nav { display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 76px; }
.tc-trang .tc-muc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 6px; padding: 6px; border-radius: 20px;
  background: var(--ds-o); border: 1px solid var(--line); box-shadow: var(--ds-ranh-bong); }
.tc-trang .tc-muc-nut { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-areas: "ic ten" "ic so";
  align-items: center; column-gap: 12px; row-gap: 2px; min-width: 0; min-height: 68px; padding: 10px 14px 10px 12px; border: 1px solid transparent;
  border-radius: 15px; background: transparent; color: var(--muted); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .16s, border-color .16s, box-shadow .16s, color .16s; }
.tc-trang .tc-muc-nut:hover { color: var(--text); background: var(--ds-o-2); }
.tc-trang .tc-muc-nut:focus-visible { outline: 2px solid var(--g-400); outline-offset: -2px; }
.tc-trang .tc-muc-ic { grid-area: ic; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--sm-chu);
  background: color-mix(in srgb, var(--sm) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sm) 24%, transparent); transition: background-color .16s; }
.tc-trang .tc-muc-ic .ic { width: 20px; height: 20px; stroke-width: 2.1; }
.tc-trang .tc-muc-ten { grid-area: ten; min-width: 0; font: 700 11.5px/1.5 "Be Vietnam Pro", sans-serif; letter-spacing: .09em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 5px 0 1px; margin: -5px 0 -1px; }  /* chữ hoa có dấu chồng (Ổ, À…) cao hơn dòng: chừa chỗ để overflow không cắt mất dấu */
.tc-trang .tc-muc-so { grid-area: so; display: flex; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; }
.tc-trang .tc-muc-gt { font: 800 19px/1.2 "Be Vietnam Pro", sans-serif; letter-spacing: -.025em; color: var(--text); font-variant-numeric: tabular-nums; }
.tc-trang .tc-muc-gt.lai { color: var(--dat); }
.tc-trang .tc-muc-gt.lo { color: var(--loi-sang); }
.tc-trang .tc-muc-rong, .tc-trang .tc-muc-cho { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--faint); }
.tc-trang .tc-muc-phu { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; color: var(--muted); }
.tc-trang .tc-muc-phu b { color: var(--chu-2); font-weight: 700; }
.tc-trang .tc-muc-cham { position: absolute; top: 8px; right: 9px; display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; font: 700 11px/1 "Be Vietnam Pro", sans-serif; color: var(--loi-sang); background: color-mix(in srgb, var(--loi) 16%, transparent);
  box-shadow: 0 0 0 1px var(--vien-loi); }
.tc-trang .tc-muc-cham[hidden] { display: none; }
.tc-trang .tc-muc-nut[aria-selected="true"] { color: var(--text); border-color: color-mix(in srgb, var(--sm) 46%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sm) 15%, var(--card-dac)), color-mix(in srgb, var(--sm) 6%, var(--card-dac)));
  box-shadow: var(--ds-noi-chon-bong-gon), inset 0 -3px 0 color-mix(in srgb, var(--sm) 85%, transparent); }
.tc-trang .tc-muc-nut[aria-selected="true"] .tc-muc-ic { background: color-mix(in srgb, var(--sm) 26%, transparent); border-color: color-mix(in srgb, var(--sm) 60%, transparent); }
.tc-trang .tc-muc-nut[aria-selected="true"] .tc-muc-ten { color: var(--sm-chu); }
/* nút Giám đốc Tài chính: đứng riêng, kiểu nút viền tím, số lời khuyên mới ở góc */
.tc-trang .tc-muc-gd { grid-template-columns: 42px auto; grid-template-areas: "ic ten"; padding-right: 18px; margin-left: 4px;
  border-color: color-mix(in srgb, var(--sm) 32%, transparent); background: color-mix(in srgb, var(--sm) 5%, transparent); }
.tc-trang .tc-muc-gd .tc-muc-ten { max-width: 10ch; font-size: 13.5px; line-height: 1.25; letter-spacing: -.005em; text-transform: none; white-space: normal; color: var(--text); }
.tc-trang .tc-gd-dem:not(:empty) { position: absolute; top: 6px; right: 6px; display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; font: 700 11px/1 "Be Vietnam Pro", sans-serif; color: var(--card-dac); background: var(--mau-tim); }
.tc-trang .tc-gd-dem:empty { display: none; }
/* tầng 2: dải chip */
.tc-trang .tc-nhom-p { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tc-trang .tc-nhom-p[hidden], .tc-trang .tc-pane[hidden] { display: none; }
.tc-trang .tabs-doan.tc-con { display: flex; align-self: stretch; gap: 6px; max-width: 100%; margin: -6px 0 0; padding: 2px 2px 4px; border: 0; border-radius: 0;
  background: none; box-shadow: none; }
.tc-trang .tc-con > .tab-doan { min-height: 40px; padding: 0 16px; gap: 7px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--ds-o);
  font-size: 13.5px; box-shadow: none; }
.tc-trang .tc-con > .tab-doan .ic { width: 16px; height: 16px; color: var(--faint); }
.tc-trang .tc-con > .tab-doan:hover { border-color: color-mix(in srgb, var(--sm, var(--g-300)) 40%, var(--line-strong)); }
.tc-trang .tc-con > .tab-doan[aria-selected="true"] { color: var(--text); font-weight: 700; border-color: color-mix(in srgb, var(--sm, var(--g-300)) 58%, transparent);
  background: color-mix(in srgb, var(--sm, var(--g-300)) 15%, transparent); box-shadow: none; }
.tc-trang .tc-con > .tab-doan[aria-selected="true"] .ic { color: var(--sm-chu, var(--ds-vang-chu)); }
.tc-trang .tc-con > .tab-doan:focus-visible { outline-offset: -2px; }
.tc-trang .ts-goc > .tc-con { margin-top: -6px; }
/* ---- hàng "nhìn sang" Tài sản / Thuế dưới dải số Tổng quan (chỉ ô có số thật) */
.tc-trang .tc-lien { display: grid; grid-template-columns: repeat(var(--lien-cot, 3), minmax(0, 1fr)); gap: 12px; }
.tc-trang .tc-lien[hidden] { display: none; }
.tc-trang .tc-lien-o { --sm: var(--mau-tim); --sm-chu: var(--mau-tim); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nhan mui" "so mui" "phu mui";
  align-items: center; gap: 2px 10px; min-width: 0; padding: 14px 16px; border-radius: 16px; color: var(--text); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--sm) 30%, var(--line)); background: color-mix(in srgb, var(--sm) 6%, var(--card));
  transition: border-color .16s, background-color .16s; }
.tc-trang .tc-lien-o.l-vang { --sm: var(--g-300); --sm-chu: var(--ds-vang-chu); }
.tc-trang .tc-lien-o:hover { border-color: color-mix(in srgb, var(--sm) 55%, transparent); }
.tc-trang .tc-lien-nhan { grid-area: nhan; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sm-chu); }
.tc-trang .tc-lien-so { grid-area: so; font: 800 22px/1.2 "Be Vietnam Pro", sans-serif; letter-spacing: -.02em; }
.tc-trang .tc-lien-so small { margin-left: 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tc-trang .tc-lien-phu { grid-area: phu; min-width: 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.tc-trang .tc-lien-mui { grid-area: mui; color: var(--sm-chu); }
.tc-trang .tc-lien-mui .ic { width: 18px; height: 18px; }
.tc-trang .tc-anh-ts .tc-anh-chu b { color: var(--mau-tim); }
/* ---- Chi phí: "Chi phí được chia cho kênh thế nào" + "Chi của kênh gồm …" (spec 15.2) */
.tc-trang .tc-cp-chia[hidden] { display: none; }
.tc-trang .tc-cpc-cach { display: grid; gap: 8px; margin: 0 0 14px; }
.tc-trang .tc-cpc-cach > div { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tc-trang .tc-cpc-cach > div:last-child { border-bottom: 0; }
.tc-trang .tc-cpc-cach dt { font-size: 13px; font-weight: 700; color: var(--text); }
.tc-trang .tc-cpc-cach dd { margin: 0; font-size: 13px; color: var(--chu-2); }
.tc-trang .tc-cpc-trong { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--chu-2);
  border: 1px dashed var(--line-strong); background: var(--ds-o); }
.tc-trang .tc-cpc-trong .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--ds-vang-chu); }
.tc-trang #tc-cp-cach .tc-cpk { margin-bottom: 14px; }
.tc-trang .tc-lech-ten small { display: block; font-size: 11px; font-weight: 500; color: var(--faint); }
.tc-trang .tc-cdg { padding: 0; }
.tc-trang .tc-cdg > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 18px; cursor: pointer; list-style: none; }
.tc-trang .tc-cdg > summary::-webkit-details-marker { display: none; }
.tc-trang .tc-cdg-tom { min-width: 0; font-size: 13.5px; color: var(--chu-2); overflow-wrap: anywhere; }
.tc-trang .tc-cdg-tom b { color: var(--text); margin-right: 4px; }
.tc-trang .tc-cdg-tong { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 700; }
.tc-trang .tc-cdg-tong .ic { width: 16px; height: 16px; color: var(--muted); transition: rotate .16s; }
.tc-trang .tc-cdg[open] .tc-cdg-tong .ic { rotate: 180deg; }
.tc-trang .tc-cdg[open] > summary { border-bottom: 1px solid var(--line); }
.tc-trang .tc-cdg > .tc-cdg-ds, .tc-trang .tc-cdg > .tc-ghi { margin: 0; padding: 0 18px; }
.tc-trang .tc-cdg > .tc-ghi { padding-bottom: 14px; padding-top: 6px; }
.tc-trang .tc-cdg.tc-cdg-rong { padding: 16px 18px; }
.tc-trang .tc-cdg-ds { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.tc-trang .tc-cdg-ds li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tc-trang .tc-cdg-ds li:last-child { border-bottom: 0; }
.tc-trang .tc-cdg-ten { min-width: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.tc-trang .tc-cdg-ten small { display: block; font-size: 11.5px; font-weight: 500; color: var(--faint); }
.tc-trang .tc-cdg-cach { min-width: 0; font-size: 12.5px; color: var(--muted); }
.tc-trang .tc-cdg-ds .tc-tien { font-weight: 700; justify-self: end; }
@media (prefers-reduced-motion: reduce) { .tc-trang .tc-cdg-tong .ic { transition: none; } }
/* ---- TikTok: thẻ "Tiền về tuần này" (spec 15.1) */
.tc-trang .khoi.tc-ttt { border-color: color-mix(in srgb, var(--dat) 26%, var(--line)); }
.tc-trang .tc-ttt-tt { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.tc-trang .tc-ttt-tt[hidden] { display: none; }
.tc-trang .tc-ttt-tt .ic { width: 15px; height: 15px; }
.tc-trang .tc-ttt-tt.xong { color: var(--dat); background: color-mix(in srgb, var(--dat) 12%, transparent); }
.tc-trang .tc-ttt-tt.chua { color: var(--loi-sang); background: color-mix(in srgb, var(--loi) 12%, transparent); }
.tc-trang .tc-ttt-luoi { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(var(--ttt-cot, 3), minmax(0, 1fr)) auto; gap: 10px 12px; align-items: end; }
.tc-trang .tc-ttt-nut .nut { min-height: 44px; padding: 0 22px; }
.tc-trang .tc-ttt-ghi { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; }
.tc-trang .tc-ttt-ghi .ic { flex: none; margin-top: 2px; }
.tc-trang .tc-ttt-loi { margin: 8px 0 0; }
.tc-trang .tc-ttt-ds { margin-top: 16px; }
.tc-trang .tc-ttt-ds:empty { display: none; }
.tc-trang .tc-ttt-bang td, .tc-trang .tc-ttt-bang th { white-space: nowrap; }
.tc-trang .tc-ttt-bang td.so .tc-tien { font-variant-numeric: tabular-nums; }
.tc-trang .tc-ttt-gc { display: block; font-size: 11.5px; color: var(--muted); white-space: normal; }
.tc-trang .tc-ttt-act { text-align: right; }
.tc-trang .tc-ttt-act > * { vertical-align: middle; }
.tc-trang .tc-ttt-act .tc-nut-nho + .tc-nut-nho, .tc-trang .tc-ttt-act .tc-cpl-icon + .tc-cpl-icon { margin-left: 6px; }
.tc-trang .tc-ttt-hoi { display: inline-block; margin-right: 8px; font-size: 12.5px; color: var(--loi-sang); white-space: normal; }
.tc-trang .tc-ttt-sua input { width: 100%; min-width: 96px; min-height: 40px; text-align: right; }
.tc-trang .tc-ttt-cong td { font-weight: 700; border-top: 1px solid var(--line-strong); }
.tc-trang .tc-ttt-bc { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.tc-trang .tc-ttt-trong { margin: 0; }
.tc-trang .tc-ttt-chot, .tc-trang .tc-ttt-lech { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 14px;
  font-size: 13px; color: var(--chu-2); border: 1px solid var(--ds-vien-vang); background: var(--ds-vang-nen); }
.tc-trang .tc-ttt-chot > span, .tc-trang .tc-ttt-lech > span { flex: 1 1 260px; }
.tc-trang .tc-ttt-chot > .ic, .tc-trang .tc-ttt-lech > .ic { width: 18px; height: 18px; flex: none; color: var(--ds-vang-chu); }
.tc-trang .tc-ttt-lech { margin: 0; }
/* ---- Thuế (spec 15.4): hero dùng bố cục hero Tổng quan (.tc-hq), thẻ từng kỳ, cột 12 tháng */
.tc-trang .tc-thq .tc-hq-mt[hidden] { display: none; }
.tc-trang .tc-thq-ky { display: flex; flex-direction: column; gap: 3px; min-width: 150px; max-width: 230px; font-size: 12.5px; color: var(--hs-phu); }
.tc-trang .tc-thq-ky > b { font-size: 18px; font-weight: 800; color: var(--hs-chu); letter-spacing: -.02em; }
.tc-trang .tc-thq-ky .tc-tien { color: var(--hs-chu); font-weight: 700; }
.tc-trang .tc-thq-ky .tc-ghi { color: var(--hs-phu); }
.tc-trang .tc-thk-khoi { display: flex; flex-direction: column; gap: 12px; }
.tc-trang .tc-thk-ds { display: flex; flex-direction: column; gap: 12px; }
.tc-trang .khoi.tc-thk { display: flex; flex-direction: column; gap: 12px; }
.tc-trang .tc-thk.t-chua_nop { border-color: var(--vien-loi); }
.tc-trang .tc-thk.t-dang_chay { border-color: var(--ds-vien-vang); }
.tc-trang .tc-thk.chua-so { border-style: dashed; border-color: var(--line-strong); }
.tc-trang .tc-thk-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tc-trang .tc-thk-ten { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.tc-trang .tc-thk-so { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tc-trang .tc-thk-o { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--ds-o); border: 1px solid var(--line); }
.tc-trang .tc-thk-nhan { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tc-trang .tc-thk-o > b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.tc-trang .tc-thk-o > small { font-size: 11.5px; color: var(--faint); }
.tc-trang .tc-thk-moi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--chu-2);
  border: 1px dashed var(--ds-vien-vang); background: var(--ds-vang-nen); }
.tc-trang .tc-thk-moi > span { flex: 1 1 240px; }
.tc-trang .tc-thk-moi > .ic { width: 18px; height: 18px; flex: none; color: var(--ds-vang-chu); }
.tc-trang .tc-thk-nop { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tc-trang .tc-thk-nop li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 6px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--chu-2); }
.tc-trang .tc-thk-nop-chu { display: inline-flex; align-items: flex-start; gap: 6px; min-width: 0; }
.tc-trang .tc-thk-nop-chu .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--dat); }
.tc-trang .tc-thk-nop-chu small { color: var(--muted); }
.tc-trang .tc-thk-nop-nut { display: inline-flex; gap: 6px; }
.tc-trang .tc-thk-hoi { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--loi-sang); }
.tc-trang .tc-thk-ct > summary { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; font-weight: 600; color: var(--chu-2); cursor: pointer; }
.tc-trang .tc-thk-ct[open] > summary { margin-bottom: 8px; }
.tc-trang .tc-thk-h { margin: 12px 0 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.tc-trang .tc-thk-bang td, .tc-trang .tc-thk-bang th { white-space: nowrap; }
.tc-trang .tc-thk-chan { display: flex; justify-content: flex-end; }
.tc-trang .tc-th-form { padding: 14px; border-radius: 14px; background: var(--ds-o); border: 1px solid var(--line-strong); }
.tc-trang .tc-th-form .tc-thk-h { margin-top: 0; }
.tc-trang .tc-th-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px 12px; }
.tc-trang .tc-th-luoi > .rong2 { grid-column: 1 / -1; }
.tc-trang .tc-th-form .tc-dp-nut { display: flex; gap: 8px; margin-top: 12px; }
.tc-trang .tc-th-loi { margin: 8px 0 0; }
.tc-trang .tc-thk-han { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: var(--ds-vang-chu); background: var(--ds-vang-nen); }
.tc-trang .tc-thk-han.qua { color: var(--loi-sang); background: color-mix(in srgb, var(--loi) 13%, transparent); }
.tc-trang .tc-thk-han .ic { width: 13px; height: 13px; }
/* ---- Cài đặt › Tài chính: thẻ Thuế (kỳ thuế từng năm, người đứng tên) — cùng kiểu danh sách dòng như "Thời kỳ trước" */
.cd-tc-thue-mac { max-width: 260px; margin-bottom: 4px; }
.cd-trang .cd-tc-thue-mac select { width: 100%; }
.cd-tc-nam-dong { display: grid; grid-template-columns: minmax(96px, 150px) minmax(150px, 260px) 44px; align-items: end; gap: 6px 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line); }
.cd-trang .cd-tc-nam-dong input, .cd-trang .cd-tc-nam-dong select { width: 100%; min-width: 0; }
.cd-tc-ng-dong { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 44px; align-items: start; gap: 6px 12px; padding: 10px 0;
  border-bottom: 1px solid var(--line); }
.cd-trang .cd-tc-ng-dong input[name="ten"] { width: 100%; min-width: 0; }
.cd-tc-ng-kenh { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-tc-ng-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; color: var(--chu-2); cursor: pointer; background: var(--ds-o); }
.cd-tc-ng-chip input { width: 16px; height: 16px; margin: 0; accent-color: var(--g-400); }
.cd-tc-ng-chip:has(input:checked) { color: var(--text); border-color: var(--ds-vien-vang); background: var(--ds-vang-nen); }
.cd-tc-them { margin-top: 10px; min-height: 40px; }
.cd-tc-nam-dong .cd-tc-ky-ten, .cd-tc-ng-dong .cd-tc-ky-ten { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
@media (max-width: 640px) {
  .cd-tc-nam-dong { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 44px; }
  .cd-tc-ng-dong { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "ten xoa" "kenh kenh"; }
  .cd-tc-ng-dong > :nth-child(1) { grid-area: ten; } .cd-tc-ng-dong > :nth-child(2) { grid-area: kenh; } .cd-tc-ng-dong > :nth-child(3) { grid-area: xoa; align-self: end; }
  .cd-trang .cd-tc-nam-dong input, .cd-trang .cd-tc-nam-dong select, .cd-trang .cd-tc-ng-dong input { font-size: 16px; }
  .cd-tc-ng-chip { min-height: 44px; }
}
/* ---- Tài sản › Nợ: dòng tham khảo thuế chưa nộp (không cộng vào tổng nợ) */
.ts-trang .ts-no-thue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; border-radius: 14px; font-size: 13px; color: var(--chu-2);
  text-decoration: none; border: 1px dashed var(--ds-vien-vang); background: var(--ds-vang-nen); }
.ts-trang .ts-no-thue[hidden] { display: none; }
.ts-trang .ts-no-thue > .ic { width: 17px; height: 17px; flex: none; color: var(--ds-vang-chu); }
.ts-trang .ts-no-thue > span:nth-of-type(1) { flex: 1 1 240px; }
.ts-trang .ts-no-thue-xem { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ds-vang-chu); }
.ts-trang .ts-no-thue-xem .ic { width: 15px; height: 15px; }
.ts-trang .ts-dp-moc { margin: 12px 0 0; }
@container trang (max-width: 900px) {
  .tc-trang .tc-thk-so { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-trang .tc-ttt-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-trang .tc-ttt-ngay, .tc-trang .tc-ttt-nut { grid-column: 1 / -1; }
  .tc-trang .tc-ttt-nut .nut { width: 100%; }
}
@container trang (max-width: 640px) {
  .tc-trang .tc-lien { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tc-trang .tc-lien-o:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tc-trang .tc-lien-o { padding: 12px 14px; }
  .tc-trang .tc-lien-so { font-size: 19px; }
  .tc-trang .tc-cdg-ds li { grid-template-columns: minmax(0, 1fr) auto; }
  .tc-trang .tc-cdg-cach { grid-column: 1 / -1; grid-row: 2; }
  .tc-trang .tc-cpc-cach > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tc-trang .tc-ttt-bang.bang-the td, .tc-trang .tc-thk-bang.bang-the td { white-space: normal; }
  .tc-trang .tc-ttt-act { text-align: left; }
  /* tiền về từng tuần trên điện thoại: mỗi ngày một thẻ gọn, kênh xếp 2 cột (như bảng Sổ tháng) */
  .tc-trang .tc-ttt-bang.bang-the tbody tr, .tc-trang .tc-ttt-bang.bang-the tfoot tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; padding: 10px 14px 12px; }
  .tc-trang .tc-ttt-bang.bang-the td { min-height: 0; padding: 4px 0; border: 0; min-width: 0; text-align: left; }
  .tc-trang .tc-ttt-bang.bang-the td + td { border-top: 0; }
  .tc-trang .tc-ttt-bang.bang-the td::before { position: static; display: block; width: auto; margin-bottom: 2px; font-size: 11px; letter-spacing: 0; text-transform: none; }
  .tc-trang .tc-ttt-bang.bang-the td:first-child, .tc-trang .tc-ttt-bang.bang-the td.tc-ttt-act { grid-column: 1 / -1; }
  .tc-trang .tc-ttt-bang.bang-the td:first-child { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .tc-trang .tc-ttt-bang.bang-the td:first-child::before, .tc-trang .tc-ttt-bang.bang-the td.tc-ttt-act::before { display: none; }
  .tc-trang .tc-ttt-bang.bang-the td.tc-ttt-act:empty { display: none; }
}
/* khung trang hẹp (máy tính bảng, cửa sổ nhỏ có thanh bên): thanh mục lớn cũng thu gọn như điện thoại — theo bề rộng KHUNG,
   không theo màn hình, để tên mục và con số không bị cắt */
@container trang (max-width: 860px) {
  .tc-trang .tc-muc { grid-template-columns: repeat(4, minmax(0, 1fr)) 44px; gap: 4px; padding: 4px; border-radius: 16px; }
  .tc-trang .tc-muc-nut { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ic" "ten" "so"; justify-items: center; text-align: center; row-gap: 3px;
    min-height: 0; padding: 8px 2px 7px; border-radius: 12px; }
  .tc-trang .tc-muc-ic { width: 30px; height: 30px; border-radius: 10px; }
  .tc-trang .tc-muc-ic .ic { width: 16px; height: 16px; }
  .tc-trang .tc-muc-ten { max-width: 100%; font-size: 10.5px; letter-spacing: .02em; text-transform: none; font-weight: 700; }
  .tc-trang .tc-muc-so { justify-content: center; max-width: 100%; }
  .tc-trang .tc-muc-gt { font-size: 12.5px; letter-spacing: -.02em; }
  .tc-trang .tc-muc-rong, .tc-trang .tc-muc-cho { font-size: 10.5px; font-weight: 600; }
  .tc-trang .tc-muc-phu { display: none; }
  .tc-trang .tc-muc-cham { top: 3px; right: 3px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .tc-trang .tc-muc-nut[aria-selected="true"] { box-shadow: var(--ds-noi-chon-bong-gon), inset 0 -2px 0 color-mix(in srgb, var(--sm) 85%, transparent); }
  .tc-trang .tc-muc-gd { grid-template-columns: 1fr; grid-template-areas: "ic"; align-self: center; justify-self: center; width: 44px; height: 44px; min-height: 44px;
    margin: 0; padding: 0; border-radius: 50%; place-items: center; }
  .tc-trang .tc-muc-gd .tc-muc-ten { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tc-trang .tc-muc-gd .tc-muc-ic { width: 34px; height: 34px; border-radius: 50%; }
  .tc-trang .tc-gd-dem:not(:empty) { top: -4px; right: -4px; min-width: 18px; height: 18px; font-size: 10.5px; }
}
/* điện thoại: tầng 1 = 4 ô bằng nhau (biểu tượng + tên + số nhỏ) + nút Giám đốc thành biểu tượng tròn có số; tầng 2 cuộn ngang */
@media (max-width: 767px) {
  .tc-trang .tc-muc { grid-template-columns: repeat(4, minmax(0, 1fr)) 44px; gap: 4px; padding: 4px; border-radius: 16px; }
  .tc-trang .tc-muc-nut { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ic" "ten" "so"; justify-items: center; text-align: center; row-gap: 3px;
    min-height: 0; padding: 8px 2px 7px; border-radius: 12px; }
  .tc-trang .tc-muc-ic { width: 30px; height: 30px; border-radius: 10px; }
  .tc-trang .tc-muc-ic .ic { width: 16px; height: 16px; }
  .tc-trang .tc-muc-ten { max-width: 100%; font-size: 10.5px; letter-spacing: .02em; text-transform: none; font-weight: 700; }
  .tc-trang .tc-muc-so { justify-content: center; max-width: 100%; }
  .tc-trang .tc-muc-gt { font-size: 12.5px; letter-spacing: -.02em; }
  .tc-trang .tc-muc-rong, .tc-trang .tc-muc-cho { font-size: 10.5px; font-weight: 600; }
  .tc-trang .tc-muc-phu { display: none; }
  .tc-trang .tc-muc-cham { top: 3px; right: 3px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .tc-trang .tc-muc-nut[aria-selected="true"] { box-shadow: var(--ds-noi-chon-bong-gon), inset 0 -2px 0 color-mix(in srgb, var(--sm) 85%, transparent); }
  .tc-trang .tc-muc-gd { grid-template-columns: 1fr; grid-template-areas: "ic"; align-self: center; justify-self: center; width: 44px; height: 44px; min-height: 44px;
    margin: 0; padding: 0; border-radius: 50%; place-items: center; }
  .tc-trang .tc-muc-gd .tc-muc-ten { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tc-trang .tc-muc-gd .tc-muc-ic { width: 34px; height: 34px; border-radius: 50%; }
  .tc-trang .tc-gd-dem:not(:empty) { top: -4px; right: -4px; min-width: 18px; height: 18px; font-size: 10.5px; }
  .tc-trang .tabs-doan.tc-con { flex-wrap: nowrap; overflow-x: auto; margin-top: -8px; scroll-padding: 0 16px; }
  .tc-trang .tc-con > .tab-doan { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .tc-trang .tc-thq .tc-hq-mt { display: none; }
  .tc-trang .tc-thq .tc-thq-phu { display: none; }  /* hero ≤ 1/3 màn: chỉ giữ chip dự báo + kỳ chưa nhập số */
  .tc-trang .tc-thk-o > b { font-size: 16px; }
  .tc-trang .tc-th-form .tc-dp-nut > * { flex: 1; min-height: 44px; }
  .tc-trang .tc-ttt-sua input { font-size: 16px; }
}

/* ================================================================ Tài sản (chỉ sếp — spec docs/specs/2026-11-14-tai-san-design.md
   mục 6). Trang .trang.sac-tc.tc-trang.ts-trang: dùng lại các lớp chung của trang Tài chính (.tc-tien, .tc-the, .tc-svg, .tc-cpl…),
   khối này chỉ thêm lớp .ts-*. Chỉ biến màu sẵn có: ròng = vàng, nợ = hồng mờ, đã bỏ vào / tốt = xanh, yếu = hồng, chưa đủ số =
   trung tính nét đứt. Nhóm tài sản mỗi nhóm một màu (--ts-m) trong 5 sắc đã chốt. */
.ts-trang { --ts-m: var(--trung); }
.ts-trang .ts-s-chung_khoan { --ts-m: var(--mau-tim); } .ts-trang .ts-s-tien_so { --ts-m: var(--hong); }
.ts-trang .ts-s-vang { --ts-m: var(--g-300); } .ts-trang .ts-s-bds { --ts-m: var(--trung); }
.ts-trang .ts-s-du_phong { --ts-m: var(--dat); } .ts-trang .ts-s-tiet_kiem { --ts-m: color-mix(in srgb, var(--dat) 50%, transparent); }
.ts-trang .ts-s-cho_vay { --ts-m: var(--g-600); } .ts-trang .ts-s-khac { --ts-m: var(--faint); }
.ts-trang .ts-r-ngay { --ts-m: var(--dat); } .ts-trang .ts-r-tuan { --ts-m: var(--g-300); } .ts-trang .ts-r-dai { --ts-m: var(--trung); }
.ts-trang .tc-mau[class*="ts-s-"], .ts-trang .tc-mau[class*="ts-r-"],
.ts-trang .tc-phan > i[class*="ts-s-"], .ts-trang .tc-phan > i[class*="ts-r-"] { background: var(--ts-m); }
.ts-trang .ts-m-tot { --den: var(--dat); --den-chu: var(--dat); }
.ts-trang .ts-m-vua { --den: var(--g-300); --den-chu: var(--ds-vang-chu); }
.ts-trang .ts-m-yeu { --den: var(--loi); --den-chu: var(--loi-sang); }
.ts-trang .ts-m-chua_du { --den: var(--net-dut); --den-chu: var(--faint); }
/* chưa có lần cập nhật nào: chỉ còn màn hướng dẫn (+ form khi mở) */
.ts-trang.ts-rong .ts-tabs, .ts-trang.ts-rong .ts-pane, .ts-trang.ts-rong .ts-dau-nut { display: none !important; }
/* khối gốc #ts-goc nhúng trong .trang của trang cha (trang mỏng /tai-san hoặc mục Tài sản của /tai-chinh) */
.ts-goc { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ts-goc [hidden] { display: none !important; }
.ts-trang .ts-pane { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ts-trang .ts-tabs { scroll-margin-top: 76px; }

/* ---- đầu trang: cập nhật lần cuối · nguồn · đọc sổ lúc … | Đọc từ sổ ngay · Cập nhật tài sản */
.ts-trang .ts-dau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ts-trang .ts-dau-chu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 13px; color: var(--muted); }
.ts-trang .ts-dau-chu b { color: var(--chu-2); font-weight: 600; }
.ts-trang .ts-cham { color: var(--faint); }
.ts-trang .ts-cu { color: var(--loi-sang); font-weight: 600; }
.ts-trang .ts-dau-nut { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-trang .ts-dau-nut > *, .ts-trang .ts-nut-cn { min-height: 44px; }
.ts-trang .ts-nut-cn .ic { stroke-width: 2.2; }

/* ---- trạng thái trống */
.ts-trang .khoi.ts-trong { display: flex; align-items: flex-start; gap: 22px; padding: 28px; border-style: dashed; }
.ts-trang .ts-trong-chu { min-width: 0; }
.ts-trang .ts-trong-chu .tieu-muc { margin: 4px 0 8px; }
.ts-trang .ts-trong-chu p { margin: 0 0 12px; max-width: 68ch; line-height: 1.55; color: var(--chu-2); }
.ts-trang .ts-trong-buoc { display: grid; gap: 6px; margin: 0 0 18px; padding-left: 20px; color: var(--chu-2); line-height: 1.5; }
.ts-trang .ts-trong-nut { display: flex; flex-wrap: wrap; gap: 10px; }
.ts-trang .ts-trong-nut > * { min-height: 48px; }

/* ---- form Cập nhật tài sản (danh sách dòng như Chi phí bên Tài chính) */
.ts-trang .khoi.ts-cn { border-color: var(--ds-vien-vang); scroll-margin-top: 80px; }
.ts-trang #ts-cn-than { display: flex; flex-direction: column; gap: 14px; }
.ts-trang #ts-cn-than > p { margin: 0; }
.ts-trang .ts-cn-tren { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 260px)); gap: 12px; }
.ts-trang .ts-cn-tren input[name="no"] { text-align: right; font-family: "JetBrains Mono", monospace; }
.ts-trang .ts-cn-trung { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--chu-2); background: var(--ds-vang-nen);
  border: 1px solid var(--ds-vien-vang); }
.ts-trang .ts-cnl { --tc-cpl-cot: minmax(160px, 2fr) minmax(150px, 1.2fr) minmax(130px, 1.2fr) minmax(130px, 1.2fr) 48px; }
.ts-trang .ts-cnl input[name="von"], .ts-trang .ts-cnl input[name="thuc"] { text-align: right; font-family: "JetBrains Mono", monospace; }
.ts-trang .ts-cn-ghi { max-width: 560px; }
.ts-trang .ts-cn-tom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px;
  color: var(--muted); background: var(--ds-o); border: 1px solid var(--line); }
.ts-trang .ts-cn-tom b { color: var(--text); font-weight: 700; }
.ts-trang .ts-cn-tom:empty { display: none; }

/* ---- hero: tài sản ròng · đổi so lần trước tách 3 phần · vòng điểm sức khoẻ + vòng tích luỹ năm */
.ts-trang .hero.ts-hq { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "huy chu vong"; align-items: center; }
.ts-trang .ts-hq > .huy { grid-area: huy; align-self: start; }
.ts-trang .hero.ts-hq.gon { padding: 20px 24px; }
.ts-trang .ts-hq-chu { grid-area: chu; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ts-trang .ts-hq-so { display: flex; align-items: center; min-width: 0; }
.ts-trang .ts-so-hero { font: 800 46px/1.05 "Be Vietnam Pro", sans-serif; letter-spacing: -.045em; color: var(--hs-nhan); white-space: nowrap; }
.ts-trang .ts-so-hero.am { color: var(--loi-sang); }
.ts-trang .ts-hq-doi { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 15px; color: var(--hs-chu); }
.ts-trang .ts-hq-doi .tc-doi { font-size: 16px; }
.ts-trang .ts-hq-tuoi, .ts-trang .ts-hq-dau { font-size: 13px; color: var(--hs-phu); }
.ts-trang .ts-hq-phan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; }
.ts-trang .ts-hq-phan:empty { display: none; }
.ts-trang .ts-chip-phan { display: inline-flex; align-items: baseline; gap: 6px; }
.ts-trang .ts-chip-phan b { font-weight: 700; color: var(--hs-chu); font-variant-numeric: tabular-nums; }
.ts-trang .ts-chip-phan b.lai { color: var(--dat); } .ts-trang .ts-chip-phan b.lo { color: var(--loi-sang); }
.ts-trang .ts-hq > .ts-hq-vong { grid-area: vong; display: flex; flex-wrap: wrap; gap: 12px; }
.ts-trang .ts-vong-o { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--ds-o-hero);
  border: 1px solid var(--ds-o-hero-vien); }
.ts-trang .ts-vong-hinh .vong { display: block; width: 80px; height: 80px; }
.ts-trang .ts-hq .vong text { fill: var(--hs-chu); font-size: 21px; }
.ts-trang .ts-hq .vong text.mo { fill: var(--hs-phu); }
.ts-trang .ts-hq .vong .ray { stroke: color-mix(in srgb, var(--hs-chu) 13%, transparent); }
.ts-trang .ts-vong-chu { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 150px; font-size: 12.5px; color: var(--hs-phu); }
.ts-trang .ts-vong-nhan { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ts-trang .ts-vong-chu > b { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--hs-chu); }
.ts-trang .ts-vong-chu b b { color: inherit; }
.ts-trang .ts-vong-chu a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; color: var(--hs-nhan); }

/* ---- 6 chỉ số (sếp duyệt mẫu 18/11/2026): MỘT dải thẻ gọn — tên | số + pill mức | thanh ba vùng Yếu · Vừa · Tốt có vạch "đang ở
   đây"; bấm thẻ mở khung chi tiết ngay dưới dải; rồi "Nên làm trước". Lưới theo bề rộng KHỐI (container ts-cs): ≥ 1180 px 6 cột,
   620–1180 px 3 × 2, hẹp hơn 6 dòng mỏng xếp dọc — không bao giờ hàng lẻ 5 + 1 / 4 + 2. */
.ts-trang .ts-cs-khoi { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ts-trang .ts-cs-ds { container: ts-cs / inline-size; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ts-trang .ts-cs-dai { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@container ts-cs (max-width: 1179.98px) { .ts-trang .ts-cs-dai { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ts-trang .ts-cs { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ten ten" "so muc" "thanh thanh"; align-items: center;
  gap: 3px 8px; min-width: 0; margin: 0; padding: 10px 14px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--ds-bong); color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ts-trang .ts-cs:hover { border-color: var(--line-strong); }
.ts-trang .ts-cs:focus-visible { outline: 2px solid var(--g-400); outline-offset: 2px; }
.ts-trang .ts-cs.mo { border-color: var(--g-400); box-shadow: inset 0 0 0 1px var(--g-400), var(--ds-bong); }
.ts-trang .ts-cs.ts-m-chua_du { background: transparent; border: 1.5px dashed var(--net-dut); box-shadow: none; }
.ts-trang .ts-cs.ts-m-chua_du.mo { border-color: var(--g-400); }
.ts-trang .ts-cs-ten { grid-area: ten; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--chu-2); }
.ts-trang .ts-cs-so { grid-area: so; min-width: 0; font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums;
  white-space: nowrap; color: var(--text); }
.ts-trang .ts-cs-so.rong { font-weight: 600; color: var(--faint); }
.ts-trang .ts-cs > .ts-cs-muc { grid-area: muc; justify-self: end; }
.ts-trang .ts-cs-muc { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  color: var(--den-chu); background: color-mix(in srgb, var(--den) 14%, transparent); }
.ts-trang .ts-cs-muc.ts-m-chua_du, .ts-trang .ts-m-chua_du .ts-cs-muc { background: transparent; border: 1.5px dashed var(--net-dut); }
/* thanh ba vùng (trái yếu → phải tốt, màu nhạt đỏ / vàng / xanh) + vạch vị trí hiện tại; chưa đủ số: không vạch, thanh mờ */
.ts-trang .ts-cs-thanh { grid-area: thanh; position: relative; display: flex; gap: 2px; height: 6px; margin-top: 4px; }
.ts-trang .ts-cs-thanh > i { flex: 1 1 0; border-radius: 3px; }
.ts-trang .ts-cs-thanh > i.y { background: color-mix(in srgb, var(--loi) 32%, transparent); }
.ts-trang .ts-cs-thanh > i.v { background: color-mix(in srgb, var(--g-300) 40%, transparent); }
.ts-trang .ts-cs-thanh > i.t { background: color-mix(in srgb, var(--dat) 34%, transparent); }
.ts-trang .ts-cs-thanh.mo-nhat { opacity: .4; }
.ts-trang .ts-cs-thanh > b { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: var(--text);
  box-shadow: 0 0 0 2px var(--card); }
/* khung chi tiết một chỉ số (ngay dưới dải) */
.ts-trang .ts-cs-ct { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px 16px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--g-400); }
.ts-trang .ts-cs-ct-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.ts-trang .ts-cs-ct-dau > b { min-width: 0; font-size: 15px; }
.ts-trang .ts-cs-ct-dau .ts-cs-dong { margin-left: auto; }
.ts-trang .ts-cs-diem { font-size: 12px; color: var(--faint); }
.ts-trang .ts-cs-nd { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--chu-2); text-wrap: pretty; max-width: 90ch; }
.ts-trang .ts-cs-lam { display: flex; gap: 6px; margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.45; color: var(--text);
  background: var(--ds-o); }
.ts-trang .ts-cs-lam .ic { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--ds-vang-chu); stroke-width: 2.4; }
.ts-trang .ts-cs-ng { font-size: 11.5px; color: var(--faint); }
/* "Nên làm trước": chỉ số yếu từng dòng (chấm đỏ); vừa / chưa đủ số gom một dòng bấm-để-mở (chấm vàng) */
/* nhãn và dòng bấm-để-mở chung một hàng (không có chỉ số yếu thì khối chỉ cao một dòng); danh sách chiếm trọn hàng riêng */
.ts-trang .ts-nl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 6px 14px; border-radius: 16px; background: var(--ds-o);
  border: 1px solid var(--line); }
.ts-trang .ts-nl-tieu { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ts-trang .ts-nl-ds { display: flex; flex: 1 0 100%; flex-direction: column; gap: 6px; margin: 2px 0 6px; padding: 0; list-style: none; }
.ts-trang .ts-nl-tieu + .ts-nl-ds { margin-top: 6px; }
.ts-trang .ts-nl-dong { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--chu-2); }
.ts-trang .ts-nl-dong b { color: var(--text); font-weight: 700; }
.ts-trang .ts-nl-cham { flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); }
.ts-trang .ts-nl-cham.yeu { background: var(--loi); } .ts-trang .ts-nl-cham.vua { background: var(--g-300); }
.ts-trang .ts-nl-them { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; padding: 0; border: 0; background: none; color: var(--chu-2);
  font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ts-trang .ts-nl-them:focus-visible { outline: 2px solid var(--g-400); outline-offset: 2px; border-radius: 6px; }
.ts-trang .ts-nl-them:hover span { color: var(--text); }
.ts-trang .ts-nl-mui { flex: none; width: 14px; height: 14px; color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
.ts-trang .ts-nl-them[aria-expanded="true"] .ts-nl-mui { transform: rotate(-90deg); }
/* khối hẹp (điện thoại): 6 dòng mỏng — tên trái, số + pill phải, thanh chạy hết bề ngang phía dưới */
@container ts-cs (max-width: 619.98px) {
  .ts-trang .ts-cs-dai { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ts-trang .ts-cs { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "ten so muc" "thanh thanh thanh"; gap: 3px 8px;
    min-height: 52px; padding: 8px 12px 10px; border-radius: 12px; box-shadow: none; }
  .ts-trang .ts-cs-ten { font-size: 13px; }
  .ts-trang .ts-cs-so { font-size: 15px; letter-spacing: -.01em; }
  .ts-trang .ts-cs-muc { padding: 1px 8px; font-size: 11px; }
  .ts-trang .ts-cs-thanh { margin-top: 3px; height: 5px; }
  .ts-trang .ts-cs-thanh > b { top: -3px; height: 11px; }
  .ts-trang .ts-cs-ct { padding: 10px 12px 12px; }
  .ts-trang .ts-nl { padding: 8px 12px; }
}

/* ---- biểu đồ */
.ts-trang .ts-c-no { fill: color-mix(in srgb, var(--hong) 30%, transparent); }
.ts-trang .ts-c-no.dam { fill: color-mix(in srgb, var(--hong) 75%, transparent); }
.ts-trang .ts-l-rong { fill: none; stroke: var(--tc-thu); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ts-trang .ts-d-rong { fill: var(--tc-thu); stroke: var(--tc-vong); stroke-width: 2; }
.ts-trang .ts-d-rong.tay { fill: var(--tc-vong); stroke: var(--tc-thu); }
.ts-trang .ts-c-bv { fill: var(--dat); }
.ts-trang .ts-c-bv.am, .ts-trang .tc-c-thu.am { fill: var(--loi); }
.ts-trang .ts-net { height: 38px; min-width: 120px; }
.ts-trang .ts-l-von { fill: none; stroke: var(--trung); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ts-trang .ts-l-thuc { fill: none; stroke: var(--tc-thu); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ts-trang .ts-d-thuc { fill: var(--tc-thu); stroke: var(--tc-vong); stroke-width: 1.5; }
.ts-trang .ts-mau-duong { position: relative; display: inline-block; width: 18px; height: 2px; border-radius: 2px; background: var(--tc-thu); }
.ts-trang .ts-mau-duong::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--tc-thu); }
.ts-trang .tc-mau.ts-mau-no { background: color-mix(in srgb, var(--hong) 45%, transparent); }
.ts-trang .tc-mau.ts-mau-bv { background: var(--dat); }
.ts-trang .ts-ct-thuc { color: var(--ds-vang-chu); font-weight: 600; } .ts-trang .ts-ct-von { color: var(--muted); font-weight: 600; }

/* ---- Tài sản & đầu tư */
.ts-trang .so-dai.ts-kpi { --so-cot: 4; }
.ts-trang .ts-kpi-o .so-lon { font-size: 28px; }
.ts-trang .ts-kpi-o .so-phu { color: var(--muted); }
.ts-trang .ts-kpi-o .so-phu b { color: var(--chu-2); }
.ts-trang .ts-kpi-o .so-phu b.lai { color: var(--dat); } .ts-trang .ts-kpi-o .so-phu b.lo { color: var(--loi-sang); }
.ts-trang .ts-dm-bang td { vertical-align: middle; }
.ts-trang .ts-dm-bang td.so small { display: block; font: 600 11.5px "JetBrains Mono", monospace; color: var(--muted); }
.ts-trang .ts-dm-bang td.so small.lai { color: var(--dat); } .ts-trang .ts-dm-bang td.so small.lo { color: var(--loi-sang); }
.ts-trang .ts-td-ten b { display: block; font-size: 14px; }
.ts-trang .ts-chip-nhom { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.ts-trang .ts-chip-nhom .tc-mau { width: 9px; height: 9px; }
.ts-trang .ts-th-net, .ts-trang .ts-td-net { width: 180px; }
.ts-trang .ts-dm-bang tr.ts-tong td { border-top: 1px solid var(--line-strong); font-weight: 700; }
.ts-trang .ts-dm-ghi { margin: 10px 0 4px; }
/* khối chính (sếp duyệt mẫu 18/11/2026): trái tròn tỷ trọng; phải lãi / lỗ so với vốn (số to nhất trang) · ± phiên trước / tháng
   này · thanh lãi / lỗ từng dòng · rút được. Khối hẹp (< 760 px): lãi lỗ → tròn → thanh từng dòng → rút được. */
.ts-trang .khoi.ts-chinh { container: ts-chinh / inline-size; }
.ts-trang .ts-chinh-luoi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr;
  grid-template-areas: "tron dau" "tron tl" "tron rut"; gap: 18px 36px; align-items: start; }
.ts-trang .ts-chinh-tron { grid-area: tron; align-self: center; }
.ts-trang .ts-chinh-dau { grid-area: dau; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ts-trang .ts-chinh-tl { grid-area: tl; min-width: 0; }
.ts-trang .ts-chinh-rut { grid-area: rut; align-self: end; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-top: 14px;
  border-top: 1px dashed var(--line-strong); }
.ts-trang .ts-chinh-luoi > :empty:not(.ts-chinh-tron) { display: none; }  /* ô tròn phải luôn có bề rộng để vẽ (đo clientWidth) */
.ts-trang .ts-chinh-nhan { font-size: 12.5px; color: var(--muted); }
.ts-trang .ts-chinh-so { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.ts-trang .ts-chinh-lon, .ts-trang .ts-chinh-lon .tc-tien { font-size: 44px; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; white-space: nowrap; }
.ts-trang .ts-chinh-pct { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ts-trang .ts-chinh-pct.lai { color: var(--dat); } .ts-trang .ts-chinh-pct.lo { color: var(--loi-sang); } .ts-trang .ts-chinh-pct.hoa { color: var(--muted); }
.ts-trang .ts-chinh-phu { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ts-trang .ts-chinh-phu .tc-tien { font-weight: 700; }
.ts-trang .ts-chinh-ngan { color: var(--faint); }
/* một lưới chung cho mọi hàng (li = contents) → cột tên / thanh / số thẳng hàng, thanh hàng nào cũng dài bằng nhau */
.ts-trang .ts-ll-ds { display: grid; grid-template-columns: fit-content(11em) minmax(48px, 1fr) auto; align-items: center; gap: 10px 14px; margin: 0; padding: 0;
  list-style: none; font-size: 13px; }
.ts-trang .ts-ll-dong { display: contents; }
.ts-trang .ts-ll-ten { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--chu-2); }
.ts-trang .ts-ll-thanh { position: relative; height: 10px; border-radius: 5px; background: var(--ds-o); }
.ts-trang .ts-ll-thanh > i { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.ts-trang .ts-ll-thanh > i.lai { background: var(--dat); } .ts-trang .ts-ll-thanh > i.lo { background: var(--loi); }
.ts-trang .ts-ll-thanh > b { position: absolute; top: -3px; bottom: -3px; width: 1.5px; margin-left: -.75px; background: var(--line-strong); }
.ts-trang .ts-ll-so { text-align: right; font-weight: 700; white-space: nowrap; }
.ts-trang .ts-ll-con { margin: 8px 0 0; font-size: 12px; color: var(--faint); }
.ts-trang .ts-rut-chu { margin: 0; font-size: 13.5px; color: var(--chu-2); }
.ts-trang .ts-rut-chu b { color: var(--text); font-weight: 700; }
.ts-trang .tc-phan.ts-rut-thanh { height: 6px; gap: 2px; }
.ts-trang .tc-phan.ts-rut-thanh > i { padding: 0; border-radius: 3px; }
.ts-trang .ts-rut-ct { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 12px; color: var(--muted); }
.ts-trang .ts-rut-ct > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ts-trang .ts-rut-ct .tc-mau { width: 9px; height: 9px; }
.ts-trang .ts-rut-ct b { color: var(--chu-2); font-weight: 600; }
/* khuôn cũ còn thẻ "Rút ra được": dòng rút dùng cùng lớp, chỉ cần khoảng cách */
.ts-trang #ts-pb-rut { display: flex; flex-direction: column; gap: 8px; }
@container ts-chinh (max-width: 759.98px) {
  .ts-trang .ts-chinh-luoi { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "dau" "tron" "tl" "rut"; gap: 16px; }
  .ts-trang .ts-chinh-lon, .ts-trang .ts-chinh-lon .tc-tien { font-size: 36px; }
  .ts-trang .ts-chinh-pct { font-size: 17px; }
  .ts-trang .ts-ll-ds { grid-template-columns: fit-content(9em) minmax(40px, 1fr) auto; column-gap: 10px; }
}
.ts-trang .ts-ls-ds { display: flex; flex-direction: column; }
.ts-trang .ts-ls-dong { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(120px, .9fr) minmax(150px, 1.2fr) minmax(170px, 1.3fr) 48px;
  grid-template-areas: "ngay rong doi ct act"; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ts-trang .ts-ls-dong:last-child { border-bottom: 0; }
.ts-trang .ts-ls-ngay { grid-area: ngay; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ts-trang .ts-ls-rong { grid-area: rong; font-weight: 700; } .ts-trang .ts-ls-doi { grid-area: doi; }
.ts-trang .ts-ls-act { grid-area: act; display: flex; justify-content: flex-end; }
.ts-trang .ts-ls-nhan { font-size: 11.5px; font-weight: 500; color: var(--faint); }
.ts-trang .ts-ls-ct { grid-area: ct; font-size: 12.5px; color: var(--muted); }
.ts-trang .ts-ls-ct b { color: var(--chu-2); font-weight: 600; }
.ts-trang .ts-ls-dong .tc-cp-hoi { grid-column: 1 / -1; }

/* ---- Nợ */
.ts-trang .ts-lech { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--chu-2);
  background: var(--ds-vang-nen); border: 1px solid var(--ds-vien-vang); }
.ts-trang .ts-lech .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--ds-vang-chu); }
.ts-trang .ts-nol { --tc-cpl-cot: minmax(150px, 2fr) minmax(120px, 1.1fr) 100px 152px minmax(120px, 1.1fr) 104px; }
.ts-trang .ts-nol input[name="con_lai"], .ts-trang .ts-nol input[name="tra"], .ts-trang .ts-nol input[name="lai"] { text-align: right; font-family: "JetBrains Mono", monospace; }
.ts-trang .ts-nol-dong.xong { opacity: .7; }
.ts-trang .ts-nol-xong { grid-column: 1 / -1; }
.ts-trang .tc-the.ts-qua-han { color: var(--loi-sang); border: 1px solid var(--vien-loi); background: color-mix(in srgb, var(--loi) 8%, transparent); }
.ts-trang .tc-the.ts-sap-han { color: var(--ds-vang-chu); border: 1px solid var(--ds-vien-vang); background: var(--ds-vang-nen); }
.ts-trang .tc-the.ts-kip { color: var(--dat); border: 1px solid color-mix(in srgb, var(--dat) 40%, transparent); }

/* ---- Dòng tiền */
.ts-trang .ts-dt-chon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ts-trang .ts-dt-thang .loc-nut { min-height: 40px; }
.ts-trang .ts-dt-thang .loc-nut small { margin-left: 5px; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.ts-trang #ts-dt-cau-ghi { margin: 12px 0 0; }
.ts-trang #ts-dt-cau-ghi:empty { display: none; }
.ts-trang .ts-bv-so .tc-tien { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.ts-trang .ts-bv-so .tc-tien.rong { font-size: 18px; letter-spacing: 0; }
.ts-trang .ts-bv-ds { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ts-trang .ts-bv-ds li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); font-size: 13.5px; color: var(--chu-2); }
.ts-trang .ts-bv-ds li b, .ts-trang .ts-bv-ds li .tc-tien { font-weight: 700; color: var(--text); }
.ts-trang .ts-bv-ss { margin: 12px 0 6px; font-size: 13px; color: var(--muted); }
.ts-trang .ts-bv-ss b { color: var(--text); }
.ts-trang .ts-bv-thanh.dat > i, .ts-trang .ts-tl-thanh.dat > i { background: var(--tc-lai); }
.ts-trang .ts-ccd-nguon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; }
.ts-trang .ts-ccdl { --tc-cpl-cot: minmax(160px, 2fr) minmax(140px, 1fr) 48px; max-width: 760px; }
.ts-trang .ts-ccdl input[name="so_tien"] { text-align: right; font-family: "JetBrains Mono", monospace; }

/* ---- Mục tiêu */
.ts-trang .ts-mt-trong { margin: 0 0 14px; padding: 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); border: 1.5px dashed var(--net-dut); }
.ts-trang .ts-tl-dau { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; color: var(--muted); }
.ts-trang .ts-tl-dau b { color: var(--text); }
.ts-trang .ts-tl-dau .ts-cs-muc { margin-left: auto; }
.ts-trang .ts-tl-so { font-size: 32px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ts-trang .tc-dk-thanh.ts-tl-thanh { height: 10px; margin: 10px 0 14px; }
.ts-trang .ts-dso-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; margin-bottom: 12px; }
.ts-trang .ts-dso { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--ds-o); border: 1px solid var(--line); }
.ts-trang .ts-dso > span { font-size: 11.5px; color: var(--muted); }
.ts-trang .ts-dso > b { font-size: 17px; font-weight: 800; }
.ts-trang .ts-dso small { font-size: 11.5px; color: var(--faint); }
.ts-trang .ts-mt-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.ts-trang .ts-mt-form .tc-o { flex: 1 1 200px; max-width: 360px; }
.ts-trang .ts-mt-form .nut, .ts-trang .ts-mt-form .nut-ma { min-height: 44px; }
.ts-trang .ts-mt-nguon { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ts-trang .ts-keo { display: grid; gap: 8px; margin: 2px 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--ds-vang-nen); border: 1px solid var(--ds-vien-vang); }
.ts-trang .ts-keo label { font-size: 14px; color: var(--chu-2); }
.ts-trang .ts-keo label b { font: 800 16px "JetBrains Mono", monospace; color: var(--text); }
.ts-trang .ts-keo input[type="range"] { width: 100%; min-height: 32px; margin: 0; padding: 0; border: 0; background: transparent; accent-color: var(--g-400); }
.ts-trang .ts-keo-kq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; color: var(--chu-2); }
.ts-trang .ts-keo-kq b { color: var(--text); }
.ts-trang .ts-mt-nut { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-trang .ts-mt-nut .ic { width: 15px; height: 15px; }
.ts-trang .ts-mtr-ghi { margin: -2px 0 14px; }
.ts-trang .ts-mtr-ghi b { color: var(--chu-2); }
.ts-trang .ts-cd-ds { display: grid; gap: 12px; }
.ts-trang .ts-tich { align-items: flex-start; min-height: 44px; font-size: 13.5px; }
.ts-trang .ts-tich input { margin-top: 2px; }
.ts-trang .ts-tich span { line-height: 1.45; }

/* ---- co giãn theo bề rộng vùng nội dung */
@container trang (max-width: 1180px) {
  .ts-trang .hero.ts-hq { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "huy chu" "vong vong"; }
  .ts-trang .ts-hq > .ts-hq-vong { justify-self: start; }
}
@container trang (max-width: 900px) {
  .ts-trang .so-dai.ts-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container trang (max-width: 760px) {  /* danh sách nhập: mỗi dòng một thẻ nhỏ (theo luật .tc-cpl), vùng ô riêng từng danh sách */
  .ts-trang .ts-cnl .tc-cpl-dong { position: relative; grid-template-areas: "ten ten" "nhom nhom" "von thuc"; }
  .ts-trang .ts-cnl .tc-cpl-o.ten { padding-right: 54px; }
  .ts-trang .ts-cnl .tc-cpl-o.act { position: absolute; top: 10px; right: 12px; }
  .ts-trang .ts-cnl .tc-cpl-o.nhom { grid-area: nhom; } .ts-trang .ts-cnl .tc-cpl-o.von { grid-area: von; } .ts-trang .ts-cnl .tc-cpl-o.thuc { grid-area: thuc; }
  .ts-trang .ts-nol .tc-cpl-dong.nhap { grid-template-areas: "ten ten" "tien lai" "han tra" "xong act"; }
  .ts-trang .ts-nol .tc-cpl-dong:not(.nhap) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas: "ten ten act" "tien lai lai" "han tra tra"; }
  .ts-trang .ts-nol .tc-cpl-dong:not(.nhap) .tc-cpl-o.act { align-self: start; }
  .ts-trang .ts-nol .tc-cpl-o.lai { grid-area: lai; } .ts-trang .ts-nol .tc-cpl-o.han { grid-area: han; }
  .ts-trang .ts-nol .tc-cpl-o.tra { grid-area: tra; } .ts-trang .ts-nol .ts-nol-xong { grid-area: xong; grid-column: auto; }
  .ts-trang .ts-nol .tc-cpl-dong:not(.nhap) .tc-cpl-o:not(.ten):not(.act)::before { content: attr(data-nhan); display: block; margin-bottom: 2px;
    font-size: 11px; font-weight: 600; color: var(--faint); }
  .ts-trang .ts-nol .tc-cpl-dong:not(.nhap) .tc-cpl-o.tien { align-items: flex-start; }
  .ts-trang .ts-ccdl .tc-cpl-dong, .ts-trang .ts-ccdl .tc-cpl-dong:not(.nhap) { grid-template-areas: "ten ten" "tien act"; }
  .ts-trang .ts-ls-dong { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ngay act" "rong doi" "ct ct"; gap: 4px 12px; }
  .ts-trang .ts-ls-doi { justify-self: end; }
}
@container trang (max-width: 640px) {
  .ts-trang .ts-dm-bang td.ts-td-net, .ts-trang .ts-dm-bang th.ts-th-net { width: auto; }
  .ts-trang .ts-dm-bang .ts-net { min-width: 0; }
  .ts-trang .ts-dm-bang td.so small { display: inline; margin-left: 8px; }
  .ts-trang .ts-dm-bang tr.ts-tong td { border-top: 0; }
  .ts-trang .ts-dm-bang tr.ts-tong td + td { border-top: 1px solid var(--line); }
}
@container trang (max-width: 520px) {
  .ts-trang .ts-tabs .ic { display: none; }
  .ts-trang .ts-tabs .tab-doan { gap: 6px; padding: 0 12px; font-size: 13.5px; }
}
/* ---- điện thoại: hero ≤ 1/3 màn (huy hiệu · nhãn · hai vòng nhỏ hàng đầu, số lớn, đổi, ba phần), ô nhập 16px, chạm ≥ 44px */
@media (max-width: 767px) {
  .ts-trang .ts-dau { gap: 8px; }
  .ts-trang .ts-dau-chu { flex-basis: 100%; font-size: 12px; }
  .ts-trang .ts-dau-nut { flex: 1 1 100%; flex-wrap: nowrap; }
  .ts-trang #ts-doc-so { width: 44px; padding: 0; flex: none; }
  .ts-trang #ts-doc-so .tc-an-hep { display: none; }
  .ts-trang .ts-dau-nut .ts-nut-cn { flex: 1 1 auto; justify-content: center; }
  .ts-trang .khoi.ts-trong { flex-direction: column; gap: 12px; padding: 18px 16px; }
  .ts-trang .ts-trong .huy { width: 48px; height: 48px; padding: 2px; }
  .ts-trang .ts-trong-nut > * { flex: 1 1 100%; justify-content: center; }
  .noi-dung .ts-trang .hero.ts-hq { grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "huy nhan vong" "so so vong" "doi doi doi" "phan phan phan"; gap: 2px 10px; padding: 14px; align-items: center; }
  .ts-trang .ts-hq-chu { display: contents; }
  .ts-trang .ts-hq > .huy { grid-area: huy; align-self: center; }
  .ts-trang .ts-hq .ts-hq-nhan { display: block; grid-area: nhan; align-self: center; min-width: 0; font-size: 10.5px; letter-spacing: .08em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ts-trang .ts-hq-so { grid-area: so; }
  .ts-trang .ts-so-hero { font-size: 36px; }
  .ts-trang .ts-hq-doi { grid-area: doi; margin-top: 8px; gap: 2px 10px; font-size: 13px; }
  .ts-trang .ts-hq-doi .tc-doi { font-size: 14px; }
  .ts-trang .ts-hq-tuoi, .ts-trang .ts-hq-dau { font-size: 12px; }
  .ts-trang .ts-hq-phan { grid-area: phan; margin-top: 6px; gap: 5px; }
  .ts-trang .ts-chip-phan { padding: 2px 8px; font-size: 11.5px; gap: 4px; }
  .ts-trang .ts-hq > .ts-hq-vong { grid-area: vong; grid-column: auto; flex-wrap: nowrap; gap: 6px; align-self: center; }
  .ts-trang .ts-vong-o { flex-direction: column; gap: 2px; padding: 0; background: none; border: 0; }
  .ts-trang .ts-vong-hinh .vong { width: 58px; height: 58px; }
  .ts-trang .ts-vong-chu { width: auto; align-items: center; }
  .ts-trang .ts-vong-chu > :not(.ts-vong-nhan) { display: none; }
  .ts-trang .ts-vong-nhan { font-size: 9px; letter-spacing: .04em; white-space: nowrap; }
  .ts-trang .ts-kpi-o .so-lon { font-size: 21px; }
  .ts-trang .so-dai.ts-kpi > .so-o { padding: 12px 14px; gap: 4px; }
  .ts-trang .ts-kpi-o .so-phu { font-size: 11.5px; }
  .ts-trang .ts-dt-thang { width: 100%; }
  .ts-trang .ts-dt-thang .loc-nut { flex: 1 1 0; min-height: 44px; padding: 0 4px; }
  .ts-trang .ts-dt-thang .loc-nut small { display: none; }
  .ts-trang .ts-mt-form .tc-o { max-width: none; }
  .ts-trang .ts-mt-form .nut { flex: 1 1 100%; }
  .ts-trang .ts-tl-so { font-size: 26px; }
}

/* ---- Tài sản · giá thị trường (spec docs/specs/2026-11-18-gia-thi-truong-design.md mục 8). Chỉ biến màu sẵn có: lên / lời =
   --dat, xuống / lỗ = --loi, giá vốn = trung tính nét đứt, lần mua = vàng (--tc-thu). Biểu đồ SVG viết tay trong tai_san.js. */
.ts-trang .tc-the.gia { color: var(--ds-vang-chu); border: 1px solid var(--ds-vien-vang); }
.ts-trang .ts-d-rong.gia { fill: var(--tc-vong); stroke: var(--tc-thu); stroke-dasharray: 2 2; }
.ts-trang .ts-the-gia { margin: 3px 0 0 6px; height: 19px; font-size: 10.5px; }
/* hero: Đỉnh mới · ± phiên trước (bấm xem từng mã) · tháng này · đường 30 ngày · còn bao nhiêu tới mốc tỷ */
.ts-trang .ts-hq-so { flex-wrap: wrap; gap: 4px 12px; }
.ts-trang .ts-hq-dinh { flex: none; }
.ts-trang .ts-hq-dinh .ic { stroke-width: 2.4; }
.ts-trang .ts-hq-phien { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 40px; margin: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ts-trang span.ts-hq-phien { cursor: default; min-height: 0; }
.ts-trang .ts-hq-phien:focus-visible { outline: 2px solid var(--g-400); outline-offset: 3px; border-radius: 6px; }
.ts-trang .ts-hq-phien .tc-doi-sau { color: var(--hs-phu); }
.ts-trang .ts-hq-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.ts-trang .ts-hq-pct.lai { color: var(--dat); } .ts-trang .ts-hq-pct.lo { color: var(--loi-sang); } .ts-trang .ts-hq-pct.hoa { color: var(--hs-phu); }
.ts-trang .ts-hq-mui { width: 14px; height: 14px; color: var(--hs-phu); transform: rotate(90deg); transition: transform .15s; }
.ts-trang .ts-hq-phien[aria-expanded="true"] .ts-hq-mui { transform: rotate(-90deg); }
.ts-trang .ts-hq-thang { display: inline-flex; align-items: center; gap: 6px; color: var(--hs-phu); }
.ts-trang .ts-hq-thang .tc-doi { font-size: 15px; }
.ts-trang .ts-hq-dong { display: grid; gap: 6px; max-width: 460px; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--hs-chu);
  background: var(--ds-o-hero); border: 1px solid var(--ds-o-hero-vien); }
.ts-trang .ts-hq-dong-dau { font-size: 11.5px; color: var(--hs-phu); }
.ts-trang .ts-hq-dong-muc { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.ts-trang .ts-hq-dong-ten { min-width: 0; font-weight: 600; }
.ts-trang .ts-hq-dong-ten small, .ts-trang .ts-hq-dong-so small { font: 500 11px "JetBrains Mono", monospace; color: var(--hs-phu); }
.ts-trang .ts-hq-dong-so small.lai { color: var(--dat); } .ts-trang .ts-hq-dong-so small.lo { color: var(--loi-sang); }
.ts-trang .ts-hq-duong { display: flex; align-items: center; gap: 10px; max-width: 460px; margin-top: 2px; }
.ts-trang .ts-hq-duong-nhan { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hs-phu); }
.ts-trang .ts-hq-duong-bd { flex: 1 1 auto; min-width: 0; height: 40px; }
.ts-trang .ts-l-30 { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ts-trang .ts-l-30.len { stroke: var(--dat); } .ts-trang .ts-l-30.xuong { stroke: var(--loi-sang); }
.ts-trang .ts-v-30.len { fill: color-mix(in srgb, var(--dat) 13%, transparent); } .ts-trang .ts-v-30.xuong { fill: color-mix(in srgb, var(--loi) 13%, transparent); }
.ts-trang .ts-d-30.len { fill: var(--dat); } .ts-trang .ts-d-30.xuong { fill: var(--loi-sang); }
.ts-trang .ts-hq-moc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; max-width: 460px; font-size: 13px; color: var(--hs-phu); }
.ts-trang .ts-hq-moc b { color: var(--hs-chu); font-weight: 700; }
.ts-trang .ts-hq-moc-thanh { flex: 1 1 120px; height: 6px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--hs-chu) 13%, transparent); }
.ts-trang .ts-hq-moc-thanh > i { display: block; height: 100%; border-radius: inherit; background: var(--hs-nhan); }
.ts-trang .ts-hq-phan-nhan { font-size: 12px; color: var(--hs-phu); white-space: nowrap; }
/* hero máy tính khi có giá thị trường: hai vòng về bên phải cùng hàng số lớn (xếp dọc), phần mới nằm cột trái */
@container trang (min-width: 760px) {
  .ts-trang .hero.ts-hq.ts-co-gia { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "huy chu vong"; align-items: start; }
  .ts-trang .ts-hq.ts-co-gia > .ts-hq-vong { flex-direction: column; flex-wrap: nowrap; justify-self: end; align-self: center; }
}
/* khối Khoản đầu tư: lời mời (khi chưa có khoản), thẻ từng mã, form Mua / bán, danh sách lệnh */
.ts-trang .khoi.ts-gt { display: flex; flex-direction: column; gap: 14px; container: ts-gt / inline-size; }
.ts-trang .khoi.ts-gt > .dau-khoi { margin-bottom: 0; }
.ts-trang .ts-gt-dau-nut { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-trang .ts-gt-dau-nut > * { min-height: 44px; }
.ts-trang .khoi.ts-gt.moi { padding-top: 16px; padding-bottom: 16px; border-style: dashed; }
.ts-trang .khoi.ts-gt.moi > .dau-khoi { display: none; }
.ts-trang .ts-gt-moi { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13.5px; line-height: 1.5; color: var(--chu-2); }
.ts-trang .ts-gt-moi p { flex: 1 1 280px; margin: 0; }
.ts-trang .ts-gt-moi .nut-ma, .ts-trang .ts-gt-moi .nut { min-height: 44px; }
.ts-trang .ts-moi-sk .ts-gt-moi { font-size: 14px; }
.ts-trang .ts-moi-sk .ts-gt-moi b { color: var(--chu); }
.ts-trang .ts-gt-moi .ic, .ts-trang .ts-gt-nut .ic { width: 15px; height: 15px; }
/* lưới thẻ theo bề rộng khối: ≥ ~1100 px 4 thẻ một hàng, ~700–1100 px 2 thẻ, hẹp hơn 1 thẻ (không để 3 + 1 thẻ mồ côi) */
.ts-trang .ts-gt-ds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@container ts-gt (min-width: 640px) { .ts-trang .ts-gt-ds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container ts-gt (min-width: 1040px) { .ts-trang .ts-gt-ds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ts-trang .ts-gt-the { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px; border-radius: 16px; background: var(--ds-o); border: 1px solid var(--line); }
.ts-trang .ts-gt-the.het { gap: 6px; background: transparent; border: 1.5px dashed var(--net-dut); }
.ts-trang .ts-gt-dau { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.ts-trang .ts-gt-ten { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ts-trang .ts-gt-ten b { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.ts-trang .ts-gt-ma { font: 600 11.5px "JetBrains Mono", monospace; color: var(--muted); overflow-wrap: anywhere; }
.ts-trang .ts-gt-gia { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.ts-trang .ts-gt-gia > b { font: 700 15px "JetBrains Mono", monospace; white-space: nowrap; }
.ts-trang .ts-gt-gia > b small { margin-left: 2px; font-size: 11px; font-weight: 500; color: var(--faint); }
.ts-trang .ts-gt-gia .tc-doi { font-size: 12.5px; }
.ts-trang .ts-gt-pill { display: flex; flex-wrap: wrap; gap: 6px; }
/* hai ô giá thị trường ↔ giá vốn trên thẻ khoản đầu tư */
.ts-trang .ts-gt-hai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ts-trang .ts-gt-o { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 11px; }
.ts-trang .ts-gt-o + .ts-gt-o { border-left: 1px solid var(--line); }
.ts-trang .ts-gt-o-nhan { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ts-trang .ts-gt-o-so { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; color: var(--text); }
.ts-trang .ts-gt-o-so small { margin-left: 2px; font-size: 11px; font-weight: 500; color: var(--faint); }
.ts-trang .ts-gt-o-so.cho { font-family: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.ts-trang .ts-gt-o-phu { font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.ts-trang .ts-gt-o-phu .tc-doi { font-size: 11.5px; }
.ts-trang .ts-gt-o-phu > b { font-weight: 600; color: var(--chu-2); white-space: nowrap; }
.ts-trang .ts-gt-o-phu > b small { font-size: 10.5px; font-weight: 500; color: var(--faint); }
/* thẻ hẹp (4 thẻ một hàng ở màn 1440, điện thoại 375): hai ô xếp dọc, nhãn trái – số phải, để số + đơn vị không bị cắt */
.ts-trang .ts-gt-the { container: ts-the / inline-size; }
@container ts-the (max-width: 330px) {
  .ts-trang .ts-gt-hai { grid-template-columns: minmax(0, 1fr); }
  .ts-trang .ts-gt-o { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 10px; padding: 8px 11px; }
  .ts-trang .ts-gt-o-so { justify-self: end; }
  .ts-trang .ts-gt-o-phu { grid-column: 1 / -1; text-align: right; }
  .ts-trang .ts-gt-o + .ts-gt-o { border-left: 0; border-top: 1px solid var(--line); }
}
/* lãi / lỗ là số to nhất trên thẻ (kèm %), giá trị đang giữ là dòng phụ nhỏ */
.ts-trang .ts-gt-so { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ts-trang .ts-gt-lai-so { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; line-height: 1.2; }
.ts-trang .ts-gt-lai-so .tc-tien { font-size: 24px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.ts-trang .ts-gt-lai-so em { font-style: normal; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.ts-trang .ts-gt-lai-so em.lai { color: var(--dat); } .ts-trang .ts-gt-lai-so em.lo { color: var(--loi-sang); } .ts-trang .ts-gt-lai-so em.hoa { color: var(--muted); }
.ts-trang .ts-gt-dang { font-size: 12px; color: var(--muted); }
.ts-trang .ts-gt-dang b { color: var(--chu-2); font-weight: 700; }
.ts-trang .tc-bd.ts-gt-bd { min-height: 104px; }
.ts-trang .ts-gt-giu { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ts-trang .ts-gt-giu b { color: var(--chu-2); font-weight: 600; white-space: nowrap; }
.ts-trang .ts-gt-nut { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ts-trang .ts-gt-nut .nut-ma { min-height: 40px; }
.ts-trang .ts-gt-l { fill: none; stroke: var(--tc-thu); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ts-trang .ts-gt-l.len { stroke: var(--dat); } .ts-trang .ts-gt-l.xuong { stroke: var(--loi); }
.ts-trang .ts-gt-v { fill: color-mix(in srgb, var(--tc-thu) 10%, transparent); }
.ts-trang .ts-gt-v.len { fill: color-mix(in srgb, var(--dat) 10%, transparent); } .ts-trang .ts-gt-v.xuong { fill: color-mix(in srgb, var(--loi) 10%, transparent); }
.ts-trang .ts-gt-von { stroke: var(--trung); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ts-trang .tc-svg text.ts-gt-von-chu { font-size: 10px; fill: var(--muted); paint-order: stroke; stroke: var(--tc-vong); stroke-width: 3px; stroke-linejoin: round; }
.ts-trang .ts-gt-mua { fill: var(--tc-thu); stroke: var(--tc-vong); stroke-width: 1.5; }
.ts-trang .ts-gt-ban { fill: var(--tc-vong); stroke: var(--tc-thu); stroke-width: 2; }
.ts-trang .ts-gt-cuoi { fill: var(--tc-thu); stroke: var(--tc-vong); stroke-width: 1.5; }
.ts-trang .ts-gt-cuoi.len { fill: var(--dat); } .ts-trang .ts-gt-cuoi.xuong { fill: var(--loi); }
.ts-trang .ts-gt-dc { display: flex; flex-direction: column; gap: 8px; }
.ts-trang .ts-gt-dc .ts-lech { margin: 0; }
.ts-trang .ts-gt-ghi { margin: 0; }
.ts-trang .ts-gt-ghi:empty { display: none; }
.ts-trang .ts-gt-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--ds-o); border: 1px solid var(--ds-vien-vang);
  scroll-margin-top: 80px; }
.ts-trang .ts-gt-f-dau { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.ts-trang .ts-gt-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; min-width: 0; }
.ts-trang .ts-gt-luoi .tc-o > span i { font-style: normal; font-weight: 500; color: var(--faint); }
.ts-trang .ts-gt-luoi .ts-gt-ghi-o { grid-column: 1 / -1; }
.ts-trang .ts-gt-luoi select { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-trang .ts-gt-moi-o { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; min-width: 0; }
/* máy tính: hàng 1 Khoản · Mua hay bán · Ngày; (khoản mới: Loại · Mã · Tên · Thay dòng); Số lượng · Đơn giá · Tổng tiền; Ghi chú */
@container ts-gt (min-width: 640px) { .ts-trang .ts-gt-luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ts-trang .ts-gt-luoi input[name="sl"], .ts-trang .ts-gt-luoi input[name="gia"], .ts-trang .ts-gt-luoi input[name="tong"] { text-align: right; font-family: "JetBrains Mono", monospace; }
.ts-trang .ts-gt-luoi input[name="ma_moi"] { text-transform: uppercase; font-family: "JetBrains Mono", monospace; }
.ts-trang .ts-gt-luoi input.tu { background: var(--ds-vang-nen); border-color: var(--ds-vien-vang); }
.ts-trang .ts-gt-kieu { display: flex; width: 100%; }
.ts-trang .ts-gt-kieu .loc-nut { flex: 1 1 0; justify-content: center; min-height: 38px; }
.ts-trang .ts-gt-kieu .loc-nut:disabled { opacity: .45; cursor: not-allowed; }
.ts-trang .ts-gt-f-goi { margin: 0; }
.ts-trang .ts-gt-lenh { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.ts-trang .ts-gt-l-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ts-trang .ts-gt-l-tieu { flex: 1 1 200px; margin: 0; font-size: 15px; }
.ts-trang .ts-gt-l-tieu .tc-ghi { font-weight: 500; }
.ts-trang .ts-gt-l-loc .loc-nut { min-height: 36px; font-family: "JetBrains Mono", monospace; }
.ts-trang .ts-gt-ldong { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(130px, 1fr) minmax(170px, 1.4fr) minmax(90px, .8fr) 92px;
  grid-template-areas: "ngay ma sl tong act" "ghi ghi ghi ghi ghi"; align-items: center; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ts-trang .ts-gt-ldong:last-child { border-bottom: 0; }
.ts-trang .ts-gt-l-ngay { grid-area: ngay; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ts-trang .ts-gt-l-ma { grid-area: ma; min-width: 0; }
.ts-trang .ts-gt-l-ma small, .ts-trang .ts-gt-l-sl small { color: var(--muted); }
.ts-trang .ts-gt-l-sl { grid-area: sl; min-width: 0; }
.ts-trang .ts-gt-l-tong { grid-area: tong; text-align: right; font-weight: 700; }
.ts-trang .ts-gt-l-act { grid-area: act; display: flex; justify-content: flex-end; gap: 4px; }
.ts-trang .ts-gt-l-ghi { grid-area: ghi; font-size: 12.5px; color: var(--muted); }
.ts-trang .ts-gt-ldong .tc-cp-hoi { grid-column: 1 / -1; }
.ts-trang .tc-the.ts-mua { color: var(--dat); border: 1px solid color-mix(in srgb, var(--dat) 40%, transparent); }
.ts-trang .tc-the.ts-ban { color: var(--loi-sang); border: 1px solid var(--vien-loi); }
/* biểu đồ tròn tỷ trọng (chữ % trên phần tô bằng style vì màu chọn theo nền phần) */
.ts-trang .tc-bd.ts-tron { min-height: 160px; }
.ts-trang .ts-tron-phan { stroke: var(--tc-vong); stroke-width: 2; stroke-linejoin: round; }
.ts-trang .tc-svg text.ts-tron-pt { font: 700 11.5px "Be Vietnam Pro", sans-serif; pointer-events: none; }
.ts-trang .tc-svg text.ts-tron-pt.hep { font-size: 10px; }
.ts-trang .ts-tron-ke { fill: none; stroke: var(--muted); stroke-width: 1; stroke-linejoin: round; opacity: .8; }
.ts-trang .tc-svg text.ts-tron-ten { font: 600 12px "Be Vietnam Pro", sans-serif; fill: var(--chu-2); }
.ts-trang .tc-svg text.ts-tron-ten.hep { font-size: 11px; }
.ts-trang .tc-svg text.ts-tron-giua-nhan { font: 600 11px "Be Vietnam Pro", sans-serif; fill: var(--muted); }
.ts-trang .tc-svg text.ts-tron-giua-so { font: 800 19px "Be Vietnam Pro", sans-serif; letter-spacing: -.02em; fill: var(--text); }
.ts-trang .tc-svg text.ts-tron-giua-so.nho { font-size: 13.5px; }
.ts-trang .tc-svg text.ts-tron-giua-so.nho2 { font-size: 11px; letter-spacing: -.03em; }
/* form Cập nhật tài sản: dòng theo giá thị trường chỉ đọc */
.ts-trang .ts-cn-gia { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--ds-vien-vang); }
.ts-trang .ts-cn-gia-tieu { font-size: 12px; font-weight: 700; color: var(--ds-vang-chu); }
.ts-trang .ts-cn-gia ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ts-trang .ts-cn-gia li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--chu-2); }
.ts-trang .ts-cn-gia li small { font: 500 11.5px "JetBrains Mono", monospace; color: var(--muted); }
.ts-trang .ts-cn-gia li b { font-variant-numeric: tabular-nums; }
/* Mục tiêu: đường tới mục tiêu + mốc tỷ */
.ts-trang .tc-bd.ts-ld-bd { min-height: 96px; margin-bottom: 8px; }
.ts-trang .ts-ld-nen { fill: var(--ds-o-2); }
.ts-trang .ts-ld-dien { fill: var(--tc-thu); }
.ts-trang .ts-ld-dang { fill: var(--tc-thu); stroke: var(--tc-vong); stroke-width: 3; }
.ts-trang .ts-ld-lt { stroke: var(--chu-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ts-trang .ts-ld-vach { stroke: var(--line-strong); stroke-width: 1.5; } .ts-trang .ts-ld-vach.qua { stroke: var(--tc-thu); }
.ts-trang .ts-ld-vach.dich { stroke: var(--chu-2); stroke-width: 2; }
.ts-trang .tc-svg text.ts-ld-chu { font: 600 11.5px "Be Vietnam Pro", sans-serif; fill: var(--text); paint-order: stroke; stroke: var(--tc-vong); stroke-width: 4px; stroke-linejoin: round; }
.ts-trang .ts-ld .ts-dso-luoi { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.ts-trang .ts-dso small .lai { color: var(--dat); } .ts-trang .ts-dso small .lo { color: var(--loi-sang); }
.ts-trang .tc-svg text.ts-ld-chu.lt { font-weight: 500; fill: var(--muted); }
.ts-trang .tc-svg text.ts-ld-moc { font-size: 10.5px; fill: var(--muted); }
.ts-trang .tc-svg text.ts-ld-moc.dam { font-weight: 700; fill: var(--chu-2); }
.ts-trang .tc-svg text.ts-ld-moc.phu { font-size: 9.5px; fill: var(--faint); }
.ts-trang .ts-ld-mut { display: flex; justify-content: space-between; margin: -8px 0 12px; font: 500 11.5px "JetBrains Mono", monospace; color: var(--faint); }
.ts-trang .ts-ld-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ts-trang .ts-ld-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; color: var(--muted);
  background: var(--ds-o); border: 1px solid var(--line); }
.ts-trang .ts-ld-chip b { color: var(--text); }
.ts-trang .ts-ld-chip .ic { width: 13px; height: 13px; color: var(--dat); stroke-width: 2.6; }
.ts-trang .ts-ld-ghi { margin: 0; }
@container trang (max-width: 760px) {
  .ts-trang .ts-gt-ldong { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ngay act" "ma tong" "sl sl" "ghi ghi"; gap: 2px 12px; }
}
@media (max-width: 767px) {
  /* hero điện thoại: thêm hàng ± phiên trước (trong "doi"), bảng từng mã, dải 30 ngày mỏng, mốc tỷ — vẫn ≤ 1/3 màn */
  .noi-dung .ts-trang .hero.ts-hq { grid-template-areas: "huy nhan vong" "so so vong" "doi doi doi" "dong dong dong" "phan phan phan" "duong duong duong" "moc moc dinh"; }
  /* "Đỉnh mới" không chen cạnh số lớn (cột hẹp, xuống dòng làm hero cao) → về cuối hàng mốc tỷ, dưới cột vòng */
  .ts-trang .ts-hq .ts-hq-so { display: contents; }
  .ts-trang .ts-hq .ts-so-hero { grid-area: so; align-self: center; }
  .ts-trang .ts-hq .ts-hq-dinh { grid-area: dinh; justify-self: end; align-self: center; margin-top: 4px; }
  /* có giá thị trường: dòng ± phiên trước đã thay "so lần trước" → bỏ ba chip nạp / giá / trả nợ cho hero ≤ 1/3 màn */
  .ts-trang .ts-hq.ts-co-gia .ts-hq-phan { display: none; }
  .ts-trang .ts-hq-dong { grid-area: dong; margin-top: 6px; max-width: none; }
  .ts-trang .ts-hq-duong { grid-area: duong; margin-top: 6px; max-width: none; gap: 8px; }
  .ts-trang .ts-hq-duong-nhan { font-size: 9px; letter-spacing: .04em; }
  .ts-trang .ts-hq-duong-bd { height: 24px; }
  .ts-trang .ts-hq-moc { grid-area: moc; margin-top: 4px; max-width: none; font-size: 12px; }
  .ts-trang .ts-hq-so .ts-hq-dinh { padding: 2px 8px; font-size: 11px; }
  .ts-trang button.ts-hq-phien { min-height: 40px; }  /* vùng chạm ≥ 40 px */
  .ts-trang .ts-hq-thang .tc-doi { font-size: 14px; }
  .ts-trang .ts-gt-dau-nut { flex: 1 1 100%; flex-wrap: nowrap; }
  .ts-trang .ts-gt-dau-nut > .ts-nut-cn { flex: 1 1 auto; justify-content: center; }
  .ts-trang .ts-gt-the { padding: 12px 14px; }
  .ts-trang .ts-gt-form { padding: 14px 12px; }
  .ts-trang .ts-gt-kieu .loc-nut { min-height: 44px; }
  .ts-trang .ts-gt-l-loc .loc-nut { min-height: 40px; }
  .ts-trang .ts-gt-l-loc { order: 3; }  /* tiêu đề + nút đóng một hàng, lọc mã xuống hàng dưới */
}

/* ==== Tài chính — soát giao diện 15/11 (iPhone 430 / 375 + máy tính 1440): các chỗ tràn, cắt chữ, đè nhau ==== */
/* nút Giám đốc Tài chính (máy tính): tên ngắt đều "Giám đốc / Tài chính", không chạm số lời khuyên ở góc */
.tc-trang .tc-muc-gd .tc-muc-ten { max-width: 9ch; text-wrap: balance; }
/* thẻ nhóm kênh hẹp (4 thẻ một hàng ở 1440): tên kênh không bị cắt "Mình Là G…" — nguồn số xuống dòng dưới, sát phải */
.tc-trang .tc-nhom-kenh { container-type: inline-size; }
@container (max-width: 230px) {
  .tc-trang .tc-nhom-kenh li:not(.dk):not(.rong) { flex-wrap: wrap; row-gap: 0; }
  .tc-trang .tc-nhom-kenh li:not(.dk):not(.rong) .tc-nk-so { display: contents; }
  .tc-trang .tc-nhom-kenh li:not(.dk):not(.rong) .tc-nk-so > .tc-tien { flex: none; font-weight: 700; }
  .tc-trang .tc-nhom-kenh li:not(.dk):not(.rong) .tc-nk-so > small { flex: 0 0 100%; text-align: right; }
}
@container trang (max-width: 640px) {
  /* thẻ "Cộng tháng" của bảng tiền về từng tuần: tfoot cũng là khối đủ rộng như các thẻ tuần (trước co theo chữ) */
  .tc-trang .bang-the tfoot { display: block; width: 100%; }
  .tc-trang .tc-ttt-bang.bang-the tfoot tr { margin: 10px 0 0; }
  /* bảng YouTube từng kênh: nhãn "THU THỰC NHẬN" đủ chỗ một dòng (trước xuống 2 dòng, đè vạch ngăn) */
  .tc-trang .tc-yt-bang .bang-the td[data-nhan]:not([data-nhan=""]) { padding-left: 132px; }
  .tc-trang .tc-yt-bang .bang-the td[data-nhan]::before { width: 124px; white-space: nowrap; }
  /* "Cần anh": dòng dài thì lối tắt xuống dòng riêng, sát phải — không ép chữ thành cột hẹp */
  .tc-trang .tc-anh-muc { flex-wrap: wrap; row-gap: 4px; }
  .tc-trang .tc-anh-chu { flex: 1 1 210px; }
  .tc-trang .tc-anh-den { margin-left: auto; }
  /* nút dài (Chốt sổ YouTube tháng …) được xuống dòng thay vì tràn thẻ */
  .tc-trang .tc-dp-nut .nut { max-width: 100%; white-space: normal; text-align: center; }
  /* dòng trạng thái Tài sản: bỏ dấu chấm ngăn (xuống dòng là dấu chấm treo cuối dòng), ngăn bằng khoảng cách */
  .ts-trang .ts-cham { display: none; }
  .ts-trang .ts-dau-chu { column-gap: 14px; }
}
@media (max-width: 767px) {
  /* nhãn hero (Lãi ròng · tháng · đến hôm nay / Thuế cần để dành · kỳ / Tài sản ròng · ngày): cho xuống 2 dòng, không cắt "…" */
  .tc-trang .tc-hq .tc-hq-nhan, .ts-trang .ts-hq .ts-hq-nhan { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.4; text-wrap: balance; }
  /* chip "Đặt mục tiêu" trong hero: giữ dáng chip, nới vùng chạm lên ≥ 44 px */
  .tc-trang .tc-mt-dat-dt { position: relative; }
  .tc-trang .tc-mt-dat-dt::after { content: ""; position: absolute; inset: -9px -4px; }
}
/* iPhone hẹp (375): ô chọn tháng + số hero thu lại cho vừa hàng */
@media (max-width: 400px) {
  .tc-trang .tc-thang-chon { gap: 2px; font-size: 14.5px; letter-spacing: -.03em; }
  .tc-trang .tc-thang-mui { width: 13px; height: 13px; flex: none; }
  .tc-trang .tc-muc-ten { font-size: 10px; letter-spacing: 0; }
  .ts-trang .ts-so-hero { font-size: 31px; }
}
/* dòng dự báo trong "Lãi từng kênh" (YouTube): luật .tc-yt-tong span biến cả câu thành các cột flex → màn hẹp vỡ 3 cột;
   trả câu về chữ thường, tự xuống dòng */
.tc-trang .tc-yt-tong > span:has(> .tc-db) { flex-basis: 100%; }
.tc-trang .tc-yt-tong .tc-db > span { display: block; min-width: 0; }

/* ---------- Hai máy (sếp chốt 23/11/2026): máy cũ là thợ TikTok. Khối đỏ "Máy cũ mất kết nối" chỉ có nội dung khi mất thật
   (rỗng thì ẩn hẳn, không chừa khoảng); chip "Máy cũ" trên việc / lô đang chạy ở máy cũ; thẻ trạng thái ở Cài đặt › Hai máy. */
#pm-may-cu:empty, #tt-may-cu:empty, #cd-hm-bao:empty { display: none; }
#tt-may-cu, #pm-may-cu { margin-top: 16px; }
#cd-hm-bao { margin-bottom: 16px; }
.hm-mat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 20px;
  border-color: color-mix(in srgb, var(--loi) 32%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--loi) 8%, transparent), transparent 160px), var(--card); }
.hm-mat::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--loi), transparent); }
.hm-mat-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
.hm-mat-dau b { font-size: 15.5px; font-weight: 700; color: var(--loi-sang); }
.hm-mat p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--chu-2); text-wrap: pretty; }
.hm-mat p b { color: var(--text); }
.chip-nho.hm-chip { color: var(--chu-2); border: 1px solid var(--line-strong); background: var(--ds-o-2); }
.tt-lo-dau .hm-chip { flex: none; }
/* thẻ trạng thái máy cũ: đầu thẻ · 4 ô số (CPU · GPU · VRAM · Ổ trống; điện thoại 2×2) · dòng phụ */
.hm-the .cd-the-dau > .nhan { margin-left: auto; flex: none; }
.hm-the .cd-the-dau p { overflow-wrap: anywhere; font-size: 12px; }
.hm-the.t-mat { border-color: var(--vien-loi); box-shadow: inset 3px 0 0 var(--loi), var(--ds-bong); }
.hm-so { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 22px 14px; }
.hm-o { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--ds-o); border: 1px solid var(--line); }
.hm-o > span { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.hm-o b { font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-o b small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.hm-o.loi { border-color: var(--vien-loi); }
.hm-o.loi b { color: var(--loi-sang); }
.hm-dong { margin: 0; padding: 12px 22px 16px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.hm-luoi > .cot:first-child { display: flex; flex-direction: column; gap: 16px; }
.cd-giai.hm-giai { padding: 0 22px 14px; }
@media (max-width: 767px) {
  .hm-so { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 12px; }
  .hm-dong { padding: 10px 16px 14px; }
  .hm-mat { padding: 14px 16px; }
}
