/* ui301: explicit root-home controls only; original course/auth/practice logic remains. */
body.ui301-home-page .ui301-subpage-home {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 10px !important;
  border: 1px solid #DCD4C5 !important;
  border-radius: 2px !important;
  background: #FBF8F2 !important;
  color: #3F3C35 !important;
  font: 600 14px/1.3 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: color .16s ease, background-color .16s ease, opacity .16s ease;
}
body.ui301-home-page .ui301-subpage-home .course-home-full { display: inline !important; }
body.ui301-home-page .ui301-subpage-home .course-home-short { display: none !important; }
body.ui301-home-page .ui301-subpage-home:focus-visible {
  outline: 3px solid #50563A;
  outline-offset: 2px;
}
body.ui301-home-page .ui301-subpage-home:active { opacity: .72; }
@media (hover:hover) {
  body.ui301-home-page .ui301-subpage-home:hover {
    color: #50563A !important;
    background-color: #EFE9DD !important;
  }
}
.ui301-auth-home-nav {
  display: inline-flex;
  flex: none;
  margin-left: auto;
}
.ui301-practice-home-strip {
  position: sticky;
  top: 0;
  z-index: 40;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 8px max(14px, env(safe-area-inset-right, 0px)) 7px max(14px, env(safe-area-inset-left, 0px));
  background: #F8F3EB;
  border-bottom: 1px solid #DCD4C5;
}
body.ui301-practice-home-page .app-shell { padding-top: 16px; }
@media (max-width:1279px) {
  .ui301-practice-home-strip {
    min-height: calc(72px + env(safe-area-inset-top, 0px));
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    padding-bottom: 13px;
    padding-left: max(88px, calc(74px + env(safe-area-inset-left, 0px)));
  }
  body.ui301-practice-home-page .nav-menu-toggle {
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: max(14px, env(safe-area-inset-left, 0px));
  }
}
@media (prefers-reduced-motion:reduce) {
  body.ui301-home-page .ui301-subpage-home { transition: none !important; }
}
@media print {
  .ui301-auth-home-nav, .ui301-practice-home-strip { display: none !important; }
  body.ui301-practice-home-page .app-shell { padding-top: 0; }
}
