/* Shared return button for AOI and diagnostic detail pages. */
.detail-return {
  position: fixed;
  z-index: 100;
  top: max(40px, env(safe-area-inset-top));
  right: max(48px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #3b3b3b;
  color: #fff;
  text-decoration: none;
}
.detail-return svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: .95;
  stroke-linecap: round;
  stroke-linejoin: miter;
}
.detail-return:focus-visible { outline: 2px solid #367cff; outline-offset: 4px; }
@media (max-width: 700px) {
  .detail-return {
    top: max(28px, env(safe-area-inset-top));
    right: max(28px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
}
