/* GX Tracking v0.10.82: highlight the current record, only inside the native mobile history sheet. */
@media (max-width:850px) {
 html body.tracking-dashboard.gx64-mobile[data-gx64-view="history"] #historyPanel #historyPositionList .gx-history-card-v01037.gx82-follow-active {
   border-color:#1687ef!important;
   box-shadow:inset 0 0 0 1px rgba(22,135,239,.52),0 0 0 1px rgba(22,135,239,.32)!important;
 }
 html body.tracking-dashboard.gx64-mobile[data-gx64-view="history"] #historyPanel #historyPositionList .gx-history-card-v01037.gx82-follow-active .gx-history-card-number-v01037 {
   border-color:#1687ef!important;
 }
}

/* GX v0.10.82: isolated, bounded scroll area. The main panel and its
   history controls stay in place when playback advances. Manual scrolling
   of the sheet remains available. No layout changes to desktop. */
@media (max-width:850px) {
  html body.tracking-dashboard.gx64-mobile[data-gx64-view="history"] #sidebar.gx64-sheet #historyPanel #historyPositionList {
    display:flex!important;
    flex-direction:column!important;
    flex:0 0 auto!important;
    box-sizing:border-box!important;
    height:auto!important;
    min-height:0!important;
    max-height:min(38dvh,390px)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    scroll-behavior:auto!important;
    overflow-anchor:none!important;
    padding:0 2px var(--gx82-bottom-pad,8px)!important;
    scrollbar-width:thin;
  }
}

/* Small non-layout visual transition; the isolated scrollport remains unchanged. */
@media (max-width:850px) and (prefers-reduced-motion:no-preference) {
 html body.tracking-dashboard.gx64-mobile[data-gx64-view="history"] #historyPanel #historyPositionList .gx-history-card-v01037 {
   transition:border-color 120ms linear, box-shadow 120ms linear!important;
 }
}
