/* =====================================================================================
   Header colorME (components/colorme/header.blade.php + mobile-menu.blade.php)
   Mot thanh sticky mo kinh: gon lai khi cuon, an khi cuon xuong / hien khi cuon len; mega-menu; bang tim ⌘K; menu di dong.
   Mau: token cm-tokens (sang/toi); gradient thuong hieu CHI cho nut chinh (Đăng nhập). Icon: Lucide (inline SVG).
   ===================================================================================== */
.cmh, .cmn, .cmh-pal {
    /* Mau theo token goc (public/css/cm-tokens.css, docs/redesign/TOKENS.md): sang / toi tu doi */
    --cmh-ink: var(--cm-text);
    --cmh-text: var(--cm-text-2);
    --cmh-muted: var(--cm-muted);
    --cmh-faint: var(--cm-faint);
    --cmh-line: var(--cm-line);
    --cmh-soft: var(--cm-surface-2);
    --cmh-wash: var(--cm-bg-subtle);
    --cmh-pop: var(--cm-elevated);
    --cmh-pal-dim: rgba(16, 24, 40, .28);
    /* Mau nhan (Hot / AI / Premium) - sang; ban toi o cuoi file */
    --cmh-hot-bg: #FFF1EA; --cmh-hot-fg: #C4320A;
    --cmh-ai-bg: #F1EDFF; --cmh-ai-fg: #5B3CC4;
    --cmh-pre-bg: #FEF6DA; --cmh-pre-fg: #9A6200;
    --cmh-grad: var(--cm-grad);
    --cmh-ease: cubic-bezier(.2, .8, .2, 1);
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--cmh-ink);
    -webkit-font-smoothing: antialiased;
}
.cmh [hidden], .cmn [hidden], .cmh-pal [hidden] { display: none !important; }
.cmh .cmi, .cmn .cmi, .cmh-pal .cmi { flex-shrink: 0; display: block; }
.cmh :focus-visible, .cmn :focus-visible, .cmh-pal :focus-visible { outline: 2px solid var(--cmh-ink); outline-offset: 2px; }

/* ---------- Thanh ---------- */
/* Thanh co dinh (fixed) + o giu cho co chieu cao co dinh (.cmh-spacer): thanh gon lai / an khi cuon KHONG doi bo cuc trang,
   khong de lai dai trang (truoc day: sticky + margin bu 8px -> lo dai nen 8px duoi thanh khi da cuon gan dau trang) */
.cmh-spacer { height: 64px; }
.cmh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: transform .3s var(--cmh-ease);
}
.cmh.is-hidden { transform: translateY(-100%); }
.cmh-bar {
    position: relative;
    background: var(--cm-bg); /* nen dac, khong trong mo khi cuon (chu 09/10/2026: "keep it pure white") */
    border-bottom: 1px solid transparent;
    transition: background-color .2s, box-shadow .2s, border-color .2s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .cmh-bar { background: var(--cm-bg); } }
.cmh.is-scrolled .cmh-bar { border-bottom-color: transparent; box-shadow: 0 6px 24px -18px rgba(16, 24, 40, .35); } /* khong ke duoi navbar (chu yeu cau) */
.cmh.has-open .cmh-bar { background: var(--cm-bg); }
.cmh-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 64px;
    transition: height .2s var(--cmh-ease);
}
.cmh.is-scrolled .cmh-inner { height: 56px; }
.cmh-logo { display: inline-flex; flex-shrink: 0; margin-right: 12px; border-radius: 4px; }
.cmh-logo img { width: 40px; height: 40px; border-radius: 4px; display: block; transition: transform .2s var(--cmh-ease); }

.cmh-nav { display: flex; align-self: stretch; min-width: 0; }
.cmh-list { display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cmh-item { display: flex; align-items: center; position: static; }
.cmh-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--cmh-text);
    font: inherit;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: -.005em;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.cmh-trigger:hover, .is-open > .cmh-trigger { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmh-item.is-current > .cmh-trigger { color: var(--cmh-ink); font-weight: 600; }
.cmh-chev { color: var(--cmh-faint); margin-left: 1px; transition: transform .2s var(--cmh-ease), color .15s; }
.is-open > .cmh-trigger .cmh-chev { transform: rotate(180deg); color: var(--cmh-ink); }
/* "Moi" tinh te: chu do nhat tren nen hong nhat */
.cmh-new {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 0 6px;
    height: 18px;
    border-radius: 999px;
    background: var(--cm-danger-bg);
    color: var(--cm-danger);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .01em;
}

.cmh-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.cmh-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    min-width: 208px;
    padding: 0 6px 0 12px;
    border: 1px solid var(--cmh-line);
    border-radius: 10px;
    background: var(--cm-bg-subtle);
    color: var(--cmh-muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}
.cmh-search:hover { border-color: var(--cm-line-2); background: var(--cm-surface); color: var(--cmh-text); }
.cmh-kbd {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 2px 6px;
    border: 1px solid var(--cmh-line);
    border-radius: 6px;
    background: var(--cm-surface);
    color: var(--cmh-muted);
    font: 500 11px/16px inherit;
    font-family: inherit;
    box-shadow: none;
}
.cmh-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background-image: var(--cm-grad, var(--cmh-grad));
    color: var(--cm-on-grad, #fff);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: filter .15s, transform .15s;
}
.cmh-cta:hover { filter: brightness(1.05) saturate(1.05); color: var(--cm-on-grad, #fff); }
.cmh-cta:active { transform: translateY(1px); }
.cmh-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--cmh-text);
    transition: background-color .15s, color .15s;
}
.cmh-icon-btn:hover, .is-open > .cmh-icon-btn { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmh .cm-gift-btn .cm-gift-dot { top: 7px; right: 7px; }
.cmh-count {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #F04438;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--cm-bg);
}
.cmh-count:empty { display: none; }
.cmh-avatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    transition: box-shadow .15s;
}
.cmh-avatar-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.cmh-avatar-btn:hover, .is-open > .cmh-avatar-btn { box-shadow: 0 0 0 2px var(--cm-bg), 0 0 0 4px var(--cmh-line); }
.cmh-burger { display: none; }

/* ---------- Panel / mega-menu ---------- */
.cmh-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2;
    margin-top: 6px;
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--cmh-pop);
    border: 1px solid var(--cm-line);
    border-radius: 16px;
    box-shadow: var(--cm-shadow-2);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .2s var(--cmh-ease), visibility 0s linear .2s;
}
.cmh-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* cau noi re chuot */
/* Bang dong: khong nhan chuot (ke ca phan tu con dat visibility: visible) -> re chuot qua vung trong khong mo menu */
.cmh-panel { pointer-events: none; }
.cmh-panel * { pointer-events: none !important; }
.cmh-item.is-open > .cmh-panel, .cmh-item.is-open > .cmh-panel * { pointer-events: auto !important; }
.cmh-item.is-open > .cmh-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.cmh.is-switching .cmh-panel { transition: none; }
.cmh-panel--wide { width: min(1120px, calc(100vw - 24px)); }
.cmh-panel--more { width: min(680px, calc(100vw - 24px)); }
.cmh-panel--user { width: 300px; padding: 6px; }
.cmh-panel--notif { width: min(380px, calc(100vw - 24px)); }

.cmh-h { padding: 0 8px 6px; color: var(--cmh-muted); font-size: 12px; font-weight: 600; letter-spacing: .01em; line-height: 1.4; }
.cmh-hsub { margin: -4px 8px 6px; color: var(--cmh-faint); font-size: 12px; line-height: 1.4; }

/* Khoa hoc (dong .cmh-course: dung o Giao trinh) */
.cmh-course {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    color: var(--cmh-ink);
    text-decoration: none;
    transition: background-color .12s;
}
.cmh-course:hover, .cmh-course:focus-visible { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmh-course-ico { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--cmh-soft); }
.cmh-course-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cmh-course-name { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; }
.cmh-course-meta { color: var(--cmh-muted); font-size: 12px; }

/* ---------- Mega-menu Khoa hoc (.cmk): trai 2 the Dao tao, phai khoa hoc theo muc tieu ---------- */
.cmh-panel--courses { width: min(1120px, calc(100vw - 24px)); }
/* Icon khoa hoc: anh nhieu kieu -> cung khung bo goc + vien mong. Khong co / loi anh: o chu 2 ky tu tren nen mau nhat (data-mono) */
.cmk-ico { position: relative; display: block; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; overflow: hidden; background: var(--cmk-tb, var(--cmh-soft)); }
.cmk-ico img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.cmk-ico::before { content: attr(data-mono); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--cmk-tf, var(--cmh-text)); font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; }
.cmk-ico:has(img)::before { content: none; }
.cmk-ico:has(img) { background: var(--cmh-soft); }
.cmk-ico--set { background: transparent; }
.cmk-ico--set svg { display: block; width: 100%; height: 100%; }
.cmk-ico::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cm-text) 9%, transparent); pointer-events: none; }
.cmk-t1 { --cmk-tb: #FEF3F2; --cmk-tf: #B42318; }
.cmk-t2 { --cmk-tb: #FFF6ED; --cmk-tf: #B93815; }
.cmk-t3 { --cmk-tb: #ECFDF3; --cmk-tf: #067647; }
.cmk-t4 { --cmk-tb: #EFF8FF; --cmk-tf: #175CD3; }
.cmk-t5 { --cmk-tb: #F4F3FF; --cmk-tf: #5925DC; }
.cmk-t6 { --cmk-tb: #FDF2FA; --cmk-tf: #C11574; }

.cmk { display: grid; grid-template-columns: 296px minmax(0, 1fr); }
.cmk-left-links { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.cmk-link { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: 9px; color: var(--cmh-text); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: background-color .12s, color .12s; }
.cmk-link .cmi { color: var(--cmh-muted); transition: color .15s; }
.cmk-link:hover, .cmk-link:focus-visible { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmk-link:hover .cmi { color: var(--cmh-ink); }

/* Phai: luoi 3 cot o tren + 3 cot nhom ben duoi, cung duong cot, cung chieu cao dong */
.cmk-right { --cmk-gap: 12px; display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 16px; }
.cmk-grid, .cmk-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--cmk-gap); }
.cmk-cols { flex: 1; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--cmh-soft); }
.cmk-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cmk-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 28px; padding: 0 10px 6px; }
.cmk-gt { color: var(--cmh-ink); font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; }
.cmk-from { color: var(--cmh-muted); font-size: 12.5px; white-space: nowrap; }
.cmk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--cmh-ink);
    text-decoration: none;
    transition: background-color .12s;
}
.cmk-item:hover, .cmk-item:focus-visible { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmk-item:focus-visible { outline-offset: -2px; }
.cmk-item:hover .cmk-ico::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cm-text) 16%, transparent); }
.cmk-item .cmk-ico { flex-basis: 34px; width: 34px; height: 34px; }
.cmk-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 1px; line-height: 1.3; }
.cmk-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; font-weight: 500; }
.cmk-name-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmk-name .cmt-tag, .cmh-lrow-txt b .cmt-tag { flex-shrink: 0; }
.cmk-meta { color: var(--cmh-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1199.98px) {
    .cmk { grid-template-columns: 248px minmax(0, 1fr); }
}

/* Muc icon + tieu de + mo ta (Dich vu, Mo rong) */
.cmh-link-item, .cmh-advice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    color: var(--cmh-ink);
    text-decoration: none;
    transition: background-color .12s;
}
.cmh-link-item:hover, .cmh-link-item:focus-visible { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmh-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1px solid var(--cmh-line);
    border-radius: 10px;
    background: var(--cm-surface);
    color: var(--cmh-text);
    box-shadow: var(--cm-shadow-1);
    transition: color .12s, border-color .12s;
}
.cmh-link-item:hover .cmh-ico, .cmh-advice:hover .cmh-ico { color: var(--cmh-ink); border-color: var(--cm-line-2); }
.cmh-li-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cmh-li-txt b { font-size: 14px; font-weight: 600; }
.cmh-li-txt small { color: var(--cmh-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmh-advice { margin-top: 10px; border: 1px solid var(--cmh-line); background: var(--cm-surface); }
.cmh-advice:hover { border-color: var(--cm-line-2); color: var(--cmh-ink); }
.cmh-advice .cmh-li-txt { flex: 1; }
.cmh-advice-go { color: var(--cmh-faint); }
.cmh-all, .cmh-foot-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 12px 8px 0;
    color: var(--cmh-ink);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}
.cmh-all:hover .cmi { transform: translateX(2px); }
.cmh-all .cmi { transition: transform .15s; }

/* Mo rong */
.cmh-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 18px 14px 12px; }
.cmh-more-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--cmh-soft); background: var(--cmh-wash); border-radius: 0 0 15px 15px; }
.cmh-foot-link { margin: 0; padding: 4px 0; color: var(--cmh-text); font-weight: 500; }
.cmh-foot-link:hover { color: var(--cmh-ink); }
.cmh-lang { display: flex; align-items: center; gap: 2px; color: var(--cmh-muted); font-size: 13px; }
.cmh-lang .cmi { margin-right: 4px; }
.cmh-lang button {
    padding: 4px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--cmh-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
}
.cmh-lang button:hover { color: var(--cmh-ink); }
.cmh-lang button[aria-pressed="true"] { background: var(--cm-surface); color: var(--cmh-ink); box-shadow: 0 0 0 1px var(--cmh-line), var(--cm-shadow-1); }

/* Cong cu (giu class tools-* cua header.css; chi chinh lai cho panel moi) */
.cmh-mega--tools { padding: 12px 16px 16px; }
.cmh .tools-dropdown-top { margin: 0 0 8px; padding: 0 4px 0 6px; border-bottom: 1px solid var(--cmh-soft); }
.cmh .tools-search { color: var(--cmh-faint); }
.cmh .tools-search:focus-within { color: var(--cmh-ink); }
.cmh .tools-search input { height: 48px; font-size: 15px; }
.cmh .tools-top-link { display: inline-flex; align-items: center; gap: 6px; }
.cmh .tools-dropdown-all { display: inline-flex; align-items: center; gap: 6px; }
.cmh .tools-dropdown-grid { padding-top: 4px; }
.cmh .tools-dropdown-item { padding: 6px 8px; border-radius: 10px; white-space: normal; color: var(--cmh-ink); }
.cmh .tools-dropdown-item:hover, .cmh .tools-dropdown-item:focus, .cmh .tools-dropdown-item.active { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmh .tools-dropdown-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.cmh .tools-saved-item:hover, .cmh .tools-saved-item:focus { background: var(--cmh-soft); }
.cmh .cm-crown, .cmn .cm-crown, .cmh-crown { display: inline-flex; color: #F79009; }
.cmh .cm-crown .cmi, .cmn .cm-crown .cmi { fill: currentColor; }

/* Thong bao */
.cmh-pop-h { padding: 12px 16px; border-bottom: 1px solid var(--cmh-soft); font-size: 14px; font-weight: 600; }
.cmh-notif-list { max-height: min(440px, calc(100dvh - 160px)); overflow-y: auto; padding: 6px; }
.cmh-notif-list .dropdown-item { white-space: normal; border-radius: 10px; }

/* Menu tai khoan */
.cmh-me { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--cmh-ink); text-decoration: none; }
.cmh-me:hover { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmh-me-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cmh-me-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cmh-me-txt b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmh-me-txt small { color: var(--cmh-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmh-sep { height: 1px; margin: 6px 6px; background: var(--cmh-soft); }
.cmh-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--cmh-text);
    font: inherit;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .12s, color .12s;
}
.cmh-row > span { flex: 1; min-width: 0; }
.cmh-row > .cmi { color: var(--cmh-muted); }
.cmh-row:hover, .cmh-row:focus-visible { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmh-row:hover > .cmi { color: var(--cmh-ink); }
.cmh-row--sub { min-height: 34px; padding: 6px 10px 6px 12px; font-size: 13.5px; }
.cmh-row-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cmh-row-logo { width: 17px; height: 17px; object-fit: contain; flex-shrink: 0; }
.cmh-row--toggle { justify-content: space-between; }
.cmh-row-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.cmh-row-main .cmi { color: var(--cmh-muted); }
.cmh-row--toggle .custom-switch { flex: 0 0 auto; margin: 0; }
.cmh-acc-chev { margin-left: auto; color: var(--cmh-faint); transition: transform .2s var(--cmh-ease); }
.cmh-acc.is-open > .cmh-row .cmh-acc-chev { transform: rotate(180deg); }
.cmh-acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s var(--cmh-ease); }
.cmh-acc.is-open > .cmh-acc-body { grid-template-rows: 1fr; }
.cmh-acc-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .22s; }
.cmh-acc.is-open .cmh-acc-inner { visibility: visible; transition-delay: 0s; max-height: 300px; overflow-y: auto; }
.cmh-mini-search { display: flex; align-items: center; gap: 8px; margin: 4px 6px 2px; padding: 0 10px; height: 34px; border-radius: 8px; background: var(--cmh-soft); color: var(--cmh-faint); }
.cmh-mini-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--cmh-ink); outline: none; }
.cmh-lang--row { padding: 4px 6px 4px 10px; min-height: 40px; font-size: 14px; color: var(--cmh-text); }
.cmh-lang--row > .cmi { color: var(--cmh-muted); margin-right: 6px; }
.cmh-lang-label { flex: 1; }
.cmh-lang--row button { padding: 3px 9px; font-size: 12.5px; }

/* ---------- Bang tim kiem ⌘K ---------- */
.cmh-pal { position: fixed; inset: 0; z-index: 1080; display: flex; align-items: flex-start; justify-content: center; padding: min(14vh, 120px) 16px 16px; }
.cmh-pal-bg { position: absolute; inset: 0; background: var(--cmh-pal-dim); opacity: 0; transition: opacity .15s; }
.cmh-pal-box {
    position: relative;
    width: min(640px, 100%);
    background: var(--cmh-pop);
    border-radius: 16px;
    box-shadow: 0 32px 64px -16px rgba(16, 24, 40, .35), 0 0 0 1px var(--cm-line);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(.985);
    transition: opacity .15s, transform .2s var(--cmh-ease);
}
.cmh-pal.is-open .cmh-pal-bg { opacity: 1; }
.cmh-pal.is-open .cmh-pal-box { opacity: 1; transform: none; }
.cmh-pal-input { display: flex; align-items: center; gap: 12px; height: 58px; margin: 0; padding: 0 14px 0 18px; border-bottom: 1px solid var(--cmh-soft); color: var(--cmh-faint); cursor: text; }
.cmh-pal-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--cmh-ink); outline: none; -webkit-appearance: none; appearance: none; }
.cmh-pal-input input::placeholder { color: var(--cmh-faint); }
.cmh-pal-input input::-webkit-search-cancel-button { display: none; }
.cmh-pal-input .cmh-kbd { cursor: pointer; }
.cmh-pal-list { max-height: min(440px, 58vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 8px; }
.cmh-pal-sec { padding: 10px 10px 4px; color: var(--cmh-muted); font-size: 12px; font-weight: 600; }
.cmh-pal-foot { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--cmh-soft); background: var(--cmh-wash); color: var(--cmh-faint); font-size: 12px; }
.cmh-pal-foot kbd { display: inline-block; min-width: 18px; margin-right: 3px; padding: 0 4px; border: 1px solid var(--cmh-line); border-radius: 5px; background: var(--cm-surface); color: var(--cmh-muted); font: 500 11px/16px inherit; font-family: inherit; text-align: center; box-shadow: none; }

/* Dong ket qua dung chung: bang tim + menu di dong */
.cmh-r {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 7px 10px;
    border-radius: 10px;
    color: var(--cmh-ink);
    text-decoration: none;
}
.cmh-r.is-active, .cmh-r:hover { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmh-r-img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.cmh-r-ico { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; border: 1px solid var(--cmh-line); background: var(--cm-surface); color: var(--cmh-text); font-size: 15px; }
.cmh-r-ico[style] { border-color: transparent; }
.cmh-r-ico > .icon { width: 16px; height: 16px; }
.cmh-r-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cmh-r-txt b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.cmh-r-txt b .tools-ai-badge { margin-left: 0; }
.cmh-r-txt small { color: var(--cmh-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmh-r--all { margin-top: 4px; border-top: 1px solid var(--cmh-soft); border-radius: 0 0 10px 10px; }

/* ---------- Thu gon theo be rong ---------- */
@media (max-width: 1199.98px) {
    .cmh-search { min-width: 0; width: 36px; padding: 0; justify-content: center; border-color: transparent; background: transparent; color: var(--cmh-text); }
    .cmh-search:hover { background: var(--cmh-soft); border-color: transparent; }
    .cmh-search-label, .cmh-search .cmh-kbd { display: none; }
    .cmh-trigger { padding: 0 10px; }
}
@media (max-width: 991.98px) {
    .cmh-inner { height: 56px; }
    .cmh-spacer { height: 56px; }
    .cmh-nav, .cmh-user { display: none; }
    .cmh-burger { display: inline-flex; margin-right: -6px; }
    .cmh-logo img { width: 40px; height: 40px; }
    .cmh-cta { height: 34px; padding: 0 14px; font-size: 13.5px; }
    .cmh-actions { gap: 2px; }
    .cmh-panel--notif { position: fixed; top: 56px; }
}

/* ---------- Menu di dong toan man hinh (#cm-msheet): man goc + man con truot ngang ---------- */
.cmn {
    position: fixed;
    inset: 0;
    z-index: 1070;
    overflow: hidden;
    background: var(--cm-bg);
    opacity: 0;
    transition: opacity .18s ease;
}
.cmn.is-open { opacity: 1; }
.cmn[hidden] { display: none !important; }
@media (min-width: 992px) { .cmn { display: none !important; } }
.cmn-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--cm-bg);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .26s var(--cmh-ease), visibility 0s linear .26s;
}
.cmn-screen.is-active { transform: none; visibility: visible; transition-delay: 0s; }
.cmn-screen.is-under { transform: translateX(-25%); }
.cmn-screen[data-screen="root"]:not(.is-active):not(.is-under) { transform: none; }
.cmn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; height: 56px; margin-top: env(safe-area-inset-top, 0px); padding: 0 6px 0 16px; border-bottom: 1px solid var(--cmh-soft); }
.cmn-head .cmh-logo { margin: 0; }
.cmn-close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--cmh-ink); }
.cmn-close:active { background: var(--cmh-soft); }
.cmn-back { display: inline-flex; align-items: center; gap: 4px; height: 48px; margin-left: -10px; padding: 0 12px 0 6px; border: 0; border-radius: 12px; background: transparent; color: var(--cmh-ink); font: inherit; font-size: 16px; font-weight: 500; }
.cmn-back:active { background: var(--cmh-soft); }
.cmn-back-ico { transform: rotate(180deg); }
.cmn-title { flex: 1; margin-right: 54px; text-align: center; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmn-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.cmn-login { display: flex; width: calc(100% - 32px); height: 52px; margin: 8px 16px 8px; border-radius: 12px; font-size: 16px; }
.cmn-me { display: flex; align-items: center; gap: 12px; min-height: 72px; margin: 0 0 4px; padding: 8px 16px; color: var(--cmh-ink); text-decoration: none; border-bottom: 1px solid var(--cmh-soft); }
.cmn-me:active { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmn-me-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cmn-me-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.cmn-me-txt b { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmn-me-txt small { color: var(--cmh-muted); font-size: 14px; }
.cmn-list { display: flex; flex-direction: column; }
.cmn-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 0 16px 0 20px;
    border: 0;
    background: transparent;
    color: var(--cmh-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
}
.cmn-row > span { flex: 1; min-width: 0; }
.cmn-row:hover { color: var(--cmh-ink); }
.cmn-row:active { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmn-row.is-current { font-weight: 700; }
.cmn-row.is-current::before { content: ''; position: absolute; left: 0; width: 3px; height: 24px; border-radius: 0 3px 3px 0; background: var(--cmh-ink); }
.cmn-row { position: relative; }
.cmn-chev { color: var(--cmh-faint); }
.cmn-label { padding: 18px 20px 4px; color: var(--cmh-muted); font-size: 13px; font-weight: 600; }
.cmn-foot { display: flex; flex-direction: column; margin-top: 16px; padding: 12px 0 0; border-top: 1px solid var(--cmh-soft); }
.cmn-small {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    background: transparent;
    color: var(--cmh-muted);
    font: inherit;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
}
.cmn-small:active { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmn-state { margin-left: auto; color: var(--cmh-faint); font-size: 13px; }
.cmn-lang > span { margin-right: auto; }
.cmn-lang button { height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--cmh-muted); font: inherit; font-size: 14px; }
.cmn-lang button[aria-pressed="true"] { background: var(--cmh-soft); color: var(--cmh-ink); font-weight: 600; }
.cmn-empty { padding: 24px 20px; color: var(--cmh-muted); font-size: 15px; text-align: center; }
.cmn-gsearch { display: flex; align-items: center; gap: 10px; height: 48px; margin: 8px 16px; padding: 0 14px; border-radius: 12px; background: var(--cmh-soft); color: var(--cmh-faint); }
.cmn-gsearch input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--cmh-ink); outline: none; }
.cmn .list-users-group .view-more-group { margin: 8px 0; }
.cmn-sync { margin-top: 8px; justify-content: center; }

/* ---------- Thanh di dong: chi logo + (qua tang, thong bao khi dang nhap) + tim + menu ---------- */
@media (max-width: 991.98px) {
    /* Khach: nut "Đăng nhập" gon ngay tren thanh (canh tim / menu), khong chi trong menu. Da dang nhap: khong render nut nay */
    .cmh-cta { display: inline-flex; height: 34px; padding: 0 12px; margin: 0 4px; font-size: 13px; white-space: nowrap; }
    .cmh-actions { gap: 4px; }
    .cmh-icon-btn, .cmh-search { width: 40px; height: 40px; }
    /* Bang tim kiem toan man hinh tren dien thoai */
    .cmh-pal { padding: 0; align-items: stretch; }
    .cmh-pal-box { width: 100%; border-radius: 0; display: flex; flex-direction: column; }
    .cmh-pal-input { height: 60px; margin-top: env(safe-area-inset-top, 0px); }
    .cmh-pal-list { flex: 1; max-height: none; }
    .cmh-pal-foot { display: none; }
    .cmh-pal-input .cmh-kbd { padding: 6px 10px; font-size: 14px; }
    .cmh-r { min-height: 56px; }
}
/* Dien thoai hep: tim · qua · chuong · giao dien · menu sat nhau hon (nut 40px, khong khoang cach) */
@media (max-width: 419.98px) { .cmh-actions { gap: 0; } .cmh-cta { padding: 0 10px; margin: 0 2px; } }
/* Nut Dang nhap trong menu dien thoai: 2 luat .cmh-cta o tren (cho thanh dau trang) de len le va chieu cao cua no -> dat lai, thang hang voi cac dong menu (le trai 20px) */
.cmn-login.cmh-cta { display: flex; width: calc(100% - 36px); height: 52px; margin: 8px 16px 8px 20px; padding: 0 16px; font-size: 16px; }
@media (max-width: 359.98px) { .cmh-actions .cm-gift-btn { display: none; } }

@media (prefers-reduced-motion: reduce) {
    .cmh, .cmh *, .cmn, .cmn *, .cmh-pal, .cmh-pal * { transition: none !important; }
}

/* ---------- Tinh chinh ---------- */
.cmh.is-hidden .cmh-bar { box-shadow: none; }
.cmh-pal-input input:focus-visible, .cmn-gsearch input:focus-visible, .cmh .tools-search input:focus-visible, .cmh-mini-search input:focus-visible { outline: none; }
.cmn-gsearch input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* ---------- Nhóm lớp / Giáo trình (chi sau dang nhap): CUNG MOT thanh phan ----------
   Panel 360px · dau: tieu de + (tuy chon) nut icon · o tim gon · danh sach cuon trong (toi da 420px) · dong .cmh-lrow:
   icon khoa hoc 32px (.cmk-ico, o chu khi khong co anh) + tieu de 1 dong + 1 dong phu nhat. Trang thai trong giong nhau. */
.cmh-panel--list { width: min(360px, calc(100vw - 24px)); padding: 6px; }
.cmh-lhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 4px 6px 4px 10px; }
.cmh-ltitle { color: var(--cmh-ink); font-size: 14px; font-weight: 600; }
.cmh-lhead .cmh-icon-btn { width: 32px; height: 32px; border-radius: 8px; color: var(--cmh-muted); }
.cmh-lhead .cmh-icon-btn:hover { color: var(--cmh-ink); }
.cmh-panel--list .cmh-mini-search { margin: 2px 4px 6px; height: 36px; border-radius: 9px; }
.cmh-list-body { max-height: min(420px, calc(100dvh - 200px)); overflow-y: auto; overscroll-behavior: contain; padding: 0 0 2px; border-top: 1px solid var(--cmh-soft); padding-top: 4px; }
.cmh-lrow, .cmh .cmh-lrow.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 10px;
    border-radius: 10px;
    background: transparent;
    color: var(--cmh-ink);
    white-space: normal;
    text-decoration: none;
    transition: background-color .12s;
}
.cmh-lrow:hover, .cmh-lrow:focus-visible, .cmh .cmh-lrow.dropdown-item:hover, .cmh .cmh-lrow.dropdown-item:focus { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmh-lrow:focus-visible { outline-offset: -2px; }
.cmh-lrow-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.cmh-lrow-txt b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmn-course .cmh-lrow-txt b { display: flex; align-items: center; gap: 8px; }
.cmh-lrow-txt small { color: var(--cmh-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmh-lrow[hidden] { display: none !important; }
.cmh-empty, .cmn-empty { padding: 28px 16px; color: var(--cmh-muted); font-size: 13.5px; text-align: center; }
.cmh-empty a, .cmn-empty a { color: var(--cmh-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cmh-list-foot { display: flex; justify-content: center; padding: 8px 0 4px; border-top: 1px solid var(--cmh-soft); }
/* Di dong: cung giai phau, hang lon hon */
.cmn .cmh-lrow, .cmn .cmh-lrow.dropdown-item { height: 64px; gap: 14px; padding: 0 20px; border-radius: 0; }
.cmn .cmh-lrow:active { background: var(--cmh-soft); }
.cmn .cmh-lrow > .cmk-ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; }
.cmn .cmh-lrow-txt b { font-size: 16px; }
.cmn .cmh-lrow-txt small { font-size: 13.5px; }
.cmn-empty { font-size: 15px; padding: 32px 20px; }
@media (max-width: 1199.98px) { .cmh-list { gap: 0; } .cmh-trigger { padding: 0 9px; font-size: 14px; } }

/* Menu tai khoan: gon, chi chu (khong icon trang tri, khong vuong mien); nhan 1 dong */
.cmh-panel--user { width: 280px; padding: 8px; }
/* Moi dong co icon Lucide 18px mau nhat, khong vuong mien */
.cmh-panel--user .cmh-crown { display: none; }
.cmh-panel--user .cmh-row > .cmi, .cmh-panel--user .cmh-row-main > .cmi, .cmh-panel--user .cmh-lang > .cmi { width: 18px; height: 18px; margin: 0; color: var(--cmh-muted); }
.cmh-panel--user .cmh-row:hover > .cmi, .cmh-panel--user .cmh-row-main:hover > .cmi { color: var(--cmh-ink); }
.cmh-panel--user .cmh-row, .cmh-panel--user .cmh-row-main { gap: 12px; }
.cmh-panel--user .cmh-row-logo { width: 18px; height: 18px; }
.cmh-panel--user .cmh-row { min-height: 40px; padding: 8px 12px; font-size: 14px; color: var(--cmh-text); }
.cmh-panel--user .cmh-row > span:not(.custom-control):not(.cmh-row-main),
.cmh-panel--user .cmh-row-main > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Cong tac Bat tim viec: khong cat, can phai */
.cmh-panel--user .cmh-row--toggle .custom-control { flex: 0 0 auto; overflow: visible; margin-left: auto; padding-left: 2.5rem; min-height: 1.25rem; }
.cmh-panel--user .cmh-me { padding: 12px; }
.cmh-panel--user .cmh-sep { margin: 6px 12px; }
.cmh-panel--user .cmh-lang--row { padding: 6px 8px 6px 12px; min-height: 40px; }
.cmh-panel--user .cmh-lang-label { flex: 1; color: var(--cmh-text); font-size: 14px; }

/* Menu di dong - man Khoa hoc: 2 the Dao tao o tren, nhom theo muc tieu, hang lon co icon chuan hoa, Tu van o cuoi */
.cmn-label--split { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-right: 20px; color: var(--cmh-ink); font-size: 15px; }
.cmn-from { color: var(--cmh-muted); font-size: 13px; font-weight: 400; white-space: nowrap; }
.cmn-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin: 20px 16px 4px; border-radius: 12px; background: var(--cm-inverse); color: var(--cm-on-inverse); font-size: 16px; font-weight: 600; text-decoration: none; }
.cmn-cta:hover, .cmn-cta:active { color: var(--cm-on-inverse); background: var(--cm-inverse-hover); }

/* ---------- Menu Cong cu (.cmt): gon, de luot. Trai danh muc · giua 2 cot dong 1 dong · phai the Premium Account nho ---------- */
.cmh-panel--wide.cmh-panel--tools { width: min(1120px, calc(100vw - 24px)); }
.cmt { display: grid; grid-template-columns: 196px minmax(0, 1fr) 216px; }
.cmt-rail { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px 12px 12px; border-right: 1px solid var(--cmh-soft); }
.cmh .cmt-search { margin: 0 0 4px; height: 34px; border-radius: 9px; }
.cmt-cats { display: flex; flex-direction: column; gap: 1px; }
.cmt-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--cmh-text); font: inherit; font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; transition: background-color .12s, color .12s; }
.cmt-cat span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmt-cat small { color: var(--cmh-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.cmt-cat:hover { background: var(--cmh-wash); color: var(--cmh-ink); }
.cmt-cat[aria-selected="true"] { background: var(--cmh-soft); color: var(--cmh-ink); font-weight: 600; }
.cmt-cat[aria-selected="true"] small { color: var(--cmh-muted); }
.cmt-cat:focus-visible { outline-offset: -2px; }
.cmt-mid { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px 10px; }
.cmt-panes { display: grid; flex: 1; }
.cmt-pane { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(38px, 46px); align-content: start; column-gap: 8px; visibility: hidden; opacity: 0; transition: opacity .12s ease, visibility 0s linear .12s; }
.cmt-pane[data-active] { visibility: visible; opacity: 1; transition-delay: 0s; }
.cmh .cmt-row, .cmn .cmt-row { display: flex; align-items: center; gap: 10px; min-width: 0; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--cmh-ink); font-size: 13.5px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: background-color .1s; }
.cmh .cmt-row:hover, .cmh .cmt-row:focus-visible, .cmh .cmt-row.is-active { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmt-row:focus-visible { outline-offset: -2px; }
.cmt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cmt-all { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: auto 0 0; padding: 6px 10px; border-radius: 8px; color: var(--cmh-text); font-size: 13px; font-weight: 500; text-decoration: none; }
.cmt-all:hover { background: var(--cmh-soft); color: var(--cmh-ink); }
.cmt-all .cmi { transition: transform .15s; }
.cmt-all:hover .cmi { transform: translateX(2px); }
/* Dang tim: ket qua thay cho danh sach (cung kieu dong) */
.cmh .cmt-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38px; align-content: start; column-gap: 8px; max-height: 300px; overflow-y: auto; margin: 0; padding: 0; border: 0; }
.cmh .cmt-results[hidden] { display: none; }
#tools-dropdown.is-searching .cmt-panes { display: none; }
.cmh .cmt-results .cmt-row { padding: 0 10px; }
.cmh .cmt-empty { grid-column: 1 / -1; padding: 24px 8px; color: var(--cmh-muted); font-size: 13.5px; text-align: center; }
.cmt-side { display: flex; flex-direction: column; gap: 8px; padding: 22px 14px 10px 4px; }
.cmt-suggest { align-self: center; padding: 4px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--cmh-muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.cmt-suggest:hover { background: var(--cmh-soft); color: var(--cmh-ink); }
@media (max-width: 991.98px) { .cmh-panel--tools { display: none; } }

/* ---------- The Premium Account theo he Labs by ColorME (.cml): muc + 1 diem nhan lime, Inter Tight, dau L + pixel vuong ----------
   Font Inter Tight 700/800 (OFL, public/fonts/nav, ~17KB/weight, Latin + tieng Viet) chi dung khi menu Cong cu dang mo -> chi tai khi mo. */
@font-face { font-family: 'CML Inter Tight'; src: url('/fonts/nav/intertight-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'CML Inter Tight'; src: url('/fonts/nav/intertight-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
.cml {
    --cml-neon: #D4FF3A; --cml-ink: #0A0A0A; --cml-s1: #131313; --cml-s3: #252525;
    --cml-t1: #F4F4F0; --cml-t2: #A1A19A; --cml-t3: #6A6A64;
    --cml-display: 'Be Vietnam Pro', sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    background: var(--cml-s1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
    color: var(--cml-t1);
    text-decoration: none;
    transition: background-color .2s;
}
[data-cmh-menu="tools"].is-open .cml, .cmn-screen[data-screen="tools"].is-active .cml { --cml-display: 'CML Inter Tight', 'Be Vietnam Pro', sans-serif; }
.cml:hover, .cml:focus-visible { background: #161616; color: var(--cml-t1); text-decoration: none; }
.cml:focus-visible { outline: 2px solid var(--cml-neon); outline-offset: 2px; }
.cml-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cml-mark { display: block; flex-shrink: 0; border-radius: 6px; }
.cml-by { display: block; width: 30px; height: 30px; border-radius: 4px; flex-shrink: 0; }
.cml-title { font-family: var(--cml-display); font-size: 19px; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
/* So cong cu trong "khung cat" cua dau L: goc L duoi-trai + 1 pixel vuong tren-phai */
.cml-num { position: relative; display: inline-flex; align-items: baseline; gap: 6px; align-self: flex-start; margin: 4px 0 2px; padding: 4px 10px 6px 10px; }
.cml-num::before { content: ''; position: absolute; left: 0; bottom: 0; width: 12px; height: 12px; border-left: 3px solid var(--cml-neon); border-bottom: 3px solid var(--cml-neon); }
.cml-num::after { content: ''; position: absolute; right: 0; top: 0; width: 5px; height: 5px; background: var(--cml-neon); }
.cml-num span { font-family: var(--cml-display); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cml-num small { color: var(--cml-t2); font-size: 13px; font-weight: 500; white-space: nowrap; }
/* Luoi pixel vuong: o sang = ty le cong cu; 1 o nhap nhay khi re chuot (1.0 -> 0.4, 900ms) */
.cml-px { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin: 4px 0 2px; }
.cml-px i { aspect-ratio: 1; background: var(--cml-s3); }
.cml-px i.on { background: rgba(212, 255, 58, .55); }
.cml-px i.on.last { background: var(--cml-neon); }
.cml:hover .cml-px i.last, .cml:focus-visible .cml-px i.last { animation: cmlPulse .9s ease-in-out infinite alternate; }
@keyframes cmlPulse { from { opacity: 1; } to { opacity: .4; } }
.cml-line { color: var(--cml-t2); font-size: 12.5px; line-height: 1.4; }
.cml-cta { display: flex; align-items: center; justify-content: center; height: 40px; margin-top: 8px; border-radius: 14px; background: var(--cml-neon); color: var(--cml-ink); font-size: 14px; font-weight: 700; }
.cml:hover .cml-cta { background: #C3EE24; }
.cmt-side > .cml { flex: 1; }
/* Ban hang ngang (man Cong cu tren di dong) */
.cml--row { flex-direction: row; align-items: center; gap: 12px; margin: 10px 16px 6px; padding: 14px; }
.cml--row .cml-mark { border-radius: 9px; }
.cml-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.cml--row .cml-title { font-size: 17px; }
.cml--row .cml-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cml-pair { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cml--row .cml-by { width: 40px; height: 40px; border-radius: 5px; }
.cml--row .cml-cta { margin: 0; height: 36px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .cml:hover .cml-px i.last, .cml:focus-visible .cml-px i.last { animation: none; } }

/* ---------- The tran vien (chu quan ly: "full height, khong dem toi mep dropdown") ----------
   Khoa hoc: cot trai = 2 the sat mep tren/trai/duoi panel, chia doi chieu cao; goc bo cua panel cat the.
   Cong cu: the Premium Account sat mep tren/phai/duoi. Dem trong the giu nguyen. */
.cmh-panel--courses, .cmh-panel--tools { overflow: hidden; }
.cmh-panel--courses > .cmk, .cmh-panel--tools > .cmt { max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain; }
.cmk-foot { display: flex; align-items: center; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--cmh-soft); }
.cmt { grid-template-columns: 196px minmax(0, 1fr) 232px; }
.cmt-side { padding: 0; }
.cmt-side > .cml { flex: 1; border-radius: 0; box-shadow: none; padding: 20px 18px 18px; }
.cmt-side > .cml:focus-visible { outline-offset: -3px; }
.cmt-rail .cmt-suggest { display: flex; align-items: center; gap: 8px; align-self: stretch; margin-top: auto; padding: 0 10px; height: 34px; border-radius: 8px; font-size: 13px; color: var(--cmh-muted); }
.cmt-rail .cmt-suggest .cmi { color: var(--cmh-faint); }
.cmt-rail .cmt-suggest:hover .cmi { color: var(--cmh-ink); }
.cmn .cml--row { margin: 0 0 8px; border-radius: 0; box-shadow: none; padding: 16px 20px; }
.cmn-screen[data-screen="courses"] .cmn-scroll, .cmn-screen[data-screen="tools"] .cmn-scroll { padding-top: 0; }

/* =====================================================================================
   The Đào tạo 1-1 / Đào tạo doanh nghiệp (.cmb, SiteNav::trainingCard): nen sang co luoi 1px rat nhat + 1 tong mau rieng,
   cum icon khoa hoc THAT (noi, xoay nhe, chong nhau, bong mem + vien sang tren), tieu de lon Be Vietnam Pro 800,
   2-3 diem manh (dau check mau cua the), nut mui ten. Tran vien: cot trai menu Khoa hoc (chia doi chieu cao) / sat mep man di dong.
   ===================================================================================== */
.cmk-left { display: flex; flex-direction: column; border-right: 1px solid var(--cmh-soft); }
.cmb {
    --cmb-bg: #FFF1EC; --cmb-grid: rgba(205, 1, 3, .07); --cmb-acc: #D93A1E; --cmb-ink: #0B0B0C; --cmb-ink-2: rgba(11, 11, 12, .78);
    position: relative; isolation: isolate; display: flex; flex-direction: column; flex: 1 1 0; min-height: 300px; overflow: hidden;
    background-color: var(--cmb-bg);
    background-image: linear-gradient(var(--cmb-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cmb-grid) 1px, transparent 1px);
    background-size: 20px 20px; background-position: -1px -1px;
    color: var(--cmb-ink); text-decoration: none;
}
.cmb--biz { --cmb-bg: #E9F7F1; --cmb-grid: rgba(6, 118, 71, .08); --cmb-acc: #067647; }
.cmb + .cmb { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--cmb-ink) 8%, transparent); }
.cmb:hover, .cmb:focus-visible { color: var(--cmb-ink); text-decoration: none; }
.cmb:focus-visible { outline: 2px solid var(--cmb-acc); outline-offset: -3px; }
/* Cum icon: o "app tile" noi - bong mem, vien sang phia tren, xoay nhe; o cuoi cho tran mep phai */
.cmb-cluster { position: relative; flex: 0 0 auto; height: 122px; margin-top: 8px; }
.cmb-ic {
    position: absolute; z-index: var(--z, 1); left: calc(var(--l) - var(--s) / 2); top: calc(var(--t) - var(--s) / 2); width: var(--s); height: var(--s);
    border-radius: 24%; overflow: hidden; background: var(--cmk-tb, #fff);
    transform: rotate(var(--r));
    box-shadow: 0 1px 1px rgba(11, 11, 12, .08), 0 6px 10px -4px rgba(11, 11, 12, .22), 0 16px 24px -12px rgba(11, 11, 12, .3);
    transition: transform .45s var(--cmh-ease), box-shadow .45s var(--cmh-ease);
}
.cmb-ic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmb-ic::before { content: attr(data-mono); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--cmk-tf, #344054); font-size: 20px; font-weight: 800; }
.cmb-ic:has(img)::before { content: none; }
.cmb-ic::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 42%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(11, 11, 12, .06); }
.cmb:hover .cmb-ic, .cmb:focus-visible .cmb-ic {
    transform: translate(var(--dx), calc(var(--dy) - 4px)) rotate(calc(var(--r) * 1.25));
    box-shadow: 0 1px 1px rgba(11, 11, 12, .08), 0 10px 14px -6px rgba(11, 11, 12, .26), 0 24px 34px -14px rgba(11, 11, 12, .38);
}
.cmb-body { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 0 20px 20px; }
.cmb-title { font-size: 29px; font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.cmb-row { display: block; }
/* Mui ten o goc duoi phai the: danh sach diem manh dung tron be ngang (muc cuoi ngan nen khong cham nut) */
.cmb-row .cmb-go { position: absolute; right: 20px; bottom: 20px; }
.cmb-usps { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.cmb-usps li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--cmb-ink-2); }
.cmb-usps .cmi { color: var(--cmb-acc); }
.cmb-go { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--cmb-ink); color: var(--cmb-bg); transition: transform .2s var(--cmh-ease), background-color .2s; }
.cmb:hover .cmb-go { transform: translate(2px, -2px); background: var(--cmb-acc); }
/* Di dong: the rong toan man, cum nho hon */
.cmn-badges { display: flex; flex-direction: column; }
.cmn-badges .cmb { flex: none; min-height: 0; }
.cmn-badges .cmb-cluster { height: 108px; transform: scale(.9); transform-origin: left top; margin-right: -10%; }
.cmn-badges .cmb-body { padding: 0 20px 22px; }
.cmn-badges .cmb-title { font-size: 28px; }
@media (max-height: 760px) { .cmk-left .cmb-u3 { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .cmb-ic, .cmb-go { transition: none; }
    .cmb:hover .cmb-ic, .cmb:focus-visible .cmb-ic { transform: rotate(var(--r)); }
    .cmb:hover .cmb-go { transform: none; }
}

/* ---------- Dong cong cu: o icon nen nhat theo nhom + nhan Hot / AI / Premium ---------- */
.cmt-ico { display: flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: var(--cmt-bg, var(--cm-surface-2)); color: var(--cmt-fg, var(--cm-text-2)); font-size: 14px; }
.cmt-g-image { --cmt-bg: #FEF0E7; --cmt-fg: #C4320A; }
.cmt-g-media { --cmt-bg: #EEF0FF; --cmt-fg: #4338CA; }
.cmt-g-other { --cmt-bg: #FCEFF6; --cmt-fg: #B0306D; }
.cmt-g-color { --cmt-bg: #E9F8F0; --cmt-fg: #08744A; }
.cmt-g-study { --cmt-bg: #E8F6F9; --cmt-fg: #0B6E83; }
.cmh .cmt-row, .cmn .cmt-row { gap: 10px; padding: 0 8px; }
.cmh .cmt-row { height: 42px; }
.cmt-pane { grid-auto-rows: 42px !important; }
.cmh .cmt-results { grid-auto-rows: 42px; }
.cmt-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cmt-tags { display: inline-flex; gap: 4px; flex-shrink: 0; }
.cmt-tag { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; }
.cmt-tag .cmi { flex-shrink: 0; }
.cmt-tag--hot { background: var(--cmh-hot-bg); color: var(--cmh-hot-fg); }
.cmt-tag--ai { background: var(--cmh-ai-bg); color: var(--cmh-ai-fg); }
.cmt-tag--pre { background: var(--cmh-pre-bg); color: var(--cmh-pre-fg); }
.cmn .cmn-tool .cmt-ico { flex-basis: 34px; width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }
.cmn .cmn-tool .cmt-tag { height: 20px; font-size: 12px; }
.cmn .cmt-row.cmn-tool { height: 56px; }
/* Hep: Premium chi con vuong mien */
/* Menu di dong - man Cong cu: dong 1 dong lon */
.cmn .cmt-row.cmn-tool { height: 56px; gap: 14px; padding: 0 20px; border-radius: 0; font-size: 16px; }
.cmn .cmt-row.cmn-tool:active { background: var(--cmh-soft); }

/* ---------- Cum icon desktop: bo cuc A "hero + ve tinh" (SiteNav::CLUSTERS['a']) ---------- */
.cmk-left .cmb { min-height: 300px; }
/* A: hero + ve tinh - cum can giua vung tren (~55%), khong khoang trong thua */
.cmb--la .cmb-cluster { flex: 1 1 55%; height: auto; min-height: 150px; margin: 16px 0 4px; }
.cmb--la .cmb-ic.is-hero { box-shadow: 0 1px 1px rgba(11, 11, 12, .1), 0 10px 16px -6px rgba(11, 11, 12, .3), 0 26px 36px -16px rgba(11, 11, 12, .42); }
.cmb--la .cmb-ic:not(.is-hero) { box-shadow: 0 1px 1px rgba(11, 11, 12, .06), 0 5px 9px -4px rgba(11, 11, 12, .18), 0 12px 18px -10px rgba(11, 11, 12, .22); }
.cmb--la .cmb-body { margin-top: 0; }

/* =====================================================================================
   Giao dien toi (data-theme="dark" tren <html>, chi khi nguoi dung chon; mac dinh sang).
   Phan lon header dung token goc nen tu doi; o day chi cac mau "nhan" co chu y: tong mau nhat cua o icon / nhan / the dao tao
   chuyen sang ban toi cung sac do (nen tram, chu sang). The Premium Account (Labs) da la nen toi, giu nguyen.
   ===================================================================================== */
:root[data-theme="dark"] :is(.cmh, .cmn, .cmh-pal) {
    --cmh-pal-dim: rgba(0, 0, 0, .6);
    --cmh-hot-bg: #3A1D10; --cmh-hot-fg: #FDA37C;
    --cmh-ai-bg: #261E45; --cmh-ai-fg: #C4B5FD;
    --cmh-pre-bg: #33270A; --cmh-pre-fg: #FDC74A;
}
:root[data-theme="dark"] .cmh.is-scrolled .cmh-bar { box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .cmt-g-image { --cmt-bg: #34200F; --cmt-fg: #FDA37C; }
:root[data-theme="dark"] .cmt-g-media { --cmt-bg: #1F2147; --cmt-fg: #A5B4FC; }
:root[data-theme="dark"] .cmt-g-other { --cmt-bg: #3A1A2C; --cmt-fg: #F5A3C7; }
:root[data-theme="dark"] .cmt-g-color { --cmt-bg: #10301F; --cmt-fg: #6EE7A8; }
:root[data-theme="dark"] .cmt-g-study { --cmt-bg: #0E2D35; --cmt-fg: #67D7EC; }
:root[data-theme="dark"] .cmk-t1 { --cmk-tb: #3A1A18; --cmk-tf: #FCA5A0; }
:root[data-theme="dark"] .cmk-t2 { --cmk-tb: #3A2212; --cmk-tf: #FDB98A; }
:root[data-theme="dark"] .cmk-t3 { --cmk-tb: #10301F; --cmk-tf: #6EE7A8; }
:root[data-theme="dark"] .cmk-t4 { --cmk-tb: #10284A; --cmk-tf: #93C5FD; }
:root[data-theme="dark"] .cmk-t5 { --cmk-tb: #261E45; --cmk-tf: #C4B5FD; }
:root[data-theme="dark"] .cmk-t6 { --cmk-tb: #3A1530; --cmk-tf: #F5A3D8; }
/* The dao tao: tong mau toi (chu sang), luoi va diem nhan sang hon */
:root[data-theme="dark"] .cmb { --cmb-bg: #2A1612; --cmb-grid: rgba(255, 140, 110, .08); --cmb-acc: #FF8A66; --cmb-ink: #F7F2EE; --cmb-ink-2: rgba(247, 242, 238, .78); }
:root[data-theme="dark"] .cmb--biz { --cmb-bg: #0F2620; --cmb-grid: rgba(110, 231, 168, .08); --cmb-acc: #6EE7A8; }
:root[data-theme="dark"] .cmb-ic { box-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 6px 10px -4px rgba(0, 0, 0, .5), 0 16px 24px -12px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .cmb--la .cmb-ic.is-hero { box-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 10px 16px -6px rgba(0, 0, 0, .55), 0 26px 36px -16px rgba(0, 0, 0, .7); }
/* The Labs (Premium Account): tach khoi nen panel toi bang 1 vien mong */
:root[data-theme="dark"] .cmt-side > .cml { box-shadow: inset 1px 0 0 var(--cm-line); }

/* ---------- Doi giao dien (Sáng / Tối / Hệ thống) ---------- */
/* Trang landing khoa giao dien sang (data-theme-lock): an moi nut doi */
html[data-theme-lock] .cm-theme-ui { display: none !important; }
/* Thong bao (mau HTML tu app.js): theo token */
.cmh-notif-list .dropdown-item { color: var(--cm-text); }
.cmh-notif-list .dropdown-item:hover, .cmh-notif-list .dropdown-item:focus { background: var(--cm-surface-2); color: var(--cm-text); }
.cmh-notif-list .bg-light { background-color: var(--cm-surface-2) !important; }
.cmh-notif-list .text-secondary { color: var(--cm-muted) !important; }

/* ---------- Cong cu rong (nhu Khoa hoc): dong 2 dong - o icon 36px · ten 15px/600 + nhan · 1 dong mo ta ---------- */
.cmt { grid-template-columns: 212px minmax(0, 1fr) 272px; }
.cmt-mid { padding: 16px 18px 12px; }
.cmt-pane { grid-auto-rows: 62px !important; column-gap: 10px; row-gap: 2px; }
.cmh .cmt-results { grid-auto-rows: 62px; max-height: 400px; column-gap: 10px; }
.cmh .cmt-row.cmt-row--2, .cmn .cmt-row.cmt-row--2 { height: 62px; gap: 12px; padding: 0 10px; border-radius: 12px; white-space: normal; }
.cmt-row--2 .cmt-ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.cmt-ico > .icon { width: 18px; height: 18px; }
.cmt-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cmt-l1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cmt-row--2 .cmt-name { font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.cmt-desc { color: var(--cm-muted); font-size: 13px; font-weight: 400; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmh .cmt-row--2:hover .cmt-desc { color: var(--cm-text-2); }
.cmt-side > .cml { padding: 22px 20px 20px; }
@media (max-width: 1199.98px) { .cmt { grid-template-columns: 196px minmax(0, 1fr) 232px; } }
/* Di dong: dong 2 dong cao hon */
.cmn .cmt-row.cmn-tool.cmt-row--2 { height: 68px; padding: 0 20px; border-radius: 0; gap: 14px; }
.cmn .cmt-row--2 .cmt-name { font-size: 16px; font-weight: 500; }
.cmn .cmt-row--2 .cmt-desc { font-size: 13.5px; }

/* Nut doi giao dien: 2 icon chong nhau, hien icon cua giao dien DANG dung (sang = mat troi, toi = mat trang); doi kem xoay + mo nhe */
.cmh-theme-btn .cmi { position: absolute; transition: transform .3s var(--cmh-ease), opacity .2s ease; }
.cmh-theme-btn .cmh-th-moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .cmh-theme-btn .cmh-th-sun { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="dark"] .cmh-theme-btn .cmh-th-moon { opacity: 1; transform: none; }
/* Trang thai trong co heo 3D (Nhóm lớp, Giáo trình, Thông báo) */
.cmh-empty-pig { display: block; width: 72px; height: 72px; margin: 0 auto 10px; object-fit: contain; }
.cmh-notif-list .cmh-empty { padding: 28px 16px; }
@media (prefers-reduced-motion: reduce) { .cmh-theme-btn .cmi { transition: none; } }
/* Menu di dong - muc tai khoan co icon (cung bo icon voi menu tai khoan desktop) */
.cmn-small > .cmi { color: var(--cm-faint); flex-shrink: 0; }
.cmn-small-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.cmn-lang > span { margin-right: auto; }
.cmh-panel--user .cmh-lang--row > .cmi { margin-right: 10px; }

/* ---------- Premium Account (Labs) - bo cuc doc lap day cot: tren logo + kicker · giua "120+" tren nen pixel · 3 dac quyen · duoi nut ---------- */
.cml--pass { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0; padding: 22px 20px 20px; }
.cml--pass > *:not(.cml-px) { position: relative; z-index: 1; }
.cml--pass .cml-top { align-items: center; gap: 6px; margin: 0; }
.cml-kicker { margin-left: auto; color: var(--cml-t2); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
/* Luoi pixel: hoa van nhat sau con so, mo dan xuong duoi */
.cml--pass .cml-px { position: absolute; z-index: 0; left: 20px; right: 20px; top: 76px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); }
.cml--pass .cml-px i { aspect-ratio: 1; background: rgba(255, 255, 255, .035); }
.cml--pass .cml-px i.on { background: rgba(212, 255, 58, .065); }
.cml--pass .cml-px i.hi { background: rgba(212, 255, 58, .3); }
.cml--pass .cml-px i.last { background: var(--cml-neon); }
.cml--pass:hover .cml-px i.last { animation: cmlPulse .9s ease-in-out infinite alternate; }
.cml-hero { display: flex; flex-direction: column; gap: 4px; margin: 34px 0 0; }
.cml-big { font-family: var(--cml-display); font-size: 62px; font-weight: 800; line-height: .95; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--cml-t1); }
.cml-big em { font-style: normal; color: var(--cml-neon); }
.cml-sub { color: var(--cml-t1); font-size: 14px; font-weight: 500; opacity: .86; }
.cml-perks { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.cml-perks li { display: flex; align-items: flex-start; gap: 9px; color: var(--cml-t1); font-size: 13.5px; line-height: 1.35; }
.cml-perks li .cml-ck { margin-top: 1px; }
.cml-ck { display: flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 16px; background: var(--cml-neon); color: var(--cml-ink); }
.cml-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 24px; }
.cml--pass .cml-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin: 0; border-radius: 14px; background: var(--cml-neon); color: var(--cml-ink); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.cml--pass .cml-cta:hover, .cml--pass .cml-cta:focus-visible { background: #C3EE24; color: var(--cml-ink); }
.cml--pass .cml-cta:focus-visible, .cml-link:focus-visible { outline: 2px solid var(--cml-neon); outline-offset: 2px; }
.cml--pass .cml-cta .cmi { transition: transform .15s; }
.cml--pass .cml-cta:hover .cmi { transform: translateX(2px); }
.cml-link { align-self: center; color: var(--cml-t2); font-size: 13px; font-weight: 500; text-decoration: none; }
.cml-link:hover { color: var(--cml-t1); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .cml--pass:hover .cml-px i.last { animation: none; } }

/* ---------- Thong bao: dong gon (anh 28px, chu 13.5/1.45, ten 600, gio 12px, chua doc = cham nho) ---------- */
.cmh-notif-list { padding: 4px; }
.cmh-ntf { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 26px 10px 10px; border-radius: 10px; color: var(--cm-text); text-decoration: none; }
.cmh-ntf + .cmh-ntf { margin-top: 2px; }
.cmh-ntf:hover, .cmh-ntf:focus-visible { background: var(--cm-surface-2); color: var(--cm-text); }
.cmh-ntf-av { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--cm-surface-2) center / cover no-repeat; }
.cmh-ntf-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cmh-ntf-msg { font-size: 13.5px; font-weight: 400; line-height: 1.45; color: var(--cm-text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmh-ntf-msg :is(b, strong) { font-weight: 600; color: var(--cm-text); }
.cmh-ntf small { color: var(--cm-muted); font-size: 12px; }
.cmh-ntf-dot { position: absolute; top: 15px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--cm-accent); }
.cmh-ntf.is-unread .cmh-ntf-msg { color: var(--cm-text); }
.cmh-pop-h { font-size: 14px; font-weight: 600; padding: 12px 14px; }

/* Bang thong bao: tieu de + "Danh dau da doc" ben phai */
.cmh-pop-h--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cmh-ntf-readall { border: 0; background: none; padding: 4px 6px; margin: -4px -6px -4px 0; border-radius: 6px; color: var(--cm-link, #175CD3); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cmh-ntf-readall:hover { background: var(--cm-surface-2); }
.cmh-ntf-readall:disabled { opacity: .5; cursor: default; }

/* ===== Premium Account: vien anh dai dien + cham vuong mien, dong Premium trong menu tai khoan (he Premium Account: muc #131313 + lime #D4FF3A) ===== */
.cmh-avatar-btn { position: relative; }
.cmh-avatar-btn.is-premium { box-shadow: 0 0 0 2px var(--cm-bg), 0 0 0 3.5px #131313; }
[data-theme="dark"] .cmh-avatar-btn.is-premium { box-shadow: 0 0 0 2px var(--cm-bg), 0 0 0 3.5px #D4FF3A; }
.cmh-avatar-btn.is-premium:hover, .is-open > .cmh-avatar-btn.is-premium { box-shadow: 0 0 0 2px var(--cm-bg), 0 0 0 4px #131313; }
[data-theme="dark"] .cmh-avatar-btn.is-premium:hover, [data-theme="dark"] .is-open > .cmh-avatar-btn.is-premium { box-shadow: 0 0 0 2px var(--cm-bg), 0 0 0 4px #D4FF3A; }
.cmh-prem-dot { position: absolute; right: -5px; bottom: -4px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
                background: #131313; color: #D4FF3A; box-shadow: 0 0 0 2px var(--cm-bg); pointer-events: none; }
.cmh-prem-dot .cmi { width: 10px; height: 10px; stroke-width: 2.25; }
.cmn-me.is-premium .cmn-me-avatar { box-shadow: 0 0 0 2px var(--cm-bg), 0 0 0 3.5px #131313; }
[data-theme="dark"] .cmn-me.is-premium .cmn-me-avatar { box-shadow: 0 0 0 2px var(--cm-bg), 0 0 0 3.5px #D4FF3A; }

.cmh-prem { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; padding: 8px 10px; border-radius: 10px; color: var(--cmh-ink); text-decoration: none; }
.cmh-prem:hover { background: var(--cmh-soft); color: var(--cmh-ink); text-decoration: none; }
.cmh-prem-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; background: var(--cmh-soft); color: var(--cmh-muted); }
.cmh-prem-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; flex: 1; }
.cmh-prem-txt b { font-size: 13.5px; font-weight: 600; }
.cmh-prem-txt small { font-size: 12px; color: var(--cmh-muted); }
.cmh-prem-go { color: var(--cmh-faint); flex-shrink: 0; }
/* Dang Premium: the muc nho, chu sang, vuong mien lime */
.cmh-prem.is-on { background: #131313; color: #F4F4F0; }
.cmh-prem.is-on:hover { background: #000; color: #F4F4F0; }
.cmh-prem.is-on .cmh-prem-ic { background: #D4FF3A; color: #0A0A0A; }
.cmh-prem.is-on .cmh-prem-txt small { color: #A1A19A; }
.cmh-prem.is-on .cmh-prem-go { color: #A1A19A; }
[data-theme="dark"] .cmh-prem.is-on { background: #1D1D1B; box-shadow: inset 0 0 0 1px #2F2F2C; }
.cmh-prem--m { margin: 8px 0 4px; padding: 12px; border-radius: 14px; }
.cmh-prem--m .cmh-prem-ic { width: 36px; height: 36px; border-radius: 10px; }
.cmh-prem--m .cmh-prem-txt b { font-size: 15px; }
.cmh-prem--m .cmh-prem-txt small { font-size: 13px; }
/* Cong cu co anh dai dien rieng (thay icon) trong menu: config nav_hot_tools + public/images/tools/nav/<slug>.webp */
.cmt-ico--img { padding: 0; overflow: hidden; background: var(--cm-surface-2); box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .06); }
.cmt-ico--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Trang /tools: logo khoi lap phuong ColorME <-> Labs (header.blade.php). Mat truoc = ColorME, mat ben phai = Labs. */
.cmh-logo--cube { perspective: 260px; }
.cmh-cube { position: relative; display: block; width: 40px; height: 40px; transform-style: preserve-3d; transform: translateZ(-20px) rotateY(0deg); transition: transform 1s cubic-bezier(.65, 0, .25, 1); }
.cmh-cube img { position: absolute; inset: 0; backface-visibility: hidden; }
.cmh-cube__f { transform: rotateY(0deg) translateZ(20px); }
.cmh-cube__s { transform: rotateY(90deg) translateZ(20px); }
.cmh-logo--cube.is-labs .cmh-cube { transform: translateZ(-20px) rotateY(-90deg); }
.cmh-logo--cube:hover .cmh-cube, .cmh-logo--cube:focus-visible .cmh-cube { transform: translateZ(-20px) rotateY(0deg); transition-duration: .45s; }
@media (prefers-reduced-motion: reduce) {
    .cmh-cube, .cmh-cube img { transition: opacity .3s; }
    .cmh-cube, .cmh-logo--cube.is-labs .cmh-cube { transform: none; }
    .cmh-cube img { transform: none !important; }
    .cmh-cube__s { opacity: 0; }
    .cmh-logo--cube.is-labs .cmh-cube__s { opacity: 1; }
    .cmh-logo--cube:hover .cmh-cube__s { opacity: 0; }
}
