.gesture-stage {
  touch-action: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.gesture-stage:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: -2px;
}
.gesture-stage .xy-editable {
  cursor: crosshair;
}
.gesture-stage.xy-panning,
.gesture-stage.xy-panning .picture {
  cursor: grabbing;
}
.preview-gesture-hud {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 9px;
  max-width: calc(100% - 18px);
  font-family: inherit;
  color: var(--muted);
}
.preview-gesture-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  padding: 2px 4px 2px 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.preview-gesture-hud [hidden],
.xy-reticle[hidden] {
  display: none !important;
}
.xy-pair,
.xy-help-button {
  height: 20px;
  padding: 0 5px;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font: 10px var(--mono);
  white-space: nowrap;
}
.xy-pair[aria-pressed='true'] {
  background: var(--blue-tint);
  color: var(--blue);
}
.xy-pair:hover,
.xy-help-button:hover {
  background: var(--raised);
  color: var(--text);
}
.xy-readout,
.xy-axis {
  display: flex;
  align-items: baseline;
  min-width: 0;
}
.xy-readout {
  margin: 0 3px;
  padding-left: 7px;
  border-left: 1px solid var(--line);
  gap: 9px;
}
.xy-axis {
  gap: 4px;
  font-size: 11px;
  white-space: nowrap;
}
.xy-axis-name {
  color: var(--dim);
  font: 10px var(--mono);
}
.xy-axis-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.xy-axis-value {
  color: var(--blue);
  font: 10px var(--mono);
}
.xy-help-button {
  color: var(--dim);
}
.xy-help {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: max-content;
  max-width: min(320px, calc(100vw - 38px));
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  padding: 7px 10px;
  box-shadow: 0 3px 12px #0003;
}
.xy-help p {
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.45;
}
.xy-reticle {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
  width: 17px;
  height: 17px;
  border: 1px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #0009;
  z-index: 2;
}
.xy-reticle::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 3px;
  height: 3px;
  background: #28a7ff;
  border-radius: 50%;
}
@media (pointer: coarse) {
  .xy-pair,
  .xy-help-button {
    min-width: 30px;
    height: 27px;
  }
  .xy-help {
    max-width: calc(100vw - 36px);
  }
}
@media (max-width: 850px) {
  .preview-gesture-hud {
    left: 5px;
    max-width: calc(100% - 10px);
  }
  .xy-readout {
    gap: 5px;
    padding-left: 5px;
  }
}
