/* Tap-to-gloss widget. Loaded by tutor chat and the MUD. */
.gloss-cand,
.gloss-tap {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: inherit;
  border-radius: 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.gloss-tap {
  cursor: pointer;
}
.gloss-tap:hover,
.gloss-tap:focus-visible {
  background: rgba(56, 178, 172, 0.22);
  outline: none;
}
.gloss-pop {
  position: fixed;
  z-index: 80;
  max-width: min(36rem, calc(100vw - 1.6rem));
  max-height: min(44vh, 18rem);
  overflow: auto;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: #1a2430;
  color: var(--text, #f4ead4);
  border: 1px solid var(--border, rgba(232, 168, 72, 0.45));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
  font-weight: 550;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
  pointer-events: auto;
}
.gloss-pop-miss {
  font-weight: 500;
  color: var(--muted, #b8a98a);
}
