/* ==========================================================================
   Phong cách "Tín hiệu" (13/11/2026): Hệ thống quản lý đào tạo, Khoa Viễn thông – Trường Sĩ quan Thông tin.
   Hướng thiết kế (đối chiếu bộ luật ui-ux-pro-max cho bảng điều khiển nghiệp vụ: phẳng, mật độ cao, chuyển động nhẹ):
     • Dữ liệu trước, trang trí tối thiểu; viền mảnh 1px phân lớp, không bóng đổ trang trí trong vùng dữ liệu.
     • Một màu thương hiệu (xanh lá, đổi được trong Cài đặt) + đồng thau dùng rất ít (vạch, chấm, nhãn nhỏ).
     • Dấu ấn riêng lấy từ biểu tượng binh chủng Thông tin (sóng + tia): sóng tín hiệu, vạch cường độ, đèn "đang kết nối".
       Chỉ dùng ở trang chủ (Thẻ trạm) và cho trạng thái "trực tuyến/đang diễn ra"; vùng bảng, biểu mẫu giữ phẳng.
     • Mỗi phân hệ một màu nhận diện, luôn đi kèm chữ (không mang nghĩa một mình). Trực tuyến: xanh ngọc.
     • Tiêu đề và con số: Be Vietnam Pro (phông không chân do người Việt thiết kế, OFL, wwwroot/fonts);
       nội dung giữ phông người dùng chọn trong Cài đặt (mặc định Segoe UI). Chọn phông khác thì tiêu đề theo phông đó.
     • Chuyển động 150–250 ms, chỉ transform/opacity; tắt hết khi giảm chuyển động.
   Nạp sau các tệp CSS cũ, trước giao-dien-toi.css. Chỉ dùng token, không ghi màu chữ cứng trên nền màu chính.
   ========================================================================== */

/* 1. Phông tiêu đề ------------------------------------------------------------ */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("fonts/BeVietnamPro-vietnamese-500.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url("fonts/BeVietnamPro-vietnamese-600.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("fonts/BeVietnamPro-vietnamese-700.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("fonts/BeVietnamPro-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url("fonts/BeVietnamPro-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("fonts/BeVietnamPro-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("fonts/BeVietnamPro-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url("fonts/BeVietnamPro-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url("fonts/BeVietnamPro-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 2. Token ------------------------------------------------------------------- */
:root {
    --font-tieu-de: "Be Vietnam Pro", var(--font);
    --dong-thau: #8a6417;            /* nhấn duy nhất cho vạch/chấm/nhãn nhỏ; 5.0:1 trên nền trắng */
    --dong-thau-nhat: #f6efe0;
    --tin-hieu: #0f766e;             /* "đang trực tuyến / đang diễn ra"; 5.4:1 trên nền trắng */
    --tin-hieu-nhat: #e3f4f1;
    --tg-nhanh: .18s;
    --duong-cong-mem: cubic-bezier(.2, .8, .2, 1);
    /* Màu nhận diện phân hệ (dùng trên nền sáng); bản sáng hơn cho thanh điều hướng tối nằm ở mục 4. */
    --m-khoa: #1f7a4f; --m-dao-tao: #8f630b; --m-hoc-vien: #1f6f99; --m-ca-nhan: #4f6bb0;
    --m-ban-tin: #9b3f6e; --m-quan-tri: #5d6a63; --m-truc-tuyen: #0f766e;
}
:root[data-giao-dien="toi"] {
    --dong-thau: #e2c27e; --dong-thau-nhat: #3a3020;
    --tin-hieu: #5eead4; --tin-hieu-nhat: #12332f;
    --m-khoa: #7fd6a8; --m-dao-tao: #f2c66d; --m-hoc-vien: #8ccaf0; --m-ca-nhan: #a9bdf2;
    --m-ban-tin: #f2a7c8; --m-quan-tri: #c3cbd2; --m-truc-tuyen: #5eead4;
}
:root:is([data-phong="he-thong"], [data-phong="de-doc"], [data-phong="serif"]) { --font-tieu-de: var(--font); }
/* Chữ phụ đậm hơn một bậc: tiếng Việt nhiều dấu, đọc lâu trên nền sáng cần tương phản cao hơn. */
:root:not([data-giao-dien="toi"]):not([data-tuong-phan]) { --chu-phu: #4c5951; }

/* 3. Chữ --------------------------------------------------------------------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
/* Không bóp khoảng chữ âm như tiêu đề tiếng Anh: dấu tiếng Việt sẽ chồng lên nhau. */
.page-heading h1, .dau-bieu-do h2, .dau-bang-tin h2, .dau-muc h2, .bang-dau h1, .tram-ten strong,
.the-so-lieu-gia-tri, .the-kpi strong, .ds-can-chu-y b { font-family: var(--font-tieu-de); letter-spacing: -.005em; }
.the-so-lieu-gia-tri, .the-kpi strong, .ds-can-chu-y b, .record-code { font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* 4. Khung ứng dụng ------------------------------------------------------------ */
.sidebar { border-right: 1px solid rgba(255, 255, 255, .06); }
/* Thanh trên: nền gần đặc, viền mảnh; chữ luôn sắc nét khi cuộn qua bảng. */
.top-row::before { background: color-mix(in srgb, var(--nen-the) 94%, transparent); }
.top-row { border-bottom: 1px solid var(--vien-the); }

/* Màu phân hệ trên thanh điều hướng tối: biểu tượng mang màu của mảng; mảng đang mở có vạch màu bên trái. */
.module-menu-group[data-phan-he="khoa"] { --mm: #7fd6a8; }
.module-menu-group[data-phan-he="dao-tao"] { --mm: #f2c66d; }
.module-menu-group[data-phan-he="hoc-vien"] { --mm: #8ccaf0; }
.module-menu-group[data-phan-he="ca-nhan"] { --mm: #a9bdf2; }
.module-menu-group[data-phan-he="ban-tin"] { --mm: #f2a7c8; }
.module-menu-group[data-phan-he="truc-tuyen"] { --mm: #5eead4; }
.module-menu-group[data-phan-he] .module-menu-main > .rzi { color: var(--mm); }
.module-menu-group[data-phan-he].dang-chon > .module-menu-heading { position: relative; }
.module-menu-group[data-phan-he].dang-chon > .module-menu-heading::before { content: ""; position: absolute; left: 0; top: .5rem; bottom: .5rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--mm); }
/* Mục con đang mở: vạch màu phân hệ bên trái thay cho chấm; tên dài xuống dòng thay vì bị cắt. */
.muc-con { min-height: 2.5rem; padding-block: .375rem; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.muc-con.active { position: relative; }
.muc-con.active::after { display: none; }
.muc-con.active::before { content: ""; position: absolute; left: -.8125rem; top: .5rem; bottom: .5rem; width: 2px; border-radius: 2px; background: var(--mm, #e2c27e); }
/* Phân hệ Trực tuyến đang có phòng mở: chấm "đang phát" nhỏ cạnh biểu tượng (đặt bởi NavMenu). */
.module-menu-group[data-phan-he="truc-tuyen"] .module-menu-main { position: relative; }

/* Đường dẫn luôn một dòng: "Trang chủ" chỉ còn biểu tượng nhà khi đã vào sâu; từ 4 cấp chỉ hiện ba cấp gần nhất. */
.duong-dan .rz-breadcrumb { display: flex; flex-wrap: nowrap; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.duong-dan .rz-breadcrumb-item { flex: none; white-space: nowrap; }
.duong-dan .rz-breadcrumb-item:first-child:not(:last-child) .rz-link-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.duong-dan .rz-breadcrumb-item:not(:first-child):nth-last-child(n+4) { display: none; }
.duong-dan .rz-breadcrumb-item:last-child { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }

/* Khối xếp liền nhau luôn cách ít nhất 16 px; hộp nổi cuộn được không kéo cả trang theo. */
.content > * + .directory-panel, .content > * + .rz-card, .content > * + .tt-khoi { margin-top: var(--kc-4); }
.rz-dialog-content, .rz-dropdown-items-wrapper, .rz-popup, .hop-tim-nhanh, .danh-sach-tieu-de { overscroll-behavior: contain; }

/* 5. Đầu trang (DauTrang) ------------------------------------------------------ */
.dau-trang-khoa { --nhan: var(--m-khoa); } .dau-trang-dao-tao { --nhan: var(--m-dao-tao); } .dau-trang-hoc-vien { --nhan: var(--m-hoc-vien); }
.dau-trang-ca-nhan { --nhan: var(--m-ca-nhan); } .dau-trang-quan-tri { --nhan: var(--m-quan-tri); } .dau-trang-thong-tin { --nhan: var(--m-ban-tin); }
.dau-trang-truc-tuyen { --nhan: var(--m-truc-tuyen); }
.page-heading-row { margin-bottom: 1.25rem; }
.page-heading h1 { font-size: clamp(1.5rem, 1.2rem + .7vw, 1.875rem); font-weight: 600; line-height: 1.25; }
.page-heading p { font-size: .9375rem; }
/* Ô biểu tượng: nền nhạt cùng màu phân hệ thay cho khối đặc có bóng. */
.dau-trang-bieu-tuong { width: 2.75rem; height: 2.75rem; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--nhan) 28%, transparent); background: color-mix(in srgb, var(--nhan) 10%, var(--nen-the)); color: var(--nhan); box-shadow: none; }
.dau-trang-bieu-tuong .rzi { font-size: 1.375rem; }
/* Đầu trang lồng trong tab: hạ xuống cấp tiêu đề phụ, không lặp biểu tượng lớn. */
.rz-tabview-panel .page-heading-row { margin-bottom: 1rem; }
.rz-tabview-panel .dau-trang-bieu-tuong { display: none; }
.rz-tabview-panel .page-heading h1 { font-size: 1.1875rem; }
.rz-tabview-panel .page-heading p { font-size: .8125rem; }
/* Nút phụ (Xuất/Nhập Excel…) ở đầu trang: viền mảnh trên nền thẻ thay cho khối xám đặc. */
.thao-tac-dau-trang .rz-button.rz-light, .thao-tac-dau-trang .rz-button.rz-base { border: 1px solid var(--vien-the); background: var(--nen-the); color: var(--chu-chinh); box-shadow: none; }
.thao-tac-dau-trang .rz-button.rz-light:not(.rz-state-disabled):hover { border-color: var(--mau-chinh-sang); background: var(--mau-chinh-nhat); }
/* Liên kết: theo màu thương hiệu, không để xanh dương mặc định của Bootstrap hiện khi rê chuột. */
a:hover { color: var(--mau-chinh-sang); }
.content a.rz-link:not(.btn) { color: var(--mau-chinh); }
/* Bảng: tiêu đề cột được xuống hai dòng thay vì bị cắt "MÃ CÁ…". */
.directory-grid .rz-grid-table thead th .rz-column-title-content, .directory-grid .rz-grid-table thead th .rz-column-title { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }

/* 6. Trang chủ: đầu bảng điều khiển ------------------------------------------- */
.bang-dau { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.25rem 2.5rem; margin: 0 0 1.25rem; padding-bottom: 1.5rem; }
/* Vạch chân là một đường sóng mảnh (họa tiết binh chủng Thông tin) thay cho đường kẻ thẳng. */
.bang-dau::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; color: var(--vien-the);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='8' viewBox='0 0 48 8'%3E%3Cpath d='M0 4 Q12 0 24 4 T48 4' fill='none' stroke='%23c5cdc6' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x left center / 48px 8px; }
[data-giao-dien="toi"] .bang-dau::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='8' viewBox='0 0 48 8'%3E%3Cpath d='M0 4 Q12 0 24 4 T48 4' fill='none' stroke='%233a5142' stroke-width='1.2'/%3E%3C/svg%3E"); }
.bang-dau-chu { min-width: 0; }
.bang-dau-ngay { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; margin: 0 0 .5rem; color: var(--chu-phu); font-size: .8125rem; font-weight: 500; }
.bang-dau-ngay .rzi { font-size: 1rem; }
.bang-dau-ngay span { padding: .0625rem .5rem; border-radius: 6px; background: var(--dong-thau-nhat); color: var(--dong-thau); font-size: .75rem; font-weight: 600; }
.bang-dau h1 { margin: 0 0 .375rem; font-size: clamp(1.5rem, 1.15rem + .9vw, 1.875rem); font-weight: 600; line-height: 1.25; }
.hero-an-ten { color: var(--mau-chinh); }
.bang-dau-tom-tat { max-width: 48rem; margin: 0; color: var(--chu-phu); font-size: .9375rem; line-height: 1.6; }
.bang-dau-tom-tat b { color: var(--chu-chinh); font-weight: 700; }
.bang-dau-nut { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.bang-dau-nut a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem 1rem; border-radius: 9px; font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color var(--tg-nhanh) ease, border-color var(--tg-nhanh) ease, transform var(--tg-nhanh) var(--duong-cong-mem); }
.bang-dau-nut a .rzi { font-size: 1.125rem; }
.bang-dau-nut a:active { transform: translateY(1px); }
.bang-dau-nut .nut-chinh { background: var(--mau-chinh); color: var(--chu-tren-mau); }
.bang-dau-nut .nut-chinh:hover, .bang-dau-nut .nut-chinh:focus { background: var(--mau-chinh-sang); color: var(--chu-tren-mau); }
.bang-dau-nut .nut-phu { border: 1px solid var(--vien-the); background: var(--nen-the); color: var(--chu-chinh); }
.bang-dau-nut .nut-phu:hover { border-color: var(--mau-chinh-sang); color: var(--mau-chinh); }
.bang-dau-nut .nut-phu b { display: inline-grid; place-items: center; min-width: 1.375rem; height: 1.375rem; padding: 0 .375rem; border-radius: 6px; background: var(--loi-chu); color: var(--chu-tren-mau); font-size: .75rem; }
.bang-dau-nut .nut-song { border: 1px solid color-mix(in srgb, var(--tin-hieu) 45%, transparent); background: var(--tin-hieu-nhat); color: var(--tin-hieu); }
.bang-dau-nut .nut-song:hover { border-color: var(--tin-hieu); color: var(--tin-hieu); }
.bang-dau-nut a:focus-visible, .tc-loi-tat a:focus-visible, .the-kpi:focus-visible { outline: 2px solid var(--mau-chinh-sang); outline-offset: 2px; }

/* Chấm "đang phát": dùng chung cho mọi trạng thái trực tuyến/đang diễn ra; luôn có chữ đi kèm. */
.cham-song { position: relative; display: inline-block; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.cham-song::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: song-lan 2s ease-out infinite; }
@keyframes song-lan { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(2.8); } }

/* 7. Thẻ trạm (trang chủ) ------------------------------------------------------
   Thẻ làm việc kiểu bảng máy liên lạc: logo Trường (ảnh gốc), hô hiệu từ tên tài khoản, vai trò, phạm vi,
   vạch cường độ tín hiệu = tình trạng việc hôm nay (đủ 4 vạch: không tồn đọng), đường dao động ký và đèn kết nối.
   Màu cố định (thẻ luôn tối) nên đọc rõ ở cả Sáng và Tối. Chuyển động: vào một lần, xung sóng chạy ba lượt rồi nghỉ;
   rê chuột chạy lại. Tắt hết khi giảm chuyển động. */
.tram { width: 22rem; }
.tram-mat {
    position: relative; overflow: hidden; padding: 1rem 1.125rem .875rem; border: 1px solid rgba(94, 234, 212, .22); border-radius: 18px; color: #e6f2ec;
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 14px,
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 14px 100%,
        radial-gradient(120% 90% at 100% 0%, #1d5a42 0%, transparent 60%),
        linear-gradient(155deg, #123a2a 0%, #0b2619 62%, #071a11 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 22px 44px -20px rgba(7, 26, 17, .6);
    animation: tram-vao .5s var(--duong-cong-mem) both;
}
@keyframes tram-vao { from { opacity: 0; transform: translateY(10px); } }
.tram-dau { display: flex; align-items: center; gap: .625rem; padding-bottom: .75rem; border-bottom: 1px dashed rgba(255, 255, 255, .18); }
.tram-dau img { flex: none; width: auto; height: 2.5rem; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.tram-dau > span:first-of-type { display: flex; min-width: 0; flex: 1; flex-direction: column; font-size: .6875rem; font-weight: 700; letter-spacing: .04em; line-height: 1.3; }
.tram-dau small { color: #e2c27e; font-size: .625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
/* Vạch cường độ: bốn cột cao dần; số vạch sáng theo data-muc. */
.tram-vach { display: inline-flex; flex: none; align-items: flex-end; gap: 3px; height: 1.25rem; }
.tram-vach i { width: 4px; border-radius: 1px; background: rgba(255, 255, 255, .18); transform-origin: bottom; animation: vach-len .5s var(--duong-cong-mem) both; }
.tram-vach i:nth-child(1) { height: 30%; animation-delay: .25s; } .tram-vach i:nth-child(2) { height: 52%; animation-delay: .32s; }
.tram-vach i:nth-child(3) { height: 76%; animation-delay: .39s; } .tram-vach i:nth-child(4) { height: 100%; animation-delay: .46s; }
.tram-vach[data-muc="1"] i:nth-child(-n+1), .tram-vach[data-muc="2"] i:nth-child(-n+2),
.tram-vach[data-muc="3"] i:nth-child(-n+3), .tram-vach[data-muc="4"] i { background: #5eead4; }
.tram-vach[data-muc="1"] i:nth-child(-n+1) { background: #fca5a5; }
.tram-vach[data-muc="2"] i:nth-child(-n+2) { background: #fcd34d; }
@keyframes vach-len { from { transform: scaleY(0); } }
.tram-than { display: flex; align-items: center; gap: .875rem; padding: .875rem 0 .375rem; }
/* Chữ cái đầu trong "màn ra-đa": hai vòng sóng lan ra một lần khi vào trang. */
.tram-radar { position: relative; display: grid; flex: none; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: radial-gradient(circle, #1f6b4c 0%, #0f3b2a 70%); box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .45); color: #f3fbf7; font-family: var(--font-tieu-de); font-size: 1.25rem; font-weight: 700; }
.tram-radar::before, .tram-radar::after { content: ""; position: absolute; inset: -1px; border: 1px solid rgba(94, 234, 212, .55); border-radius: 50%; animation: radar-lan 1.4s ease-out .4s 2 both; }
.tram-radar::after { animation-delay: .9s; }
@keyframes radar-lan { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
.tram-ten { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: .0625rem; }
.tram-ten small { color: #b9d0c1; font-size: .75rem; line-height: 1.35; }
.tram-ten .tram-ho-hieu { color: #5eead4; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; }
.tram-ten strong { overflow: hidden; color: #fff; font-size: 1.1875rem; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
/* Đường dao động ký: nền sóng mờ + một xung sáng chạy dọc sóng. */
.tram-song { display: block; width: 100%; height: 2.25rem; margin: .25rem 0 .375rem; overflow: visible; }
.tram-song path { fill: none; stroke-linecap: round; }
.tram-song .nen { stroke: rgba(94, 234, 212, .22); stroke-width: 1.25; }
.tram-song .xung { stroke: #5eead4; stroke-width: 2; stroke-dasharray: 80 1000; stroke-dashoffset: 1080; /* đường có pathLength="1000" */ filter: drop-shadow(0 0 3px rgba(94, 234, 212, .8)); animation: xung-chay 2.6s linear .6s 3; }
.tram-mat:hover .tram-song .xung { animation: xung-chay 2.6s linear infinite; }
@keyframes xung-chay { to { stroke-dashoffset: 0; } }
.tram-chan { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .625rem; border-top: 1px solid rgba(255, 255, 255, .1); color: #b9d0c1; font-size: .6875rem; }
.tram-chan > span:first-child { display: inline-flex; align-items: center; gap: .375rem; color: #a7f3d0; }
.tram-chan .tram-tinh-trang { font-weight: 600; }
.tram-kenh { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; }
@media (max-width: 1100px) { .bang-dau { grid-template-columns: 1fr; } .tram { justify-self: start; } }
@media (max-width: 480px) { .tram { width: 100%; } }

/* 8. Lối tắt, chỉ số "Hôm nay", quy mô ------------------------------------------- */
.tc-loi-tat { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.tc-loi-tat a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .375rem .875rem; border: 1px solid var(--vien-the); border-radius: 9px; background: var(--nen-the); color: var(--chu-chinh); font-size: .875rem; font-weight: 500; text-decoration: none; transition: border-color var(--tg-nhanh) ease, color var(--tg-nhanh) ease, transform var(--tg-nhanh) var(--duong-cong-mem); }
.tc-loi-tat a .rzi { color: var(--mau-chinh); font-size: 1.125rem; }
.tc-loi-tat a:hover { border-color: var(--mau-chinh-sang); color: var(--mau-chinh); transform: translateY(-1px); }
.tc-loi-tat a[href^="/khoa"] .rzi { color: var(--m-khoa); }
.tc-loi-tat a[href^="/dao-tao"] .rzi { color: var(--m-dao-tao); }
.tc-loi-tat a[href^="/quan-ly-hoc-vien"] .rzi { color: var(--m-hoc-vien); }
.tc-loi-tat a[href^="/quan-tri"] .rzi { color: var(--m-quan-tri); }
.tc-loi-tat a[href^="/truc-tuyen"] .rzi { color: var(--m-truc-tuyen); }
.tc-loi-tat a:is([href="/giang-day"], [href="/cua-toi"]) .rzi { color: var(--m-ca-nhan); }

/* Chỉ số "Hôm nay": tối đa bốn ô, số lớn, trạng thái bằng chữ + vạch màu bên trái (không chỉ dựa vào màu). */
.tc-chi-so { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .875rem; margin: 0 0 1.25rem; }
.the-kpi { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.125rem 1rem 1.375rem; border: 1px solid var(--vien-the); border-radius: var(--bo-goc-lon); background: var(--nen-the); color: var(--chu-chinh); text-decoration: none; transition: border-color var(--tg-nhanh) ease, transform var(--tg-nhanh) var(--duong-cong-mem); }
.the-kpi::before { content: ""; position: absolute; left: 0; top: .875rem; bottom: .875rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--mau-chinh-sang); }
.the-kpi:hover, .the-kpi:focus-visible { border-color: color-mix(in srgb, var(--mau-chinh-sang) 60%, var(--vien-the)); color: var(--chu-chinh); transform: translateY(-2px); }
.the-kpi-nhan { display: inline-flex; align-items: center; gap: .5rem; color: var(--chu-phu); font-size: .8125rem; font-weight: 600; }
.the-kpi-nhan .rzi { display: inline-grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 7px; background: var(--mau-chinh-nhat); color: var(--mau-chinh); font-size: 1.0625rem; }
.the-kpi strong { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.the-kpi small { color: var(--chu-phu); font-size: .8125rem; }
.the-kpi.lich::before { background: var(--m-dao-tao); }
.the-kpi.lich .the-kpi-nhan .rzi { background: color-mix(in srgb, var(--m-dao-tao) 14%, var(--nen-the)); color: var(--m-dao-tao); }
.the-kpi.canh-bao::before { background: var(--canh-bao-chu); }
.the-kpi.canh-bao .the-kpi-nhan .rzi { background: var(--canh-bao-nen); color: var(--canh-bao-chu); }
.the-kpi.tot::before { background: var(--ok-chu); }
.the-kpi.tot .the-kpi-nhan .rzi { background: var(--ok-nen); color: var(--ok-chu); }
.the-kpi.thong-tin::before { background: var(--tin-chu); }
.the-kpi.thong-tin .the-kpi-nhan .rzi { background: var(--tin-nen); color: var(--tin-chu); }
.the-kpi.truc-tuyen::before { background: var(--tin-hieu); }
.the-kpi.truc-tuyen .the-kpi-nhan .rzi { background: var(--tin-hieu-nhat); color: var(--tin-hieu); }
.the-kpi .nhan-dang-phat { display: inline-flex; align-items: center; gap: .375rem; margin-left: auto; padding: 0 .5rem; border-radius: 999px; background: var(--tin-hieu-nhat); color: var(--tin-hieu); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Tiêu đề mục trong trang (Quy mô của Khoa…) */
.dau-muc { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: 0 0 .75rem; }
.dau-muc h2 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.dau-muc p { margin: 0; color: var(--chu-phu); font-size: .8125rem; }
.quy-mo { margin: 0 0 1.25rem; }

/* Thẻ số liệu (quy mô): gọn, nhãn + biểu tượng một dòng, số lớn; bỏ kiểu nổi đè lên dải chào mừng cũ. */
.luoi-so-lieu { margin: 0; gap: .875rem; }
.the-so-lieu { padding: 1rem 1.125rem .875rem; box-shadow: none; transition: border-color var(--tg-nhanh) ease, transform var(--tg-nhanh) var(--duong-cong-mem); }
.the-so-lieu:hover, .the-so-lieu:focus-visible { border-color: color-mix(in srgb, var(--mau-chinh-sang) 60%, var(--vien-the)); box-shadow: none; color: var(--chu-chinh); transform: translateY(-2px); }
.the-so-lieu-dau { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.the-so-lieu-dau .the-so-lieu-nhan { color: var(--chu-phu); font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.the-so-lieu-bieu-tuong { flex: none; width: 1.875rem; height: 1.875rem; border-radius: 8px; font-size: 1rem; }
.the-so-lieu-gia-tri { margin: 0 0 .375rem; font-size: 1.75rem; font-weight: 700; }
.the-so-lieu-phu { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .5rem; font-size: .75rem; }
.the-so-lieu-phu .rzi { flex: none; font-size: .9375rem; color: var(--vien-o-nhap); transition: transform var(--tg-nhanh) var(--duong-cong-mem), color var(--tg-nhanh) ease; }
.the-so-lieu:hover .the-so-lieu-phu .rzi { color: var(--mau-chinh); transform: translate(2px, -2px); }
.the-so-lieu[href^="/khoa"] .the-so-lieu-bieu-tuong { background: color-mix(in srgb, var(--m-khoa) 12%, var(--nen-the)); color: var(--m-khoa); }
.the-so-lieu:is([href="/lop"], [href="/hoc-vien"]) .the-so-lieu-bieu-tuong { background: color-mix(in srgb, var(--m-hoc-vien) 12%, var(--nen-the)); color: var(--m-hoc-vien); }
@media (max-width: 1280px) { .luoi-so-lieu { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } .the-so-lieu, .the-so-lieu:nth-child(n+4), .the-so-lieu:last-child { grid-column: auto; } }
@media (max-width: 759px) { .luoi-so-lieu { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 0; } .the-so-lieu:last-child { grid-column: 1 / -1; } .the-so-lieu-gia-tri { font-size: 1.5rem; } }

/* 9. Thẻ nội dung: đầu thẻ ngăn bằng vạch mảnh ---------------------------------- */
.the-bieu-do { padding: 1.125rem 1.25rem 1.25rem; border-radius: var(--bo-goc-lon); }
.dau-bieu-do { align-items: center; margin: -1.125rem -1.25rem 1rem; padding: .875rem 1.25rem; border-bottom: 1px solid var(--vien-nhat); }
.dau-bieu-do h2 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.dau-bieu-do p { font-size: .8125rem; }
.luoi-dieu-khien { gap: .875rem; margin-bottom: 1.25rem; }
.ds-can-chu-y a { border-radius: 10px; padding: .5rem .75rem; }
a.the-kpi:hover, a.the-so-lieu:hover, .ds-can-chu-y a:hover, .ds-uu-tien a:hover { color: var(--chu-chinh); }
/* Hoạt động gần đây: nhãn không gãy dòng; tên co lại và cắt bằng "…" thay vì tràn khỏi thẻ. */
.ds-hoat-dong { grid-template-columns: minmax(0, 1fr); }
.ds-hoat-dong li { min-width: 0; gap: .75rem; padding: .5rem 0; }
.ds-hoat-dong li:last-child { border-bottom: 0; }
.ds-hoat-dong .nhan-hanh-dong { flex: none; min-width: 4.75rem; text-align: center; white-space: nowrap; }
.ds-hoat-dong li > span:last-child { flex: 1 1 auto; }
.ds-hoat-dong small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 10. Chống tràn chữ chung -------------------------------------------------------- */
.tb-loai, .tb-so, .tb-muc-do, .nhan-new, .tb-het-han, .nhan-hanh-dong, .nhan-trang-thai, .record-code, .tag-tin, .tt-nhan { white-space: nowrap; }
.tb-dong-nhan { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .375rem; min-width: 0; }
.tb-chu-muc { min-width: 0; }
.tb-chu-muc > strong { overflow-wrap: anywhere; }
.tb-ngay-nho { white-space: nowrap; }
/* Danh sách văn bản: cột danh sách không hẹp hơn 15rem; màn vừa bỏ ảnh thu nhỏ để chữ đủ chỗ. */
section.bang-thong-bao .noi-dung-bang-tin { grid-template-columns: minmax(15rem, 30fr) minmax(0, 70fr); }
section.bang-thong-bao .anh-thong-bao { object-fit: contain; max-height: 26rem; border: 1px solid var(--vien-nhat); background: var(--nen-dai); }
@media (max-width: 1200px) { section.bang-thong-bao .tb-anh-nho { display: none; } }
@media (max-width: 1200px) and (min-width: 601px) { section.bang-thong-bao .noi-dung-bang-tin { grid-template-columns: minmax(15rem, 36fr) minmax(0, 64fr); gap: 1rem; } }
@media (max-width: 600px) { section.bang-thong-bao .noi-dung-bang-tin { grid-template-columns: 1fr; } .chon-che-do { flex-wrap: wrap; } }

/* 11. Trạng thái trực tuyến dùng màu tín hiệu ---------------------------------------- */
.tt-nhan.dang-mo { display: inline-flex; align-items: center; gap: .375rem; background: var(--tin-hieu-nhat); color: var(--tin-hieu); }

/* 12. Điểm danh đi làm: các ngày rộng bằng nhau, cột tên cố định khi cuộn ngang ------------- */
.khoi-cong .bang-cuon { overflow-x: auto; }
.bang-cong { table-layout: fixed; min-width: 50rem; border-collapse: separate; border-spacing: 0; }
.bang-cong th:first-child, .bang-cong td:first-child { width: 30%; min-width: 14rem; position: sticky; left: 0; z-index: 1; background: var(--nen-the); }
.bang-cong thead th:first-child { background: var(--nen-dai); }
.bang-cong th:last-child, .bang-cong td:last-child { width: 6rem; }
.bang-cong thead th { padding: .5rem .375rem; border-bottom: 1px solid var(--vien-the); background: var(--nen-dai); color: var(--chu-phu); font-size: .75rem; font-weight: 600; }
.bang-cong thead th.hom-nay { background: var(--mau-chinh); color: var(--chu-tren-mau); }
.bang-cong thead th.hom-nay small { color: var(--chu-tren-mau); opacity: .85; }
.bang-cong thead th.hom-nay::after { content: "Hôm nay"; display: block; font-size: .625rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bang-cong td { padding: .4375rem .375rem; border-bottom: 1px solid var(--vien-nhat); vertical-align: middle; }
.bang-cong td.hom-nay { background: color-mix(in srgb, var(--mau-chinh-nhat) 70%, transparent); }
.bang-cong .o-cong-rong, .bang-cong td.hom-nay select.o-cong { width: 100%; max-width: 8.5rem; min-width: 0; }
.bang-cong .dong-to td { position: static; padding: .5rem .625rem; background: var(--nen-dai); color: var(--m-khoa); font-size: .75rem; letter-spacing: .04em; }
.bang-cong tbody tr:not(.dong-to):hover td { background: var(--nen-dai); }
.bang-cong tbody tr:not(.dong-to):hover td.hom-nay { background: var(--mau-chinh-nhat); }

/* 13. Xem ảnh phóng to (wwwroot/xem-anh.js) ------------------------------------------ */
img[data-phong-to] { cursor: zoom-in; transition: filter .15s ease; }
img[data-phong-to]:hover { filter: brightness(1.04); }
img[data-phong-to]:focus-visible { outline: 2px solid var(--mau-chinh-sang); outline-offset: 3px; }
.xa-goc { position: fixed; inset: 0; z-index: 15000; display: flex; flex-direction: column; background: rgba(5, 12, 9, .9); animation: xa-hien .16s ease-out; }
.xa-thanh { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; color: #e4eee7; }
.xa-thanh strong { flex: 1; min-width: 0; overflow: hidden; font-size: .9375rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.xa-thanh button, .xa-thanh a { display: inline-flex; align-items: center; gap: .375rem; height: 2.75rem; padding: 0 .875rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 9px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: .875rem; text-decoration: none; cursor: pointer; }
.xa-thanh button:hover, .xa-thanh a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.xa-thanh .xa-dong { width: 2.75rem; padding: 0; justify-content: center; font-size: 1.375rem; }
.xa-vung { flex: 1; min-height: 0; display: grid; place-items: center; overflow: auto; padding: 0 1rem 1rem; }
.xa-vung img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); cursor: zoom-in; background: #fff; }
.xa-vung.xa-that img { max-width: none; max-height: none; cursor: zoom-out; }
.xa-goc :focus-visible { outline: 2px solid #e4cf8c; outline-offset: 2px; }
@keyframes xa-hien { from { opacity: 0; } }
@media (max-width: 600px) { .xa-thanh .xa-nhan { display: none; } }

/* 14. Nút về đầu trang (wwwroot/hieu-ung.js bật lớp "hien" khi đã cuộn tới gần cuối trang dài) --- */
.nut-len-dau { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--vien-the); border-radius: 50%; background: var(--nen-the); color: var(--mau-chinh); box-shadow: 0 8px 22px rgba(14, 42, 30, .16); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity var(--tg-nhanh) ease, transform var(--tg-nhanh) var(--duong-cong-mem), background-color var(--tg-nhanh) ease; }
.nut-len-dau.hien { opacity: 1; pointer-events: auto; transform: none; }
.nut-len-dau:hover { background: var(--mau-chinh); color: var(--chu-tren-mau); }
.nut-len-dau:focus-visible { outline: 2px solid var(--mau-chinh-sang); outline-offset: 2px; }
.nut-len-dau .rzi { font-size: 1.5rem; }

/* 15. Điện thoại: menu là ngăn kéo thật ----------------------------------------------
   Trước đây khi menu ở trạng thái thu gọn, điện thoại vẫn hiện hàng biểu tượng chiếm nửa màn hình và có hai nút ba gạch.
   Nay: một dải logo + nút ba gạch; bấm thì mở menu đầy đủ có chữ. */
@media (max-width: 759px) {
    .top-row .nut-sidebar { display: none; }
    .sidebar { position: sticky; top: 0; z-index: 40; background: var(--mau-chinh-dam); }
    .sidebar-menu:not(.menu-open) :is(.nav-scrollable, .menu-tro-giup, .menu-quan-tri) { display: none !important; }
    .sidebar-menu.menu-open { max-height: calc(100vh - 4.5rem); overflow-y: auto; }
    .sidebar-thu-gon .sidebar-menu.menu-open :is(.brand-copy, .ten-phan-he) { display: inline; }
    .sidebar-thu-gon .sidebar-menu.menu-open .nhan-nhom-menu { display: block; }
    .sidebar-thu-gon .sidebar-menu.menu-open .module-groups { display: grid; gap: .25rem; }
    .sidebar-thu-gon .sidebar-menu.menu-open .module-menu-heading { display: flex; }
    .sidebar-thu-gon .sidebar-menu.menu-open .module-menu-main { justify-content: flex-start; padding: 0 .75rem; }
    .sidebar-thu-gon .sidebar-menu.menu-open .module-menu-toggle { display: grid; }
    .sidebar-thu-gon .sidebar-menu.menu-open .menu-con { display: grid; }
    .sidebar-thu-gon .brand-copy { display: flex; }
    .navbar-toggler.rz-button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
    .nut-len-dau { right: 1rem; bottom: 1rem; }
}

/* 16. Chuyển động: vào trang một lần, ngắn; giảm chuyển động thì đứng yên hết -------------- */
@media (prefers-reduced-motion: reduce) {
    .tram-mat, .tram-vach i, .tram-radar::before, .tram-radar::after, .tram-song .xung, .tram-mat:hover .tram-song .xung, .cham-song::after, .xa-goc { animation: none; }
    .tram-radar::before, .tram-radar::after { display: none; }
    .tram-song .xung { stroke-dashoffset: 0; stroke-dasharray: none; opacity: .5; filter: none; }
    .the-kpi, .the-so-lieu, .tc-loi-tat a, .nut-len-dau { transition: none; }
    .the-kpi:hover, .the-so-lieu:hover, .tc-loi-tat a:hover { transform: none; }
}
:root[data-giam-chuyen-dong] :is(.tram-mat, .tram-vach i, .tram-song .xung),
:root[data-giam-chuyen-dong] .cham-song::after { animation: none !important; }
:root[data-giam-chuyen-dong] .tram-song .xung { stroke-dashoffset: 0; stroke-dasharray: none; opacity: .5; filter: none; }
:root[data-giam-chuyen-dong] .tram-radar::before, :root[data-giam-chuyen-dong] .tram-radar::after { display: none; }

/* 17. Bản tin Khoa: ảnh minh hoạ vẽ theo chuyên mục, đầu báo, ô truyền thống ------------------------
   Ảnh SVG (Components/Layout/AnhTin.razor) phủ kín khung; nền là dải màu riêng của từng chuyên mục, chữ chuyên mục góc dưới. */
.bt-anh-svg { isolation: isolate; }
.bt-anh-svg::before { display: none; }
.bt-anh-svg svg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.bt-anh-svg small { z-index: 1; color: #fff; font-weight: 600; letter-spacing: .02em; }
.bt-anh-ve.muc-0 { background: linear-gradient(140deg, #0e2a1e, #1f5a3d); }
.bt-anh-ve.muc-1 { background: linear-gradient(140deg, #2b3415, #55652a); }
.bt-anh-ve.muc-2 { background: linear-gradient(140deg, #0b3f3a, #13756c); }
.bt-anh-ve.muc-3 { background: linear-gradient(140deg, #13284d, #2a5394); }
.bt-anh-ve.muc-4 { background: linear-gradient(140deg, #4a3508, #8a6418); }
.bt-anh-ve.muc-5 { background: linear-gradient(140deg, #5e1414, #a32d28); }
.bt-anh-ve.muc-6 { background: linear-gradient(140deg, #222d33, #46565f); }
.bt-anh-ve.muc-7 { background: linear-gradient(140deg, #4a1f3e, #7d3a66); }
.bt-ten-bao > span { display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-family: var(--font-tieu-de); }
.bt-ten-bao small { margin-top: .25rem; color: var(--chu-phu); font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.bt-chuyen-muc { flex-wrap: wrap; }
.bt-truyen-thong .bt-tt-dem { display: flex; align-items: center; gap: .875rem; padding: .75rem .875rem; border-radius: 10px; background: linear-gradient(140deg, #0e2a1e, #1f5a3d); color: #dfeee5; }
.bt-truyen-thong .bt-tt-dem strong { flex: none; min-width: 3.25rem; color: #e2c27e; font-family: var(--font-tieu-de); font-size: 2.25rem; font-weight: 700; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.bt-truyen-thong .bt-tt-dem span { font-size: var(--cc-13); line-height: 1.4; }
.bt-tt-phuong-cham { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; margin: .625rem 0 0; }
.bt-tt-phuong-cham span { padding: .375rem .25rem; border: 1px solid var(--vien-the); border-radius: 8px; background: var(--nen-dai); color: var(--chu-chinh); font-size: .6875rem; font-weight: 700; letter-spacing: .03em; text-align: center; text-transform: uppercase; }

/* 18. Ôn luyện (Components/Pages/OnLuyen.razor) ----------------------------------------------------------
   Thẻ học phần kiểu "lộ trình": số thứ tự lớn viền rỗng (gợi ý từ TheoryOJ), vòng thành thạo, nút ôn.
   Làm bài: một câu mỗi lần, phương án là nút lớn dễ bấm; sau khi kiểm tra tô đúng/sai kèm biểu tượng và chữ. */
.ol-nhan { display: inline-block; padding: .0625rem .5rem; border-radius: 6px; background: var(--tin-hieu-nhat); color: var(--tin-hieu); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.ol-tong { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .875rem; margin: 0 0 1.25rem; }
.ol-tong > div { display: flex; flex-direction: column; gap: .125rem; padding: .875rem 1.125rem; border: 1px solid var(--vien-the); border-left: 3px solid var(--tin-hieu); border-radius: var(--bo-goc-lon); background: var(--nen-the); }
.ol-tong strong { font-family: var(--font-tieu-de); font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ol-tong span { color: var(--chu-phu); font-size: .8125rem; }
.ol-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .875rem; margin-bottom: 1.25rem; }
.ol-the { position: relative; display: flex; flex-direction: column; gap: .75rem; overflow: hidden; padding: 1rem 1.125rem 1.125rem; border: 1px solid var(--vien-the); border-radius: 14px; background: var(--nen-the); transition: border-color var(--tg-nhanh) ease, transform var(--tg-nhanh) var(--duong-cong-mem); }
.ol-the:hover { border-color: color-mix(in srgb, var(--tin-hieu) 50%, var(--vien-the)); transform: translateY(-2px); }
.ol-the.dang-chon { border-color: var(--tin-hieu); box-shadow: inset 0 3px 0 var(--tin-hieu); }
.ol-so { position: absolute; top: .25rem; right: .75rem; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--tin-hieu) 35%, transparent); font-family: var(--font-tieu-de); font-size: 3.5rem; font-weight: 700; line-height: 1; pointer-events: none; }
.ol-the header { padding-right: 4rem; }
.ol-the h2 { margin: .375rem 0 0; font-family: var(--font-tieu-de); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.ol-the-giua { display: flex; align-items: center; gap: 1rem; }
.ol-the dl { display: grid; gap: .25rem; margin: 0; font-size: .8125rem; }
.ol-the dl > div { display: flex; gap: .375rem; }
.ol-the dt { min-width: 5.75rem; color: var(--chu-phu); font-weight: 500; }
.ol-the dd { margin: 0; font-weight: 600; }
.ol-the .ol-so-lieu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.ol-the .ol-so-lieu > div { flex-direction: column; gap: 0; padding: .5rem .625rem; border-radius: 9px; background: var(--nen-dai); }
.ol-the .ol-so-lieu dd { font-family: var(--font-tieu-de); font-size: 1.125rem; }
.ol-hanh-dong { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: auto; }
/* Vòng tiến độ: --pt từ 0 đến 100 (đường tròn có pathLength=100). */
.ol-vong { position: relative; display: grid; flex: none; place-items: center; width: 4.5rem; height: 4.5rem; }
.ol-vong svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ol-vong circle { fill: none; stroke-width: 10; }
.ol-vong .nen { stroke: var(--vien-nhat); }
.ol-vong .muc { stroke: var(--tin-hieu); stroke-linecap: round; stroke-dasharray: calc(var(--pt) * 1px) 100px; transition: stroke-dasharray .6s var(--duong-cong-mem); }
.ol-vong strong { font-family: var(--font-tieu-de); font-size: 1rem; font-variant-numeric: tabular-nums; }
.ol-vong.lon { width: 8rem; height: 8rem; }
.ol-vong.lon strong { font-size: 1.75rem; }

.ol-lam { max-width: 52rem; margin: 0 auto; }
.ol-lam-dau { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: .875rem; }
.ol-lam-dau > div:first-child { flex: 1 1 18rem; min-width: 0; }
.ol-lam-dau h1 { margin: .375rem 0 0; font-family: var(--font-tieu-de); font-size: clamp(1.375rem, 1.1rem + .7vw, 1.75rem); font-weight: 600; }
.ol-diem { display: flex; align-items: baseline; gap: .25rem; color: var(--chu-phu); }
.ol-diem strong { color: var(--tin-hieu); font-family: var(--font-tieu-de); font-size: 2rem; font-variant-numeric: tabular-nums; }
.ol-tien-do { display: flex; gap: 4px; margin-bottom: 1rem; }
.ol-tien-do span { flex: 1; height: 6px; border-radius: 3px; background: var(--vien-nhat); }
.ol-tien-do span.dang { background: color-mix(in srgb, var(--tin-hieu) 45%, var(--vien-nhat)); }
.ol-tien-do span.dung { background: var(--ok-chu); }
.ol-tien-do span.sai { background: var(--loi-chu); }
.ol-cau, .ol-ket-qua { padding: 1.25rem 1.375rem; border: 1px solid var(--vien-the); border-radius: 16px; background: var(--nen-the); }
.ol-so-cau { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; color: var(--chu-phu); font-size: .8125rem; font-weight: 600; }
.ol-cau h2 { margin: 0 0 1rem; font-size: 1.1875rem; font-weight: 600; line-height: 1.45; text-wrap: pretty; }
.ol-do-kho { display: inline-block; padding: 0 .5rem; border-radius: 999px; background: var(--ok-nen); color: var(--ok-chu); font-size: .6875rem; font-weight: 700; white-space: nowrap; }
.ol-do-kho.muc-2 { background: var(--tin-nen); color: var(--tin-chu); }
.ol-do-kho.muc-3 { background: var(--canh-bao-nen); color: var(--canh-bao-chu); }
.ol-phuong-an { display: grid; gap: .5rem; }
.ol-phuong-an button { display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .625rem .875rem; border: 1px solid var(--vien-the); border-radius: 11px; background: var(--nen-the); color: var(--chu-chinh); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--tg-nhanh) ease, background-color var(--tg-nhanh) ease; }
.ol-phuong-an button:not(:disabled):hover { border-color: var(--tin-hieu); background: var(--tin-hieu-nhat); }
.ol-phuong-an button:focus-visible { outline: 2px solid var(--mau-chinh-sang); outline-offset: 2px; }
.ol-phuong-an button b { display: grid; flex: none; place-items: center; width: 1.875rem; height: 1.875rem; border: 1px solid var(--vien-the); border-radius: 8px; background: var(--nen-dai); font-size: .875rem; }
.ol-phuong-an button span { flex: 1; }
.ol-phuong-an button .rzi { flex: none; font-size: 1.375rem; }
.ol-phuong-an button.dang-chon { border-color: var(--tin-hieu); background: var(--tin-hieu-nhat); box-shadow: inset 0 0 0 1px var(--tin-hieu); }
.ol-phuong-an button.dang-chon b { border-color: var(--tin-hieu); background: var(--tin-hieu); color: var(--chu-tren-mau); }
.ol-phuong-an button:disabled { cursor: default; opacity: 1; }
.ol-phuong-an button.dung { border-color: var(--ok-chu); background: var(--ok-nen); color: var(--ok-chu); font-weight: 600; }
.ol-phuong-an button.dung b { border-color: var(--ok-chu); background: var(--ok-chu); color: var(--chu-tren-mau); }
.ol-phuong-an button.sai { border-color: var(--loi-chu); background: var(--loi-nen); color: var(--loi-chu); }
.ol-phuong-an button.sai b { border-color: var(--loi-chu); background: var(--loi-chu); color: var(--chu-tren-mau); }
.ol-phuong-an button.mo { color: var(--chu-phu); }
.ol-phan-hoi { margin: 1rem 0 0; padding: .875rem 1rem; border-left: 4px solid var(--ok-chu); border-radius: 10px; background: var(--ok-nen); animation: ol-hien .2s var(--duong-cong-mem); }
.ol-phan-hoi.sai { border-left-color: var(--canh-bao-chu); background: var(--canh-bao-nen); }
.ol-phan-hoi strong { display: flex; align-items: center; gap: .375rem; color: var(--ok-chu); }
.ol-phan-hoi.sai strong { color: var(--canh-bao-chu); }
.ol-phan-hoi p { margin: .375rem 0 0; color: var(--chu-chinh); line-height: 1.55; }
.ol-phan-hoi small { display: inline-flex; align-items: center; gap: .375rem; margin-top: .5rem; color: var(--chu-phu); font-size: .8125rem; }
.ol-phan-hoi small .rzi { font-size: 1rem; }
.ol-cau .ol-hanh-dong { margin-top: 1rem; }
@keyframes ol-hien { from { opacity: 0; transform: translateY(4px); } }
.ol-ket-qua { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.ol-ket-qua > div:last-child { flex: 1 1 20rem; }
.ol-ket-qua h2 { margin: 0 0 .375rem; font-size: 1.25rem; font-weight: 600; }
.ol-ket-qua p { margin: 0 0 1rem; color: var(--chu-phu); }

.ol-chi-tiet { margin-top: .25rem; }
.ol-ds-cau { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.ol-ds-cau li { display: grid; grid-template-columns: minmax(0, 1fr) 11rem auto; align-items: center; gap: .75rem; padding: .625rem .75rem; border: 1px solid var(--vien-nhat); border-radius: 10px; background: var(--nen-dai); }
.ol-ds-noi-dung { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: .25rem; }
.ol-ds-noi-dung strong { font-size: .875rem; font-weight: 600; line-height: 1.4; }
.ol-ds-noi-dung small { color: var(--chu-phu); font-size: .75rem; }
.ol-ds-ti-le { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .125rem .5rem; font-size: .8125rem; }
.ol-ds-ti-le .thanh { height: 6px; border-radius: 3px; background: var(--vien-nhat); overflow: hidden; }
.ol-ds-ti-le .thanh span { display: block; height: 100%; background: var(--ok-chu); }
.ol-ds-ti-le.vua .thanh span { background: var(--canh-bao-chu); }
.ol-ds-ti-le.yeu .thanh span { background: var(--loi-chu); }
.ol-ds-ti-le small { grid-column: 1 / -1; color: var(--chu-phu); font-size: .6875rem; }
@media (max-width: 760px) { .ol-ds-cau li { grid-template-columns: 1fr; } .ol-ds-ti-le { max-width: 14rem; } }

.ol-soan label { display: block; margin: .875rem 0 .375rem; font-size: var(--cc-13); font-weight: 600; }
.ol-soan > label:first-child { margin-top: 0; }
.ol-soan-pa { margin: .875rem 0 0; padding: 0; border: 0; }
.ol-soan-pa legend { float: none; width: auto; margin-bottom: .5rem; font-size: var(--cc-13); font-weight: 600; }
.ol-soan-dong { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.ol-soan-dong input[type=radio] { flex: none; width: 1.125rem; height: 1.125rem; accent-color: var(--ok-chu); }
.ol-soan .ol-soan-dong .ol-soan-chu { flex: none; width: 1.5rem; margin: 0; text-align: center; }
.ol-soan-dong .nut-nho { display: grid; flex: none; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--vien-the); border-radius: 8px; background: var(--nen-the); color: var(--chu-phu); cursor: pointer; }
.ol-soan-dong .nut-nho:disabled { opacity: .4; cursor: default; }
.ol-soan-hai-cot { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: .75rem; }
@media (max-width: 600px) { .ol-soan-hai-cot { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ol-the, .ol-vong .muc, .ol-phuong-an button { transition: none; } .ol-the:hover { transform: none; } .ol-phan-hoi { animation: none; } }

/* Liên kết "Giới thiệu hệ thống" dưới biểu mẫu đăng nhập. */
.lien-ket-gioi-thieu { margin-top: .75rem; font-size: .875rem; text-align: center; }
.lien-ket-gioi-thieu a { font-weight: 600; }

/* 19. Trực tuyến · Hôm nay (Components/Pages/TrucTuyenHomNay.razor) --------------------------------------
   Dải đầu tối: bốn ô thao tác lớn (Zoom), đồng hồ và thẻ "Tiếp theo" có nút vào ngay (Meet).
   Dòng thời gian trong ngày có vạch "bây giờ" (lịch ngày của Teams). Màu cố định trên dải tối nên đọc rõ ở cả Sáng và Tối. */
.hn-dau { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; margin: 0 0 1.25rem; padding: 1.5rem; overflow: hidden; border-radius: 20px; color: #dcebe2;
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 24px,
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 24px 100%,
        radial-gradient(40rem 22rem at 100% 0%, rgba(94, 234, 212, .22), transparent 60%),
        linear-gradient(150deg, #0e2a1e, #071a11); }
.hn-o-nhanh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: .875rem; }
.hn-o { display: flex; flex-direction: column; align-items: center; gap: .375rem; padding: 1rem .5rem .875rem; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: rgba(255, 255, 255, .04); color: #fff; font: inherit; text-align: center; text-decoration: none; cursor: pointer; transition: transform var(--tg-nhanh) var(--duong-cong-mem), background-color var(--tg-nhanh) ease, border-color var(--tg-nhanh) ease; }
.hn-o:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; }
.hn-o:active { transform: translateY(0); }
.hn-o:focus-visible { outline: 2px solid #5eead4; outline-offset: 3px; }
.hn-o > span { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 20px; background: var(--o); box-shadow: 0 10px 24px -10px var(--o); }
.hn-o > span .rzi { color: #fff; font-size: 2rem; }
.hn-o b { margin-top: .25rem; font-size: .9375rem; }
.hn-o small { color: #9fb9aa; font-size: .75rem; line-height: 1.3; }
.hn-o.hop-moi { --o: #f97316; } .hn-o.tham-gia { --o: #2f80ed; } .hn-o.lich { --o: #0f9b8e; } .hn-o.on-luyen { --o: #7a8b2e; }
.hn-tham-gia { grid-column: 1 / -1; padding: .875rem 1rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(0, 0, 0, .2); animation: ol-hien .2s var(--duong-cong-mem); }
.hn-tham-gia label { display: block; margin-bottom: .375rem; color: #c3d8cb; font-size: .8125rem; font-weight: 600; }
.hn-tham-gia > div { display: flex; gap: .5rem; }
.hn-tham-gia input { flex: 1; min-width: 0; border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; }
.hn-tham-gia input::placeholder { color: #8aa597; }
.hn-loi { display: block; margin-top: .375rem; color: #fca5a5; }
.hn-dong-ho { display: flex; flex-direction: column; justify-content: center; padding: .25rem .5rem .25rem 1.5rem; border-left: 1px solid rgba(255, 255, 255, .1); }
.hn-gio { margin: 0; color: #fff; font-family: var(--font-tieu-de); font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hn-ngay { margin: .375rem 0 1rem; color: #9fb9aa; font-size: .9375rem; }
.hn-tiep-theo { display: flex; flex-direction: column; gap: .25rem; padding: .875rem 1rem; border: 1px solid rgba(94, 234, 212, .25); border-radius: 14px; background: rgba(94, 234, 212, .06); }
.hn-tiep-theo.dang { border-color: rgba(94, 234, 212, .6); background: rgba(94, 234, 212, .12); }
.hn-tiep-theo.trong { border-style: dashed; }
.hn-tt-nhan { display: inline-flex; align-items: center; gap: .5rem; color: #5eead4; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hn-tiep-theo strong { color: #fff; font-size: 1.0625rem; line-height: 1.35; }
.hn-tiep-theo small { color: #9fb9aa; font-size: .8125rem; }
.hn-nut-vao { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-height: 2.25rem; padding: .375rem .875rem; border: 0; border-radius: 9px; background: var(--tin-hieu); color: var(--chu-tren-mau); font: inherit; font-size: .875rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: filter var(--tg-nhanh) ease, transform var(--tg-nhanh) var(--duong-cong-mem); }
.hn-nut-vao:hover { filter: brightness(1.08); color: var(--chu-tren-mau); transform: translateY(-1px); }
.hn-nut-vao .rzi { font-size: 1.125rem; }
.hn-nut-vao.lon { align-self: flex-start; margin-top: .5rem; min-height: 2.75rem; padding: .5rem 1.25rem; background: #5eead4; color: #052e2b; font-size: .9375rem; }
.hn-nut-vao.lon:hover { color: #052e2b; }
.hn-nut-vao.nhat { border: 1px solid color-mix(in srgb, var(--tin-hieu) 45%, transparent); background: var(--tin-hieu-nhat); color: var(--tin-hieu); }
.hn-tham-gia .hn-nut-vao { background: #2f80ed; color: #fff; }

.hn-luoi { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr); gap: 1.25rem; align-items: start; }
.hn-lich { padding: 1rem 1.125rem 1.25rem; border: 1px solid var(--vien-the); border-radius: 16px; background: var(--nen-the); }
.hn-lich > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.hn-lich h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font-family: var(--font-tieu-de); font-size: 1.0625rem; font-weight: 600; }
.hn-lich h2 .rzi { color: var(--tin-hieu); }
.hn-lich > header span { color: var(--chu-phu); font-size: .8125rem; }
.hn-dong-thoi-gian { position: relative; margin: 0; padding: 0; list-style: none; }
.hn-dong-thoi-gian::before { content: ""; position: absolute; top: .5rem; bottom: .5rem; left: 4.25rem; width: 2px; border-radius: 2px; background: var(--vien-nhat); }
.hn-muc { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1.5rem; padding: .375rem 0; }
.hn-muc::before { content: ""; position: absolute; top: 1.125rem; left: calc(4.25rem - 5px); width: 12px; height: 12px; border: 2px solid var(--nen-the); border-radius: 50%; background: var(--vien-o-nhap); box-shadow: 0 0 0 1px var(--vien-the); }
.hn-muc.sap-toi::before { background: var(--tin-chu); }
.hn-muc.dang-dien-ra::before { background: var(--tin-hieu); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tin-hieu) 25%, transparent); }
.hn-muc time { display: flex; flex-direction: column; padding-top: .75rem; font-family: var(--font-tieu-de); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.hn-muc time small { color: var(--chu-phu); font-family: var(--font); font-size: .75rem; font-weight: 500; }
.hn-the { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem 1rem; padding: .75rem .875rem; border: 1px solid var(--vien-nhat); border-left: 4px solid var(--vien-o-nhap); border-radius: 12px; background: var(--nen-dai); transition: border-color var(--tg-nhanh) ease; }
.hn-muc.buoi .hn-the { border-left-color: var(--m-dao-tao); }
.hn-muc.hop .hn-the { border-left-color: var(--m-ca-nhan); }
.hn-muc.dang-dien-ra .hn-the { border-color: color-mix(in srgb, var(--tin-hieu) 55%, var(--vien-the)); border-left-color: var(--tin-hieu); background: var(--tin-hieu-nhat); }
.hn-muc.da-xong .hn-the { opacity: .72; }
.hn-the-chu { display: flex; min-width: 0; flex-direction: column; gap: .125rem; }
.hn-loai { display: inline-flex; align-items: center; gap: .25rem; color: var(--chu-phu); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hn-loai .rzi { font-size: .9375rem; }
.hn-the-chu strong { font-size: .9375rem; line-height: 1.35; }
.hn-the-chu small { color: var(--chu-phu); font-size: .8125rem; }
.hn-trang-thai { display: inline-flex; align-items: center; gap: .375rem; color: var(--chu-phu); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.hn-trang-thai .rzi { font-size: 1rem; }
.hn-muc.dang-dien-ra .hn-trang-thai { color: var(--tin-hieu); }
.hn-muc.da-xong .hn-trang-thai { color: var(--ok-chu); }
.hn-the .hn-nut-vao { grid-column: 2; justify-self: end; }
.hn-vach-gio { position: relative; height: 1.5rem; margin: .25rem 0; }
.hn-vach-gio::before { content: ""; position: absolute; top: 50%; left: 3.75rem; right: 0; height: 2px; background: #e5484d; }
.hn-vach-gio::after { content: ""; position: absolute; top: calc(50% - 5px); left: calc(4.25rem - 5px); width: 12px; height: 12px; border-radius: 50%; background: #e5484d; }
.hn-vach-gio span { position: absolute; top: 50%; left: 0; width: 3.5rem; transform: translateY(-50%); color: #e5484d; font-size: .75rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.hn-phai { display: flex; flex-direction: column; gap: 1rem; }
.hn-phai .tt-khoi + .tt-khoi { margin-top: 0; }
.hn-dong-lien-ket { color: inherit; text-decoration: none; transition: border-color var(--tg-nhanh) ease, transform var(--tg-nhanh) var(--duong-cong-mem); }
.hn-dong-lien-ket:hover { border-color: var(--tin-hieu); color: inherit; transform: translateX(2px); }
.hn-dong-lien-ket > .rzi { color: var(--chu-phu); }
.hn-avatar { display: grid; flex: none; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--m-ca-nhan); color: var(--chu-tren-mau); font-weight: 700; }
.hn-han { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--tin-nen); color: var(--tin-chu); line-height: 1.1; }
.hn-han b { font-size: 1rem; }
.hn-han small { font-size: .625rem; font-weight: 600; }
.hn-han.gap { background: var(--canh-bao-nen); color: var(--canh-bao-chu); }
@media (max-width: 1100px) { .hn-dau, .hn-luoi { grid-template-columns: 1fr; } .hn-dong-ho { padding: 1rem 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); } }
@media (max-width: 600px) {
    .hn-dau { padding: 1rem; }
    .hn-o-nhanh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hn-o > span { width: 3.25rem; height: 3.25rem; border-radius: 16px; }
    .hn-dong-thoi-gian::before, .hn-muc::before, .hn-vach-gio::after { left: 2.9rem; }
    .hn-muc { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 1.25rem; }
    .hn-vach-gio::before { left: 2.5rem; } .hn-vach-gio span { width: 2.4rem; }
    .hn-the { grid-template-columns: 1fr; } .hn-the .hn-nut-vao { grid-column: 1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .hn-o, .hn-nut-vao, .hn-dong-lien-ket { transition: none; } .hn-o:hover, .hn-nut-vao:hover, .hn-dong-lien-ket:hover { transform: none; } .hn-tham-gia { animation: none; } }

/* 20. Hướng dẫn từng trang (wwwroot/huong-dan.js), kiểu dáng lấy từ repo HVANND: nền tối, vùng khoét sáng có viền nhấp nháy,
   bong bóng giải thích, thẻ mời người mới ở góc, nút lá cờ trên thanh trên (chấm vàng = trang có hướng dẫn chưa xem). */
.nut-huong-dan { display: grid; flex: none; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--vien-the); border-radius: 50%; background: var(--nen-the); color: var(--mau-chinh); cursor: pointer; transition: border-color var(--thoi-gian-nhanh), background-color var(--thoi-gian-nhanh); }
.nut-huong-dan:hover { border-color: var(--mau-chinh-sang); background: var(--mau-chinh-nhat); }
.nut-huong-dan .rzi { font-size: 1.25rem; }
.hd-goc { position: fixed; z-index: 9000; inset: 0; }
.hd-goc { cursor: default; }
.hd-chan { position: absolute; inset: 0; background: rgba(6, 20, 14, .66); animation: hd-mo-dan 200ms ease-out; }
.hd-chan.hd-nham { background: rgba(6, 20, 14, .5); -webkit-backdrop-filter: blur(10px) saturate(.8); backdrop-filter: blur(10px) saturate(.8); }
.hd-khoet { position: absolute; top: 0; left: 0; border-radius: 10px; box-shadow: 0 0 0 3px var(--mau-nhan); pointer-events: none; }
.hd-khoet::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--mau-nhan-sang); border-radius: 12px; animation: hd-nhip 1.6s ease-out infinite; }
.hd-pop { position: absolute; top: 0; left: 0; width: min(22rem, calc(100vw - 1.5rem)); padding: 1rem 1.125rem; border: 1px solid var(--vien-the); border-radius: 14px; background: var(--nen-the); color: var(--chu-chinh); box-shadow: 0 18px 44px rgba(0, 0, 0, .34); outline: none; }
.hd-vao { animation: hd-hien 180ms ease-out; }
.hd-khoet.hd-vao { animation: hd-mo-dan 180ms ease-out; }
.hd-dau { display: flex; align-items: center; justify-content: space-between; margin-bottom: .375rem; }
.hd-huy-hieu { padding: .0625rem .5rem; border-radius: 999px; background: var(--mau-chinh-nhat); color: var(--mau-chinh); font-size: var(--cc-12); font-weight: 700; }
.hd-pop h2 { margin: 0 0 .375rem; font-size: var(--cc-18); line-height: 1.3; }
.hd-pop p { margin: 0 0 .75rem; color: var(--chu-than, var(--chu-chinh)); font-size: var(--cc-14, .875rem); line-height: 1.5; }
.hd-tien-do { height: 4px; margin-bottom: .75rem; border-radius: 999px; background: var(--vien-nhat); overflow: hidden; }
.hd-tien-do span { display: block; height: 100%; border-radius: inherit; background: var(--mau-nhan); transform-origin: left center; transition: transform 200ms ease-out; }
.hd-nut { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.hd-nut-phai { display: inline-flex; gap: .5rem; margin-left: auto; }
.hd-nut button { padding: .375rem .875rem; border-radius: 8px; font-size: var(--cc-13); font-weight: 600; cursor: pointer; }
.hd-phu { padding-inline: .25rem !important; border: 0; background: none; color: var(--chu-phu); }
.hd-phu:hover { color: var(--chu-chinh); }
.hd-lui { border: 1px solid var(--vien-the); background: var(--nen-the); color: var(--chu-chinh); }
.hd-tiep { border: 1px solid var(--mau-chinh); background: var(--mau-chinh); color: var(--chu-tren-mau); }
.hd-nut button:focus-visible { outline: 2px solid var(--mau-nhan); outline-offset: 2px; }
[data-giao-dien="toi"] .hd-tiep { color: #102719; }
@keyframes hd-nhip { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
@keyframes hd-hien { from { opacity: 0; } to { opacity: 1; } }
@keyframes hd-mo-dan { from { opacity: 0; } to { opacity: 1; } }
.hd-the-moi { position: fixed; z-index: 8500; right: 1.25rem; bottom: 1.25rem; width: min(21rem, calc(100vw - 2rem)); padding: 1.125rem 1.125rem .875rem; border: 1px solid var(--vien-the); border-top: 4px solid var(--mau-nhan); border-radius: 14px; background: var(--nen-the); color: var(--chu-chinh); box-shadow: 0 18px 44px rgba(0, 0, 0, .28); animation: hd-truot-len 260ms ease-out; }
.hd-the-moi h2 { margin: .25rem 0 .375rem; font-size: var(--cc-18); line-height: 1.3; }
.hd-the-moi p { margin: 0 0 .875rem; color: var(--chu-chinh); font-size: .875rem; line-height: 1.5; }
.hd-the-moi .hd-nut { justify-content: flex-start; }
.hd-the-moi .hd-nut button, .hd-moi-khong { padding: .4375rem .875rem; border-radius: 8px; font-size: var(--cc-13); font-weight: 600; cursor: pointer; }
.hd-moi-khong { display: block; margin-top: .5rem; padding-inline: 0 !important; border: 0; background: none; color: var(--chu-phu); text-decoration: underline; text-underline-offset: .18em; }
.hd-moi-khong:hover { color: var(--chu-chinh); }
.hd-the-moi small { display: block; margin-top: .5rem; color: var(--chu-phu); font-size: var(--cc-12); }
.hd-moi-bieu-tuong { font-size: 1.5rem; line-height: 1; }
.hd-moi-dong { position: absolute; top: .375rem; right: .375rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--chu-phu); font-size: 1.25rem; cursor: pointer; }
.hd-moi-dong:hover { background: var(--nen-dai); color: var(--chu-chinh); }
.hd-the-moi button:focus-visible { outline: 2px solid var(--mau-nhan); outline-offset: 2px; }
.nut-huong-dan { position: relative; }
.nut-huong-dan.co-goi-y::after { content: ""; position: absolute; top: .125rem; right: .125rem; width: .625rem; height: .625rem; border: 2px solid var(--nen-the); border-radius: 50%; background: var(--mau-nhan); animation: hd-cham 2s ease-in-out 3; }
@keyframes hd-truot-len { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hd-cham { 50% { transform: scale(1.35); } }
@media (max-width: 600px) { .hd-the-moi { right: .75rem; left: .75rem; bottom: .75rem; width: auto; } }
@media print { .hd-the-moi, .nut-huong-dan { display: none; } }
.hd-moi-bieu-tuong.rzi { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--tin-hieu-nhat); color: var(--tin-hieu); font-size: 1.5rem; }
@media (prefers-reduced-motion: reduce) { .hd-vao, .hd-khoet.hd-vao, .hd-khoet::after, .hd-chan, .hd-the-moi, .nut-huong-dan.co-goi-y::after { animation: none; } .hd-tien-do span { transition: none; } }
.nut-chu { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .5rem 1rem; border: 1px solid var(--mau-chinh); border-radius: 9px; background: var(--mau-chinh); color: var(--chu-tren-mau); font: inherit; font-weight: 600; cursor: pointer; }
.nut-chu:hover { background: var(--mau-chinh-sang); }
.nut-chu:focus-visible { outline: 2px solid var(--mau-chinh-sang); outline-offset: 2px; }

/* 21. Nút Sáng/Tối dạng viên thuốc (Components/Layout/NutSangToi.razor), như TheoryOJ ------------------------
   Chỉ đặt ở thanh trên trang giới thiệu công khai; trong hệ thống đã đăng nhập, đổi Sáng/Tối ở bảng Cài đặt. Lưu cùng chỗ với Cài đặt nên hai nơi luôn khớp. */
.nut-sang-toi { display: inline-flex; flex: none; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--vien-the); border-radius: 999px; background: var(--nen-the); }
.nut-sang-toi button { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--chu-phu); cursor: pointer; transition: background-color var(--tg-nhanh) ease, color var(--tg-nhanh) ease; }
.nut-sang-toi button .rzi { font-size: 1.125rem; }
.nut-sang-toi button:hover { color: var(--chu-chinh); }
.nut-sang-toi button:focus-visible { outline: 2px solid var(--mau-chinh-sang); outline-offset: 2px; }
.nut-sang-toi button[aria-pressed="true"] { background: var(--mau-chinh); color: var(--chu-tren-mau); }
.gt-thanh .nut-sang-toi { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); }
.gt-thanh .nut-sang-toi button { color: #9fb9aa; }
.gt-thanh .nut-sang-toi button[aria-pressed="true"] { background: #6ee7b7; color: #052e1c; }
@media (max-width: 600px) { .cong-cu-tai-khoan .nut-sang-toi { display: none; } }

/* 22. Thư viện học liệu (Components/Pages/KhoBaiGiang.razor) -------------------------------------------------
   Dải đầu tối có bìa tài liệu xoè ra (TheoryOJ); chip lọc theo loại có chấm màu; lưới thẻ có bìa giấy theo loại;
   chuyển Lưới/Danh sách và sắp xếp (Google Drive). Mỗi loại một màu, luôn có chữ tên loại đi kèm. */
.loai-giao-trinh { --lm: #1f7a4f; } .loai-bai-giang { --lm: #0f766e; } .loai-de-cuong { --lm: #8f630b; }
.loai-tham-khao { --lm: #1f6f99; } .loai-bien-ban { --lm: #9b3f2e; } .loai-khac { --lm: #5d6a63; }
.tv-dau { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin: 0 0 1rem; padding: 1.75rem 1.75rem 1.5rem; overflow: hidden; border-radius: 20px; color: #dcebe2;
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 24px,
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 24px 100%,
        radial-gradient(36rem 22rem at 0% 0%, rgba(31, 122, 79, .55), transparent 65%),
        linear-gradient(150deg, #0e2a1e, #071a11); }
.tv-nhan-tren { display: inline-flex; align-items: center; gap: .375rem; margin: 0 0 .75rem; padding: .1875rem .75rem .1875rem .5rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: .8125rem; font-weight: 600; }
.tv-nhan-tren .rzi { color: #6ee7b7; font-size: 1.125rem; }
.tv-dau h1 { margin: 0 0 .625rem; color: #fff; font-family: var(--font-tieu-de); font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); font-weight: 700; line-height: 1.1; }
.tv-dau h1 span { color: #6ee7b7; }
.tv-dan { max-width: 38rem; margin: 0 0 1.25rem; color: #c3d8cb; font-size: .9375rem; line-height: 1.6; }
.tv-so-lieu { display: inline-grid; grid-template-columns: repeat(4, auto); margin: 0 0 1rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(255, 255, 255, .04); }
.tv-so-lieu > div { display: flex; flex-direction: column; padding: .625rem 1.125rem; border-left: 1px solid rgba(255, 255, 255, .1); }
.tv-so-lieu > div:first-child { border-left: 0; }
.tv-so-lieu dd { margin: 0; color: #fff; font-family: var(--font-tieu-de); font-size: 1.5rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tv-so-lieu dt { color: #9fb9aa; font-size: .75rem; font-weight: 500; }
.tv-nut-tai { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; margin-left: 1rem; padding: .5rem 1.125rem; border: 0; border-radius: 999px; background: #6ee7b7; color: #052e1c; font: inherit; font-weight: 700; cursor: pointer; vertical-align: top; transition: transform var(--tg-nhanh) var(--duong-cong-mem); }
.tv-nut-tai:hover { transform: translateY(-1px); background: #a7f3d0; }
.tv-nut-tai:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Bìa giấy: nhãn loại, mã học phần chữ lớn, đuôi tệp ở chân; dải màu bên trái theo loại. */
.tv-bia { position: relative; display: flex; flex-direction: column; width: 7rem; aspect-ratio: 3 / 4; padding: .625rem .625rem .5rem .875rem; border-radius: 4px 10px 10px 4px; background: linear-gradient(160deg, #fbf8ef, #ece6d6); color: var(--lm); box-shadow: inset 5px 0 0 var(--lm), 0 14px 28px -12px rgba(0, 0, 0, .55); }
.tv-bia::after { content: ""; position: absolute; top: 0; right: 0; width: 1.25rem; height: 1.25rem; background: linear-gradient(225deg, rgba(0, 0, 0, .06) 50%, #fffdf6 50%); border-radius: 0 10px 0 4px; }
.tv-bia small { font-size: .5625rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tv-bia b { margin-top: .375rem; font-family: var(--font-tieu-de); font-size: 1.5rem; font-weight: 800; line-height: 1; overflow-wrap: anywhere; }
.tv-bia b::after { content: ""; display: block; width: 1.75rem; height: 2px; margin-top: .5rem; background: currentColor; opacity: .5; }
.tv-bia i { margin-top: auto; color: #8a8270; font-size: .625rem; font-style: normal; font-weight: 700; }
.tv-quat { position: relative; height: 12rem; }
.tv-quat .tv-bia { position: absolute; top: 1.5rem; width: 7.5rem; transition: transform .4s var(--duong-cong-mem); animation: tv-xoe .8s var(--duong-cong-mem) both; }
.tv-quat .quat-0 { left: 6%; transform: rotate(-12deg); animation-delay: .05s; }
.tv-quat .quat-1 { left: 27%; top: .75rem; transform: rotate(-4deg); animation-delay: .15s; }
.tv-quat .quat-2 { left: 48%; top: 1rem; transform: rotate(5deg); animation-delay: .25s; }
.tv-quat .quat-3 { left: 69%; top: 2rem; transform: rotate(12deg); animation-delay: .35s; }
@keyframes tv-xoe { from { opacity: 0; transform: translateY(30px) rotate(0); } }
.tv-quat:hover .tv-bia { transform: rotate(0) translateY(-6px); }

/* Thanh công cụ */
.tv-thanh { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 0 0 1rem; padding: .625rem .75rem; border: 1px solid var(--vien-the); border-radius: 14px; background: var(--nen-the); }
.tv-tim { position: relative; display: flex; flex: 1 1 18rem; align-items: center; margin: 0; }
.tv-tim .rzi { position: absolute; left: .75rem; color: var(--chu-phu); font-size: 1.25rem; }
.tv-tim input { width: 100%; height: 2.5rem; padding: 0 .75rem 0 2.5rem; border: 1px solid var(--vien-o-nhap); border-radius: 10px; background: var(--nen-the); color: var(--chu-chinh); font: inherit; }
.tv-tim input:focus { border-color: var(--mau-chinh-sang); outline: 2px solid color-mix(in srgb, var(--mau-chinh-sang) 30%, transparent); }
.tv-chip { display: flex; flex-wrap: wrap; gap: .375rem; }
.tv-chip button { display: inline-flex; align-items: center; gap: .375rem; min-height: 2.25rem; padding: .25rem .75rem; border: 1px solid var(--vien-the); border-radius: 999px; background: var(--nen-the); color: var(--chu-chinh); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.tv-chip button i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--lm); }
.tv-chip button small { color: var(--chu-phu); font-weight: 500; }
.tv-chip button:hover { border-color: var(--lm, var(--mau-chinh-sang)); }
.tv-chip button.dang-chon { border-color: var(--lm, var(--mau-chinh)); background: color-mix(in srgb, var(--lm, var(--mau-chinh)) 12%, var(--nen-the)); }
.tv-chip button:focus-visible, .tv-che-do button:focus-visible { outline: 2px solid var(--mau-chinh-sang); outline-offset: 2px; }
.tv-cong-cu { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.tv-cong-cu .form-select { width: auto; height: 2.25rem; padding-block: 0; font-size: .8125rem; }
.tv-che-do { display: inline-flex; padding: 2px; border: 1px solid var(--vien-the); border-radius: 9px; }
.tv-che-do button { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 7px; background: transparent; color: var(--chu-phu); cursor: pointer; }
.tv-che-do button[aria-pressed="true"] { background: var(--mau-chinh-nhat); color: var(--mau-chinh); }

/* Nội dung */
.tv-chinh { min-width: 0; }
.tv-ket-qua { margin: 0 0 .75rem; color: var(--chu-phu); font-size: .8125rem; }
.tv-khu { margin-bottom: 1.5rem; }
.tv-khu-dau { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.tv-khu-dau h2 { margin: 0; font-family: var(--font-tieu-de); font-size: 1.1875rem; font-weight: 700; }
.tv-khu-dau h2 small { margin-left: .25rem; color: var(--chu-phu); font-size: .875rem; font-weight: 500; }
.tv-khu-dau p { margin: .125rem 0 0; color: var(--chu-phu); font-size: .8125rem; }
.tv-khu-bt { display: grid; flex: none; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--lm, var(--tin-hieu)); color: #fff; }
.tv-khu-bt.moi { background: var(--tin-hieu); color: var(--chu-tren-mau); }
.tv-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .875rem; }
.tv-the { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--vien-the); border-radius: 14px; background: var(--nen-the); transition: border-color var(--tg-nhanh) ease, transform var(--tg-nhanh) var(--duong-cong-mem), box-shadow var(--tg-nhanh) ease; }
.tv-the:hover { border-color: color-mix(in srgb, var(--lm, var(--tin-hieu)) 50%, var(--vien-the)); transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .35); }
.tv-the:has(.loai-giao-trinh) { --lm: #1f7a4f; } .tv-the:has(.loai-bai-giang) { --lm: #0f766e; } .tv-the:has(.loai-de-cuong) { --lm: #8f630b; }
.tv-the:has(.loai-tham-khao) { --lm: #1f6f99; } .tv-the:has(.loai-bien-ban) { --lm: #9b3f2e; }
.tv-the-bia { position: relative; display: grid; place-items: center; height: 9.5rem; background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(150deg, color-mix(in srgb, var(--lm) 70%, #071a11), color-mix(in srgb, var(--lm) 35%, #071a11)); }
.tv-the-bia .tv-bia { width: 5.5rem; transform: rotate(-3deg); transition: transform .3s var(--duong-cong-mem); }
.tv-the:hover .tv-the-bia .tv-bia { transform: rotate(0) scale(1.04); }
.tv-the-bia .tv-bia b { font-size: 1.125rem; }
.tv-the-duoi { position: absolute; top: .5rem; right: .5rem; padding: 0 .375rem; border-radius: 5px; background: rgba(0, 0, 0, .35); color: #fff; font-size: .6875rem; font-weight: 700; }
.tv-the-moi { position: absolute; top: .5rem; left: .5rem; padding: 0 .5rem; border-radius: 999px; background: #6ee7b7; color: #052e1c; font-size: .6875rem; font-weight: 800; }
.tv-the-than { display: flex; flex: 1; flex-direction: column; gap: .25rem; padding: .75rem .875rem .25rem; }
.tv-the-than h3 { margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.tv-the-meta, .tv-the-nguoi { margin: 0; color: var(--chu-phu); font-size: .75rem; }
.tv-the-hp { align-self: flex-start; max-width: 100%; overflow: hidden; padding: .0625rem .5rem; border-radius: 6px; background: var(--nen-dai); color: var(--chu-chinh); font-size: .75rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tv-the-chan { padding: .5rem .75rem .75rem; }
.tv-nut { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.tv-doc { display: inline-flex; align-items: center; gap: .375rem; min-height: 2rem; margin-right: auto; padding: .25rem .75rem; border: 0; border-radius: 8px; background: var(--mau-chinh); color: var(--chu-tren-mau); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; }
.tv-doc:hover { background: var(--mau-chinh-sang); }
.tv-doc .rzi { font-size: 1.0625rem; }
.tv-duoi-nho { display: inline-block; margin-right: .5rem; padding: 0 .3125rem; border-radius: 4px; background: var(--lm); color: #fff; font-size: .625rem; font-weight: 800; vertical-align: middle; }
[data-giao-dien="toi"] .tv-khu-bt:not(.moi), [data-giao-dien="toi"] .tv-duoi-nho { color: #0d1f15; background: color-mix(in srgb, var(--lm) 55%, #fff); }
@media (max-width: 1100px) { .tv-dau { grid-template-columns: 1fr; } .tv-quat { display: none; } }
@media (max-width: 600px) { .tv-dau { padding: 1.25rem 1rem; } .tv-so-lieu { grid-template-columns: repeat(2, auto); } .tv-so-lieu > div:nth-child(3) { border-left: 0; } .tv-nut-tai { margin: .5rem 0 0; } .tv-cong-cu { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .tv-quat .tv-bia, .tv-the, .tv-the-bia .tv-bia { animation: none; transition: none; } .tv-the:hover { transform: none; } }

/* 23. Kiểm tra trực tuyến (KiemTraTrucTuyen.razor) và Phòng thi (PhongThi.razor) --------------------------------
   Thẻ đề theo trạng thái (đang mở có chấm phát sóng), nút vào phòng nổi bật; phòng thi tập trung: thanh trên dính,
   đồng hồ lớn đổi màu khi gần hết giờ, bảng điều hướng ô số (Moodle). Trạng thái luôn có chữ đi kèm, không chỉ màu. */
.kt-tong { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .875rem; margin: 0 0 1.25rem; }
.kt-tong > div { display: flex; flex-direction: column; padding: .875rem 1.125rem; border: 1px solid var(--vien-the); border-left: 3px solid var(--vien-o-nhap); border-radius: var(--bo-goc-lon); background: var(--nen-the); }
.kt-tong > div.dang { border-left-color: var(--tin-hieu); }
.kt-tong strong { font-family: var(--font-tieu-de); font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kt-tong span { color: var(--chu-phu); font-size: .8125rem; }
.kt-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: .875rem; margin-bottom: 1.25rem; }
.kt-the { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.125rem; border: 1px solid var(--vien-the); border-top: 3px solid var(--vien-o-nhap); border-radius: 14px; background: var(--nen-the); }
.kt-the.dang-mo { border-top-color: var(--tin-hieu); }
.kt-the.chua-mo { border-top-color: var(--tin-chu); }
.kt-the.da-dong { opacity: .9; }
.kt-the header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .375rem; }
.kt-trang-thai { display: inline-flex; align-items: center; gap: .375rem; color: var(--chu-phu); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kt-the.dang-mo .kt-trang-thai { color: var(--tin-hieu); }
.kt-the.chua-mo .kt-trang-thai { color: var(--tin-chu); }
.kt-the h2 { margin: 0; font-family: var(--font-tieu-de); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.kt-hp { margin: 0; color: var(--chu-phu); font-size: .8125rem; }
.kt-thong-so { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .375rem .75rem; margin: .25rem 0; font-size: .8125rem; }
.kt-thong-so > div { display: flex; flex-direction: column; }
.kt-thong-so .toan-hang { grid-column: 1 / -1; }
.kt-thong-so dt { display: inline-flex; align-items: center; gap: .25rem; color: var(--chu-phu); font-weight: 500; }
.kt-thong-so dt .rzi { font-size: .9375rem; }
.kt-thong-so dd { margin: 0; font-weight: 600; }
.kt-the footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--vien-nhat); }
.kt-nut { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-height: 2.5rem; padding: .375rem 1rem; border: 0; border-radius: 9px; background: var(--mau-chinh); color: var(--chu-tren-mau); font: inherit; font-size: .875rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color var(--tg-nhanh) ease, transform var(--tg-nhanh) var(--duong-cong-mem); }
.kt-nut:hover { background: var(--mau-chinh-sang); color: var(--chu-tren-mau); transform: translateY(-1px); }
.kt-nut:disabled { opacity: .5; cursor: default; transform: none; }
.kt-nut.phu { border: 1px solid var(--vien-the); background: var(--nen-the); color: var(--chu-chinh); }
.kt-nut.phu:hover { border-color: var(--mau-chinh-sang); color: var(--mau-chinh); }
.kt-nut:focus-visible { outline: 2px solid var(--mau-chinh-sang); outline-offset: 2px; }
.kt-nut .rzi { font-size: 1.125rem; }
.kt-the.dang-mo .kt-nut:not(.phu) { background: var(--tin-hieu); }
.kt-diem { font-size: .875rem; color: var(--chu-phu); }
.kt-diem b { color: var(--chu-chinh); font-family: var(--font-tieu-de); font-size: 1.5rem; }
.kt-tien-do { display: flex; flex-direction: column; gap: .25rem; }
.kt-tien-do .thanh { height: 6px; border-radius: 3px; background: var(--vien-nhat); overflow: hidden; }
.kt-tien-do .thanh span { display: block; height: 100%; background: var(--tin-hieu); }
.kt-tien-do small { color: var(--chu-phu); font-size: .75rem; }
.kt-ket-qua { margin-top: .25rem; }
.kt-hai-cot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.kt-phan-bo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: .5rem; height: 8rem; padding: .5rem .25rem 0; border-bottom: 1px solid var(--vien-the); }
.kt-phan-bo > div { display: flex; height: 100%; flex-direction: column; justify-content: flex-end; align-items: center; gap: .25rem; }
.kt-phan-bo .cot { position: relative; display: block; width: min(3rem, 100%); border-radius: 6px 6px 0 0; background: var(--tin-hieu); }
.kt-phan-bo > div:first-child .cot { background: var(--loi-chu); }
.kt-phan-bo .cot b { position: absolute; top: -1.25rem; left: 0; right: 0; color: var(--chu-chinh); font-size: .75rem; text-align: center; }
.kt-phan-bo small { color: var(--chu-phu); font-size: .6875rem; white-space: nowrap; }
@media (max-width: 1000px) { .kt-hai-cot { grid-template-columns: 1fr; } }

/* Phòng thi */
.pt-goc { margin: -.25rem 0 0; }
.pt-thanh { position: sticky; top: calc(var(--chieu-cao-header) + .5rem); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1rem; padding: .75rem 1rem; border-radius: 16px; color: #dcebe2; background: linear-gradient(150deg, #0e2a1e, #071a11); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.pt-ten { display: flex; min-width: 0; flex: 1 1 16rem; flex-direction: column; gap: .125rem; }
.pt-ten strong { overflow: hidden; color: #fff; font-family: var(--font-tieu-de); font-size: 1.0625rem; text-overflow: ellipsis; white-space: nowrap; }
.pt-ten .ol-nhan { align-self: flex-start; background: rgba(94, 234, 212, .14); color: #5eead4; }
.pt-da-lam { color: #9fb9aa; font-size: .875rem; font-variant-numeric: tabular-nums; }
.pt-dong-ho { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .875rem; border: 1px solid rgba(94, 234, 212, .35); border-radius: 12px; background: rgba(94, 234, 212, .08); color: #5eead4; }
.pt-dong-ho b { font-family: var(--font-tieu-de); font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pt-dong-ho.sap { border-color: rgba(252, 211, 77, .6); background: rgba(252, 211, 77, .12); color: #fcd34d; }
.pt-dong-ho.gap { border-color: rgba(252, 165, 165, .7); background: rgba(252, 165, 165, .14); color: #fca5a5; animation: pt-gap 1s ease-in-out infinite; }
@keyframes pt-gap { 50% { box-shadow: 0 0 0 4px rgba(252, 165, 165, .25); } }
.pt-thanh .kt-nut { background: #5eead4; color: #052e2b; }
.pt-thanh .kt-nut:hover { background: #99f6e4; color: #052e2b; }
.pt-canh-bao { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .625rem .875rem; border-left: 4px solid var(--canh-bao-chu); border-radius: 10px; background: var(--canh-bao-nen); color: var(--canh-bao-chu); font-size: .875rem; font-weight: 600; }
.pt-bo-cuc { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1rem; align-items: start; }
.pt-cau h2 { font-size: 1.25rem; }
.pt-co { display: inline-flex; align-items: center; gap: .25rem; margin-left: auto; padding: .125rem .625rem; border: 1px solid var(--vien-the); border-radius: 999px; background: var(--nen-the); color: var(--chu-phu); font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.pt-co .rzi { font-size: .9375rem; }
.pt-co.bat { border-color: var(--canh-bao-chu); background: var(--canh-bao-nen); color: var(--canh-bao-chu); }
.pt-dieu-huong { justify-content: space-between; }
.pt-xoa { padding: .25rem .5rem; border: 0; background: none; color: var(--chu-phu); font: inherit; font-size: .8125rem; text-decoration: underline; cursor: pointer; }
.pt-luu { color: var(--chu-phu); font-size: .75rem; }
.pt-ban-do { position: sticky; top: calc(var(--chieu-cao-header) + 6rem); padding: 1rem; border: 1px solid var(--vien-the); border-radius: 16px; background: var(--nen-the); }
.pt-ban-do h2 { margin: 0 0 .75rem; font-family: var(--font-tieu-de); font-size: 1rem; font-weight: 600; }
.pt-o-luoi { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .375rem; }
.pt-o-luoi button { aspect-ratio: 1; border: 1px solid var(--vien-the); border-radius: 9px; background: var(--nen-the); color: var(--chu-chinh); font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.pt-o-luoi button.da-lam { border-color: var(--tin-hieu); background: var(--tin-hieu); color: var(--chu-tren-mau); }
.pt-o-luoi button.danh-dau { box-shadow: inset 0 0 0 2px var(--canh-bao-chu); }
.pt-o-luoi button.dang-xem { outline: 2px solid var(--mau-chinh-sang); outline-offset: 2px; }
.pt-o-luoi button:focus-visible { outline: 2px solid var(--mau-chinh-sang); outline-offset: 2px; }
.pt-chu-giai { display: grid; gap: .25rem; margin: .875rem 0 .5rem; padding: 0; list-style: none; color: var(--chu-phu); font-size: .75rem; }
.pt-chu-giai li { display: flex; align-items: center; gap: .5rem; }
.pt-chu-giai i { width: .875rem; height: .875rem; border: 1px solid var(--vien-the); border-radius: 4px; }
.pt-chu-giai i.da-lam { border-color: var(--tin-hieu); background: var(--tin-hieu); }
.pt-chu-giai i.danh-dau { box-shadow: inset 0 0 0 2px var(--canh-bao-chu); }
.pt-ket-qua { margin-bottom: 1rem; }
.pt-ket-qua h1 { margin: .375rem 0; font-family: var(--font-tieu-de); font-size: 1.5rem; font-weight: 600; }
.pt-xem-lai { display: grid; gap: .875rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .pt-bo-cuc { grid-template-columns: 1fr; } .pt-ban-do { position: static; } .pt-thanh { top: .5rem; } }
@media (prefers-reduced-motion: reduce) { .pt-dong-ho.gap { animation: none; } .kt-nut { transition: none; } .kt-nut:hover { transform: none; } }

/* 24. Không gạch chân tên và liên kết trong bảng (14/11) ---------------------------------------------------------
   Tên cán bộ, tên khoa, mã lớp… chỉ tô màu thương hiệu; rê chuột vẫn mở thẻ xem nhanh (TheXemNhanh) như cũ.
   Người bật "Gạch chân liên kết" trong Cài đặt vẫn thấy gạch chân (luật :root[data-gach-chan] dùng !important). */
.neo-xem-nhanh, .neo-xem-nhanh:hover, .ten-can-bo:hover,
.directory-grid .rz-grid-table tbody a.rz-link, .directory-grid .rz-grid-table tbody a.rz-link:hover,
.sd-duong-dan button { text-decoration: none; }
.neo-xem-nhanh:hover, .neo-xem-nhanh:focus-visible, .directory-grid .rz-grid-table tbody a.rz-link:hover { color: var(--mau-chinh-sang); }

/* Bản tin: hình minh hoạ căn giữa, co theo khung, không bị xén (lớp .bt-hinh riêng với lớp nền). */
.bt-anh-svg svg.bt-hinh { position: absolute; inset: 14% 10% 18%; z-index: 0; width: auto; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }
.bt-anh-svg.lon svg.bt-hinh { inset: 12% 20% 20%; }

/* 25. Thống kê, phân tích đề kiểm tra (KiemTraTrucTuyen.razor) ---------------------------------------------------
   Một chuỗi số liệu dùng một màu (xanh ngọc); đánh giá câu dùng màu trạng thái nhưng luôn kèm biểu tượng và chữ.
   Phân bố phương án: thanh trung tính, đáp án đúng đánh dấu bằng ✓ và chữ "đáp án". Chữ số luôn màu chữ, không theo màu thanh. */
.kt-the.dang-xem { border-color: var(--tin-hieu); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tin-hieu) 30%, transparent); }
.kt-so-sanh ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.kt-so-sanh li { display: grid; grid-template-columns: minmax(10rem, 1.2fr) minmax(8rem, 2fr) 7.5rem; align-items: center; gap: .75rem; font-size: .8125rem; }
.kt-ss-ten { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-ss-ten b { margin-right: .375rem; font-family: ui-monospace, Consolas, monospace; font-size: .75rem; }
.kt-ss-thanh { height: .625rem; border-radius: 0 4px 4px 0; background: var(--vien-nhat); overflow: hidden; }
.kt-ss-thanh span { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--tin-hieu); }
.kt-ss-so { font-weight: 700; font-variant-numeric: tabular-nums; }
.kt-ss-so small { color: var(--chu-phu); font-weight: 500; }
.kt-phan-tich h2 .so { display: inline-flex; align-items: center; gap: .5rem; }
.kt-phan-tich h2 .kt-nut { min-height: 2rem; padding: .25rem .75rem; font-size: .8125rem; }
.kt-chi-so { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .625rem; margin: .5rem 0 1rem; }
.kt-chi-so > div { padding: .625rem .875rem; border: 1px solid var(--vien-nhat); border-left: 3px solid var(--tin-hieu); border-radius: 10px; background: var(--nen-dai); }
.kt-chi-so > div.tot { border-left-color: var(--ok-chu); }
.kt-chi-so > div.kem { border-left-color: var(--loi-chu); }
.kt-chi-so dt { color: var(--chu-phu); font-size: .75rem; font-weight: 600; }
.kt-chi-so dd { margin: 0; font-family: var(--font-tieu-de); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kt-chi-so dd small { color: var(--chu-phu); font-family: var(--font); font-size: .8125rem; font-weight: 500; }
.kt-bieu-do { margin: 0; }
.kt-bieu-do figcaption { margin-bottom: 1.5rem; font-weight: 600; }
.kt-bieu-do figcaption small { margin-left: .5rem; color: var(--chu-phu); font-weight: 500; }
.kt-phan-bo .cot.duoi { background: var(--loi-chu); }
.kt-phan-bo > div:first-child .cot:not(.duoi) { background: var(--tin-hieu); }
.kt-phan-bo > div[title] { cursor: default; }
.kt-phan-bo > div:hover .cot { filter: brightness(1.12); }
.kt-ghi-chu h3 { margin: 0 0 .375rem; font-size: .9375rem; }
.kt-ghi-chu p { margin: 0 0 .5rem; color: var(--chu-phu); font-size: .8125rem; line-height: 1.5; }
.kt-ghi-chu ul { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; font-size: .8125rem; }
.kt-ghi-chu li { display: flex; align-items: center; gap: .5rem; color: var(--chu-phu); }
.kt-canh-bao-nho { display: flex; align-items: center; gap: .375rem; margin-top: .75rem !important; color: var(--canh-bao-chu) !important; font-weight: 600; }
.kt-muc { display: inline-flex; align-items: center; gap: .25rem; padding: .0625rem .5rem; border-radius: 999px; background: var(--trung-tinh-nen); color: var(--chu-phu); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.kt-muc .rzi { font-size: .9375rem; }
.kt-muc.tot { background: var(--ok-nen); color: var(--ok-chu); }
.kt-muc.kha { background: var(--tin-nen); color: var(--tin-chu); }
.kt-muc.xem-lai { background: var(--canh-bao-nen); color: var(--canh-bao-chu); }
.kt-muc.kem, .kt-muc.loi { background: var(--loi-nen); color: var(--loi-chu); }
.kt-bang-cau td { vertical-align: top; }
.kt-bang-cau td small.phu-dong { margin-top: .25rem; max-width: 14rem; }
.kt-nd { min-width: 16rem; max-width: 26rem; font-size: .8125rem; line-height: 1.45; }
.kt-p { display: grid; grid-template-columns: 4.5rem auto; align-items: center; gap: .375rem; }
.kt-p .thanh, .kt-pa .thanh { height: .5rem; border-radius: 0 4px 4px 0; background: var(--vien-nhat); overflow: hidden; }
.kt-p .thanh span { display: block; height: 100%; background: var(--tin-hieu); }
.kt-pa { display: grid; gap: .1875rem; min-width: 14rem; margin: 0; padding: 0; list-style: none; font-size: .75rem; }
.kt-pa li { display: grid; grid-template-columns: 1rem 6rem auto; align-items: center; gap: .375rem; color: var(--chu-phu); }
.kt-pa .thanh span { display: block; height: 100%; background: var(--vien-o-nhap); }
.kt-pa li.dung { color: var(--chu-chinh); font-weight: 700; }
.kt-pa li.dung .thanh span { background: var(--tin-hieu); }
.kt-pa li.bo-trong { font-style: italic; }
@media (max-width: 760px) { .kt-so-sanh li { grid-template-columns: 1fr 6.5rem; } .kt-ss-thanh { grid-column: 1 / -1; grid-row: 2; } }

/* 26. Gọi và nhắn tin (TinNhanTrucTuyen.razor) ----------------------------------------------------------------------
   Ba cột như Teams/Zalo: hội thoại · khung tin · thông tin. Bong bóng của mình dùng màu chính, của người kia nền thẻ.
   Chấm trực tuyến luôn đi kèm chữ "Đang trực tuyến/Ngoại tuyến" ở đầu khung tin; màu ảnh đại diện chỉ để nhận diện người. */
.nt-bo-cuc { display: grid; grid-template-columns: 20rem minmax(0, 1fr); height: calc(100vh - var(--chieu-cao-header, 3.5rem) - 3rem); min-height: 30rem; border: 1px solid var(--vien-the); border-radius: 16px; background: var(--nen-the); overflow: hidden; }
.nt-bo-cuc.co-thong-tin { grid-template-columns: 20rem minmax(0, 1fr) 17rem; }
.nt-danh-sach { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--vien-the); background: var(--nen-dai); }
.nt-ds-dau { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: 1rem 1rem .5rem; }
.nt-ds-dau h1 { margin: 0; font-family: var(--font-tieu-de); font-size: 1.25rem; font-weight: 700; }
.nt-toi { display: inline-flex; align-items: center; gap: .375rem; color: var(--chu-phu); font-size: .75rem; }
.nt-tim { display: flex; align-items: center; gap: .375rem; margin: 0 .75rem .5rem; padding: 0 .625rem; border: 1px solid var(--vien-o-nhap); border-radius: 10px; background: var(--nen-the); color: var(--chu-phu); }
.nt-tim:focus-within { border-color: var(--tin-hieu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tin-hieu) 22%, transparent); }
.nt-tim input { flex: 1; min-width: 0; padding: .5rem 0; border: 0; outline: 0; background: transparent; color: var(--chu-chinh); font: inherit; font-size: .8125rem; }
.nt-tim small { white-space: nowrap; font-size: .75rem; }
.nt-tim-tin { margin: .5rem .75rem 0; }
.nt-tab { display: flex; gap: .25rem; margin: 0 .75rem .5rem; padding: .1875rem; border-radius: 10px; background: color-mix(in srgb, var(--vien-the) 55%, transparent); }
.nt-tab button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-height: 2rem; border: 0; border-radius: 8px; background: transparent; color: var(--chu-phu); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.nt-tab button.dang-chon { background: var(--nen-the); color: var(--chu-chinh); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.nt-tab b { min-width: 1.125rem; padding: 0 .3125rem; border-radius: 999px; background: #c0272d; color: #fff; font-size: .6875rem; }
.nt-cuon { flex: 1; min-height: 0; overflow-y: auto; padding: 0 .5rem .75rem; }
.nt-nhom { display: flex; justify-content: space-between; margin: .75rem .5rem .25rem; color: var(--chu-phu); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nt-goi-y { padding: 1rem .5rem; font-size: .8125rem; }
.nt-lh { position: relative; display: flex; align-items: center; gap: .625rem; width: 100%; padding: .5rem .625rem; border: 0; border-radius: 10px; background: transparent; color: var(--chu-chinh); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s; }
.nt-lh:hover { background: var(--nen-the); }
.nt-lh.dang-chon { background: var(--nen-the); box-shadow: inset 3px 0 0 var(--tin-hieu); }
.nt-lh-chu { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .0625rem; }
.nt-lh-dong { display: flex; align-items: baseline; gap: .5rem; }
.nt-lh-dong b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 600; }
.nt-lh-dong time { color: var(--chu-phu); font-size: .6875rem; }
.nt-lh small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--chu-phu); font-size: .75rem; }
.nt-lh.chua-doc b, .nt-lh.chua-doc small { color: var(--chu-chinh); font-weight: 700; }
.nt-anh { position: relative; flex: none; display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--a, #1f7a4f); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.nt-anh.nho { width: 1.875rem; height: 1.875rem; font-size: .6875rem; }
.nt-anh.lon { width: 4.5rem; height: 4.5rem; font-size: 1.375rem; }
.nt-anh .nt-cham { position: absolute; right: -1px; bottom: -1px; }
.nt-cham { display: inline-block; width: .75rem; height: .75rem; border: 2px solid var(--nen-the); border-radius: 50%; background: #8a958f; }
.nt-cham.dang { background: #22a55a; }
.nt-anh.lon .nt-cham { width: 1rem; height: 1rem; }

.nt-khung { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.nt-trong { display: grid; place-content: center; justify-items: center; gap: .5rem; height: 100%; padding: 2rem; text-align: center; }
.nt-trong h2 { margin: .5rem 0 0; font-size: 1.125rem; }
.nt-trong p { max-width: 28rem; margin: 0; color: var(--chu-phu); font-size: .875rem; }
.nt-trong-bt { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 22px; background: color-mix(in srgb, var(--tin-hieu) 14%, transparent); color: var(--tin-hieu); }
.nt-trong-bt .rzi { font-size: 2.25rem; }
.nt-dau { display: flex; align-items: center; gap: .5rem; padding: .625rem .875rem; border-bottom: 1px solid var(--vien-the); }
.nt-dau-ten { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nt-dau-ten strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-dau-ten small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--chu-phu); font-size: .75rem; }
.nt-quay-lai { display: none; }
.nt-nut { display: inline-grid; place-items: center; width: 2.375rem; height: 2.375rem; border: 1px solid var(--vien-the); border-radius: 10px; background: var(--nen-the); color: var(--chu-chinh); cursor: pointer; transition: background-color .15s, transform .15s; }
.nt-nut:hover { background: var(--nen-dai); }
.nt-nut:active { transform: scale(.95); }
.nt-nut.bat { border-color: var(--tin-hieu); color: var(--tin-hieu); background: color-mix(in srgb, var(--tin-hieu) 10%, transparent); }
.nt-nut.chinh { border-color: var(--mau-chinh); background: var(--mau-chinh); color: var(--chu-tren-mau); }
.nt-dong { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .125rem; padding: 1rem 1rem .5rem; background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--vien-the) 70%, transparent) 1px, transparent 0) 0 0 / 22px 22px; }
.nt-goi-y-dau { margin: auto; color: var(--chu-phu); font-size: .875rem; text-align: center; }
.nt-ngay { display: flex; justify-content: center; margin: .875rem 0 .5rem; }
.nt-ngay span { padding: .1875rem .75rem; border-radius: 999px; background: var(--nen-dai); border: 1px solid var(--vien-the); color: var(--chu-phu); font-size: .6875rem; font-weight: 600; }
.nt-goi { display: flex; align-items: center; gap: .5rem; align-self: center; margin: .375rem 0; padding: .375rem .875rem; border: 1px solid var(--vien-the); border-radius: 999px; background: var(--nen-the); color: var(--chu-phu); font-size: .75rem; }
.nt-goi .rzi { font-size: 1rem; color: var(--tin-hieu); }
.nt-goi.nho .rzi, .nt-goi-dong.nho .rzi { color: var(--loi-chu); }
.nt-goi time { opacity: .8; }
.nt-tin { position: relative; display: flex; align-items: flex-end; gap: .5rem; max-width: 78%; margin-top: .5rem; padding-left: 2.375rem; }
.nt-tin > .nt-anh { position: absolute; left: 0; bottom: 1.25rem; }
.nt-tin.lien-tiep { margin-top: .125rem; }
.nt-tin.cua-toi { align-self: flex-end; flex-direction: row-reverse; padding-left: 0; }
.nt-tin-than { display: flex; flex-direction: column; min-width: 0; }
.nt-tin.cua-toi .nt-tin-than { align-items: flex-end; }
.nt-bong { display: flex; flex-direction: column; gap: .25rem; padding: .5rem .75rem .375rem; border: 1px solid var(--vien-the); border-radius: 4px 16px 16px 16px; background: var(--nen-the); font-size: .875rem; line-height: 1.45; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.nt-tin.lien-tiep .nt-bong { border-radius: 16px; }
.nt-tin.cua-toi .nt-bong { border-color: var(--mau-chinh); border-radius: 16px 4px 16px 16px; background: var(--mau-chinh); color: var(--chu-tren-mau); }
.nt-tin.cua-toi.lien-tiep .nt-bong { border-radius: 16px; }
.nt-tin.thu-hoi .nt-bong { background: transparent; color: var(--chu-phu); border-style: dashed; border-color: var(--vien-o-nhap); }
.nt-bong em { display: inline-flex; align-items: center; gap: .25rem; font-size: .8125rem; }
.nt-bong em .rzi { font-size: 1rem; }
.nt-chu { white-space: pre-wrap; overflow-wrap: anywhere; }
.nt-bong time { display: inline-flex; align-items: center; gap: .375rem; align-self: flex-end; font-size: .6875rem; opacity: .75; }
.nt-da-xem { display: inline-flex; align-items: center; gap: .125rem; }
.nt-da-xem .rzi { font-size: .875rem; }
.nt-trich { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; margin: 0 0 .125rem; padding: .25rem .5rem; border: 0; border-left: 3px solid var(--tin-hieu); border-radius: 6px; background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; font: inherit; font-size: .75rem; text-align: left; cursor: pointer; }
.nt-tin.cua-toi .nt-trich { border-left-color: currentColor; }
.nt-trich span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; opacity: .85; }
.nt-hinh { display: block; max-width: min(18rem, 100%); max-height: 16rem; border-radius: 10px; object-fit: cover; cursor: zoom-in; }
.nt-tep { display: flex; align-items: center; gap: .625rem; min-width: 12rem; max-width: 20rem; padding: .5rem; border: 1px solid var(--vien-the); border-radius: 10px; background: var(--nen-the); color: var(--chu-chinh); text-decoration: none; }
.nt-tep:hover { border-color: var(--tin-hieu); }
.nt-tep > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.nt-tep b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; }
.nt-tep small { color: var(--chu-phu); font-size: .6875rem; }
.nt-tep-bt { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 8px; background: color-mix(in srgb, var(--tin-hieu) 14%, transparent); color: var(--tin-hieu); font-size: .625rem; font-weight: 800; }
.nt-tep.nho { min-width: 0; max-width: none; margin-bottom: .375rem; }
.nt-tep.nho .nt-tep-bt { width: 2rem; height: 2rem; }
.nt-cx { position: relative; display: flex; flex-wrap: wrap; gap: .25rem; margin-top: -.375rem; padding: 0 .5rem; }
.nt-cx button { display: inline-flex; align-items: center; gap: .1875rem; padding: .0625rem .5rem; border: 1px solid var(--vien-the); border-radius: 999px; background: var(--nen-the); color: var(--chu-phu); font: inherit; font-size: .6875rem; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.nt-cx button .rzi { font-size: .875rem; color: var(--tin-hieu); }
.nt-cx button.cua-toi { border-color: var(--tin-hieu); color: var(--chu-chinh); }
.nt-thao-tac { display: flex; gap: .125rem; align-self: center; padding: .125rem; border: 1px solid var(--vien-the); border-radius: 10px; background: var(--nen-the); box-shadow: 0 4px 12px rgb(0 0 0 / .1); opacity: 0; pointer-events: none; transition: opacity .12s; }
.nt-tin:hover .nt-thao-tac, .nt-tin:focus-within .nt-thao-tac { opacity: 1; pointer-events: auto; }
.nt-thao-tac button { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 0; border-radius: 7px; background: transparent; color: var(--chu-phu); cursor: pointer; }
.nt-thao-tac button:hover { background: var(--nen-dai); color: var(--tin-hieu); }
.nt-thao-tac .rzi { font-size: 1rem; }
.nt-tin.nhay-sang .nt-bong { animation: nt-nhay 1.2s ease-out; }
@keyframes nt-nhay { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tin-hieu) 45%, transparent); } 100% { box-shadow: 0 1px 2px rgb(0 0 0 / .05); } }
.nt-dang-go { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem; color: var(--chu-phu); font-size: .75rem; font-style: italic; }
.nt-ba-cham { display: inline-flex; gap: .1875rem; padding: .375rem .5rem; border-radius: 999px; background: var(--nen-dai); }
.nt-ba-cham i { width: .375rem; height: .375rem; border-radius: 50%; background: var(--chu-phu); animation: nt-cham 1s infinite ease-in-out; }
.nt-ba-cham i:nth-child(2) { animation-delay: .15s; }
.nt-ba-cham i:nth-child(3) { animation-delay: .3s; }
@keyframes nt-cham { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.nt-soan { display: flex; flex-direction: column; gap: .5rem; padding: .625rem .875rem .75rem; border-top: 1px solid var(--vien-the); }
.nt-dang-tra-loi { display: flex; align-items: center; gap: .5rem; padding: .375rem .5rem; border-left: 3px solid var(--tin-hieu); border-radius: 6px; background: var(--nen-dai); font-size: .75rem; }
.nt-dang-tra-loi > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nt-dang-tra-loi small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--chu-phu); }
.nt-mau { display: flex; gap: .375rem; overflow-x: auto; scrollbar-width: none; }
.nt-mau button { flex: none; padding: .25rem .75rem; border: 1px solid var(--vien-the); border-radius: 999px; background: var(--nen-the); color: var(--chu-chinh); font: inherit; font-size: .75rem; cursor: pointer; }
.nt-mau button:hover { border-color: var(--tin-hieu); color: var(--tin-hieu); }
.nt-o-soan { display: flex; align-items: flex-end; gap: .5rem; padding: .375rem .375rem .375rem .75rem; border: 1px solid var(--vien-o-nhap); border-radius: 14px; background: var(--nen-the); }
.nt-o-soan:focus-within { border-color: var(--tin-hieu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tin-hieu) 20%, transparent); }
.nt-o-soan textarea { flex: 1; min-height: 2.25rem; max-height: 8rem; padding: .5rem 0; border: 0; outline: 0; resize: none; field-sizing: content; background: transparent; color: var(--chu-chinh); font: inherit; font-size: .875rem; }
.nt-gui { display: inline-grid; place-items: center; width: 2.375rem; height: 2.375rem; border: 0; border-radius: 10px; background: var(--mau-chinh); color: var(--chu-tren-mau); cursor: pointer; }
.nt-gui:disabled { opacity: .45; cursor: not-allowed; }

.nt-thong-tin { display: flex; flex-direction: column; gap: 1rem; min-height: 0; overflow-y: auto; padding: 1.25rem 1rem; border-left: 1px solid var(--vien-the); }
.nt-tt-dau { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; }
.nt-tt-dau strong { margin-top: .5rem; font-size: 1rem; }
.nt-tt-dau small { color: var(--chu-phu); font-size: .75rem; }
.nt-tt-nut { display: flex; gap: .5rem; margin-top: .5rem; }
.nt-thong-tin h2 { display: flex; justify-content: space-between; margin: 0 0 .5rem; color: var(--chu-phu); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nt-goi-dong { display: flex; align-items: center; gap: .5rem; margin: 0 0 .375rem; font-size: .75rem; }
.nt-goi-dong .rzi { font-size: 1rem; color: var(--tin-hieu); }
.nt-goi-dong span { flex: 1; }
.nt-goi-dong time { color: var(--chu-phu); }

@media (max-width: 1200px) { .nt-bo-cuc.co-thong-tin { grid-template-columns: 18rem minmax(0, 1fr); } .nt-thong-tin { display: none; } }
@media (max-width: 760px) {
    .nt-bo-cuc, .nt-bo-cuc.co-thong-tin { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--chieu-cao-header, 3.5rem) - 2rem); }
    .nt-bo-cuc.co-chon .nt-danh-sach { display: none; }
    .nt-bo-cuc:not(.co-chon) .nt-khung { display: none; }
    .nt-quay-lai { display: inline-grid; }
    .nt-tin { max-width: 92%; }
    .nt-thao-tac { position: absolute; top: -1.75rem; right: 0; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) { .nt-ba-cham i, .nt-tin.nhay-sang .nt-bong { animation: none; } }
[data-giam-chuyen-dong] .nt-ba-cham i, [data-giam-chuyen-dong] .nt-tin.nhay-sang .nt-bong { animation: none; }
.nt-cong-cu { display: flex; align-items: flex-start; gap: .5rem; min-width: 0; }
.nt-cong-cu .nt-mau { flex: 1; min-width: 0; }
.o-tai-tep.gon { flex: none; display: flex; flex-direction: column; gap: .25rem; max-width: 16rem; }
.o-tai-tep.gon small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6875rem; color: var(--chu-phu); }
.nut-dinh-kem { display: inline-flex; align-items: center; gap: .25rem; margin: 0; padding: .25rem .625rem; border: 1px dashed var(--vien-o-nhap); border-radius: 999px; color: var(--chu-chinh); font-size: .75rem; font-weight: 600; cursor: pointer; }
.nut-dinh-kem .rzi { font-size: 1rem; color: var(--tin-hieu); }
.nut-dinh-kem:hover { border-color: var(--tin-hieu); }
.o-tai-tep.gon input:focus-visible + small, .o-tai-tep.gon:has(input:focus-visible) .nut-dinh-kem { outline: 2px solid var(--tin-hieu); outline-offset: 2px; }
.kt-phan-tich, #kt-phan-tich, .nt-tin { scroll-margin-top: calc(var(--chieu-cao-header, 4rem) + 1rem); }

/* h1 chỉ nhận focus do Blazor (FocusOnNavigate) để trình đọc màn hình đọc tiêu đề; không vẽ khung. */
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; }
