/* ALLTRACE BY / CRM mobile cross-device QA, 2026-11-07.
   Staff instructor navigation only; preserve student and admin native menus.
   Never widen the viewport or force clipping of scrollable tables. */
@media (max-width:1023.98px) {
  [data-role-shell="instructor"] > main > div:last-child {
    padding-bottom:calc(72px + env(safe-area-inset-bottom,0px));
    overscroll-behavior-x:contain;
    min-width:0;
  }
  [data-role-shell="instructor"] .alltrace-instructor-mobile-nav {
    box-sizing:border-box;
    height:calc(64px + env(safe-area-inset-bottom,0px));
    padding-bottom:env(safe-area-inset-bottom,0px);
    width:100%;
    max-width:100vw;
    overflow:hidden;
    -webkit-backdrop-filter:blur(16px);
    backdrop-filter:blur(16px);
    background:var(--ui-surface,#fff);
    box-shadow:0 -4px 15px rgba(20,36,46,.05);
  }
  [data-role-shell="instructor"] .alltrace-instructor-mobile-nav > ul{
    box-sizing:border-box;
    margin:0;
    padding:0 max(2px,env(safe-area-inset-right,0px)) 0 max(2px,env(safe-area-inset-left,0px));
    list-style:none;
    width:100%;
    min-width:0;
    height:64px;
  }
  [data-role-shell="instructor"] .alltrace-instructor-mobile-nav li{min-width:0;height:100%;}
  [data-role-shell="instructor"] .alltrace-instructor-mobile-link{
    box-sizing:border-box;
    display:flex;
    width:100%;
    min-width:0;
    height:100%;
    padding:7px 2px;
    color:var(--ui-muted,#718096);
    text-decoration:none;
    border:0;
    border-radius:10px;
    background:transparent;
    line-height:1.18;
    overflow:hidden;
    -webkit-tap-highlight-color:transparent;
  }
  [data-role-shell="instructor"] .alltrace-instructor-mobile-link[aria-current="page"]{
    color:var(--ui-link,#277c5e);
    background:var(--ui-selected,rgba(58,145,90,.09));
    font-weight:750;
  }
  [data-role-shell="instructor"] .alltrace-instructor-mobile-link:focus-visible {
    outline:2px solid var(--ui-accent,#65b95b);
    outline-offset:-2px;
  }
  [data-role-shell="instructor"] .alltrace-instructor-mobile-link span:last-child{
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    max-width:100%;
    font-size:clamp(9px,2.7vw,11px);
  }
  [data-role-shell="instructor"] .alltrace-instructor-mobile-link .material-symbols-outlined{
    font-size:clamp(19px,5.6vw,23px)!important;
  }
}

/* Student bottom navigation: full label "Расписание", no truncated text. */
@media(max-width:1023.98px){
 nav[aria-label="Навигация курсанта"] a span:last-child{
   box-sizing:border-box;
   max-width:100%!important;
   min-width:0;
   letter-spacing:-.035em;
 }
}
