/* 17/10/2026: tách từ resources/views/components/portal-layout.blade.php (dòng 113) để trình duyệt lưu đệm — sửa trực tiếp tệp này */
        .portal-embedded-document body { min-height:100vh; background:#fff !important; background-image:none !important; }
        .portal-embedded-document body::before,
        .portal-embedded-document body::after,
        .portal-embedded-document body > header,
        .portal-embedded-document body > footer { display:none !important; }
        .portal-embedded-document body > main {
            width:100% !important;
            max-width:none !important;
            min-height:100vh !important;
            margin:0 !important;
            padding:20px 24px 40px !important;
        }
        @media (max-width:760px) {
            .portal-embedded-document body > main { padding:14px 12px 28px !important; }
        }

        /* Cổng học viên dùng nền riêng, chữ to hơn cổng quản trị cho dễ đọc trên điện thoại */
        html, body { max-width:100%; overflow-x:clip; }
        body { background: var(--brand-page, #fff); }
        .pcard { background:#fff; border:1px solid var(--lt-line,#eaf0f9); border-radius:var(--lt-r-12,1rem); box-shadow:var(--lt-flat,0 1px 2px rgba(61,71,81,.06)); }
        .pbtn { border-radius:var(--lt-r-12,.85rem); padding:.75rem 1.25rem; font-weight:600; }

        /* Thanh học viên dùng chung cho dashboard, bài giảng và cài đặt tài khoản. */
        .member-dashboard-body { margin:0; background:var(--brand-page, #fff) !important; background-image:none !important; color:var(--lt-ink,#171717); }
        .member-dashboard-body::before, .member-dashboard-body::after { display:none !important; }
        .member-dashboard-main { width:100%; min-height:calc(100vh - 76px); }
        .member-topbar { position:sticky; top:0; z-index:50; width:100%; border-bottom:1px solid var(--lt-line,#e5e5e5); background:rgba(255,255,255,.94); backdrop-filter:saturate(180%) blur(10px); -webkit-backdrop-filter:saturate(180%) blur(10px); }
        .member-topbar__inner { display:grid; width:100%; min-height:76px; padding:10px 24px; grid-template-columns:auto 1fr auto; align-items:center; gap:24px; }
        .member-brand { display:inline-flex; min-width:190px; align-items:center; text-decoration:none; }
        .member-brand__logo { display:block; width:auto; height:auto; max-width:190px; max-height:56px; object-fit:contain; }
        .member-brand.member-brand--student { flex-direction:column; justify-content:center; gap:3px; text-align:center; }
        .member-brand.member-brand--student .member-brand__logo { max-width:180px; max-height:38px; }
        .member-brand.member-brand--student .sj-brand-copy { display:block; max-width:190px; overflow:hidden; color:var(--lt-ink,#243247); font-size:13px; font-weight:700; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
        .member-topbar__welcome { display:none; margin:0; }
        .member-topbar__menu { display:none; width:44px; height:44px; align-items:center; justify-content:center; border:1px solid var(--lt-line,#e5e5e5); border-radius:var(--lt-r-8,10px); background:#fff; color:var(--lt-sub,#525252); cursor:pointer; }
        .member-topbar__nav, .member-topbar__right, .member-topbar__link { display:flex; align-items:center; }
        .member-topbar__nav { gap:6px; }
        .member-topbar__link { height:38px; padding:0 13px; gap:8px; border-radius:var(--lt-r-8,9px); color:var(--lt-sub,#525252); font-size:14px; font-weight:500; text-decoration:none; transition:.16s ease; }
        .member-topbar__link:hover, .member-topbar__link.is-active { background:#f0f9ff; color:#2c7bf7; }
        .member-topbar__right { justify-content:flex-end; gap:10px; }
        .member-account, .member-notifications { position:relative; }
        body.samio-internal-theme.portal-theme > header .member-pwa-install { position:relative; display:inline-flex; width:44px; height:44px; flex:0 0 44px; align-items:center; justify-content:center; border:1px solid transparent; border-radius:var(--lt-r-12,11px); background:transparent; color:var(--lt-sub,#566474); font:inherit; cursor:pointer; transition:.16s ease; }
        body.samio-internal-theme.portal-theme > header .member-pwa-install:hover, body.samio-internal-theme.portal-theme > header .member-pwa-install:focus-visible { outline:0; border-color:transparent; background:var(--lt-soft,#f3f7fb); color:#2676ec; }
        .member-pwa-install__glyph { position:relative; display:inline-flex; width:22px; height:24px; align-items:center; justify-content:center; font-size:19px; }
        .member-pwa-install__arrow { position:absolute; right:-3px; bottom:-2px; display:inline-flex; width:12px; height:12px; align-items:center; justify-content:center; border:2px solid #fff; border-radius:999px; background:#2676ec; color:#fff; font-size:6px; }
        body.samio-internal-theme.portal-theme > header .member-notifications__toggle { position:relative; display:inline-flex; width:44px; height:44px; align-items:center; justify-content:center; border:1px solid transparent !important; border-radius:var(--lt-r-12,11px); background:transparent !important; color:var(--lt-sub,#566474) !important; box-shadow:none !important; font:inherit; font-size:18px; cursor:pointer; transition:.16s ease; }
        body.samio-internal-theme.portal-theme > header .member-notifications__toggle:hover, body.samio-internal-theme.portal-theme > header .member-notifications__toggle[aria-expanded="true"] { border-color:transparent !important; background:var(--lt-soft,#f3f7fb) !important; color:#2676ec !important; }
        .member-notifications__badge { position:absolute; top:4px; right:3px; display:inline-flex; min-width:17px; height:17px; padding:0 4px; align-items:center; justify-content:center; border:2px solid #fff; border-radius:999px; background:#ef4444; color:#fff; font-size:9px; font-weight:800; line-height:1; }
        .member-notifications__badge[hidden] { display:none !important; }
        .member-notifications__menu { position:absolute; z-index:80; top:calc(100% + 9px); right:0; width:min(370px,calc(100vw - 24px)); overflow:hidden; border:1px solid var(--lt-line,#e5e7eb); border-radius:var(--lt-r-12,14px); background:#fff; box-shadow:0 20px 42px -16px rgba(15,23,42,.30),0 8px 18px -10px rgba(15,23,42,.18); }
        .member-notifications__menu[hidden] { display:none !important; }
        .member-notifications__header { display:flex; min-height:52px; padding:12px 15px; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--lt-line,#eef1f4); }
        .member-notifications__header strong { color:var(--lt-ink,#1f2937); font-size:14px; }
        .member-notifications__header span { color:var(--lt-mute,#8a96a3); font-size:var(--lt-fs-12,10.5px); }
        .member-notifications__list { max-height:min(430px,calc(100vh - 150px)); overflow-y:auto; }
        .member-notifications__item { display:flex; padding:13px 15px; gap:11px; border-bottom:1px solid var(--lt-line,#f0f2f4); color:inherit; text-decoration:none; transition:.14s ease; }
        .member-notifications__item:last-child { border-bottom:0; }
        .member-notifications__item:hover, .member-notifications__item:focus-visible { outline:0; background:var(--lt-soft,#f7fbff); }
        .member-notifications__icon { display:inline-flex; width:34px; height:34px; flex:0 0 34px; align-items:center; justify-content:center; border-radius:var(--lt-r-8,10px); background:#eaf3ff; color:#2676ec; font-size:13px; }
        .member-notifications__copy { min-width:0; flex:1; }
        .member-notifications__copy strong, .member-notifications__copy span, .member-notifications__copy time { display:block; }
        .member-notifications__copy strong { overflow:hidden; color:var(--lt-ink,#273444); font-size:var(--lt-fs-13,12.5px); line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
        .member-notifications__copy span { display:-webkit-box; margin-top:4px; overflow:hidden; color:var(--lt-sub,#667686); font-size:var(--lt-fs-12,11px); line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
        .member-notifications__copy time { margin-top:5px; color:var(--lt-mute,#99a3ae); font-size:9.5px; }
        .member-notifications__empty { padding:30px 18px; color:var(--lt-mute,#7b8794); text-align:center; font-size:12px; line-height:1.55; }
        .member-notifications__empty i { display:block; margin-bottom:9px; color:#b3bdc7; font-size:22px; }
        body.samio-internal-theme.portal-theme > header .member-topbar__student { display:flex; min-width:0; padding:2px 6px 2px 2px; align-items:center; gap:9px; border:1px solid transparent !important; border-radius:var(--lt-r-8,10px); background:transparent !important; color:inherit !important; box-shadow:none !important; font:inherit; text-align:left; cursor:pointer; transition:.16s ease; }
        body.samio-internal-theme.portal-theme > header .member-topbar__student:hover, body.samio-internal-theme.portal-theme > header .member-topbar__student[aria-expanded="true"] { border-color:transparent !important; background:var(--lt-soft,#f5f7fa) !important; }
        .member-topbar__avatar { display:inline-flex; width:38px; height:38px; flex:0 0 38px; overflow:hidden; align-items:center; justify-content:center; border:2px solid #fff; border-radius:50%; background:#dff2fe; box-shadow:0 0 0 1px #d9e5ef; color:#1677d2; font-size:14px; font-weight:700; }
        .member-topbar__avatar img { width:100%; height:100%; object-fit:cover; }
        .member-topbar__identity { display:flex; min-width:0; flex-direction:column; }
        .member-topbar__identity strong { max-width:170px; overflow:hidden; color:var(--lt-ink,#171717); font-size:var(--lt-fs-13,12.5px); line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
        .member-topbar__identity small { color:var(--lt-sub,#637381); font-size:var(--lt-fs-12,10.5px); }
        .member-topbar__chevron { color:var(--lt-mute,#94a3b8); font-size:10px; transition:transform .16s ease; }
        .member-topbar__student[aria-expanded="true"] .member-topbar__chevron { transform:rotate(180deg); }
        .member-account__menu { position:absolute; z-index:80; top:calc(100% + 9px); right:0; width:244px; padding:6px; border:1px solid var(--lt-line,#e5e7eb); border-radius:12px; background:#fff; box-shadow:0 18px 38px -16px rgba(15,23,42,.28),0 6px 14px -8px rgba(15,23,42,.18); }
        .member-account__menu[hidden] { display:none !important; }
        .member-account__summary { display:flex; padding:10px; align-items:center; gap:10px; border-bottom:1px solid var(--lt-line,#f0f1f3); }
        .member-account__summary .member-topbar__avatar { width:42px; height:42px; flex-basis:42px; }
        .member-account__summary-copy { min-width:0; }
        .member-account__summary-copy strong, .member-account__summary-copy span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
        .member-account__summary-copy strong { color:var(--lt-ink,#1f2937); font-size:13px; }
        .member-account__summary-copy span { margin-top:2px; color:var(--lt-mute,#7b8794); font-size:var(--lt-fs-12,11px); }
        .member-account__item { display:flex; width:100%; min-height:44px; margin-top:2px; padding:9px 11px; align-items:center; gap:10px; border:0; border-radius:8px; background:transparent; color:var(--lt-ink,#374151); font:inherit; font-size:13px; font-weight:550; text-align:left; text-decoration:none; cursor:pointer; transition:.14s ease; }
        .member-account__item i { width:18px; color:var(--lt-mute,#7b8794); text-align:center; }
        .member-account__item:hover, .member-account__item:focus-visible { outline:0; background:#f0f9ff; color:#2c7bf7; }
        .member-account__item:hover i, .member-account__item:focus-visible i { color:#2c7bf7; }
        .member-account__item--danger:hover, .member-account__item--danger:focus-visible { background:#fff5f2; color:#d15332; }
        .member-account__item--danger:hover i, .member-account__item--danger:focus-visible i { color:#d15332; }
        .member-account__divider { height:1px; margin:5px 4px; background:var(--lt-soft2,#f0f1f3); }
        .member-mobile-nav,.member-mobile-nav__backdrop { display:none; }
        @media (max-width:900px) {
            body.portal-minimal-chrome { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
            body.portal-minimal-chrome > header:not(.member-topbar),
            body.portal-minimal-chrome > footer { display:none !important; }
            body.portal-minimal-chrome > main { padding-top:0 !important; }
            .member-dashboard-main { min-width:0; min-height:calc(100dvh - 62px); }
            .member-topbar { padding-top:env(safe-area-inset-top); }
            .member-topbar__inner { min-height:62px; padding:9px max(12px,env(safe-area-inset-right)) 9px max(12px,env(safe-area-inset-left)); grid-template-columns:44px minmax(0,1fr) auto; gap:8px; }
            .member-topbar__menu { display:inline-flex; }
            .member-brand { min-width:0; justify-content:center; }
            .member-brand__logo { max-width:min(142px,100%); max-height:40px; }
            .member-brand.member-brand--student { min-width:0; gap:2px; }
            .member-brand.member-brand--student .member-brand__logo { max-width:min(120px,100%); max-height:28px; }
            .member-brand.member-brand--student .sj-brand-copy { max-width:min(150px,calc(100vw - 150px)); font-size:var(--lt-fs-12,11px); }
            .member-topbar__nav, .member-topbar__identity, .member-topbar__chevron { display:none; }
            .member-topbar__right { gap:2px; }
            .member-topbar__student { width:44px; height:44px; padding:2px; justify-content:center; }
            .member-account__menu { position:fixed; top:calc(64px + env(safe-area-inset-top)); right:10px; width:min(300px,calc(100vw - 20px)); }
            .member-notifications__menu { position:fixed; top:calc(64px + env(safe-area-inset-top)); right:10px; width:min(370px,calc(100vw - 20px)); max-height:calc(100dvh - 76px - env(safe-area-inset-top)); }
            .member-mobile-nav { position:fixed; z-index:72; top:calc(62px + env(safe-area-inset-top)); bottom:0; left:0; display:flex; width:min(86vw,320px); padding:14px 12px max(18px,env(safe-area-inset-bottom)); flex-direction:column; gap:6px; overflow-y:auto; border-right:1px solid var(--lt-line,#e3e8ef); background:#fff; box-shadow:18px 0 42px rgba(15,23,42,.18); transform:translateX(-105%); transition:transform .2s ease; visibility:hidden; }
            .member-mobile-nav.is-open { transform:translateX(0); visibility:visible; }
            .member-mobile-nav__heading { padding:8px 10px 12px; color:var(--lt-mute,#82909f); font-size:var(--lt-fs-12,11px); font-weight:800; letter-spacing:var(--lt-ls,.08em); text-transform:var(--lt-tt,uppercase); }
            .member-mobile-nav__link { display:flex; min-height:48px; padding:0 13px; align-items:center; gap:12px; border-radius:var(--lt-r-12,11px); color:var(--lt-sub,#3e4c5d); font-size:14px; font-weight:650; text-decoration:none; }
            .member-mobile-nav__link i { width:20px; color:var(--lt-sub,#718197); text-align:center; }
            .member-mobile-nav__link:hover,.member-mobile-nav__link:focus-visible,.member-mobile-nav__link.is-active { outline:0; background:var(--lt-tint,#edf5ff); color:#226fdc; }
            .member-mobile-nav__link.is-active i { color:#226fdc; }
            .member-mobile-nav__backdrop { position:fixed; z-index:71; inset:calc(62px + env(safe-area-inset-top)) 0 0; display:block; border:0; background:rgba(15,23,42,.38); opacity:0; pointer-events:none; transition:opacity .2s ease; }
            .member-mobile-nav__backdrop.is-open { opacity:1; pointer-events:auto; }
            body.member-mobile-open { overflow:hidden; }
        }
        @media (max-width:380px) {
            .member-topbar__inner { padding-right:8px; padding-left:8px; gap:4px; }
            .member-brand__logo { max-width:112px; }
        }
    
/* 18/10/2026 (user: "Logo trên điện thoại chưa đẹp"): trên điện thoại logo trường to, rõ, canh trái; tên học sinh đã có ở ảnh đại diện nên ẩn */
@media (max-width:900px) {
    .member-brand.member-brand--student { flex-direction:row; justify-content:flex-start; align-items:center; }
    .member-brand.member-brand--student .member-brand__logo { width:auto; height:44px; max-width:min(168px,100%); max-height:44px; }
    .member-brand.member-brand--student .sj-brand-copy { display:none; }
}
/* 18/10/2026: thanh đáy điện thoại đổi mục Cá nhân thành Ôn tập → ảnh đại diện (menu Hồ sơ / Đổi mật khẩu / Đăng xuất) phải hiện cả trên trang chủ (home-v3.css ẩn ở trang có .sh-home) */
@media (max-width:760px) {
    .samio-journey-theme.samio-journey-theme.samio-journey-theme .member-topbar__right > .member-account { display:block; }
}
