:root {
  --fc-fade-color: 255, 140, 0;
  --fc-pulse-color: 255, 144, 100;
  --fc-caret-color: 216, 90, 48;
}

.remote-caret {
  position: absolute;
  width: 2px;
  pointer-events: none;
  border-radius: 1px;
  transition: left 60ms ease, top 60ms ease;
  display: none;
  background: rgb(var(--fc-caret-color));
  pointer-events: none;
  user-select: none;
}

.remote-caret-label {
  position: absolute;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
  white-space: nowrap;
  display: none;
  background: rgb(var(--fc-caret-color));
  color: #fff;
  pointer-events: none;
  user-select: none;
}

.input-shell {
  position: relative;
  display: inline-block;
}

@keyframes opacity-pulse {
  0%, 100% {
    outline-color: rgba(var(--fc-pulse-color), 1);
  }
  50% {
    outline-color: rgba(var(--fc-pulse-color), 0.3);
  }
}

.remote-active {
  outline: 2px solid transparent;
  animation: opacity-pulse 2s ease-in-out infinite;
}

@keyframes bg-fade {
  0%   {
    background-color: rgba(var(--fc-fade-color), 0.7);
    opacity: 0.7;
  }
  100%  {
    background-color: var(--fc-highlight-to);
    accent-color: var(--fc-highlight-to);
    opacity: 1;
  }
}
.highlight {
  animation: bg-fade 2.5s linear forwards;
}

.fc-icon-widget {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: rgba(var(--fc-pulse-color), 0.8);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2147483000; /* stays above host page content without needing to touch its stacking context */
  font: 700 11px/1 system-ui, sans-serif;
}
.fc-icon-widget:hover,
.fc-icon-widget:focus-visible {
  background: rgb(var(--fc-pulse-color));
  outline: none;
}
.fc-tooltip-widget {
  position: absolute;
  white-space: pre-line;
  width: 300px;
  background: rgb(var(--fc-pulse-color));
  color: #fff;
  font: 400 12px/1.4 system-ui, sans-serif;
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2147483000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}
.fc-tooltip-widget.fc-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
