/* Palette and motion from the InterOS resource gb-border-green-blue. */
@keyframes gbBorderRotate {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(60deg); }
}

.itb-stage-badge {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2147483646;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100vw - 16px);
  padding: 5px 8px;
  border: 1px solid #dce1e8;
  border-radius: 999px;
  background: #f1f3f6;
  color: #000;
  font: 500 .8125rem/1.25 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  box-shadow: 0 1px 3px #0001;
}

.itb-stage-badge--landing { top: 88px; }
.itb-stage-signed-out { margin: 144px 20px 20px; }

@supports (mask-composite: exclude) {
  .itb-stage-badge::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(90deg, #00ff74 0%, #34c054 50%, #2a64e8 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    animation: gbBorderRotate 3s linear infinite;
  }
}

.itb-stage-badge button {
  min-width: 30px;
  min-height: 30px;
  margin: 0;
  padding: 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.itb-stage-badge button:focus-visible { outline: 2px solid #1f5ab6; outline-offset: 1px; }
.itb-stage-badge .itb-stage-grip { cursor: move; touch-action: none; }
.itb-stage-badge[data-minimized='true'] .itb-stage-grip { display: none; }
.itb-stage-badge[data-minimized='true'] { padding-left: 12px; }

@media (prefers-reduced-motion: reduce) {
  .itb-stage-badge::before { animation: none; }
}
