/* Global one-step back button v10.7.00 */
.gt-global-back-v10700{
  appearance:none;
  -webkit-appearance:none;
  flex:0 0 36px;
  width:36px;
  height:36px;
  min-width:36px;
  min-height:36px;
  margin:0 10px 0 0;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#1f2937;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  text-decoration:none;
  box-shadow:none;
  line-height:1;
  z-index:5;
}
.gt-global-back-v10700 svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:3.1;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.gt-global-back-v10700:hover{background:rgba(15,23,42,.055)}
.gt-global-back-v10700:active{transform:translateX(-1px)}
.gt-global-back-v10700:focus-visible{
  outline:2px solid rgba(99,102,241,.45);
  outline-offset:2px;
}

/* The global button replaces old page-specific instrument back arrows. */
body.user-panel.gt-global-back-ready-v10700 .gt-instrument-back,
body.user-panel.gt-global-back-ready-v10700 .instrument-mobile-head > .back-link{
  display:none!important;
}

/* User/admin topbars: button is the first item in the bar. */
body.user-panel .gt-user-topbar > .gt-global-back-v10700,
body.user-panel .user-topbar > .gt-global-back-v10700,
body.admin-panel .admin-topbar > .gt-global-back-v10700{
  align-self:center;
}

/* Auth pages do not have a topbar, so pin the same button in the top-left. */
body.user-auth .gt-global-back-v10700,
body.admin-auth .gt-global-back-v10700{
  position:fixed;
  top:calc(12px + env(safe-area-inset-top,0px));
  left:calc(12px + env(safe-area-inset-left,0px));
  margin:0;
  background:rgba(255,255,255,.94);
  box-shadow:0 2px 12px rgba(15,23,42,.08);
  z-index:10060;
}

@media(max-width:700px){
  .gt-global-back-v10700{
    flex-basis:32px;
    width:32px;
    height:32px;
    min-width:32px;
    min-height:32px;
    margin-right:6px;
    border-radius:8px;
  }
  .gt-global-back-v10700 svg{width:20px;height:20px;stroke-width:3.2}
  body.user-auth .gt-global-back-v10700,
  body.admin-auth .gt-global-back-v10700{
    top:calc(8px + env(safe-area-inset-top,0px));
    left:calc(8px + env(safe-area-inset-left,0px));
  }
}
