@layer sj-navigation-sync {
/* C2 trial: one shared transparent WebP atlas; no scripts, filters or animation. */
html body #s3-premium-rail#s3-premium-rail a[href="/my/"] > svg,
html body #s3-premium-rail#s3-premium-rail svg[data-s3-icon="results"],
html body #s3-mobile-nav#s3-mobile-nav a[href="/my/"] > b,
html body #s3-mobile-nav#s3-mobile-nav a[data-sj-mobile-role="results"] > b,
html body #s3-premium-rail#s3-premium-rail a[href="/my/courses.php"] > svg,
html body #s3-mobile-nav#s3-mobile-nav a[href="/my/courses.php"] > b,
html body #s3-premium-rail#s3-premium-rail a[href*="s3view=vocabulary"] > svg,
html body #s3-mobile-nav#s3-mobile-nav a[data-s3-vocab-link] > svg,
html body #s3-mobile-nav#s3-mobile-nav a[data-s3-vocab-link] > b,
html body #sj-quick-review-trigger#sj-quick-review-trigger > svg,
html body #sj-mobile-quick-trigger#sj-mobile-quick-trigger > svg,
html body #sj-quick-review-panel#sj-quick-review-panel .sj-quick-review-soon > svg,
html body #sj-mobile-quick-panel#sj-mobile-quick-panel .sj-mobile-quick-soon > svg,
html body #sj-study-shortcuts#sj-study-shortcuts .sj-study-wrong > svg,
html body #s3-premium-rail#s3-premium-rail a[href*="/local/sjcommunity/"] > svg,
html body #sj-personal-rail-panel#sj-personal-rail-panel a[href*="/local/sjcommunity/"] > svg,
html body #s3-premium-rail#s3-premium-rail a[href*="/user/profile.php"] > svg,
html body #sj-personal-rail-trigger#sj-personal-rail-trigger > svg,
html body #sj-personal-rail-panel#sj-personal-rail-panel a[href*="/user/profile.php"] > svg,
html body #s3-mobile-nav#s3-mobile-nav a[data-sj-mobile-role="profile"] > b,
html body #sj-settings-trigger#sj-settings-trigger > svg,
html body .sj-c2-icon.sj-c2-roadmap{display:inline-block!important;box-sizing:border-box!important;width:var(--sj-c2-size,32px)!important;height:var(--sj-c2-size,32px)!important;min-width:var(--sj-c2-size,32px)!important;max-width:var(--sj-c2-size,32px)!important;min-height:var(--sj-c2-size,32px)!important;max-height:var(--sj-c2-size,32px)!important;flex:none!important;background-image:url("/local/sjjlptui/assets/c2-icons-a45c59315ad247fa.webp")!important;background-color:transparent!important;background-repeat:no-repeat!important;background-size:400% 200%!important;background-position:var(--sj-c2-pos)!important;background-origin:border-box!important;background-clip:border-box!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important;mix-blend-mode:normal!important;overflow:hidden!important;font-size:0!important;line-height:0!important;text-indent:-9999px!important;}
html body #s3-premium-rail#s3-premium-rail a[href="/my/"] > svg > *,
html body #s3-premium-rail#s3-premium-rail svg[data-s3-icon="results"] > *,
html body #s3-mobile-nav#s3-mobile-nav a[href="/my/"] > b > *,
html body #s3-mobile-nav#s3-mobile-nav a[data-sj-mobile-role="results"] > b > *,
html body #s3-premium-rail#s3-premium-rail a[href="/my/courses.php"] > svg > *,
html body #s3-mobile-nav#s3-mobile-nav a[href="/my/courses.php"] > b > *,
html body #s3-premium-rail#s3-premium-rail a[href*="s3view=vocabulary"] > svg > *,
html body #s3-mobile-nav#s3-mobile-nav a[data-s3-vocab-link] > svg > *,
html body #s3-mobile-nav#s3-mobile-nav a[data-s3-vocab-link] > b > *,
html body #sj-quick-review-trigger#sj-quick-review-trigger > svg > *,
html body #sj-mobile-quick-trigger#sj-mobile-quick-trigger > svg > *,
html body #sj-quick-review-panel#sj-quick-review-panel .sj-quick-review-soon > svg > *,
html body #sj-mobile-quick-panel#sj-mobile-quick-panel .sj-mobile-quick-soon > svg > *,
html body #sj-study-shortcuts#sj-study-shortcuts .sj-study-wrong > svg > *,
html body #s3-premium-rail#s3-premium-rail a[href*="/local/sjcommunity/"] > svg > *,
html body #sj-personal-rail-panel#sj-personal-rail-panel a[href*="/local/sjcommunity/"] > svg > *,
html body #s3-premium-rail#s3-premium-rail a[href*="/user/profile.php"] > svg > *,
html body #sj-personal-rail-trigger#sj-personal-rail-trigger > svg > *,
html body #sj-personal-rail-panel#sj-personal-rail-panel a[href*="/user/profile.php"] > svg > *,
html body #s3-mobile-nav#s3-mobile-nav a[data-sj-mobile-role="profile"] > b > *,
html body #sj-settings-trigger#sj-settings-trigger > svg > *,
html body .sj-c2-icon.sj-c2-roadmap > *{visibility:hidden!important;}
html body #s3-premium-rail#s3-premium-rail a[href="/my/"] > svg,
html body #s3-premium-rail#s3-premium-rail svg[data-s3-icon="results"],
html body #s3-mobile-nav#s3-mobile-nav a[href="/my/"] > b,
html body #s3-mobile-nav#s3-mobile-nav a[data-sj-mobile-role="results"] > b{--sj-c2-pos:0.0% 0%;}
html body #s3-premium-rail#s3-premium-rail a[href="/my/courses.php"] > svg,
html body #s3-mobile-nav#s3-mobile-nav a[href="/my/courses.php"] > b{--sj-c2-pos:33.333333% 0%;}
html body #s3-premium-rail#s3-premium-rail a[href*="s3view=vocabulary"] > svg,
html body #s3-mobile-nav#s3-mobile-nav a[data-s3-vocab-link] > svg,
html body #s3-mobile-nav#s3-mobile-nav a[data-s3-vocab-link] > b{--sj-c2-pos:66.666667% 0%;}
html body #sj-quick-review-trigger#sj-quick-review-trigger > svg,
html body #sj-mobile-quick-trigger#sj-mobile-quick-trigger > svg,
html body #sj-quick-review-panel#sj-quick-review-panel .sj-quick-review-soon > svg,
html body #sj-mobile-quick-panel#sj-mobile-quick-panel .sj-mobile-quick-soon > svg,
html body #sj-study-shortcuts#sj-study-shortcuts .sj-study-wrong > svg{--sj-c2-pos:100.0% 0%;}
html body #s3-premium-rail#s3-premium-rail a[href*="/local/sjcommunity/"] > svg,
html body #sj-personal-rail-panel#sj-personal-rail-panel a[href*="/local/sjcommunity/"] > svg{--sj-c2-pos:0.0% 100%;}
html body #s3-premium-rail#s3-premium-rail a[href*="/user/profile.php"] > svg,
html body #sj-personal-rail-trigger#sj-personal-rail-trigger > svg,
html body #sj-personal-rail-panel#sj-personal-rail-panel a[href*="/user/profile.php"] > svg,
html body #s3-mobile-nav#s3-mobile-nav a[data-sj-mobile-role="profile"] > b{--sj-c2-pos:33.333333% 100%;}
html body #sj-settings-trigger#sj-settings-trigger > svg{--sj-c2-pos:66.666667% 100%;}
html body .sj-c2-icon.sj-c2-roadmap{--sj-c2-pos:100.0% 100%;}
html body .sj-c2-icon.sj-c2-roadmap{--sj-c2-size:40px;}
@media(max-width:768px){html body #s3-mobile-nav#s3-mobile-nav a[href="/my/"] > b,
html body #s3-mobile-nav#s3-mobile-nav a[data-sj-mobile-role="results"] > b,
html body #s3-mobile-nav#s3-mobile-nav a[href="/my/courses.php"] > b,
html body #s3-mobile-nav#s3-mobile-nav a[data-s3-vocab-link] > svg,
html body #s3-mobile-nav#s3-mobile-nav a[data-s3-vocab-link] > b,
html body #sj-mobile-quick-trigger#sj-mobile-quick-trigger > svg,
html body #s3-mobile-nav#s3-mobile-nav a[data-sj-mobile-role="profile"] > b{--sj-c2-size:28px;}}

/* Reserve both the 28px artwork and a complete label line on narrow phones. */
@media(max-width:768px){
 html body #s3-mobile-nav#s3-mobile-nav{
  box-sizing:border-box!important;height:calc(56px + env(safe-area-inset-bottom,0px))!important;
  min-height:calc(56px + env(safe-area-inset-bottom,0px))!important;max-height:none!important;
  padding:4px 5px calc(4px + env(safe-area-inset-bottom,0px))!important;align-items:center!important;
 }
 html body #s3-mobile-nav#s3-mobile-nav > :is(a,button){
  box-sizing:border-box!important;height:46px!important;min-height:46px!important;max-height:46px!important;
  flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:2px!important;padding:0 1px!important;margin:0!important;
 }
 html body #s3-mobile-nav#s3-mobile-nav > :is(a,button) > span{
  display:block!important;flex:0 0 auto!important;height:auto!important;min-height:14px!important;max-height:none!important;
  font-size:clamp(9px,2.75vw,11px)!important;line-height:14px!important;
  white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
  text-indent:0!important;text-align:center!important;margin:0!important;padding:0!important;
 }
 html body.s3-premium:has(#s3-mobile-nav){padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))!important;}
}

html body #sj-dictionary-rail-link#sj-dictionary-rail-link > svg,
html body #s3-premium-rail#s3-premium-rail a[href="/bang-chu-cai/"] > svg,
html body #s3-premium-rail#s3-premium-rail a[href*="/chuyen-nganh/"] > svg,
html body #s3-premium-rail#s3-premium-rail a:is([href*="/grade/report/"],[data-sj-practice-link]) > svg{display:inline-block!important;width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;min-height:32px!important;max-height:32px!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background-color:transparent!important;background-image:url("/local/sjjlptui/assets/c2-extras-42efb989956f21e2.webp")!important;background-size:200% 200%!important;background-repeat:no-repeat!important;filter:none!important;}
html body #sj-dictionary-rail-link#sj-dictionary-rail-link > svg > *,
html body #s3-premium-rail#s3-premium-rail a[href="/bang-chu-cai/"] > svg > *,
html body #s3-premium-rail#s3-premium-rail a[href*="/chuyen-nganh/"] > svg > *,
html body #s3-premium-rail#s3-premium-rail a:is([href*="/grade/report/"],[data-sj-practice-link]) > svg > *{visibility:hidden!important;}
html body #sj-dictionary-rail-link#sj-dictionary-rail-link > svg{background-position:0% 0%!important;}
html body #s3-premium-rail#s3-premium-rail a[href="/bang-chu-cai/"] > svg{background-position:100% 0%!important;}
html body #s3-premium-rail#s3-premium-rail a[href*="/chuyen-nganh/"] > svg{background-position:0% 100%!important;}
html body #s3-premium-rail#s3-premium-rail a:is([href*="/grade/report/"],[data-sj-practice-link]) > svg{background-position:100% 100%!important;}
}
