.runtime-mode-badge {
  position: absolute;
  top: 10px;
  left: 42px;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: .5px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  -webkit-app-region: no-drag;
}

.app-shell[data-sidebar-rail="true"] .runtime-mode-badge {
  display: none;
}

html[data-runtime-mode="web-beta"] .runtime-mode-badge {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--border));
  color: var(--blue);
}

.prototype-fixture-badge {
  position: absolute;
  z-index: calc(var(--z-sticky) + 1);
  top: 10px;
  right: 10px;
  display: inline-flex;
  max-width: calc(100% - 20px);
  min-height: 22px;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: .5px solid color-mix(in srgb, var(--warning) 36%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-1) 90%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--text-primary) 8%, transparent);
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
  -webkit-app-region: no-drag;
}

.prototype-fixture-badge__token {
  color: color-mix(in srgb, var(--warning) 76%, var(--text-primary));
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .035em;
}

.prototype-fixture-badge__copy {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .prototype-fixture-badge {
    top: 6px;
    right: 6px;
    max-width: calc(100% - 12px);
    gap: 4px;
    padding-inline: 6px;
    font-size: 9px;
  }

  .prototype-fixture-badge__token {
    font-size: 8px;
  }
}
