/* V532 — parent navigation + live fixed journal date header.
   Deliberately scoped to existing UchetPar controls, no global layout change. */
@media(max-width:900px){
  /* Parent nav has exactly THREE children: Children / Profile / More.
     Old mobile-shell CSS forces four columns and a 320/430px max-width. */
  .navbar .academic-mobile-nav.lab2-mobile-nav.parent-mobile-nav,
  body>.academic-mobile-nav.lab2-mobile-nav.parent-mobile-nav,
  body.mobile-shell-v370>.lab2-mobile-nav.mobile-shell-dock-v370.parent-mobile-nav{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    max-width:none!important;
    width:auto!important;
    margin:0!important;
    box-sizing:border-box!important;
    left:max(8px,env(safe-area-inset-left))!important;
    right:max(8px,env(safe-area-inset-right))!important;
  }
  .parent-mobile-nav>a,.parent-mobile-nav>[data-mobile-more]{min-width:0!important}
  .parent-mobile-nav>a,.parent-mobile-nav [data-mobile-more]>.academic-mobile-more-trigger{
    width:100%!important;min-width:0!important;box-sizing:border-box!important;
  }
}
/* The mirrored header is intentionally interactive for topic and date reading;
   destructive buttons are removed from the clone in subject_grades-3.js. */
.journal-sticky-dates-overlay.is-active .journal-sticky-dates-table .journal-date-row th.grade-date-head{
  pointer-events:auto!important;
}
.journal-sticky-dates-overlay.is-active .journal-sticky-dates-table .journal-date-row th.grade-date-head[data-lesson-description]{cursor:pointer}
.journal-sticky-dates-overlay .journal-sticky-dates-table .journal-date-topic-link{
  pointer-events:auto!important;cursor:pointer;position:relative;z-index:1;
}
.journal-sticky-dates-overlay .journal-sticky-dates-table .journal-date-topic-link:focus-visible,
.journal-sticky-dates-overlay .journal-sticky-dates-table .grade-date-head:focus-visible{
  outline:2px solid var(--accent,#8bc6ff)!important;outline-offset:-2px;
}
/* Password visibility button stays inside parent password fields on narrow screens. */
.parent-password-field{min-width:0}
.parent-password-field .login-input{display:flex;align-items:stretch;min-width:0;width:100%;box-sizing:border-box}
.parent-password-field .login-input input{min-width:0;flex:1 1 auto;width:100%}
.parent-password-field .login-password-toggle{flex:0 0 auto;min-width:72px;cursor:pointer}
