.browser-window {
  position: relative;
  isolation: isolate;
}
#agent-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 14;
  transition: transform 150ms cubic-bezier(0.25, 0.77, 0.22, 1);
  transform: translate3d(var(--cursor-x, 0px), var(--cursor-y, 0px), 0);
  filter: drop-shadow(0 1px 2px #09142660);
}
#agent-cursor i {
  width: 17px;
  height: 22px;
  background: #122f4b;
  clip-path: polygon(0 0, 100% 60%, 56% 65%, 32% 100%);
}
#agent-cursor i::after {
  content: "";
  position: absolute;
  inset: 2px 2.5px 3px 1.5px;
  background: #b8e9ff;
  clip-path: polygon(0 0, 100% 60%, 56% 65%, 32% 100%);
}
#agent-cursor span {
  width: max-content;
  padding: 2px 4px;
  background: #173c5e;
  color: #fff;
  font:
    650 10px/1.05 system-ui,
    sans-serif;
  border-radius: 4px;
  box-shadow: none;
}
#source-selection {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}
#source-selection i {
  position: absolute;
  display: block;
  background: rgb(91 181 251 / 24%);
  border-bottom: 1.5px solid #2877ae;
}
#agent-cursor.under-lens {
  visibility: hidden;
}
#menu-lens {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 13;
  overflow: hidden;
  isolation: isolate;
  border-radius: 999px;
  pointer-events: none;
  box-shadow:
    0 0 0 1px #18395585,
    0 4px 13px #17344d38;
}
#menu-lens[hidden] {
  display: none;
}
#menu-lens::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px #fcfeffdb,
    inset 0 0 0 3px #8799a58a,
    inset 0 0 8px 3px #7291a02c;
}
.lens-paper {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}
.lens-paper span {
  position: absolute;
  display: block;
  box-sizing: border-box;
  margin: 0;
  text-align: left;
}
.lens-paper .lens-citation {
  background: linear-gradient(#5bb5fb3d, #5bb5fb3d) left center /
    var(--ink-read, 0%) 92% no-repeat;
}
.agent-click {
  position: absolute;
  width: 27px;
  height: 27px;
  border: 2px solid #378bca;
  border-radius: 50%;
  pointer-events: none;
  z-index: 13;
}
@media (prefers-reduced-motion: reduce) {
  #menu-lens {
    display: none;
  }
  #agent-cursor {
    transition: none;
  }
}
