/* Mobile app bar: university branding and a consistent sticky header. */
body.vbs-app .topbar-university-mark { display: none; }
@media screen and (max-width: 900px) {
  html { scroll-padding-top: calc(82px + env(safe-area-inset-top, 0px)); }
  body.vbs-app.has-sidebar .topbar-static-utility {
    position: sticky;
    top: calc(4px + env(safe-area-inset-top, 0px));
    z-index: 48;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin: 0 0 12px !important;
    border: 1px solid #d5e1ef;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 43, 78, .09);
    backdrop-filter: none;
  }
  body.vbs-app.has-sidebar .topbar-static-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  body.vbs-app.has-sidebar .topbar-static-utility .sidebar-toggle-mobile {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #d5e1ef;
    border-radius: 12px;
    background: #f4f7fb;
    box-shadow: none;
  }
  body.vbs-app.has-sidebar .topbar-static-utility .sidebar-toggle-mobile span {
    display: block;
    flex: 0 0 2px;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: #17365d;
  }
  body.vbs-app.has-sidebar .topbar-static-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    color: #17365d;
    text-decoration: none;
    border-radius: 10px;
  }
  body.vbs-app.has-sidebar .topbar-static-brand strong {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
  }
  body.vbs-app.has-sidebar .topbar-university-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 44px;
  }
  body.vbs-app.has-sidebar .topbar-university-mark img {
    display: block;
    width: auto;
    height: 40px;
    max-width: 100%;
    object-fit: contain;
  }
  body.vbs-app.has-sidebar .topbar-static-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }
  body.vbs-app.has-sidebar .topbar-static-action,
  body.vbs-app.has-sidebar .topbar-static-divider,
  body.vbs-app.has-sidebar .topbar-static-location,
  body.vbs-app.has-sidebar .topbar-static-utility .topbar-user-copy,
  body.vbs-app.has-sidebar .topbar-static-utility .topbar-user-chevron { display: none; }
  body.vbs-app.has-sidebar .topbar-static-utility .topbar-user {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    padding: 3px;
    box-sizing: border-box;
    border: 1px solid #d5e1ef;
    border-radius: 12px;
    background: #f4f7fb;
  }
  body.vbs-app.has-sidebar .topbar-static-utility .avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
    overflow: hidden;
  }
  body.vbs-app.has-sidebar .topbar-static-utility :is(.sidebar-toggle-mobile, .topbar-static-brand, .topbar-user):focus-visible {
    outline: 3px solid #1557b0;
    outline-offset: 2px;
  }
}
