/* LoopiClass · Trợ Giảng – nhận diện hệ sinh thái Loopi (v0.9). Màu sản phẩm: Class teal · Learn indigo · Home san hô; chấm "i" hổ phách. */
:root{--loopi-dot:#f59e0b;--loopi-class:#0f766e;--loopi-learn:#4f46e5;--loopi-home:#e76f51}
.lmark{width:100%;height:100%;display:block}
/* thanh bên: biểu tượng trên nền nhạt, chữ "Loopi" đậm + "Class" thường, mô tả VN nhỏ bên dưới – không gạch chéo, không ngoặc */
button.brand{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;padding:6px 8px;margin:0 0 12px;border-radius:14px;cursor:pointer;color:var(--ink);transition:background .15s}
button.brand:hover,button.brand[aria-expanded="true"]{background:var(--soft)}
button.brand:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
button.brand .logo{width:36px;height:36px;flex:none;border-radius:11px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;padding:5px;box-shadow:none}
button.brand .bname{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.15}
button.brand .wm{font:500 19px/1.1 var(--f-display,'Lexend'),sans-serif;letter-spacing:-.02em;color:var(--ink);white-space:nowrap}
button.brand .wm b{font-weight:700;color:var(--accent)}
button.brand small{font:500 12px/1.5 'Be Vietnam Pro',sans-serif;color:var(--muted);margin-top:3px;letter-spacing:0}
button.brand .chev{width:16px;height:16px;flex:none;color:var(--muted);transition:transform .2s}
button.brand[aria-expanded="true"] .chev{transform:rotate(180deg)}
.tbrand{all:unset;display:none;width:30px;height:30px;border-radius:9px;background:var(--accent-soft);color:var(--accent);padding:4px;box-sizing:border-box;cursor:pointer;flex:none}
@media (max-width:960px){.tbrand{display:block}}
/* nhóm hệ sinh thái trong điều hướng học sinh */
.snav a.eco-l{align-items:flex-start}
.snav a.eco-l span{display:flex;flex-direction:column;line-height:1.25}
.snav a.eco-l small{font-weight:500;font-size:11.5px;color:var(--muted);margin-top:2px}
/* bộ chuyển hệ sinh thái */
.loopisw{position:fixed;z-index:80;width:360px;max-width:calc(100vw - 16px);background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 48px rgba(15,23,42,.18);overflow:hidden;animation:lswIn .16s ease-out}
@keyframes lswIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.loopisw.sheet{left:0;right:0;bottom:0;top:auto;width:auto;max-width:none;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom);animation:lswUp .2s ease-out}
@keyframes lswUp{from{transform:translateY(30px);opacity:.6}to{transform:none;opacity:1}}
.lsw-head{padding:16px 16px 12px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,var(--accent-soft),transparent)}
.lsw-eco{display:flex;align-items:center;gap:10px;color:var(--accent)}
.lsw-eco .lmark.sm{width:28px;height:28px;flex:none}
.lsw-eco>span:not(.lsw-lang){display:flex;flex-direction:column;flex:1;line-height:1.2}
.lsw-eco b{font:700 15px var(--f-display,'Lexend'),sans-serif;color:var(--ink)}
.lsw-eco small{font-size:12px;color:var(--muted);margin-top:2px}
.lsw-lang{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:2px;background:var(--surface)}
.lsw-lang button{all:unset;cursor:pointer;font:600 11px 'Be Vietnam Pro',sans-serif;padding:3px 8px;border-radius:999px;color:var(--muted)}
.lsw-lang button.on{background:var(--accent);color:#fff}
.lsw-slogan{margin:12px 0 0;font:600 16px/1.35 var(--f-display,'Lexend'),sans-serif;color:var(--ink);letter-spacing:-.01em}
.lsw-alt{margin:3px 0 0;font-size:12.5px;color:var(--muted);font-style:italic}
.lsw-list{padding:8px;display:grid;gap:2px}
.lsw-item{display:flex;align-items:flex-start;gap:12px;padding:10px;border-radius:12px;text-decoration:none;color:inherit}
a.lsw-item:hover{background:var(--soft)}
.lsw-item.cur{background:var(--accent-soft)}
.lsw-item.soon{opacity:.72}
.lsw-ic{width:34px;height:34px;flex:none;border-radius:10px;background:var(--pc);padding:6px;box-sizing:border-box}
.lsw-t{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.3}
.lsw-t b{font:600 14px var(--f-display,'Lexend'),sans-serif}
.lsw-t b i{font:500 13px 'Be Vietnam Pro',sans-serif;color:var(--muted);font-style:normal}
.lsw-t small{font-size:11.5px;color:var(--muted)}
.lsw-s{font-size:13px;margin-top:4px;color:var(--ink)}
.lsw-tag{flex:none;font:600 11px 'Be Vietnam Pro',sans-serif;padding:3px 8px;border-radius:999px;background:var(--soft);color:var(--muted);white-space:nowrap}
.lsw-tag.cur{background:var(--accent);color:#fff}
.lsw-tag.go{background:color-mix(in srgb,var(--loopi-learn) 14%,transparent);color:var(--loopi-learn)}
[data-theme="dark"] .lsw-tag.go{color:#a5b4fc}
.lsw-foot{padding:10px 16px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
/* trang đăng nhập: biểu tượng + chữ, khẩu hiệu VN lớn, bản EN nhỏ nghiêng ngay dưới (lang="en") */
.auth .pitch .logo-l{display:flex;align-items:center;gap:12px;font:500 26px var(--f-display,'Lexend'),sans-serif;letter-spacing:-.02em;color:#fff}
.auth .pitch .logo-l::before{display:none!important}
.auth .pitch .logo-l .lmark{width:44px;height:44px;flex:none;padding:6px;box-sizing:border-box;border-radius:13px;background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.auth .pitch .logo-l .wm{display:flex;flex-direction:column;line-height:1.1}
.auth .pitch .logo-l .wm b{font-weight:700}
.auth .pitch .logo-l small{font:500 13px 'Be Vietnam Pro',sans-serif;color:rgba(236,253,245,.78);letter-spacing:0;margin-top:5px}
.auth .pitch .slogan-en{margin:10px 0 18px;font-size:15px;font-style:italic;color:rgba(236,253,245,.72);letter-spacing:.01em}
.auth .pitch h1{margin-bottom:0}
.auth .eco-note{margin-top:28px;font-size:12.5px;line-height:1.6;color:rgba(226,232,240,.72);max-width:520px;border-top:1px solid rgba(255,255,255,.14);padding-top:14px}
.auth .eco-note b{color:#fff;font-weight:600}
@media (max-width:899px){.auth .eco-note{display:none}.auth .pitch .slogan-en{margin-bottom:8px}}

/* v1.7.13 – chọn ngôn ngữ ngay trong bảng hệ sinh thái: hai nút chia đôi, cao 44px, chọn rồi có nền trắng + chữ đậm
   (không chỉ đổi màu). Tên thứ tiếng viết bằng chính thứ tiếng đó; English kèm nhãn Beta nhỏ, màu trung tính. */
.lsw-lg{padding:12px 16px 4px;border-top:1px solid var(--line)}
.lsw-lgl{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:6px}
.lsw-seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.lsw-seg button{all:unset;box-sizing:border-box;min-height:40px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:9px;cursor:pointer;font:500 14.5px/1.3 'Be Vietnam Pro',sans-serif;color:var(--muted);text-align:center}
.lsw-seg button:hover:not(.on){color:var(--ink)}
.lsw-seg button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.lsw-seg button.on{background:var(--surface);color:var(--ink);font-weight:700;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.lsw-seg button:disabled{opacity:.6;cursor:progress}
.lsw-beta{font-size:10.5px;font-weight:600;padding:1px 6px;border-radius:999px;background:var(--line);color:var(--muted);letter-spacing:.02em}
.lsw-lg+.lsw-foot{border-top:0}

/* v1.7.13 (BS40 phần 2) – nhãn nhỏ viết hoa khi ở TIẾNG ANH: chữ Anh in hoa giãn .06em trông thưa; giảm còn .03em, cỡ 12px.
   Chỉ áp cho :lang(en) – nhãn tiếng Việt viết hoa có dấu chồng nên giữ nguyên như cũ. Nội dung người dùng có lang="vi". */
:lang(en) .eyebrow,:lang(en) .sxlabel,:lang(en) .vlx-head .sxlabel,:lang(en) th{letter-spacing:.03em}
:lang(en) .eyebrow,:lang(en) .sxlabel{font-size:12px}
/* v1.7.13 – nhãn "coming soon" (tiếng Anh dài hơn) không bị cắt ở thanh bên: cho xuống dòng */
.ll-off{flex-wrap:wrap;row-gap:2px;white-space:normal}
